remove sub module theme and add our own theme

This commit is contained in:
2025-01-17 10:25:57 +01:00
parent 53dfed0093
commit 75b4e46f92
162 changed files with 9368 additions and 4 deletions

View File

@@ -0,0 +1,4 @@
<!-- A partial to be overwritten by the user.
Simply place a custom_body.html into
your local /layouts/partials-directory.
Its content will appear before the closing </body>-tag -->

View File

@@ -0,0 +1,4 @@
<!-- A partial to be overwritten by the user.
Simply place a custom_head.html into
your local /layouts/partials-directory.
Its content will appear before the closing </head>-tag -->

View File

@@ -0,0 +1,14 @@
<!-- A partial to be overwritten by the user.
Simply place a custom_head_video.html into
your local /layouts/partials-directory.
Its content will appear after the site-head/vertical section.
This can be used to inject a video as an alternative background.
Full example below: -->
<!--
<video class="background-video" id="background-video" playsinline="" autoplay="true" muted="" loop="" poster="some_poster_jpg">
<source src="some_webm_video" type="video/webm">
<source src="some_mp4_video" type="video/mp4">
<source src="some_mov_video" type="video/mov">
</video>
-->

View File

@@ -0,0 +1,40 @@
{{ $headless := .Site.GetPage "/homepage" }}
{{ $sections := $headless.Resources.ByType "page" }}
{{ $sections := cond .Site.BuildDrafts $sections (where $sections "Draft" "==" false) }}
<footer class="site-footer">
<div class="inner">
{{ if ne .Site.Params.footer.showFooterLinks false }}
<section class="links">
<ol>
{{ range where $sections ".Params.footer_menu" "eq" true }}
<li>
<a href="{{ relLangURL .Params.detailed_page_path }}">{{ .Params.footer_menu_title }}</a>
</li>
{{ end }}
</ol>
</section>
<hr />
{{ end }}
{{ if ne .Site.Params.footer.showContactIcons false }}
<section class="icons">
{{ range .Site.Params.contacts }}
<a href="{{ .url | safeURL }}" aria-label='{{ i18n "{{ .label }}" }}'><i class="{{ .icon }}"></i></a>
{{ end }}
</section>
{{ end }}
{{ with .Site.Params.copyright }}
<section class="copyright">{{ . | safeHTML }}</section>
{{ end }}
{{ if ne .Params.enableGitInfo false }}
{{- if $.GitInfo -}}
<section>
version: {{ .Lastmod.Format "2006-01-02" }} | #{{ .GitInfo.AbbreviatedHash }}
</section>
{{- end -}}
{{ end }}
</div>
</footer>

View File

@@ -0,0 +1,47 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
{{ if and site.Params.combine_page_and_site_title .Title .Site.Title }}
<title>{{ .Title | plainify }} | {{ .Site.Title | plainify }}</title>
{{ else }}
{{ with or .Title .Site.Title | plainify }}
<title>{{ . }}</title>
{{ end }}
{{ end }}
{{ with resources.Get .Site.Params.favicon }}
<link rel="shortcut icon" href="{{ .RelPermalink }}" type="{{ .MediaType.Type }}" />{{ end }}
{{ with or .Description .Site.Params.description | plainify }}
<meta name="description" content="{{ . }}"
/>{{ end }}
{{ with or (delimit .Keywords ", ") .Site.Params.meta.keywords }}
<meta name="keywords" content="{{ . }}"
/>{{ end }}
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="HandheldFriendly" content="True" />
<meta name="MobileOptimized" content="320" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
{{ $stylesheetNormalize := resources.Get "css/normalize.css" }}
{{ $stylesheetFA := resources.Get "css/fontawesome/fontawesome.min.css" }}
{{ $stylesheetFABrands := resources.Get "css/fontawesome/brands.min.css" }}
{{ $stylesheetFASolid := resources.Get "css/fontawesome/solid.min.css" }}
{{ $stylesheetFonts := resources.Get "css/fonts.css" }}
{{ $stylesheetGeneric := resources.Get "css/generic.css" }}
{{ $stylesheetScreen := ( resources.Get "css/_index.scss" | css.Sass ) }}
{{ $stylesheet := slice $stylesheetNormalize $stylesheetFA $stylesheetFABrands $stylesheetFASolid $stylesheetFonts $stylesheetGeneric $stylesheetScreen | resources.Concat "css/style.css" | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $stylesheet.RelPermalink }}" type="text/css" integrity="{{ $stylesheet.Data.Integrity }}" />
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}
{{ template "_internal/schema.html" . }}
<!-- A partial to be overwritten by the user.
Simply place a custom_head.html into
your local /layouts/partials-directory -->
{{- partial "custom_head.html" . -}}

View File