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

adding description and and image to categories and tags #21

Open
discipolo opened this issue Dec 22, 2014 · 2 comments
Open

adding description and and image to categories and tags #21

discipolo opened this issue Dec 22, 2014 · 2 comments

Comments

@discipolo
Copy link

what would be the best way to add a block to the autogenerated tag and category pages, and where to put the category description text?

@simensen
Copy link
Member

The category description text is a tricky one. There isn't a very good way to do that yet. One thing you could consider is to add it to the global site meta data. For example:

categories:
    products:
        description: "This is the products description block for the product category."
    services:
        description: "Here we can describe the services category.

... then in category.html, you could do something like:

<div class="category-description">{{ site.categories[page.category].description }}</div>

I have not tried this out, but this is where I would go first to try and do something like this.

Does this help?

@discipolo
Copy link
Author

Yes thanks, this is exactly what i wanted! Will report back if it works! Happy holidays :-)

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