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

HTML meta description for each page #877

Closed
3 tasks done
Mecanik opened this issue Jan 28, 2023 · 5 comments · Fixed by #878
Closed
3 tasks done

HTML meta description for each page #877

Mecanik opened this issue Jan 28, 2023 · 5 comments · Fixed by #878
Labels
bug Something isn't working

Comments

@Mecanik
Copy link

Mecanik commented Jan 28, 2023

Prerequisites

Describe the issue

It seems that you cannot set a description for custom page and instead the description from params is being used across all pages.

This is big issue from an SEO point of view and more.

Steps to reproduce

I tried to set description after title inside custom pages but it's not being recognised.

Expected behavior

description should be used if specified in the meta header.

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Chrome

What version of theme are you using?

v1.0.0-beta2.0.20230127171944-4e82cc64584f

What version of Hugo are you using?

v0.110.0-e32a493b7826d02763c3b79623952e625402b168+extended

What version of Node.js are you using?

No response

What version of Git are you using?

No response

Additional context

No response

@Mecanik Mecanik added the bug Something isn't working label Jan 28, 2023
@Mecanik
Copy link
Author

Mecanik commented Jan 28, 2023

It seems that if the page is rich format (+++) the description is read, but otherwiser (---) not...

@Mecanik
Copy link
Author

Mecanik commented Jan 28, 2023

Is it possible to add support for plain page type as well? Because my HTML does not work in rich format for some reason.

@razonyang
Copy link
Owner

Could you please provide a sample of your custom page to reproduce and test this issue.

@Mecanik
Copy link
Author

Mecanik commented Jan 28, 2023

Could you please provide a sample of your custom page to reproduce and test this issue.

Yes, so the pages are like this:

---
title: Home
type: landing
sidebar: false
---

If you add the description is not read.

@Mecanik
Copy link
Author

Mecanik commented Jan 28, 2023

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants