Add files via upload

This commit is contained in:
Gorri
2022-11-02 17:48:47 +01:00
committed by GitHub
parent f5af86908c
commit 6802467dcc
99 changed files with 7730 additions and 0 deletions
@@ -0,0 +1,43 @@
{{ partial "htmlhead" . }}
<body lang='{{ .Site.Language.Lang | default "en-us" }}' class="is-preload">
<!-- Wrapper -->
<div id="wrapper">
{{ partial "header" . }}
{{ partial "nav" . }}
<!-- Main -->
<div id="main">
<!-- Post -->
<section class="post">
<header class="major">
{{ if not .Date.IsZero }}
<span class="date">{{ .Date.Format (.Site.Params.DateFormat | default "January 2, 2006") }}</span>
{{ end }}
<h1>{{ .Title }}</h1>
<p>{{ .Description }}</p>
</header>
{{ if .Params.image }}
<div class="image main"><img src="{{ .Params.image | relURL }}" alt="" /></div>
{{ end }}
{{ .Content }}
{{ partial "postcustom" . }}
{{ if not (eq .Params.disableComments true) }}
{{ template "_internal/disqus.html" . }}
{{ end }}
</section>
</div>
{{ partial "footer/index" . }}
{{ partial "copyright" . }}
</div>
{{ template "_internal/google_analytics.html" . }}
{{ partial "scripts/index" . }}
</body>
</html>
@@ -0,0 +1,67 @@
{{ partial "htmlhead" . }}
<body lang='{{ .Site.Language.Lang | default "en-us" }}' class="is-preload">
{{- $postsFoldername := .Site.Params.Posts.foldername | default "post" }}
{{- $postsPageSize := .Site.Params.Posts.pagesize | default 6 }}
{{- .Scratch.Set "postsFeaturedPostEnabled" true }}
{{- if (or (eq .Site.Params.Posts.featuredpost "false") (eq .Site.Params.Posts.featuredpost false)) }}
{{- .Scratch.Set "postsFeaturedPostEnabled" false }}
{{- end }}
{{- $postsFeaturedPostEnabled := .Scratch.Get "postsFeaturedPostEnabled" }}
{{- $posts := where .Data.Pages "Type" $postsFoldername }}
{{- if .IsHome }}
{{- $posts = where .Site.RegularPages "Type" $postsFoldername }}
{{- end }}
{{- $firstPost := first 1 $posts }}
{{- if and (eq $postsFeaturedPostEnabled true) (gt (len $posts) 1) -}}
{{- .Scratch.Set "postsForPaging" (after 1 $posts) }}
{{- else }}
{{- .Scratch.Set "postsForPaging" $posts }}
{{- end -}}
{{- $postsForPaging := .Scratch.Get "postsForPaging" -}}
{{- $postsPaging := .Paginate $postsForPaging $postsPageSize -}}
<!-- Wrapper -->
<div id="wrapper" class="fade-in" data-pfn="{{ $postsFoldername }}" data-ps="{{ $postsPageSize }}" data-pfp="{{ $postsFeaturedPostEnabled }}">
{{- if eq $postsPaging.PageNumber 1 -}}
{{- partial "intro.html" . -}}
{{- end -}}
{{- partial "header" . -}}
{{- partial "nav" . }}
<!-- Main -->
<div id="main">
{{- if (eq $postsFeaturedPostEnabled true) }}
{{- partial "posts/featured.html" (dict "firstpost" $firstPost "siteData" (index .Site.Data .Site.Language.Lang)) }}
{{- end }}
{{- if (not (and (eq (len $posts) 1) (eq $postsFeaturedPostEnabled true))) }}
{{- partial "posts/list.html" (dict "posts" $postsPaging "siteData" (index .Site.Data .Site.Language.Lang)) }}
{{- end }}
{{- $paginator := .Paginator }}
{{- $outer := . }}
{{- partial "posts/pagination.html" (dict "paginator" $paginator "outer" $outer)}}
</div>
{{- partial "footer/index" . }}
{{- partial "copyright" . }}
<a href="#navPanel" id="navPanelToggle">{{ i18n "NAV_MENU" . }}</a>
</div>
{{- template "_internal/google_analytics.html" . }}
{{- partial "scripts/index" . }}
</body>
</html>
@@ -0,0 +1,4 @@
<!-- Copyright -->
<div id="copyright">
<ul><li>&copy; {{ .Site.Title }}</li><li>{{ i18n "COPYRIGHT_MESSAGE_1" . | markdownify }}</li><li>{{ i18n "COPYRIGHT_MESSAGE_2" . | markdownify }}</li></ul>
</div>
@@ -0,0 +1,64 @@
<!-- Footer -->
{{ $data := index .Site.Data .Site.Language.Lang }}
<footer id="footer">
{{ with $data.contactinfo.contactformaction }}
<section>
<form method="post" action="{{ . }}">
<div class="fields">
<div class="field">
<label for="name">{{ i18n "CONTACT_FORM_FIELD_NAME" . }}</label>
<input type="text" name="name" id="name" />
</div>
<div class="field">
<label for="email">{{ i18n "CONTACT_FORM_FIELD_EMAIL" . }}</label>
<input type="text" name="email" id="email" />
</div>
<div class="field">
<label for="message">{{ i18n "CONTACT_FORM_FIELD_MESSAGE" . }}</label>
<textarea name="message" id="message" rows="3"></textarea>
</div>
</div>
<ul class="actions">
<li><input type="submit" value='{{ i18n "CONTACT_FORM_SUBMIT_SEND_MESSAGE" . }}' /></li>
</ul>
</form>
</section>
{{ end }}
<section class="split contact">
{{ with $data.contactinfo.address }}
<section class="alt">
<h3>{{ i18n "CONTACT_ADDRESS" . }}</h3>
<p>
{{ range $i, $e := . }}
{{ if $i }} <br/> {{ end }} {{ .line }}
{{ end }}
</p>
</section>
{{ end }}
{{ with $data.contactinfo.phone }}
<section>
<h3>{{ i18n "CONTACT_PHONE" . }}</h3>
<p><a href="tel:{{ . }}">{{ . }}</a></p>
</section>
{{ end }}
{{ with $data.contactinfo.email }}
<section>
<h3>{{ i18n "CONTACT_EMAIL" . }}</h3>
<p><a href="mailto:{{ . }}">{{ . }}</a></p>
</section>
{{ end }}
{{ with $data.social }}
<section>
<h3>{{ i18n "CONTACT_SOCIAL" . }}</h3>
<ul class="icons alt">
{{ with .instagram}}
<li><a href="{{ . }}" class="icon alt fa-instagram"><span class="label">Instagram</span></a></li>
{{ end }}
{{ with .youtube}}
<li><a href="{{ . }}" class="icon alt fa-youtube"><span class="label">Youtube</span></a></li>
{{ end }}
</ul>
</section>
{{ end }}
</section>
</footer>
@@ -0,0 +1,4 @@
<!-- Header -->
<header id="header">
<a href='{{ "/" | relLangURL }}' class="logo">{{ .Site.Title }}</a>
</header>
@@ -0,0 +1,26 @@
<!DOCTYPE HTML>
<!--
Massively by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html lang='{{ .Site.Language.Lang | default "en-us" }}'>
<head>
<title>{{ if eq (.Site.Title) (.Title) }}{{ .Site.Title }}{{ else }}{{ .Title }} &middot; {{ .Site.Title }}{{ end }}</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<!-- CSS -->
{{ if .Site.IsServer }}
{{ $style := resources.Get "scss/main.scss" | resources.ExecuteAsTemplate "main.scss" . | toCSS (dict "targetPath" "assets/css/main.css" "enableSourceMap" true) }}
<link rel="stylesheet" href="{{ ($style).RelPermalink }}">
{{ else }}
{{ $style := resources.Get "scss/main.scss" | resources.ExecuteAsTemplate "main.scss" . | toCSS (dict "targetPath" "assets/css/main.css" "enableSourceMap" false) }}
<link rel="stylesheet" href="{{ ($style | minify).RelPermalink }}">
{{ end }}
{{ with .Site.Params.favicon }}
<link rel="shortcut icon" href="{{ . }}">
{{ end }}
{{ $noscript := resources.Get "scss/noscript.scss" | resources.ExecuteAsTemplate "noscript.scss" . | toCSS (dict "targetPath" "assets/css/noscript.css" "enableSourceMap" false) }}
<noscript><link rel="stylesheet" href='{{ $noscript.RelPermalink }}' /></noscript>
{{ partial "htmlhead.custom.html" }}
</head>
@@ -0,0 +1,18 @@
{{ $data := index .Site.Data .Site.Language.Lang }}
{{ with $data.intro }}
<div id="intro">
<h1>
{{- range $i, $e := .title -}}
{{- if $i -}}<br/>{{- end -}} {{- .line -}}
{{- end -}}
</h1>
<p>
{{- range $i, $e := .description -}}
{{- if $i -}}<br/>{{- end -}} {{- .line -}}
{{- end -}}
</p>
<ul class="actions">
<li><a href="#header" class="button icon solo fa-arrow-down scrolly">{{ i18n "INTRO_CONTINUE" . }}</a></li>
</ul>
</div>
{{- end -}}
@@ -0,0 +1,31 @@
<!-- Nav -->
{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $currentPage := .Page }}
<nav id="nav">
<ul class="links">
<li class="{{ if eq ($currentPage.RelPermalink) (`/`) }}active{{end}}"><a href='{{ "/" | relLangURL }}'>{{ .Site.Title }}</a></li>
{{- with $data.nav.items -}}
{{- range $i, $e := . -}}
<li class="{{ if eq ($currentPage.RelPermalink) (print .url `/`) }}active{{end}}"><a href='{{ .url | relLangURL }}'>{{- .title -}}</a></li>
{{- end -}}
{{- end -}}
{{ with $data.contactinfo }}
<li><a href='{{ "#footer" | relLangURL }}'>{{ i18n "NAV_CONTACT" . }}</a></li>
{{ end }}
{{ if .IsTranslated }}
{{ range .AllTranslations }}
<li {{if eq ($.Site.Language) (.Language)}}class="active"{{end}}><a href='{{ .Permalink }}'>{{ .Language.LanguageName }}</a></li>
{{ end }}
{{ end }}
</ul>
{{ with $data.social }}
<ul class="icons">
{{ with .instagram }}
<li><a href="{{ . }}" class="icon fa-instagram"><span class="label">Instagram</span></a></li>
{{ end }}
{{ with .youtube }}
<li><a href="{{ . }}" class="icon fa-youtube"><span class="label">Youtube</span></a></li>
{{ end }}
</ul>
{{ end }}
</nav>
@@ -0,0 +1,17 @@
<!-- Featured Post -->
{{ $data := .siteData }}
{{ range .firstpost }}
<article class="post featured">
<header class="major">
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
{{ if .Description }}
<p>{{ .Description }}</p>
{{ else }}
<p>{{ .Summary }}</p>
{{ end }}
</header>
{{ if .Params.image }}
<a href="{{ .Permalink }}" class="image main"><img src="{{ .Params.image | relURL }}" alt="" /></a>
{{ end }}
</article>
{{ end }}
@@ -0,0 +1,25 @@
<!-- Posts -->
{{ $data := .siteData }}
<section class="posts">
{{ range .posts.Pages }}
<article>
<header>
{{ if not .Date.IsZero }}
<span class="date">{{ .Date.Format (.Site.Params.DateFormat | default "January 2, 2006") }}</span>
{{ end }}
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
</header>
{{ if .Params.image }}
<a href="{{ .Permalink }}" class="image fit"><img src="{{ .Params.image | relURL }}" alt="" /></a>
{{ end }}
{{ if .Description }}
<p>{{ .Description }}</p>
{{ else }}
<p>{{ .Summary }}</p>
{{ end }}
<ul class="actions">
<li><a href="{{ .Permalink }}" class="button">{{ $data.post.linktext }}</a></li>
</ul>
</article>
{{ end }}
</section>
@@ -0,0 +1,119 @@
{{ $paginator := .paginator }}
{{ $outer := .outer}}
<!-- Thanks to https://glennmccomb.com/articles/how-to-build-custom-hugo-pagination/ -->
<!-- Show first and last link-->
{{ $show_first_last := $outer.Site.Params.Posts.showFirstLast | default false }}
<!-- Number of links either side of the current page. -->
{{ $adjacent_links := $outer.Site.Params.Posts.paginationPages | default 2 }}
<!-- $max_links = ($adjacent_links * 2) + 1 -->
{{ $max_links := (add (mul $adjacent_links 2) 1) }}
<!-- $lower_limit = $adjacent_links + 1 -->
{{ $lower_limit := (add $adjacent_links 1) }}
<!-- $upper_limit = $paginator.TotalPages - $adjacent_links -->
{{ $upper_limit := (sub $paginator.TotalPages $adjacent_links) }}
{{ if gt $paginator.TotalPages 1 }}
<footer>
<div class="pagination">
<ul class="pagination">
<!-- First page. -->
{{ if $show_first_last }}
{{ if ne $paginator.PageNumber 1 }}
<li>
<a href="{{ $paginator.First.URL }}" class="extra first">
{{ i18n "PAGINATION_FIRST" . }}
</a>
</li>
{{ end }}
{{ end }}
<!-- Previous page. -->
{{ if $paginator.HasPrev }}
<li>
<a href="{{ $paginator.Prev.URL }}" class="previous">
{{ i18n "PAGINATION_PREVIOUS" . }}
</a>
</li>
{{ end }}
<!-- Page numbers. -->
{{ range $paginator.Pagers }}
{{ $outer.Scratch.Set "page_number_flag" false }}
<!-- Advanced page numbers. -->
{{ if gt $paginator.TotalPages $max_links }}
<!-- Lower limit pages. -->
<!-- If the user is on a page which is in the lower limit. -->
{{ if le $paginator.PageNumber $lower_limit }}
<!-- If the current loop page is less than max_links. -->
{{ if le .PageNumber $max_links }}
{{ $outer.Scratch.Set "page_number_flag" true }}
{{ end }}
<!-- Upper limit pages. -->
<!-- If the user is on a page which is in the upper limit. -->
{{ else if ge $paginator.PageNumber $upper_limit }}
<!-- If the current loop page is greater than total pages minus $max_links -->
{{ if gt .PageNumber (sub $paginator.TotalPages $max_links) }}
{{ $outer.Scratch.Set "page_number_flag" true }}
{{ end }}
<!-- Middle pages. -->
{{ else }}
{{ if and ( ge .PageNumber (sub $paginator.PageNumber $adjacent_links) ) ( le .PageNumber (add $paginator.PageNumber $adjacent_links) ) }}
{{ $outer.Scratch.Set "page_number_flag" true }}
{{ end }}
{{ end }}
<!-- Simple page numbers. -->
{{ else }}
{{ $outer.Scratch.Set "page_number_flag" true }}
{{ end }}
<!-- Output page numbers. -->
{{ if eq ($outer.Scratch.Get "page_number_flag") true }}
<li>
<a href="{{ .URL }}" class="page{{ if eq . $paginator }} active{{ end }}">
{{ .PageNumber }}
</a>
</li>
{{ end }}
{{ end }}
<!-- Next page. -->
{{ if $paginator.HasNext }}
<li>
<a href="{{ $paginator.Next.URL }}" class="next">
{{ i18n "PAGINATION_NEXT" . }}
</a>
</li>
{{ end }}
<!-- Last page. -->
{{ if $show_first_last }}
{{ if ne $paginator.PageNumber $paginator.TotalPages }}
<li>
<a href="{{ $paginator.Last.URL }}" class="extra last">
{{ i18n "PAGINATION_LAST" . }}
</a>
</li>
{{ end }}
{{ end }}
</ul>
</div>
</footer>
{{ end }}
@@ -0,0 +1,13 @@
{{ $jQuery := resources.Get "js/jquery.min.js" }}
{{ $scrollex := resources.Get "js/jquery.scrollex.min.js" }}
{{ $scrolly := resources.Get "js/jquery.scrolly.min.js" }}
{{ $browser := resources.Get "js/browser.min.js" }}
{{ $breakpoints := resources.Get "js/breakpoints.min.js" }}
{{ $util := resources.Get "js/util.js" }}
{{ $main := resources.Get "js/main.js" }}
{{ $js := slice $jQuery $scrollex $scrolly $browser $breakpoints $util $main | resources.Concat "assets/js/bundle.js" }}
<!-- Scripts -->
<script src='{{ $js.RelPermalink }}'></script>