Discussion:
[hakyll] tags
a***@gmail.com
2017-10-08 00:14:19 UTC
Permalink
i'm struggling to add support for tags to my site.

i followed the external tutorial linked to from the main page
(https://javran.github.io/posts/2014-03-01-add-tags-to-your-hakyll-blog.html)
but it's not working as expected.

after fighting for a while trying to integrate it with my existing site
source, i figured it best to just hakyll-init a new site, follow the
instructions, compare with the provided final source code, etc., but i just
can't get it to work.

following the steps in the tutorial allows it to gather the tags from the
posts' metadata correctly, print them into the header content of the post,
but, crucially, it doesn't create any /tag[s]/x.html page (or link to such
page) for each tag 'x' -- though the tutorial claims such functionality.

i don't see any mention of hyperlinks in the tutorial, so i could
understand why 'tags: x, y' doesn't create a couple of hyperlinks, but the
real issue is that the basic /tags/x.html pages aren't being generated as
the tutorial claims should be.

i do notice the guide is from 2014 with hakyll v4.4.3.2, though i should
imagine the advice should still work with v4.9.8.0.

any advice? is anyone aware of a more recent treatment of this issue? while
i'm haskell-competent in a functional programming sense, i'm nowhere near
experienced enough with hakyll to handle this myself.

cheers,
allan.
--
You received this message because you are subscribed to the Google Groups "hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hakyll+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jean-Marc Notin
2017-10-09 10:56:59 UTC
Permalink
Hi,

I followed the tutorial you mentioned starting with a fresh hakyll
project (generated using stack and its hakyll-template, which uses
hakyll-4.9.8.0). Everything seems to work as advertised: I get a file
tag/x.html generated for every tag x.
Those files are generated by the call to tagRules; the pattern for the
generated files is given by (fromCapture "tags/*.html") in the call to
buildTags.

Regards,
Post by a***@gmail.com
i'm struggling to add support for tags to my site.
i followed the external tutorial linked to from the main page
(https://javran.github.io/posts/2014-03-01-add-tags-to-your-hakyll-blog.html)
but it's not working as expected.
after fighting for a while trying to integrate it with my existing site
source, i figured it best to just hakyll-init a new site, follow the
instructions, compare with the provided final source code, etc., but i just
can't get it to work.
following the steps in the tutorial allows it to gather the tags from the
posts' metadata correctly, print them into the header content of the post,
but, crucially, it doesn't create any /tag[s]/x.html page (or link to such
page) for each tag 'x' -- though the tutorial claims such functionality.
i don't see any mention of hyperlinks in the tutorial, so i could understand
why 'tags: x, y' doesn't create a couple of hyperlinks, but the real issue
is that the basic /tags/x.html pages aren't being generated as the tutorial
claims should be.
i do notice the guide is from 2014 with hakyll v4.4.3.2, though i should
imagine the advice should still work with v4.9.8.0.
any advice? is anyone aware of a more recent treatment of this issue? while
i'm haskell-competent in a functional programming sense, i'm nowhere near
experienced enough with hakyll to handle this myself.
cheers,
allan.
--
You received this message because you are subscribed to the Google Groups "hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
Jean-Marc Notin
--
You received this message because you are subscribed to the Google Groups "hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hakyll+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
a***@gmail.com
2017-10-10 20:42:46 UTC
Permalink
Thanks for your reply - it made me keep fighting with it.

I downloaded the zip file from the tutorial, and used `stack exec site
build`, which didn't build any tags files. `ghc site.hs; ./site rebuild`
worked perfectly. I suspect there's something wrong with my stack
installation, though I haven't come across any problems with it before.

