File tree Expand file tree Collapse file tree 7 files changed +9
-8
lines changed
Expand file tree Collapse file tree 7 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 11# ############### English language ##################
22[en ]
3- languageName = " En"
4- languageCode = " en-us"
3+ label = " En"
4+ locale = " en-us"
55contentDir = " content/english"
66weight = 1
Original file line number Diff line number Diff line change 44 class ="{{- if not site.Params.theme_switcher -}}
55 {{- site.Params.theme_default -}}
66 {{- end -}} "
7- lang ="{{ site.LanguageCode | default `en-US` }} "
7+ lang ="{{ site.Language.Locale | default `en-US` }} "
88 itemtype ="http://schema.org/WebPage ">
99 < head >
1010 <!-- head (don't cache it) -->
Original file line number Diff line number Diff line change 11{{/* Inject complex JSON-LD stored in data/meta.json only on homepage */}}
22{{ if .IsHome }}
3- {{ with site .Data.meta }}
3+ {{ with hugo .Data.meta }}
44 < script type ="application/ld+json ">
55{ { . | jsonify ( dict "indent" " ") | safeHTML }}
66 </ script >
Original file line number Diff line number Diff line change 22 "name" : " hugoplate" ,
33 "description" : " hugo tailwindcss boilerplate" ,
44 "version" : " 2.0.5" ,
5+ "type" : " module" ,
56 "license" : " MIT" ,
67 "author" : " zeon.studio" ,
78 "scripts" : {
Original file line number Diff line number Diff line change 44 class ="{{- if not site.Params.theme_switcher -}}
55 {{- site.Params.theme_default -}}
66 {{- end -}} "
7- lang ="{{ site.LanguageCode | default `en-US` }} "
7+ lang ="{{ site.Language.Locale | default `en-US` }} "
88 itemtype ="http://schema.org/WebPage ">
99 < head >
1010 <!-- head (don't cache it) -->
Original file line number Diff line number Diff line change 3232 </ div >
3333 < div class ="lg:col-3 mb-8 text-center lg:mb-0 lg:mt-0 lg:text-right ">
3434 < ul class ="social-icons ">
35- {{ range site .Data.social.main }}
35+ {{ range hugo .Data.social.main }}
3636 < li >
3737 < a
3838 target ="_blank "
Original file line number Diff line number Diff line change 1515< link rel ="dns-prefetch " href ="//platform.twitter.com " />
1616
1717<!-- google fonts -->
18- {{ $pf:= site .Data.theme.fonts.font_family.primary }}
19- {{ $sf:= site .Data.theme.fonts.font_family.secondary }}
18+ {{ $pf:= hugo .Data.theme.fonts.font_family.primary }}
19+ {{ $sf:= hugo .Data.theme.fonts.font_family.secondary }}
2020< link rel ="preconnect " href ="https://fonts.googleapis.com " />
2121< link rel ="preconnect " href ="https://fonts.gstatic.com " crossorigin />
2222< script >
You can’t perform that action at this time.
0 commit comments