Skip to content

Commit

Permalink
Merge pull request #81 from hkupty/www/seo-meta-tags
Browse files Browse the repository at this point in the history
www: Add SEO meta tags to pages
  • Loading branch information
hkupty authored Feb 2, 2024
2 parents 5e45427 + deef292 commit ce563ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions www/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<meta name="keywords" content="{{ if .Params.keywords -}}
{{- range $i, $e := .Params.keywords }}{{ if $i }}, {{ end }}{{ $e }}{{ end }} {{- else }}
{{- range $i, $e := .Params.tags }}{{ if $i }}, {{ end }}{{ $e }}{{ end }} {{- end -}}">
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}
{{- end }}
<meta name="description" content="{{- with .Description }}{{ . }}{{- else }}{{- if or .IsPage .IsSection}}
{{- .Summary | default (printf "%s - %s" .Title site.Title) }}{{- else }}
Expand Down

0 comments on commit ce563ee

Please sign in to comment.