Skip to content

Commit

Permalink
feat: add the alternate meta
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jul 28, 2022
1 parent d655dba commit f42a036
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions layouts/partials/head/meta.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- partial "head/meta/robots" . -}}
{{- partial "head/meta/social" . -}}
{{- partial "head/meta/redirect" . -}}
{{- partial "head/meta/translations" . }}
3 changes: 3 additions & 0 deletions layouts/partials/head/meta/translations.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{- range .Translations }}
<link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}" />
{{- end -}}

0 comments on commit f42a036

Please sign in to comment.