       date: "#{day} #{elem @monabbr, month} #{year}",
       raw_date: [year, month, day],
       tags: tags,
-      url: url
+      url: "#{Keyword.get proj, :base_url}posts/#{h}.html"
     }])
   end
 

      IO.write device, html
    end

    tagmap = getglobal :tags
    File.rm_rf! "#{dir}site/tags/"
    Enum.each tagmap, fn {k, v} ->
      tagdir = "#{dir}site/tags/#{k.name}/"
      pt = "Posts Tagged \"#{k.name}\""

    File.rm_rf! dstdir
    File.mkdir_p! dstdir

    metalist = mkmeta(dir, proj, files, [])
    Enum.each metalist, fn meta ->
      [y, m, d] = meta.raw_date
      dow = elem @dowstr, :calendar.day_of_the_week(y, m, d)
      datestr = "#{dow}, #{meta.date}"
