     File.rm_rf! dstdir
     File.mkdir_p! dstdir
 
-    putglobal :tags, %{}
     metalist = mkmeta(dir, proj, files, [])
     Enum.each metalist, fn meta ->
-      Enum.each meta.tags, fn t ->
-        tagmap = getglobal :tags
-        posts = Map.get tagmap, t, []
-        tagmap = Map.put tagmap, t, posts ++ [meta]
-        putglobal :tags, tagmap
-      end
-
       [y, m, d] = meta.raw_date
       dow = elem @dowstr, :calendar.day_of_the_week(y, m, d)
       datestr = "#{dow}, #{meta.date}"

      date: "#{day} #{elem @monabbr, month} #{year}",
      raw_date: [year, month, day],
      tags: tags,
      url: url
    }])
  end


  end

  defp mkmeta(dir, proj, [h|t], l) do
    [year, month, day|_] = String.split(h, "-") |> Enum.map(fn x ->
      case Integer.parse(x) do
        {x, _} -> x
        :error -> nil
      end
    end)
    ["# " <> title, "#" <> tags] =
      File.open!("#{dir}posts/#{h}.md", [:read, :utf8], &([IO.gets(&1, ""), IO.gets(&1, "")]))
    title = title |> String.trim
    tags = tags |> String.split(~r/, ?/)
                |> Enum.filter(&(String.trim(&1) != ""))
                |> Enum.map(fn x ->
                  tag = String.trim x
