Merge branch 'feat/update-hugo' into develop

This commit is contained in:
Christian Wolf 2024-03-05 19:18:02 +01:00
commit 94849af63f
4 changed files with 12 additions and 8 deletions

8
package-lock.json generated
View File

@ -9,7 +9,7 @@
"version": "1.0.0", "version": "1.0.0",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"hugo-extended": "^0.121.2", "hugo-extended": "^0.123.7",
"stylelint": "^16.1.0", "stylelint": "^16.1.0",
"stylelint-config-standard": "^36.0.0", "stylelint-config-standard": "^36.0.0",
"stylelint-config-standard-scss": "^13.0.0" "stylelint-config-standard-scss": "^13.0.0"
@ -1245,9 +1245,9 @@
} }
}, },
"node_modules/hugo-extended": { "node_modules/hugo-extended": {
"version": "0.121.2", "version": "0.123.7",
"resolved": "https://registry.npmjs.org/hugo-extended/-/hugo-extended-0.121.2.tgz", "resolved": "https://registry.npmjs.org/hugo-extended/-/hugo-extended-0.123.7.tgz",
"integrity": "sha512-kb5XX5b9COxI88PDoH8+n4nmt/pe8ylyFLIBSdCaAGfH9/fEvk88Bv2MabyDCwHOGIAa8M6WpwulJG007vXwWg==", "integrity": "sha512-sxI5Us+O2t2CI9oDK/Li/VYl2gd0TdkPxKW+CQYefSN/BgSuyMSvsDNBcVfIxGs35+I3qShagt37vE0JIIcqig==",
"dev": true, "dev": true,
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {

View File

@ -17,7 +17,7 @@
"author": "Christian Wolf", "author": "Christian Wolf",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"hugo-extended": "^0.121.2", "hugo-extended": "^0.123.7",
"stylelint": "^16.1.0", "stylelint": "^16.1.0",
"stylelint-config-standard": "^36.0.0", "stylelint-config-standard": "^36.0.0",
"stylelint-config-standard-scss": "^13.0.0" "stylelint-config-standard-scss": "^13.0.0"

View File

@ -1,7 +1,7 @@
<!-- <!--
{{ .Get "url"}}{{ page.Resources}} {{ .Get "url"}}{{ page.Resources}}
--> -->
{{ $res := page.Resources.GetMatch (.Get "url") }} {{ $res := .Page.Resources.GetMatch (.Get "url") }}
<a target="_blank" class="download press-download" href="{{ $res.RelPermalink }}"> <a target="_blank" class="download press-download" href="{{ $res.RelPermalink }}">
{{ .Inner }} {{ .Inner }}
</a> </a>

View File

@ -1,7 +1,11 @@
<!-- <!--
{{ .Get "src"}}{{ page.Resources}} <p>{{ page.Resources }}</p>
<p>Page: {{ page }}</p>
{{ .Get "src"}}
Scratch: {{ page.Scratch.Get "article" }}
<p>[{{/* $article.Resources */}}]</p>
--> -->
<div class="press-img"> <div class="press-img">
{{- $res := page.Resources.GetMatch (.Get "src") -}} {{- $res := .Page.Resources.GetMatch (.Get "src") -}}
<img{{ with .Get "alt" }} alt="{{ . }}"{{ end }} src="{{ $res.RelPermalink }}"> <img{{ with .Get "alt" }} alt="{{ . }}"{{ end }} src="{{ $res.RelPermalink }}">
</div> </div>