Skip to content

Commit dff9f7b

Browse files
chore: removed deprecated warnings
1 parent edbfd3c commit dff9f7b

File tree

7 files changed

+9
-8
lines changed

7 files changed

+9
-8
lines changed

config/_default/languages.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
################ English language ##################
22
[en]
3-
languageName = "En"
4-
languageCode = "en-us"
3+
label = "En"
4+
locale = "en-us"
55
contentDir = "content/english"
66
weight = 1

layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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) -->

layouts/partials/jsonld-home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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>

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
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": {

themes/hugoplate/layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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) -->

themes/hugoplate/layouts/partials/essentials/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
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"

themes/hugoplate/layouts/partials/essentials/style.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
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>

0 commit comments

Comments
 (0)