Skip to content

SEO - h1 must be unique on all and across pages #869

Answered by CaiJimmy
JeremieLitzler asked this question in Q&A
Discussion options

You must be logged in to vote

I tried to modified the template files, but I always fall into Issue 1 or 2...

You can use conditionals to accomplish that. Something like:

{{ if .IsHome }}
    <h1>
{{ else }}
    <h2>
{{ end }}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@JeremieLitzler
Comment options

@CaiJimmy
Comment options

@JeremieLitzler
Comment options

Answer selected by JeremieLitzler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants