-
Notifications
You must be signed in to change notification settings - Fork 111
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
_index.md / index.md pages won't show TOC or Description #55
Comments
The table of contents and the description, author information etc. in the sidebar is part of risotto's single page template. But I'm not sure that, in general, it makes sense to add the TOC/author metadata to list pages. Usually they are in themselves a kind of table of contents, and don't have one specific author. @jdcarls2 What's your intention in using However I can see that it would be nice to set a description for these pages. |
Although a bit off-topic, I think you should also add page description to single page template instead of a site level description? risotto/layouts/partials/head.html Line 2 in 4343550
Maybe something like this, I'm not sure whether the page description would just override the site one. <!-- Site level -->
{{ with .Site.Params.about }}<meta name="description" content="{{ .description }}">{{ end }}
<!-- Page level -->
<meta name="description" content="{{ .Params.description }}"> |
@joeroe Honestly, it was my first time using any kind of static site generator, let alone a Hugo theme. The TOC / Author stuff was just me not totally understanding the intended organization of the site, and it makes total sense to me that an |
With a page like
/projects/some-project.md
, settingtoc: true
adds a great Table of Contents in the sidebar. I love this.But when I have a page like
/projects/some-project/_index.md
, the TOC does not render, even when set totrue
.Edit to add: Page descriptions do not render in
index
pages either.Why would this be?
The text was updated successfully, but these errors were encountered: