adapt website for hugo
This commit is contained in:
parent
3968d5d379
commit
ecf49a5e11
22 changed files with 356 additions and 1184 deletions
0
themes/cozy-hugo/layouts/404.html
Normal file
0
themes/cozy-hugo/layouts/404.html
Normal file
15
themes/cozy-hugo/layouts/_default/baseof.html
Normal file
15
themes/cozy-hugo/layouts/_default/baseof.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
{{ partial "head.html" . }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{{- block "header" . }}{{- end }}
|
||||
{{ partial "nav.html" . }}
|
||||
{{- block "main" . }}{{- end }}
|
||||
{{ partial "footer.html" . }}
|
||||
</body>
|
||||
|
||||
</html>
|
0
themes/cozy-hugo/layouts/_default/list.html
Normal file
0
themes/cozy-hugo/layouts/_default/list.html
Normal file
0
themes/cozy-hugo/layouts/_default/single.html
Normal file
0
themes/cozy-hugo/layouts/_default/single.html
Normal file
36
themes/cozy-hugo/layouts/index.html
Normal file
36
themes/cozy-hugo/layouts/index.html
Normal file
|
@ -0,0 +1,36 @@
|
|||
{{ define "header"}}
|
||||
<header>
|
||||
<h1>Cozy Town</h1>
|
||||
<p>Dienste für flauschige Menschen</p>
|
||||
<!--<img id="header-background" src="header.svg">-->
|
||||
</header>
|
||||
{{- end }}
|
||||
{{ define "main" }}
|
||||
<main class="width-1200">
|
||||
<section id="dienste">
|
||||
<article class="cozyChat">
|
||||
<h2>Chat</h2>
|
||||
<p>Schreibe sicher und vertraulich mit deinen Freunden, Bekannten und deiner Familie.</p>
|
||||
<nav aria-label="Links zu Matrix">
|
||||
<a href="https://chat.cozy.town">Starten</a>
|
||||
<a href="https://doc.matrix.tu-dresden.de/">Dokumentation</a>
|
||||
</nav>
|
||||
</article>
|
||||
<article class="cozyTalk">
|
||||
<h2>Talk</h2>
|
||||
<p>Sprich sicher, aber öffentlicher mit anderen Leuten.</p>
|
||||
<nav aria-label="Links zu Mumble" class="service-nav">
|
||||
<a href="mumble://mumble.natenom.com/PUBLIC/Eingang%20%7C%20Entrance?title=Natemologie-Zentrum&version=1.2.0">Verbinden</a>
|
||||
<a href="https://wiki.natenom.de/mumble">Dokumentation</a>
|
||||
</nav>
|
||||
</article>
|
||||
<article class="cozyCode">
|
||||
<h2>Code</h2>
|
||||
<p>Starte und pflege deine Projekte.</p>
|
||||
<nav aria-label="Links zu Gitea">
|
||||
<a href="https://code.cozy.town">Starten</a>
|
||||
</nav>
|
||||
</article>
|
||||
</section>
|
||||
</main>
|
||||
{{- end }}
|
4
themes/cozy-hugo/layouts/partials/footer.html
Normal file
4
themes/cozy-hugo/layouts/partials/footer.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
<footer class="width-1200">
|
||||
<a href="//vrifox.cc">Vri</a>
|
||||
<a href="//code.cozy.town/cozytown/website/">Quellcode</a>
|
||||
</footer>
|
8
themes/cozy-hugo/layouts/partials/head.html
Normal file
8
themes/cozy-hugo/layouts/partials/head.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{{ $options := (dict "targetPath" "style.css" "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction) "includePaths" (slice "node_modules/myscss")) }}
|
||||
{{ $css := resources.Get "css/main.scss" | resources.ToCSS $options }}
|
||||
|
||||
<title>{{ if not .Page.IsHome }}{{ with .Page.Title }}{{ . }} – {{ end }}{{ end }}Cozy Town</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="stylesheet" href="{{ $css.Permalink | relURL }}" type="text/css" media="screen" />
|
||||
<link rel="icon" type="image/png" href="favicon.png">
|
3
themes/cozy-hugo/layouts/partials/nav.html
Normal file
3
themes/cozy-hugo/layouts/partials/nav.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<nav class="width-1200">
|
||||
<a href="#dienste">Dienste</a>
|
||||
</nav>
|
Loading…
Add table
Add a link
Reference in a new issue