joeroe / risotto

A minimalist, responsive hugo theme inspired by terminal ricing aesthetics.
https://risotto.joeroe.io
MIT License
393 stars 109 forks source link

Add page descriptions to meta description tag #60

Open joeroe opened 1 year ago

joeroe commented 1 year ago

Although a bit off-topic, I think you should also add page description to single page template instead of a site level description?

https://github.com/joeroe/risotto/blob/4343550d785d8cce942ac5109aa9fdd9d9a70823/layouts/partials/head.html#L2

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 }}">

Originally posted by @Vinfall in https://github.com/joeroe/risotto/issues/55#issuecomment-1702182895