Skip to content

Commit

Permalink
upgrading to hugo 0.139.3
Browse files Browse the repository at this point in the history
removed links to training
removed DisqusShortname which where causing issues in new updated build (and we are not using Disqus)
  • Loading branch information
DinisCruz committed Dec 8, 2024
1 parent 64643fb commit 5b97649
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 29 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
#hugo-version: '0.91.2'
#hugo-version : '0.93.2'
#hugo-version : '0.107.0'
hugo-version: '0.110.0'
#hugo-version: '0.110.0'
hugo-version: '0.139.3'
extended: true

- name: Build
Expand Down
8 changes: 1 addition & 7 deletions layouts/blog/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,7 @@

<div id="post-content">
{{ .Content }}
</div>
<!-- /#post-content -->
{{ if .Site.DisqusShortname }}
<div id="comments">
{{ template "_internal/disqus.html" . }}
</div>
{{ end }}
</div>

</div>
<!-- /#blog-post -->
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/debugprint.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
{{ else if $typeIsSpecial }}
<div class="debugprint">
{{ if $typeIsSiteInfo }}
{{ $siteVarNames := (slice "Title" "Author" "Social" "LastChange" "DisqusShortname" "GoogleAnalytics" "Copyright" "RSSLink" "LanguageCode" "BuildDrafts" "Params") }}
{{ $siteVarSymbols := (slice .Title .Author .Social .LastChange .DisqusShortname .GoogleAnalytics .Copyright .RSSLink .LanguageCode .BuildDrafts .Params ) }}
{{ $siteVarNames := (slice "Title" "Author" "Social" "LastChange" "GoogleAnalytics" "Copyright" "RSSLink" "LanguageCode" "BuildDrafts" "Params") }}
{{ $siteVarSymbols := (slice .Title .Author .Social .LastChange .GoogleAnalytics .Copyright .RSSLink .LanguageCode .BuildDrafts .Params ) }}
<table>
<tr><th class="key">SiteInfo Variable</th><th class="value">Value</th></tr>
{{ range $idx, $elem := $siteVarNames }}
Expand Down
5 changes: 1 addition & 4 deletions layouts/partials/widgets/session-clues.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
{{ end }}
{{ if eq .Params.type "product-session" }}
<li><a href="{{ ref . "/faq/onsite-summit/session-types.md#product-session" }}"><i class="fa fa-dollar"></i> product session </a></li>
{{ end }}
{{ if eq .Params.type "training-session" }}
<li><a href="{{ ref . "/training" }}"><i class="fa fa-user-circle"></i> training session </a></li>
{{ end }}
{{ end }}
{{ if eq .Params.status "featured" }}
<li><a class="bg-success" href=""><i class="fa fa-check-square-o"></i> featured </a></li>
{{ end }}
Expand Down
3 changes: 1 addition & 2 deletions layouts/training-session/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ <h1>{{ .Title }}</h1>


{{ partial "session/register-as-participant.html" . }}
<hr/>
<a href="/training"> Back to list of all Training Sessions</a>


{{ end }}
8 changes: 1 addition & 7 deletions themes/oss-owasp/layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,7 @@

<div id="post-content">
{{ .Content }}
</div>
<!-- /#post-content -->
{{ if .Site.DisqusShortname }}
<div id="comments">
{{ template "_internal/disqus.html" . }}
</div>
{{ end }}
</div>

</div>
<!-- /#blog-post -->
Expand Down
7 changes: 1 addition & 6 deletions themes/oss-owasp/layouts/partials/page.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
<div class="container" role="main">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
{{ .Content }}
{{ if .Site.DisqusShortname }}
<div class="disqus-comments">
{{ template "_internal/disqus.html" . }}
</div>
{{ end }}
{{ .Content }}
</div>
</div>
</div>

0 comments on commit 5b97649

Please sign in to comment.