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

Tags pages missing / not created? #30

Closed
markerikson opened this issue Sep 14, 2016 · 9 comments
Closed

Tags pages missing / not created? #30

markerikson opened this issue Sep 14, 2016 · 9 comments

Comments

@markerikson
Copy link

I'm a new Hugo user. Spent one evening setting up my blog, so not much actual experience. It's up and running, but the claimed "support for tags" seems sketchy. When I add an array of tags to a post, I see the tags listed at the top of the post. That's good. However, the tags link to a nonexisting $BASEURL/tags/someTag path. Doesn't seem to be any matching folder or files. Is there something obvious I'm missing?

A quick search of the repo suggests that "tags" are referenced in layouts/_default/single.html and layouts/partials/header.html. No evidence of anything that looks like a "list of all posts for this tag" generator.

Pinging @ethanmad , since it seems like this repo is mostly dead and I see you active on some of the issue threads.

@ethanmad
Copy link
Contributor

Hey, I don't at all use tags, but I can look at it within the next couple
of weeks and see if I can do something about it.

Check other peoole's blogs using Vienna; tags work there AFAIK.

Let me know what you find.

On Tue, Sep 13, 2016, 11:58 PM Mark Erikson notifications@github.com
wrote:

I'm a new Hugo user. Spent one evening setting up my blog, so not much
actual experience. It's up and running, but the claimed "support for tags"
seems sketchy. When I add an array of tags to a post, I see the tags listed
at the top of the post. That's good. However, the tags link to a
nonexisting $BASEURL/tags/someTag path. Doesn't seem to be any matching
folder or files. Is there something obvious I'm missing?

A quick search of the repo suggests that "tags" are referenced in
layouts/_default/single.html and layouts/partials/header.html. No
evidence of anything that looks like a "list of all posts for this tag"
generator.

Pinging @ethanmad https://github.com/ethanmad , since it seems like
this repo is mostly dead and I see you active on some of the issue threads.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#30, or mute the thread
https://github.com/notifications/unsubscribe-auth/AGBu6uycW5ZPJ5Q8sSXEmRyU7w3edFL4ks5qp3DIgaJpZM4J8YIS
.

@markerikson
Copy link
Author

Eep. That was FAST! :)

Yeah, I'll have to take a bit of time to do some more looking around and check out some more examples. Like I said, this was basically a one-night job a couple weeks ago. Also entirely possible I screwed something up somewhere.

Thanks!

@markerikson
Copy link
Author

Okay, a real quick couple examples:

@ethanmad
Copy link
Contributor

I bet @jolexa could help.

On Wed, Sep 14, 2016, 12:08 AM Mark Erikson notifications@github.com
wrote:

Okay, a real quick couple examples:


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#30 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AGBu6tSBoCn62T709uJPhgquEaFZ2b9Eks5qp3MmgaJpZM4J8YIS
.

@markerikson
Copy link
Author

Maybe so. Also curious about the difference between "tags" and "categories" that I see: https://blog.jolexa.net/tags/ vs https://blog.jolexa.net/categories/ . Something about that blog having formerly been on Wordpress, maybe?

@icecreammatt
Copy link
Contributor

icecreammatt commented Sep 14, 2016

@markerikson I use tags on my site. Look for mattcarrier.com in my account. Typing from mobile app so I don't have full link handy.

@jolexa
Copy link
Contributor

jolexa commented Sep 14, 2016

Hi, I believe your issue is handled or discussed in PR #25 . My blog uses https://github.com/jolexa/vienna/tree/blog.jolexa.net which has working tag support. One of the branches or closed PR's in my repo has the actual code needed, but it has been awhile since I looked at it. Hope that helps.

@markerikson
Copy link
Author

Sweet, I'll take a look at this tonight. Thanks for the fast responses!

@markerikson
Copy link
Author

Think I got this figured out. The stuff in #25 actually seems to relate to showing a summary of tags in the footer. My issue was that I wasn't seeing a /tags/ folder generated at all.

After doing some fiddling, it looks like what I needed to do was modify my config.yaml to include:

indexes:
  tag : "tags"

That started generating the files I was expecting to see. The little sidebar/footer thing is really a bonus from there.

Thanks for the help!

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

4 participants