Created
April 8, 2017 22:43
-
-
Save nfriedli/dbda51ba67d51b4c1699919370497005 to your computer and use it in GitHub Desktop.
GoHugo multilingual hreflang (new internal shortcode?)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ if .IsTranslated }} | |
{{ range .Translations }} | |
<link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}"/> | |
{{ end}} | |
{{ end }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment