Skip to content

Commit 752aa6e

Browse files
Merge pull request #48 from grycap/fix-hugo-version
Updated hugo version
2 parents 30eb5de + 3a88913 commit 752aa6e

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup hugo
1818
uses: peaceiris/actions-hugo@v2
1919
with:
20-
hugo-version: "0.83.1"
20+
hugo-version: "0.152.2"
2121
extended: true
2222

2323
- name: Build

config/_default/config.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ baseURL = "https://oscar.grycap.net"
44
title = "OSCAR"
55
theme = "bigspring"
66
# post pagination
7-
paginate = "21"
7+
[pagination]
8+
pagerSize = 21
89
# post excerpt
9-
summaryLength = "15"
10+
summaryLength = 15
1011
# disqus short name
1112
disqusShortname = "" # get your shortname form here : https://disqus.com
1213
# google analytics
@@ -21,4 +22,4 @@ disableLanguages = ["De"]
2122
GoogleAnalyticsID = "G-902S7WV6RK" # example : UA-123-45
2223
[params.favicon]
2324
href = "/favicon.ico"
24-
type = "image/x-icon"
25+
type = "image/x-icon"

themes/bigspring/layouts/_default/single.html

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,20 @@ <h2 class="mb-4">{{ .Title }}</h2>
1212
<p>{{.Date.Format "Monday, January 2, 2006"}} </p>
1313
<div class="content">{{.Content}}</div>
1414
<!-- comments -->
15-
{{ if site.DisqusShortname }}
15+
{{ $disqusShortname := "" }}
16+
{{ with site.Config.Services }}
17+
{{ with .Disqus }}
18+
{{ with .Shortname }}
19+
{{ $disqusShortname = . }}
20+
{{ end }}
21+
{{ end }}
22+
{{ end }}
23+
{{ if not $disqusShortname }}
24+
{{ with site.Params.disqusShortname }}
25+
{{ $disqusShortname = . }}
26+
{{ end }}
27+
{{ end }}
28+
{{ if $disqusShortname }}
1629
<div class="mt-5">
1730
{{ template "_internal/disqus.html" . }}
1831
</div>
@@ -38,4 +51,4 @@ <h2 class="mb-4">{{ .Title }}</h2>
3851
{{ end }}
3952

4053

41-
{{ end }}
54+
{{ end }}

0 commit comments

Comments
 (0)