Skip to content

Commit

Permalink
Merge pull request #3203 from OpenSecuritySummit/updating-hugo-to-0.1…
Browse files Browse the repository at this point in the history
…39.3

upgrading to hugo 0.139.3
  • Loading branch information
DinisCruz authored Dec 8, 2024
2 parents 64643fb + ba726be commit 4e26583
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 30 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
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.75.1'
#hugo-version: '0.75.1'
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 4e26583

Please sign in to comment.