Merge branch 'master' into pr/81

This commit is contained in:
zjedi 2023-03-09 23:57:43 +01:00
commit ef2430ab16
8 changed files with 36 additions and 13 deletions

View file

@ -26,7 +26,7 @@ jobs:
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
if: github.event_name == 'push' if: github.event_name == 'push'
uses: peaceiris/actions-gh-pages@v3.8.0 uses: peaceiris/actions-gh-pages@v3.9.2
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public publish_dir: ./public

View file

@ -20,6 +20,7 @@
font-family: 'Open Sans'; font-family: 'Open Sans';
font-style: normal; font-style: normal;
font-weight: 300; font-weight: 300;
font-display: swap;
src: url('../fonts/open-sans-v27-latin-300.eot'); /* IE9 Compat Modes */ src: url('../fonts/open-sans-v27-latin-300.eot'); /* IE9 Compat Modes */
src: local(''), src: local(''),
url('../fonts/open-sans-v27-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/open-sans-v27-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
@ -34,6 +35,7 @@
font-family: 'Open Sans'; font-family: 'Open Sans';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
font-display: swap;
src: url('../fonts/open-sans-v27-latin-regular.eot'); /* IE9 Compat Modes */ src: url('../fonts/open-sans-v27-latin-regular.eot'); /* IE9 Compat Modes */
src: local(''), src: local(''),
url('../fonts/open-sans-v27-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/open-sans-v27-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
@ -48,6 +50,7 @@
font-family: 'Open Sans'; font-family: 'Open Sans';
font-style: normal; font-style: normal;
font-weight: 600; font-weight: 600;
font-display: swap;
src: url('../fonts/open-sans-v27-latin-600.eot'); /* IE9 Compat Modes */ src: url('../fonts/open-sans-v27-latin-600.eot'); /* IE9 Compat Modes */
src: local(''), src: local(''),
url('../fonts/open-sans-v27-latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/open-sans-v27-latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
@ -62,6 +65,7 @@
font-family: 'Open Sans'; font-family: 'Open Sans';
font-style: normal; font-style: normal;
font-weight: 700; font-weight: 700;
font-display: swap;
src: url('../fonts/open-sans-v27-latin-700.eot'); /* IE9 Compat Modes */ src: url('../fonts/open-sans-v27-latin-700.eot'); /* IE9 Compat Modes */
src: local(''), src: local(''),
url('../fonts/open-sans-v27-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/open-sans-v27-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
@ -76,6 +80,7 @@
font-family: 'Open Sans'; font-family: 'Open Sans';
font-style: normal; font-style: normal;
font-weight: 800; font-weight: 800;
font-display: swap;
src: url('../fonts/open-sans-v27-latin-800.eot'); /* IE9 Compat Modes */ src: url('../fonts/open-sans-v27-latin-800.eot'); /* IE9 Compat Modes */
src: local(''), src: local(''),
url('../fonts/open-sans-v27-latin-800.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/open-sans-v27-latin-800.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
@ -90,6 +95,7 @@
font-family: 'Open Sans'; font-family: 'Open Sans';
font-style: italic; font-style: italic;
font-weight: 300; font-weight: 300;
font-display: swap;
src: url('../fonts/open-sans-v27-latin-300italic.eot'); /* IE9 Compat Modes */ src: url('../fonts/open-sans-v27-latin-300italic.eot'); /* IE9 Compat Modes */
src: local(''), src: local(''),
url('../fonts/open-sans-v27-latin-300italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/open-sans-v27-latin-300italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
@ -104,6 +110,7 @@
font-family: 'Open Sans'; font-family: 'Open Sans';
font-style: italic; font-style: italic;
font-weight: 400; font-weight: 400;
font-display: swap;
src: url('../fonts/open-sans-v27-latin-italic.eot'); /* IE9 Compat Modes */ src: url('../fonts/open-sans-v27-latin-italic.eot'); /* IE9 Compat Modes */
src: local(''), src: local(''),
url('../fonts/open-sans-v27-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/open-sans-v27-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
@ -118,6 +125,7 @@
font-family: 'Open Sans'; font-family: 'Open Sans';
font-style: italic; font-style: italic;
font-weight: 600; font-weight: 600;
font-display: swap;
src: url('../fonts/open-sans-v27-latin-600italic.eot'); /* IE9 Compat Modes */ src: url('../fonts/open-sans-v27-latin-600italic.eot'); /* IE9 Compat Modes */
src: local(''), src: local(''),
url('../fonts/open-sans-v27-latin-600italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/open-sans-v27-latin-600italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
@ -132,6 +140,7 @@
font-family: 'Open Sans'; font-family: 'Open Sans';
font-style: italic; font-style: italic;
font-weight: 700; font-weight: 700;
font-display: swap;
src: url('../fonts/open-sans-v27-latin-700italic.eot'); /* IE9 Compat Modes */ src: url('../fonts/open-sans-v27-latin-700italic.eot'); /* IE9 Compat Modes */
src: local(''), src: local(''),
url('../fonts/open-sans-v27-latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/open-sans-v27-latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
@ -146,6 +155,7 @@
font-family: 'Open Sans'; font-family: 'Open Sans';
font-style: italic; font-style: italic;
font-weight: 800; font-weight: 800;
font-display: swap;
src: url('../fonts/open-sans-v27-latin-800italic.eot'); /* IE9 Compat Modes */ src: url('../fonts/open-sans-v27-latin-800italic.eot'); /* IE9 Compat Modes */
src: local(''), src: local(''),
url('../fonts/open-sans-v27-latin-800italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/open-sans-v27-latin-800italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
@ -164,6 +174,7 @@
font-family: 'Open Sans Condensed'; font-family: 'Open Sans Condensed';
font-style: normal; font-style: normal;
font-weight: 300; font-weight: 300;
font-display: swap;
src: url('../fonts/open-sans-condensed-v21-latin-300.eot'); /* IE9 Compat Modes */ src: url('../fonts/open-sans-condensed-v21-latin-300.eot'); /* IE9 Compat Modes */
src: local(''), src: local(''),
url('../fonts/open-sans-condensed-v21-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/open-sans-condensed-v21-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
@ -177,6 +188,7 @@
@font-face { @font-face {
font-family: 'Open Sans Condensed'; font-family: 'Open Sans Condensed';
font-style: italic; font-style: italic;
font-display: swap;
font-weight: 300; font-weight: 300;
src: url('../fonts/open-sans-condensed-v21-latin-300italic.eot'); /* IE9 Compat Modes */ src: url('../fonts/open-sans-condensed-v21-latin-300italic.eot'); /* IE9 Compat Modes */
src: local(''), src: local(''),
@ -192,6 +204,7 @@
font-family: 'Open Sans Condensed'; font-family: 'Open Sans Condensed';
font-style: normal; font-style: normal;
font-weight: 700; font-weight: 700;
font-display: swap;
src: url('../fonts/open-sans-condensed-v21-latin-700.eot'); /* IE9 Compat Modes */ src: url('../fonts/open-sans-condensed-v21-latin-700.eot'); /* IE9 Compat Modes */
src: local(''), src: local(''),
url('../fonts/open-sans-condensed-v21-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/open-sans-condensed-v21-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
@ -210,6 +223,7 @@
font-family: 'Oswald'; font-family: 'Oswald';
font-style: normal; font-style: normal;
font-weight: 300; font-weight: 300;
font-display: swap;
src: url('../fonts/oswald-v40-latin-300.eot'); /* IE9 Compat Modes */ src: url('../fonts/oswald-v40-latin-300.eot'); /* IE9 Compat Modes */
src: local(''), src: local(''),
url('../fonts/oswald-v40-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/oswald-v40-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
@ -224,6 +238,7 @@
font-family: 'Oswald'; font-family: 'Oswald';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
font-display: swap;
src: url('../fonts/oswald-v40-latin-regular.eot'); /* IE9 Compat Modes */ src: url('../fonts/oswald-v40-latin-regular.eot'); /* IE9 Compat Modes */
src: local(''), src: local(''),
url('../fonts/oswald-v40-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/oswald-v40-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
@ -238,6 +253,7 @@
font-family: 'Oswald'; font-family: 'Oswald';
font-style: normal; font-style: normal;
font-weight: 700; font-weight: 700;
font-display: swap;
src: url('../fonts/oswald-v40-latin-700.eot'); /* IE9 Compat Modes */ src: url('../fonts/oswald-v40-latin-700.eot'); /* IE9 Compat Modes */
src: local(''), src: local(''),
url('../fonts/oswald-v40-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/oswald-v40-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
@ -256,6 +272,7 @@
font-family: 'Roboto Slab'; font-family: 'Roboto Slab';
font-style: normal; font-style: normal;
font-weight: 100; font-weight: 100;
font-display: swap;
src: url('../fonts/roboto-slab-v16-latin-100.eot'); /* IE9 Compat Modes */ src: url('../fonts/roboto-slab-v16-latin-100.eot'); /* IE9 Compat Modes */
src: local(''), src: local(''),
url('../fonts/roboto-slab-v16-latin-100.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/roboto-slab-v16-latin-100.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
@ -270,6 +287,7 @@
font-family: 'Roboto Slab'; font-family: 'Roboto Slab';
font-style: normal; font-style: normal;
font-weight: 300; font-weight: 300;
font-display: swap;
src: url('../fonts/roboto-slab-v16-latin-300.eot'); /* IE9 Compat Modes */ src: url('../fonts/roboto-slab-v16-latin-300.eot'); /* IE9 Compat Modes */
src: local(''), src: local(''),
url('../fonts/roboto-slab-v16-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/roboto-slab-v16-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
@ -284,6 +302,7 @@
font-family: 'Roboto Slab'; font-family: 'Roboto Slab';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
font-display: swap;
src: url('../fonts/roboto-slab-v16-latin-regular.eot'); /* IE9 Compat Modes */ src: url('../fonts/roboto-slab-v16-latin-regular.eot'); /* IE9 Compat Modes */
src: local(''), src: local(''),
url('../fonts/roboto-slab-v16-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/roboto-slab-v16-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
@ -298,6 +317,7 @@
font-family: 'Roboto Slab'; font-family: 'Roboto Slab';
font-style: normal; font-style: normal;
font-weight: 700; font-weight: 700;
font-display: swap;
src: url('../fonts/roboto-slab-v16-latin-700.eot'); /* IE9 Compat Modes */ src: url('../fonts/roboto-slab-v16-latin-700.eot'); /* IE9 Compat Modes */
src: local(''), src: local(''),
url('../fonts/roboto-slab-v16-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('../fonts/roboto-slab-v16-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */

View file

@ -414,11 +414,9 @@ table tbody > tr:nth-child(odd) > th {
background-color: #f6f6f6; background-color: #f6f6f6;
} }
table.plain { table.plain tbody > tr:nth-child(odd) > td,
tbody > tr:nth-child(odd) > td, table.plain tbody > tr:nth-child(odd) > th {
tbody > tr:nth-child(odd) > th {
background: transparent; background: transparent;
}
} }
li { li {

View file

@ -2,9 +2,7 @@
<main class="content page-template page-{{ .Slug }}"> <main class="content page-template page-{{ .Slug }}">
<article class="post page"> <article class="post page">
<header class="post-header"> <header class="post-header">
<a id="blog-logo" href="{{ "/" | relURL }}"> <a id="blog-logo" href="{{ "/" | relURL }}"><i class="fa fa-chevron-left" aria-hidden="true"></i> {{ .Site.Title }}</a>
{{ .Site.Title }}
</a>
</header> </header>
<h1 class="post-title">{{ .Title }}</h1> <h1 class="post-title">{{ .Title }}</h1>
<section class="post-content"> <section class="post-content">

View file

@ -2,6 +2,8 @@
{{ $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) }} {{ $sections := cond .Site.BuildDrafts $sections (where $sections "Draft" "==" false) }}
{{ $filtered := where $sections "Params.external" "==" nil }}
<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">
@ -10,8 +12,12 @@
{{ with .Params.header_subheadline }}<h2 class="blog-description">{{ . }}</h2>{{ end }} {{ with .Params.header_subheadline }}<h2 class="blog-description">{{ . }}</h2>{{ end }}
{{ range where $sections ".Params.header_menu" "eq" true }} {{ range where $sections ".Params.header_menu" "eq" true }}
{{ if isset .Params "external" }}
<a class='btn site-menu' href='{{ .Params.external }}'>{{ .Title }}</a>
{{ else }}
<a class='btn site-menu' data-title-anchor='{{ anchorize .Title }}'>{{ .Title }}</a> <a class='btn site-menu' data-title-anchor='{{ anchorize .Title }}'>{{ .Title }}</a>
{{ end }} {{ end }}
{{ end }}
<i id='header-arrow' class="fa fa-angle-down"></i> <i id='header-arrow' class="fa fa-angle-down"></i>
</div> </div>
</div> </div>
@ -20,7 +26,7 @@
<div class='fixed-nav'> <div class='fixed-nav'>
</div> </div>
{{ range $index_val, $elem_val := $sections }} {{ range $index_val, $elem_val := $filtered }}
<div class='post-holder'> <div class='post-holder'>
<article id='{{ anchorize .Title }}' class='post {{ if eq $index_val 0 }}first{{ end }} {{ if eq (add $index_val 1) (len $sections) }}last{{ end }}'> <article id='{{ anchorize .Title }}' class='post {{ if eq $index_val 0 }}first{{ end }} {{ if eq (add $index_val 1) (len $sections) }}last{{ end }}'>
<header class="post-header"> <header class="post-header">

View file

@ -0,0 +1 @@
{{ with .Get "href" }}<a href="{{ . }}" target="_blank">{{ end }}{{ with .Get "text" }}{{ . }}</a>{{ end }}

6
package-lock.json generated
View file

@ -5,9 +5,9 @@
"requires": true, "requires": true,
"dependencies": { "dependencies": {
"prettier": { "prettier": {
"version": "2.7.1", "version": "2.8.4",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.4.tgz",
"integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", "integrity": "sha512-vIS4Rlc2FNh0BySk3Wkd6xmwxB0FpOndW5fisM5H8hsZSxU2VWVB5CWIkIjWvrHjIhxk2g3bfMKM87zNTrZddw==",
"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.7.1", "prettier": "^2.8.4",
"prettier-plugin-go-template": "0.0.13" "prettier-plugin-go-template": "0.0.13"
} }
} }