Skip to content

Commit b43d59d

Browse files
committed
Update hugo version
1 parent b736815 commit b43d59d

File tree

13 files changed

+27
-85
lines changed

13 files changed

+27
-85
lines changed

.devcontainer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ USER $USERNAME
3030
# && sudo apt install snapd
3131
# RUN sudo snap install hugo --channel=extended
3232

33-
RUN sudo wget https://github.com/gohugoio/hugo/releases/download/v0.68.3/hugo_extended_0.68.3_Linux-64bit.deb
34-
RUN sudo dpkg -i hugo_extended_0.68.3_Linux-64bit.deb
33+
RUN sudo wget https://github.com/gohugoio/hugo/releases/download/v0.147.2/hugo_extended_0.147.2_Linux-64bit.deb
34+
RUN sudo dpkg -i hugo_extended_0.147.2_Linux-64bit.deb
3535

3636
# ** [Optional] Uncomment this section to install additional packages. **
3737
#

config/_default/config.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ googleAnalytics = "XXX"
5151

5252

5353

54-
[Author]
55-
name = "Stuart Leeks"
56-
website = "https://stuartleeks.com"
57-
github = "stuartleeks"
58-
twitter = "stuartleeks"
59-
linkedin = "stuartleeks"
60-
stackoverflow = "users/202415/stuart-leeks"
54+
[Params.Author]
55+
name = "Stuart Leeks"
56+
website = "https://stuartleeks.com"
57+
github = "stuartleeks"
58+
twitter = "stuartleeks"
59+
linkedin = "stuartleeks"
60+
stackoverflow = "users/202415/stuart-leeks"
6161

6262

6363
[[menu.main]]

themes/stuartleeks1/layouts/_default/single.html

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -80,34 +80,6 @@ <h4 class="see-also">{{ i18n "seeAlso" }}</h4>
8080
</ul>
8181
{{ end }}
8282

83-
84-
{{ if (.Params.comments) | or (and (or (not (isset .Params "comments")) (eq .Params.comments nil)) (and .Site.Params.comments (ne .Type "page"))) }}
85-
{{ if .Site.DisqusShortname }}
86-
{{ if .Site.Params.delayDisqus }}
87-
<div class="disqus-comments">
88-
<button id="show-comments" class="btn btn-default" type="button">{{ i18n "show" }} <span class="disqus-comment-count" data-disqus-url="{{ trim .Permalink "/" }}">{{ i18n "comments" }}</span></button>
89-
<div id="disqus_thread"></div>
90-
91-
<script type="text/javascript">
92-
var disqus_config = function () {
93-
this.page.url = '{{ trim .Permalink "/" }}';
94-
};
95-
96-
</script>
97-
</div>
98-
{{ else }}
99-
<div class="disqus-comments">
100-
{{ template "_internal/disqus.html" . }}
101-
</div>
102-
{{ end }}
103-
{{ end }}
104-
{{ if .Site.Params.staticman }}
105-
<div class="staticman-comments">
106-
{{ partial "staticman-comments.html" . }}
107-
</div>
108-
{{ end }}
109-
{{ end }}
110-
11183
</div>
11284
</div>
11385
</div>

themes/stuartleeks1/layouts/partials/disqus.html

Lines changed: 0 additions & 7 deletions
This file was deleted.

themes/stuartleeks1/layouts/partials/footer.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
88
<ul class="list-inline text-center footer-links">
99
{{ range .Site.Data.beautifulhugo.social.social_icons }}
10-
{{- if isset $.Site.Author .id }}
10+
{{- if isset $.Site.Params.Author .id }}
1111
<li>
12-
<a href="{{ printf .url (index $.Site.Author .id) }}" title="{{ .title }}">
12+
<a href="{{ printf .url (index $.Site.Params.Author .id) }}" title="{{ .title }}">
1313
<span class="fa-stack fa-lg">
1414
<i class="fas fa-circle fa-stack-2x"></i>
1515
<i class="{{ .icon }} fa-stack-1x fa-inverse"></i>
@@ -31,18 +31,18 @@
3131
</ul>
3232
<p class="credits copyright text-muted">
3333
&copy;
34-
{{ if .Site.Author.name }}
35-
{{ if .Site.Author.website }}
36-
<a href="{{ .Site.Author.website }}">{{ .Site.Author.name }}</a>
34+
{{ if .Site.Params.Author.name }}
35+
{{ if .Site.Params.Author.website }}
36+
<a href="{{ .Site.Params.Author.website }}">{{ .Site.Params.Author.name }}</a>
3737
{{ else }}
38-
{{ .Site.Author.name }}
38+
{{ .Site.Params.Author.name }}
3939
{{ end }}
4040
{{ end }}
4141

4242
{{ if .Site.Params.since }}
43-
{{ .Site.Params.since }} - {{ .Site.LastChange.Format "2006" }}
43+
{{ .Site.Params.since }} - {{ .Site.Lastmod.Format "2006" }}
4444
{{ else }}
45-
{{ .Site.LastChange.Format "2006" }}
45+
{{ .Site.Lastmod.Format "2006" }}
4646
{{ end }}
4747
</p>
4848
<!-- Please don't remove this, keep my open source work credited :) -->

themes/stuartleeks1/layouts/partials/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
{{- with ($.Scratch.Get "Description") }}
4141
<meta name="description" content="{{ . }}">
4242
{{- end }}
43-
{{- with .Site.Author.name }}
43+
{{- with .Site.Params.Author.name }}
4444
<meta name="author" content="{{ . }}"/>
4545
{{- end }}
4646
{{- partial "seo/main.html" . }}

themes/stuartleeks1/layouts/partials/nav.html

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -44,29 +44,6 @@
4444
{{ end }}
4545
{{ end }}
4646

47-
{{ if .Site.IsMultiLingual }}
48-
{{ if ge (len .Site.Languages) 3 }}
49-
<li class="navlinks-container">
50-
<a class="navlinks-parent">{{ i18n "languageSwitcherLabel" }}</a>
51-
<div class="navlinks-children">
52-
{{ range .Site.Languages }}
53-
{{ if not (eq .Lang $.Site.Language.Lang) }}
54-
<a href="/{{ .Lang }}" lang="{{ .Lang }}">{{ default .Lang .LanguageName }}</a>
55-
{{ end }}
56-
{{ end }}
57-
</div>
58-
</li>
59-
{{ else }}
60-
<li>
61-
{{ range .Site.Languages }}
62-
{{ if not (eq .Lang $.Site.Language.Lang) }}
63-
<a href="/{{ .Lang }}" lang="{{ .Lang }}">{{ default .Lang .LanguageName }}</a>
64-
{{ end }}
65-
{{ end }}
66-
</li>
67-
{{ end }}
68-
{{ end }}
69-
7047
{{ if isset .Site.Params "gcse" }}
7148
<li>
7249
<a href="#modalSearch" data-toggle="modal" data-target="#modalSearch" style="outline: none;">

themes/stuartleeks1/layouts/partials/post_meta.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<span class="post-meta">
22
{{ $lastmodstr := default (i18n "dateFormat") .Site.Params.dateformat | .Lastmod.Format }}
33
{{ $datestr := default (i18n "dateFormat") .Site.Params.dateformat | .Date.Format }}
4-
<i class="fas fa-calendar"></i>&nbsp;{{ $datestr | i18n "postedOnDate"}}
4+
<i class="fas fa-calendar"></i>&nbsp;{{ $datestr | i18n "postedOnDate"}} Posted on {{ time.Format "1 January 2006" .Lastmod }}
55
{{ if ne $datestr $lastmodstr }}
66
&nbsp;{{ $lastmodstr | i18n "lastModified" }}
77
{{ end }}
@@ -15,7 +15,7 @@
1515
{{ if .Params.author }}
1616
&nbsp;|&nbsp;<i class="fas fa-user"></i>&nbsp;{{ .Params.author | safeHTML }}
1717
{{ else }}
18-
&nbsp;|&nbsp;<i class="fas fa-user"></i>&nbsp;{{ .Site.Author.name | safeHTML }}
18+
&nbsp;|&nbsp;<i class="fas fa-user"></i>&nbsp;{{ .Site.Params.Author.name | safeHTML }}
1919
{{ end }}
2020
{{ end }}
2121
{{- if .Site.Params.staticman -}}

themes/stuartleeks1/layouts/partials/seo/structured/article.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"@context": "http://schema.org",
44
"@type": "Article",
55
"author": {
6-
"name" : "{{ if .Params.author -}}{{ .Params.author }}{{- else if .Site.Author.name -}}{{ .Site.Author.name }}{{- end }}"
6+
"name" : "{{ if .Params.author -}}{{ .Params.author }}{{- else if .Site.Params.Author.name -}}{{ .Site.Params.Author.name }}{{- end }}"
77
},
88
"headline": "{{ .Title }}",
99
"description" : "{{ if .Description }}{{ .Description | plainify }}{{ else }}{{if .IsPage}}{{ .Summary | plainify }}{{ end }}{{ end }}",

themes/stuartleeks1/layouts/partials/seo/structured/post.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
"@type": "Person",
1616
"name": "{{ .Params.author }}"
1717
},
18-
{{- else if .Site.Author.name -}}
18+
{{- else if .Site.Params.Author.name -}}
1919
"author": {
2020
"@type": "Person",
21-
"name": "{{ .Site.Author.name }}"
21+
"name": "{{ .Site.Params.Author.name }}"
2222
},
2323
{{- end }}
24-
"copyrightYear" : "{{ .Site.Params.since }} - {{ .Site.LastChange.Format "2006" }}",
24+
"copyrightYear" : "{{ .Site.Params.since }} - {{ .Site.Lastmod.Format "2006" }}",
2525
{{ if not .PublishDate.IsZero -}}
2626
"datePublished": "{{ .PublishDate.Format "2006-01-02T15:04:05-07:00" | safeHTML }}",
2727
{{- else if not .Date.IsZero -}}

0 commit comments

Comments
 (0)