Merge branch 'feat/mobile-view' into develop
This commit is contained in:
29
themes/tsc_vfl/layouts/_default/archive.html
Normal file
29
themes/tsc_vfl/layouts/_default/archive.html
Normal 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 }}
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -42,4 +42,5 @@
|
||||
{{ end }}
|
||||
</nav>
|
||||
</div>
|
||||
<a class="mobile-menu-link" href="#mobile-menu">Menu</a>
|
||||
</div>
|
||||
|
||||
6
themes/tsc_vfl/layouts/partials/page/mobile-menu.html
Normal file
6
themes/tsc_vfl/layouts/partials/page/mobile-menu.html
Normal 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 }}
|
||||
@@ -1 +1 @@
|
||||
<iframe src="{{ .Inner }}" frameborder="0" style="display: block; width: 100%; height: 800px;"></iframe>
|
||||
<iframe src="{{ .Inner }}" frameborder="0" class="iframe-generic"></iframe>
|
||||
|
||||
@@ -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" }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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>
|
||||
|
||||
1
themes/tsc_vfl/layouts/shortcodes/tsc/rooms/address.html
Normal file
1
themes/tsc_vfl/layouts/shortcodes/tsc/rooms/address.html
Normal file
@@ -0,0 +1 @@
|
||||
<div class="address">{{ .Inner }}</div>
|
||||
4
themes/tsc_vfl/layouts/shortcodes/tsc/rooms/image.html
Normal file
4
themes/tsc_vfl/layouts/shortcodes/tsc/rooms/image.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<div class="image">
|
||||
{{ $resource := .Page.Resources.GetMatch (.Get "image") }}
|
||||
<img src="{{ $resource.RelPermalink}} ">
|
||||
</div>
|
||||
1
themes/tsc_vfl/layouts/shortcodes/tsc/rooms/room.html
Normal file
1
themes/tsc_vfl/layouts/shortcodes/tsc/rooms/room.html
Normal file
@@ -0,0 +1 @@
|
||||
<div class="room">{{ .Inner }}</div>
|
||||
Reference in New Issue
Block a user