Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata parse issue #740

Open
webhive opened this issue Nov 24, 2019 · 1 comment
Open

Metadata parse issue #740

webhive opened this issue Nov 24, 2019 · 1 comment

Comments

@webhive
Copy link

webhive commented Nov 24, 2019

Migrated my blog to hakyll engine and finally stuck with as issue with tags
I have the following yaml front matter

---
title: Some title
date: 2013-12-30 00:20:11
tags:
- ruby
- php
categories:
---

So to put the tags on page using pretty standard approach

 tags <- buildTags "posts/**/*.md" (fromCapture "tags/*.html")

-- pass it everywhere to context

postTagsContext :: Tags -> Context String
postTagsContext = tagsField "tags"

But in template my $tags$ are displayed as an empty string

Only when I change front matter to comma separated tags

tags: ruby, php

it finally displayed, but as strings and not as links

So seems for me hakyll just parsing metadata wrong way or may be I am doing something wrong
Can anybody help?

@3v0k4
Copy link

3v0k4 commented May 8, 2020

Not sure if you are still looking for an answer but here's an idea. I believe you need to add tagsRules to have the tags available. More on that in @Javran's tutorial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants