Comments (3)
@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 _index.md
page would act as the TOC for its directory. But the description is a good add.
from risotto.
The table of contents and the description, author information etc. in the sidebar is part of risotto's single page template. But _index.md
uses the list template, not a single page template.
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 /projects/some-project/_index.md
instead of /projects/some-project.md
? They should result in the same rendered URL.
However I can see that it would be nice to set a description for these pages.
from risotto.
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 }}">
from risotto.
Related Issues (20)
- Make it easier to override the content blocks of default layouts
- Adding a favicon? HOT 2
- Use emojis for site logo
- Remove dependencies on icon libraries
- Add page descriptions to meta description tag
- how to add new pages/content HOT 1
- FontAwesome and Academicons versions can be updated
- Highlight active heading in table of contents HOT 1
- Abstract out individual social links
- Language switcher is sometimes displayed even when there is only one language
- Better multilingual support
- Search bar HOT 2
- Broken links for "latest download release" HOT 1
- Pages in nested content directories missing from taxonomy list HOT 8
- Tags and other taxonomies are not visible on content pages HOT 1
- change font HOT 1
- socialLinks param build errors HOT 2
- Theme switching (light/dark) HOT 1
- "$ echo $LANG" in footer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from risotto.