Skip to content
Snippets Groups Projects
Commit 62fb58b9 authored by Julien Schmidt's avatar Julien Schmidt
Browse files

basic initial setup

parents
No related branches found
No related tags found
No related merge requests found
baseURL = "http://stustanet.zoidberg.stusta.de/"
canonifyURLs = true
defaultContentLanguage = "de"
title = "StuStaNet e.V."
enableRobotsTXT = true
disableHugoGeneratorInject = true
disableKinds = ["RSS","taxonomy","taxonomyTerm"]
enableGitInfo = false
[Languages]
[Languages.de]
weight = 1
languageCode = "de-DE"
languageName = "Deutsch"
[Languages.en]
weight = 2
languageCode = "en-US"
languageName = "English"
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{{ .Site.Title }}</title>
</head>
<body>
<!-- Code that all your templates share, like a header -->
{{ block "main" . }}
<!-- The part of the page that begins to differ between templates -->
{{ end }}
<footer>This is teh foota &copy; {{ now.Format "2006" }}</footer>
</body>
</html>
{{ define "main" }}
<header>
<h1>
{{ .Title }}
</h1>
</header>
<div class="">
{{ .Content }}
</div>
{{ end }}
{{ define "main" }}
<main aria-role="main">
<header class="homepage-header">
<h1>{{.Title}}</h1>
{{ with .Params.subtitle }}
<span class="subtitle">{{.}}</span>
{{ end }}
</header>
<div class="homepage-content">
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
{{.Content}}
</div>
<aside>
<h3>Next Office Hours</h3><!-- TODO: translate -->
<ul>
{{ range getJSON "https://sprechstunden.stusta.mhn.de/appointments.json"}}
<li>{{ dateFormat "Monday, Jan 2, 2006 15:04" (int .start) }}-{{ dateFormat "15:04" (int .end) }}</li>
{{ end }}
</ul>
</aside>
</main>
{{ end }}
{{- .Scratch.Set "path" (.Get 0) -}}
{{- if hasPrefix (.Scratch.Get "path") "/" -}}
{{- .Scratch.Set "path" (slicestr (.Scratch.Get "path") 1) -}}
{{- end -}}
{{- .Scratch.Get "path" | absLangURL -}}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment