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

Add categories / tags to blog post #18

Open
bethschechter opened this issue Sep 13, 2014 · 12 comments
Open

Add categories / tags to blog post #18

bethschechter opened this issue Sep 13, 2014 · 12 comments

Comments

@bethschechter
Copy link
Contributor

As a way to sort chapter blog posts by chapter. @reidab already updated the site so that categories are enabled. cc @geografa

@almccon
Copy link
Member

almccon commented Sep 13, 2014

So then we would add some code to a chapter's page (such as maptime.github.io/nullisland) that would only show blog posts for that chapter's category.

@almccon
Copy link
Member

almccon commented Sep 13, 2014

We need to make sure that there is a fixed and URL-friendly slug for each local chapter. This slug could potentially be saved in the master geojson file.

@rhewitt22
Copy link
Member

Categories have been added; no tags yet.

@geografa what is the differentiation between the posts and events layouts?

@geografa
Copy link
Contributor

@rhewitt22 Not much, it's a holdover from the starter repo. Events are like blog posts except they have RSVP links.

@rhewitt22
Copy link
Member

How do the rsvp links work? Are they just URLs? Could just use an event front matter variable that is conditionally displayed.

I generally try to keep layouts to a minimum because they're like pringles -- once you pop you just can't stop.

@geografa
Copy link
Contributor

Ha. True. If an event page has a rsvp in the yml then it gets displayed. Each MD file in _posts should contain a category that determines what kind of post it is. I think we'll get more utility out of this as we grow (i.e. blog, event, tutroial, etc.).

@bethschechter back to original intent of this issue: was this for having chapter's blog posts on the front page? We could still stream blog post through a feed of some sort. Perhaps we need another ticket to hammer out what exactly we want on the yml Front matter.

@rhewitt22
Copy link
Member

@geografa That's what I was thinking -- they're all posts, just of different categories.

I can't say that I've seen anything for consuming RSS into posts for jekyll. If it's possible it would probably be done through a _plugin which are disabled on github pages as Jekyll is run with the --safe flag. The other option would be to use the GitHub API, but to stay on top of all the chapters popping up that wouldn't be a fun task to maintain. Chapters that build their page within this repo would give you the ability to grab their posts out of the box.

@mattsayler
Copy link

Could we add like a 'posts-path' attribute to the chapters json, since that
has to be maintained anyway?

On Mon, Oct 20, 2014 at 10:02 AM, Roy Hewitt notifications@github.com
wrote:

@geografa https://github.com/geografa That's what I was thinking --
they're all posts, just of different categories.

I can't say that I've seen anything for consuming RSS into posts for
jekyll. If it's possible it would probably be done through a _plugin
which are disabled on github pages as Jekyll is run with the --safe flag.
The other option would be to use the GitHub API, but to stay on top of all
the chapters popping up that wouldn't be a fun task to maintain. Chapters
that build their page within this repo would give you the ability to grab
their posts out of the box.


Reply to this email directly or view it on GitHub
#18 (comment)
.

@geografa
Copy link
Contributor

This ticket may be getting a little spread out. We know have categories for all posts so I think we can close this. The issue of slugs/paths for each chapter is a different one so maybe somebody can open a ticket on that. @bethschechter good to close?

@lyzidiamond
Copy link
Contributor

@geografa We should make sure the other sub-issues are added as issues before we close. :)

@geobrando
Copy link
Member

Possible workaround for implementing tags in a gh-pages hosted jekyll site.

http://www.minddust.com/post/tags-and-categories-on-github-pages/

@geobrando
Copy link
Member

Used the example in the above post to prototype this

We could also just adapt and use the existing tags we've created for tutorials if we don't want to keep two separate lists of tags

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

7 participants