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

Use .Description for meta description if available #96

Closed
edruid opened this issue Apr 20, 2021 · 0 comments · Fixed by #98
Closed

Use .Description for meta description if available #96

edruid opened this issue Apr 20, 2021 · 0 comments · Fixed by #98
Labels
enhancement New feature or request

Comments

@edruid
Copy link
Contributor

edruid commented Apr 20, 2021

Background
When indexing my site with Bing it told me that the descriptions for my pages were too short on almost every page.

Proposed solution:
Change themes/geekdoc/layouts/partials/head.html to use .Description with partial "title" . as falback (there is probably a more elegant way to this but...):

<meta name="description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ partial "title" . }}{{ end }}">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants