Initial commit

This commit is contained in:
Luca 2022-06-27 17:27:51 +02:00
commit a57714a6da
9 changed files with 70 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.hugo_build.lock
public/
resources/_gen/

6
archetypes/default.md Normal file
View File

@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

4
assets/style.scss Normal file
View File

@ -0,0 +1,4 @@
html {
background: #ff00ff;
min-height: 100vh;
}

5
config.toml Normal file
View File

@ -0,0 +1,5 @@
baseURL = 'https://iger.events/'
languageCode = 'de-de'
title = 'Intergalaktische Erfahrungsreise'
[taxonomies]

5
content/_index.md Normal file
View File

@ -0,0 +1,5 @@
---
title: Intergalaktische Erfahrungsreise
---
This page intentionally left blank.

View File

@ -0,0 +1,32 @@
{{ $currentPage := . }}
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>{{ block "title" . }}{{ .Title }} &ndash; {{ .Site.Title }}{{ end }}</title>
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
{{ $style := resources.Get "style.scss" | resources.ToCSS (dict "outputStyle" "compressed") }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
</head>
<body>
<header>
<nav>
{{ range .Site.Menus.main }}
<a{{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} class="is-active"{{ end }} href="{{ .URL }}"{{ if hasPrefix .URL "https://" }} target="_blank"{{ end }}>{{ .Name }}</a>
{{ end }}
</nav>
</header>
<main>
{{ block "main" . }}
{{ end }}
</main>
<footer>
<nav>
{{ range .Site.Menus.footer }}
<a{{ if or ($currentPage.IsMenuCurrent "footer" .) ($currentPage.HasMenuCurrent "footer" .) }} class="is-active"{{ end }} href="{{ .URL }}"{{ if hasPrefix .URL "https://" }} target="_blank"{{ end }}>{{ .Name }}</a>
{{ end }}
</nav>
</footer>
</body>
</html>

View File

@ -0,0 +1,6 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
<!-- TODO: refer to pages in section -->
{{ end }}

View File

@ -0,0 +1,4 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ end }}

5
layouts/index.html Normal file
View File

@ -0,0 +1,5 @@
{{ define "title" }}{{ .Title }}{{ end }}
{{ define "main" }}
{{ .Content }}
{{ end }}