Merge branch 'janraasch:master' into master

This commit is contained in:
Jesper Kolbeck 2021-12-08 21:00:58 +01:00 committed by GitHub
commit 9e12fdbdbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 5 deletions

View file

@ -14,7 +14,7 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2.3.4 uses: actions/checkout@v2.4.0
- name: Setup Hugo - name: Setup Hugo
uses: peaceiris/actions-hugo@v2.5.0 uses: peaceiris/actions-hugo@v2.5.0

View file

@ -1,6 +1,7 @@
{{ define "main" }} {{ define "main" }}
{{ $headless := .Site.GetPage "/homepage" }} {{ $headless := .Site.GetPage "/homepage" }}
{{ $sections := $headless.Resources.ByType "page" }} {{ $sections := $headless.Resources.ByType "page" }}
{{ $sections := cond .Site.BuildDrafts $sections (where $sections "Draft" "==" false) }}
<header id="site-head" {{ with .Params.header_image }}style="background-image: url({{ . }})"{{ end }}> <header id="site-head" {{ with .Params.header_image }}style="background-image: url({{ . }})"{{ end }}>
<div class="vertical"> <div class="vertical">
<div id="site-head-content" class="inner"> <div id="site-head-content" class="inner">

6
package-lock.json generated
View file

@ -5,9 +5,9 @@
"requires": true, "requires": true,
"dependencies": { "dependencies": {
"prettier": { "prettier": {
"version": "2.4.1", "version": "2.5.1",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.4.1.tgz", "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.5.1.tgz",
"integrity": "sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA==", "integrity": "sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg==",
"dev": true "dev": true
}, },
"prettier-plugin-go-template": { "prettier-plugin-go-template": {

View file

@ -23,7 +23,7 @@
}, },
"homepage": "https://github.com/janraasch/hugo-scroll#readme", "homepage": "https://github.com/janraasch/hugo-scroll#readme",
"devDependencies": { "devDependencies": {
"prettier": "^2.4.1", "prettier": "^2.5.1",
"prettier-plugin-go-template": "0.0.11" "prettier-plugin-go-template": "0.0.11"
} }
} }