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

Displaying tags in posts? #214

Closed
dnaeon opened this issue Jun 12, 2015 · 7 comments
Closed

Displaying tags in posts? #214

dnaeon opened this issue Jun 12, 2015 · 7 comments

Comments

@dnaeon
Copy link

dnaeon commented Jun 12, 2015

Pretty new to Jekyll and Github pages, but after looking around for how to add tags in posts it appears that I should be using tags in the post front matter, similar to this:

layout: post
title: My Title Goes Here
tags: tag1 tag2 tag3

However doing that in Jekyll Now doesn't seem to display the tags.

How can I display the tags a post has or create a block of tags used in the blog site, which would allow easier user navigation?

Thanks,
Marin

@Theby
Copy link

Theby commented Jun 12, 2015

You may take a look at my pull request or at my fork of this repository where I implemented a full tag system where all you have to do is exactly what you just did, then the tags will show and will auto-generate pages for every tag.

@dnaeon
Copy link
Author

dnaeon commented Jun 12, 2015

@Theby Would your PR work with Github Pages, because AFAIK Github Pages does not run any Ruby code from plugins?

@Theby
Copy link

Theby commented Jun 12, 2015

It does work, in fact I'm actually using it in my github page www.spoonmangames.cl.
As far as I have read in http://jekyllrb.com/docs/plugins/ you need to generate the pages and links before publishing and the tag plugin that I used does just that. You can see that it works by looking at my blog (sorry it's in spanish but you can click the blog tab, there are a few post)

@Theby
Copy link

Theby commented Jun 13, 2015

I checked and you were rigth, I didn't test it live, but what you can do is use the plugin and then copy the _site/tag/ folder outside of _site, everything should work then

@dnaeon
Copy link
Author

dnaeon commented Jun 17, 2015

@Theby generating the tags upfront and moving _site/tag in the root folder works fine, thanks for that!

However I've noticed when tag index pages are generated the markdown text is not rendered in the resulting pages. Have an idea about this issue?

Here's an example of what I'm referring to:

As you can see the Markdown text is not rendered when displaying "tag index" pages.

@Theby
Copy link

Theby commented Jun 17, 2015

I'm gonna check on that, It's happening to me too.

@barryclark
Copy link
Owner

A couple of other folks have implemented tags in the past. Check 'em out:

Cheers,
Barry

drizzt pushed a commit to drizzt/terremotocentro that referenced this issue Sep 7, 2016
jonasfrederic pushed a commit to jonasfrederic/jonasfrederic.github.io that referenced this issue Jun 8, 2021
leopck pushed a commit to leopck/leopck.github.io that referenced this issue Jan 23, 2022
…yarn/stylelint-config-primer-8.0.0

Bump stylelint-config-primer from 7.0.1 to 8.0.0
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

3 participants