File tree Expand file tree Collapse file tree 3 files changed +20
-6
lines changed
themes/bigspring/layouts/_default Expand file tree Collapse file tree 3 files changed +20
-6
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -4,9 +4,10 @@ baseURL = "https://oscar.grycap.net"
44title = " OSCAR"
55theme = " 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
1112disqusShortname = " " # get your shortname form here : https://disqus.com
1213# google analytics
@@ -21,4 +22,4 @@ disableLanguages = ["De"]
2122GoogleAnalyticsID = " G-902S7WV6RK" # example : UA-123-45
2223 [params .favicon ]
2324 href = " /favicon.ico"
24- type = " image/x-icon"
25+ type = " image/x-icon"
Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments