Merge branch 'feat/mobile-view' into develop

This commit is contained in:
2024-01-07 16:54:58 +01:00
16 changed files with 330 additions and 33 deletions

View File

@@ -0,0 +1,29 @@
{{ define "main" }}
<a name="top">
<h1>{{ .Title }}</h1>
</a>
{{ $archiveGroups := (( where .Site.RegularPages "Section" "==" "news").GroupByDate "2006" ) }}
<ul class="archive-short-links">
{{ range $archiveGroups }}
<li><a href="#year-{{ .Key }}">{{ .Key }}</a></li>
{{ end }}
</ul>
{{ range $archiveGroups }}
<h2><a id="year-{{ .Key }}">{{ .Key }}</a></h2>
{{ range .Pages.ByDate.Reverse }}
<div class="archive-year-list">
<div class="date">{{ .Date.Format "02.01.2006" }}</div>
<div class="title">
<a href="{{ .RelPermalink}}">
{{ .Title }}
</a>
</div>
</div>
{{ end }}
<div class="archive-to-top">
[<a href="#top">Zurück</a>]
</div>
{{ end }}
{{ end }}

View File

@@ -17,6 +17,10 @@
{{- block "main" . -}}{{- end -}}
</div>
</div>
<div class="mobile-menu">
<a id="mobile-menu"></a>
{{- partial "page/mobile-menu" . -}}
</div>
{{- partial "page/footer.html" . -}}
</div>
<div id="overlay" class="hidden">

View File

@@ -3,7 +3,7 @@
<h1>{{ .Title }}</h1>
</a>
<div class="news-blog">
{{ range (.Paginate (first 200 ( where .Site.RegularPages "Section" "==" "news")) 10 ).Pages }}
{{ range (.Paginate (first 30 ( where .Site.RegularPages "Section" "==" "news")) 10 ).Pages }}
{{ $urlBlogEntry := .RelPermalink}}
<div class="blog-entry">
<div class="header">

View File

@@ -42,4 +42,5 @@
{{ end }}
</nav>
</div>
<a class="mobile-menu-link" href="#mobile-menu">Menu</a>
</div>

View File

@@ -0,0 +1,6 @@
{{ range .Site.Menus.main }}
<div class="level-1"><a href="{{ .URL }}" class="menu-link{{ if $.IsMenuCurrent "main" . }} active{{ end }}">{{ .Title }}</a></div>
{{ range .Children }}
<div class="level-2"><a href="{{ .URL }}" class="menu-link{{ if $.IsMenuCurrent "main" .}} active{{ end}}">{{ .Title }}</a></div>
{{ end }}
{{ end }}

View File

@@ -1 +1 @@
<iframe src="{{ .Inner }}" frameborder="0" style="display: block; width: 100%; height: 800px;"></iframe>
<iframe src="{{ .Inner }}" frameborder="0" class="iframe-generic"></iframe>

View File

@@ -8,7 +8,7 @@
{{ $resource := .Page.Resources.Get $filename -}}
src="{{ $resource.RelPermalink }}"
style="
{{- with .Get "width" -}}max-width: {{.}}px;{{- end -}}
{{- with .Get "width" -}}width: {{.}}px;{{- end -}}
"
>
{{ with .Get "href" }}

View File

@@ -2,6 +2,7 @@
{{ with .Get "poster" }}poster="{{ . }}"{{ end }}
{{ with .Get "width" }}width="{{ . }}"{{ end }}
{{ with .Get "height" }}height="{{ . }}"{{ end }}
class="internal-video"
>
<source
{{ with .Get "type" }}type="{{ . }}"{{ end }}

View File

@@ -5,5 +5,6 @@
title="{{ with .Get "title" }}{{ . }}{{ else }}YouTube video player{{ end }}"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen>
allowfullscreen
class="youtube-video">
</iframe>

View File

@@ -0,0 +1 @@
<div class="address">{{ .Inner }}</div>

View File

@@ -0,0 +1,4 @@
<div class="image">
{{ $resource := .Page.Resources.GetMatch (.Get "image") }}
<img src="{{ $resource.RelPermalink}} ">
</div>

View File

@@ -0,0 +1 @@
<div class="room">{{ .Inner }}</div>