Skip to content

Commit

Permalink
add opengraph tags
Browse files Browse the repository at this point in the history
  • Loading branch information
oskar2517 committed Jan 11, 2025
1 parent 0557b59 commit 9d7ec07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ theme = 'slick'
showRssLink = true
showmetalinks = true

opengraph = true

mainSections = ["nixie", "other", "nomotron", "documents", "numitron", "magic-eye", "vfd"]


Expand Down
1 change: 1 addition & 0 deletions themes/slick/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ if .IsPage }}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}"/>
<meta property="og:image" content="{{ .RelPermalink }}/assets/1.jpg" />
{{- with default .Site.Params.author .Page.Params.author }}
{{- $authorName := "" }}
{{- if reflect.IsMap . }}
Expand Down

0 comments on commit 9d7ec07

Please sign in to comment.