There are different ways to do this. Could you elaborate a bit, so I
can explain the best way for your specific problem?
Cheers,
Jasper
To hijack this thread a little, someone pointed out to me today that
bookmarking pages on my site was much harder than it needed to be
because the <title> was the same on every page.
I had removed the $title bit which I had copied from
http://jaspervdj.be/hakyll/index.html because it apparently only took
the data from a metadata block inside each Markdown page, and I didn't
want to clutter my 100 .pages with a metadata block containing the
filename; and had forgotten about this change.
So template.html went from
<title>Hakyll - $title</title>
to
<title>Joining Clouds</title>
However, just dropping the .page suffix would suffice to get the
title. But I'm not sure how the plumbing works or even whether this
could work.
--
gwern
http://www.gwern.net
- addField (in CreateContext) which can be used to add a field to a context
- takeBody, (in ContextManipulations) which can be used to render to a string
Cheers,
Jasper
Was this meant as a reply to my question about $title as well?
--
gwern
http://www.gwern.net
Cheers,
Jasper