mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
🤖 Feat(SEO): optimize SEO meta (#30)
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
- :bug: Fix: add scroll-margin to headerlink
|
||||
- :bug: Fix: toc-auto display error ([#21](https://github.com/Lruihao/FixIt/issues/21))
|
||||
- :fire: Feat: remove lib smooth-scroll ([#1](https://github.com/Lruihao/FixIt/issues/1))
|
||||
- :robot: Feat(SEO): optimize SEO meta ([#30](https://github.com/Lruihao/FixIt/issues/30))
|
||||
- :lipstick: Style: change scroll-behavior to smooth, page image margin, header style, footer style etc.
|
||||
- :arrow_up: Chore: update all third-party libraries
|
||||
- :wrench: Chore: minify card-link background image
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
{{- $params := .Scratch.Get "params" -}}
|
||||
|
||||
<meta name="Description" content="{{ $params.description | default .Site.Params.description }}">
|
||||
<meta name="author" content="{{ .Site.Author.name }}: {{ .Site.Author.link }}">
|
||||
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" />
|
||||
<meta name="keywords" content="{{ range $index, $keyword := .Site.Params.keywords }}{{ if ne $index 0 }},{{ end }}{{ $keyword }}{{ end }}" />
|
||||
|
||||
{{- template "_internal/schema.html" . -}}
|
||||
{{- template "_internal/opengraph.html" . -}}
|
||||
{{- template "_internal/twitter_cards.html" . -}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user