-
Hello, I would like to inquire about something. If I want to use the set 'description' tag only for SEO purposes and not display it on the page, is there any configuration that can be used? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
You can customize the rendering of pages in <p class="lead mb-5 mt-3">{{ .Description }}</p> Alternatively, you can define a custom layout type such as |
Beta Was this translation helpful? Give feedback.
-
It was a success, thank you very much. |
Beta Was this translation helpful? Give feedback.
You can customize the rendering of pages in
layouts/_default
. Single pages uselayouts/_default/single.html
as base template. It includes a reference tolayouts/_default/single/header.html
, which renders the description. You can delete this line to remove the description from all single pages:Alternatively, you can define a custom layout type such as
mylayout
. Copy the filelayouts/_default/single/header.html
tolayouts/mylayout/single/header.html
and remove the description. Now settype: mylayout
in the frontmatter of the markdown file you want to customize.