Skip to content

Commit 9f8d3bd

Browse files
committed
Update hugo
1 parent f615921 commit 9f8d3bd

File tree

7 files changed

+50
-18
lines changed

7 files changed

+50
-18
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ node_modules/
44
resources/_gen/
55
_site/
66
.vscode/
7-
obj/
7+
obj/
8+
.hugo_build.lock

azure-pipelines.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
vmImage: 'ubuntu-latest'
99

1010
variables:
11-
hugo_version: '0.73.0'
11+
hugo_version: '0.136.5'
1212

1313
steps:
1414
- checkout: self
@@ -23,8 +23,8 @@ jobs:
2323
displayName: 'Git Settings'
2424
2525
- script: |
26-
wget https://github.com/gohugoio/hugo/releases/download/v$(hugo_version)/hugo_extended_$(hugo_version)_Linux-64bit.deb \
27-
-O '$(Pipeline.Workspace)/hugo_$(hugo_version)_Linux-64bit.deb'
26+
wget https://github.com/gohugoio/hugo/releases/download/v$(hugo_version)/hugo_extended_$(hugo_version)_linux-amd64.deb \
27+
-O '$(Pipeline.Workspace)/hugo_$(hugo_version)_linux-amd64.deb'
2828
sudo dpkg -i $(Pipeline.Workspace)/hugo*.deb
2929
displayName: 'Install Hugo'
3030

config.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ languageCode = "de-AT"
33
title = "CoderDojo Linz"
44

55
[markup]
6-
defaultMarkdownHandler = "blackfriday"
7-
[markup.blackFriday]
8-
hrefTargetBlank = true
6+
defaultMarkdownHandler = "goldmark"
97
[markup.highlight]
108
codeFences = true
119
guessSyntax = false
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank"{{ end }}>{{ .Text }}</a>

layouts/_default/baseof.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@
4848
<link href='//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,500,600,700,800' rel='stylesheet'
4949
type='text/css'>
5050
<link href="https://fonts.googleapis.com/css2?family=Indie+Flower&display=swap" rel="stylesheet"> {{ "<!-- Stylesheets -->" | safeHTML }}
51-
{{ $options := (dict "targetPath" "vendor.css" "outputStyle" "compressed" "enableSourceMap" true ) }} {{ $sass := resources.Get "sass/vendor.scss" }}
52-
{{ $style := resources.Get $sass | resources.ToCSS $options | resources.Minify | resources.Fingerprint }}
51+
{{ $options := (dict "targetPath" "vendor.css" "outputStyle" "compressed" "enableSourceMap" true) }} {{ $sass := resources.Get "sass/vendor.scss" }}
52+
{{ $style := resources.Get $sass | css.Sass $options | resources.Minify | resources.Fingerprint }}
5353
<link rel="stylesheet" href="{{ $style.Permalink }}">
5454
<link rel="stylesheet" href="{{ `css/animate.css` | absURL }}">
5555
<!-- main.css --> {{ $options := (dict "targetPath" "style.css" "outputStyle" "compressed" "enableSourceMap" true ) }}
56-
{{ $sass := resources.Get "sass/main.scss" }} {{ $style := resources.Get $sass | resources.ToCSS $options | resources.Minify | resources.Fingerprint }}
56+
{{ $sass := resources.Get "sass/main.scss" }} {{ $style := resources.Get $sass | css.Sass $options | resources.Minify | resources.Fingerprint }}
5757
<link rel="stylesheet" href="{{ $style.Permalink }}">
5858
<script src="https://kit.fontawesome.com/5bb5b2cc9c.js" crossorigin="anonymous"></script>
5959
</head>

layouts/partials/navigation.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{ "<!-- NAVIGATION -->" | safeHTML }}
22

3-
<nav class="navbar fixed-top navbar-expand-lg navbar-light bg-light {{ cond (eq .Page.File.Path "_index.md") "hero-navbar" "" }}">
3+
<nav class="navbar fixed-top navbar-expand-lg navbar-light bg-light {{ with .Page.File }} {{ cond (eq .Path "_index.md") "hero-navbar" "" }} {{ end}}">
44
<div class="container-fluid">
55
<a class="navbar-brand" href="/"><img src="/img/logo-linz.png" height="30"></a>
66
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
@@ -9,22 +9,22 @@
99

1010
<div class="collapse navbar-collapse" id="navbarSupportedContent">
1111
<ul class="navbar-nav ml-auto">
12-
<li class="nav-item {{ cond (eq .Page.File.Path "_index.md") "active" "" }}">
12+
<li class="nav-item {{ with .Page.File }} {{ cond (eq .Path "_index.md") "active" "" }} {{ end }}">
1313
<a class="nav-link" href="/">Home</a>
1414
</li>
15-
<li class="nav-item {{ cond (eq .File.Dir "termine\\") "active" "" }}">
15+
<li class="nav-item {{ with .File }} {{ cond (eq .Dir "termine\\") "active" "" }} {{ end }}">
1616
<a class="nav-link" href="/termine">Termine</a>
1717
</li>
18-
<li class="nav-item {{ cond (eq .File.Dir "info\\") "active" "" }}">
18+
<li class="nav-item {{ with .Page.File }} {{ cond (eq .Dir "info\\") "active" "" }} {{ end }}">
1919
<a class="nav-link" href="/info">Infos</a>
2020
</li>
21-
<li class="nav-item {{ cond (eq .File.Dir "mentoren\\") "active" "" }}">
21+
<li class="nav-item {{ with .Page.File }} {{ cond (eq .Dir "mentoren\\") "active" "" }} {{ end }}">
2222
<a class="nav-link" href="/mentoren">Mentoren</a>
2323
</li>
24-
<li class="nav-item {{ cond (eq .Page.File.Path "sponsoring.md") "active" "" }}">
24+
<li class="nav-item {{ with .Page.File }} {{ cond (eq .Path "sponsoring.md") "active" "" }} {{ end }}">
2525
<a class="nav-link" href="/sponsoring">Sponsoring</a>
2626
</li>
27-
<li class="nav-item {{ cond (hasPrefix .Page.File.Path "uebungsanleitungen") "active" "" }}">
27+
<li class="nav-item {{ with .Page.File }} {{ cond (hasPrefix .Path "uebungsanleitungen") "active" "" }} {{ end }}">
2828
<a class="nav-link" href="/uebungsanleitungen">Übungsanleitungen</a>
2929
</li>
3030
</ul>

package-lock.json

Lines changed: 33 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)