Cheers,
Allan.
Post by Jean-Marc Notin
Hi,
I followed the tutorial you mentioned starting with a fresh hakyll
project (generated using stack and its hakyll-template, which uses
hakyll-4.9.8.0). Everything seems to work as advertised: I get a file
tag/x.html generated for every tag x.
Those files are generated by the call to tagRules; the pattern for the
generated files is given by (fromCapture "tags/*.html") in the call to
buildTags.
Regards,
Post by a***@gmail.com
i'm struggling to add support for tags to my site.
i followed the external tutorial linked to from the main page
(
https://javran.github.io/posts/2014-03-01-add-tags-to-your-hakyll-blog.html)
Post by a***@gmail.com
but it's not working as expected.
after fighting for a while trying to integrate it with my existing site
source, i figured it best to just hakyll-init a new site, follow the
instructions, compare with the provided final source code, etc., but i
just
Post by a***@gmail.com
can't get it to work.
following the steps in the tutorial allows it to gather the tags from
the
Post by a***@gmail.com
posts' metadata correctly, print them into the header content of the
post,
Post by a***@gmail.com
but, crucially, it doesn't create any /tag[s]/x.html page (or link to
such
Post by a***@gmail.com
page) for each tag 'x' -- though the tutorial claims such functionality.
i don't see any mention of hyperlinks in the tutorial, so i could
understand
Post by a***@gmail.com
why 'tags: x, y' doesn't create a couple of hyperlinks, but the real
issue
Post by a***@gmail.com
is that the basic /tags/x.html pages aren't being generated as the
tutorial
Post by a***@gmail.com
claims should be.
i do notice the guide is from 2014 with hakyll v4.4.3.2, though i should
imagine the advice should still work with v4.9.8.0.
any advice? is anyone aware of a more recent treatment of this issue?
while
Post by a***@gmail.com
i'm haskell-competent in a functional programming sense, i'm nowhere
near
Post by a***@gmail.com
experienced enough with hakyll to handle this myself.
cheers,
allan.
--
You received this message because you are subscribed to the Google
Groups
Post by a***@gmail.com
"hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send
an
Post by a***@gmail.com
For more options, visit https://groups.google.com/d/optout.
--
Jean-Marc Notin
--
You received this message because you are subscribed to the Google Groups "hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hakyll+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jan Tojnar
2017-10-11 08:26:34 UTC
Permalink
Hello.

Did you also run stack build? Even when site executable was build by stack,
it cannot rebuild itself – stack exec site build will only build the site
content.

Jan
Post by a***@gmail.com
Thanks for your reply - it made me keep fighting with it.
I downloaded the zip file from the tutorial, and used `stack exec site
build`, which didn't build any tags files. `ghc site.hs; ./site rebuild`
worked perfectly. I suspect there's something wrong with my stack
installation, though I haven't come across any problems with it before.
Cheers,
Allan.
Post by Jean-Marc Notin
Hi,
I followed the tutorial you mentioned starting with a fresh hakyll
project (generated using stack and its hakyll-template, which uses
hakyll-4.9.8.0). Everything seems to work as advertised: I get a file
tag/x.html generated for every tag x.
Those files are generated by the call to tagRules; the pattern for the
generated files is given by (fromCapture "tags/*.html") in the call to
buildTags.
Regards,
Post by a***@gmail.com
i'm struggling to add support for tags to my site.
i followed the external tutorial linked to from the main page
(https://javran.github.io/posts/2014-03-01-add-tags-to-your-
hakyll-blog.html)
Post by a***@gmail.com
but it's not working as expected.
after fighting for a while trying to integrate it with my existing site
source, i figured it best to just hakyll-init a new site, follow the
instructions, compare with the provided final source code, etc., but i
just
Post by a***@gmail.com
can't get it to work.
following the steps in the tutorial allows it to gather the tags from
the
Post by a***@gmail.com
posts' metadata correctly, print them into the header content of the
post,
Post by a***@gmail.com
but, crucially, it doesn't create any /tag[s]/x.html page (or link to
such
Post by a***@gmail.com
page) for each tag 'x' -- though the tutorial claims such
functionality.
Post by a***@gmail.com
i don't see any mention of hyperlinks in the tutorial, so i could
understand
Post by a***@gmail.com
why 'tags: x, y' doesn't create a couple of hyperlinks, but the real
issue
Post by a***@gmail.com
is that the basic /tags/x.html pages aren't being generated as the
tutorial
Post by a***@gmail.com
claims should be.
i do notice the guide is from 2014 with hakyll v4.4.3.2, though i
should
Post by a***@gmail.com
imagine the advice should still work with v4.9.8.0.
any advice? is anyone aware of a more recent treatment of this issue?
while
Post by a***@gmail.com
i'm haskell-competent in a functional programming sense, i'm nowhere
near
Post by a***@gmail.com
experienced enough with hakyll to handle this myself.
cheers,
allan.
--
You received this message because you are subscribed to the Google
Groups
Post by a***@gmail.com
"hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send
an
Post by a***@gmail.com
For more options, visit https://groups.google.com/d/optout.
--
Jean-Marc Notin
--
You received this message because you are subscribed to the Google Groups "hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hakyll+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...