chore: initial commit

This commit is contained in:
Jan Raasch 2020-07-07 10:37:57 +02:00
commit b05ff4eb22
86 changed files with 12051 additions and 0 deletions

15
layouts/404.html Normal file
View file

@ -0,0 +1,15 @@
{{ define "main" }}
<main class="content page-template 404" role="main">
<article class="post page">
<header class="post-header">
<a id="blog-logo" href="{{ "/" | relURL }}">
{{ .Site.Title }}
</a>
</header>
<h1 class="post-title">404 - Page Not Found</h1>
<section class="post-content">
Give it another try: <a href="{{ "/" | relURL }}" alt="Homepage">Back to the homepage</a>.
</section>
</article>
</main>
{{ end }}

View file

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
{{- block "main" . }}{{- end }}
{{- partial "footer.html" . -}}
<!-- We do need jQuery to be loaded before HugoScroll script -->
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<!-- The main JavaScript files for HugoScroll -->
<script type="text/javascript" src='{{ "/js/icons.js" | absURL }}'></script>
<script type="text/javascript" src='{{ "/js/index.js" |absURL }}'></script>
</body>
</html>

View file

View file

@ -0,0 +1,15 @@
{{ define "main" }}
<main class="content page-template page-{{ .Slug }}" role="main">
<article class="post page">
<header class="post-header">
<a id="blog-logo" href="{{ "/" | absURL }}">
{{ .Site.Title }}
</a>
</header>
<h1 class="post-title">{{ .Title }}</h1>
<section class="post-content">
{{ .Content }}
</section>
</article>
</main>
{{ end }}

38
layouts/index.html Normal file
View file

@ -0,0 +1,38 @@
{{ define "main" }}
{{ $headless := .Site.GetPage "/homepage" }}
{{ $sections := $headless.Resources.ByType "page" }}
<header id="site-head" {{ with .Params.header_image }}style="background-image: url({{ . | absURL }})"{{ end }}>
<div class="vertical">
<div id="site-head-content" class="inner">
{{ with .Params.header_headline }}<h1 class="blog-title">{{ . }}</h1>{{ end }}
{{ with .Params.header_subheadline }}<h2 class="blog-description">{{ . }}</h2>{{ end }}
{{ range where $sections ".Params.header_menu" "eq" true }}
<a class='btn site-menu' data-title='{{ .Title }}'>{{ .Title }}</a>
{{ end }}
<i id='header-arrow' class="fa fa-angle-down"></i>
</div>
</div>
</header>
<main class="content" role="main">
<div class='fixed-nav'>
</div>
{{ range $index_val, $elem_val := $sections }}
<div class='post-holder'>
<article class='post {{ if eq $index_val 0 }}first{{ else }}{{ if eq (add $index_val 1) (len $sections) }}last{{ end }}{{ end }}'>
<header class="post-header">
<h2 class="post-title">{{ .Title }}</h2>
</header>
<section class="post-content">
<p>{{ .Content }}</p>
</section>
</article>
<div class='post-after'></div>
</div>
{{ end }}
</main>
{{ end }}

View file

@ -0,0 +1,9 @@
<footer class="site-footer">
<div class="inner">
{{ with .Site.Params.copyright }}<section class="copyright">{{ . }}</section>{{ end }}
<section>{{ echoParam .Site.Params "hidebyline" }}</section>
{{ if ne .Site.Params.hidedesignbyline true }}<section>
<a href="https://themes.gohugo.io/hugo-scroll/">Design</a> template built with ♥️ by <a href="https://www.janraasch.com" title="Jan Raasch">Jan Raasch</a>
</section>{{ end }}
</div>
</footer>

View file

@ -0,0 +1,23 @@
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>{{ with .Title }}{{ . }}{{ else }}{{ .Site.Title }}{{ end }}</title>
{{ with .Site.Params.favicon }}<link rel="shortcut icon" href="{{ . | absURL }}" type="image/png"/>{{ end }}
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}" />{{ end }}
{{ with .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" />
<link rel="stylesheet" href='{{ "/css/screen.css" | absURL }}'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Oswald:400,300,700|Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800|Roboto+Slab:400,100,300,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href='{{ "/font-awesome/css/font-awesome.min.css" | absURL }}'>
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}
{{ template "_internal/schema.html" . }}

View file