From ffc70d00d3abcf48172aa91f69b4f4337b1568a6 Mon Sep 17 00:00:00 2001 From: Christian Wolf Date: Sun, 8 Oct 2023 20:10:42 +0200 Subject: [PATCH] Create basic front matter --- assets/main.scss | 44 +++++++++++++++++++++ content/{page/aktuell => }/_index.md | 1 + themes/tsc_vfl/layouts/_default/baseof.html | 2 + themes/tsc_vfl/layouts/_default/home.html | 33 ++++++++++++++++ themes/tsc_vfl/layouts/index.html | 5 --- 5 files changed, 80 insertions(+), 5 deletions(-) rename content/{page/aktuell => }/_index.md (89%) create mode 100644 themes/tsc_vfl/layouts/_default/home.html delete mode 100644 themes/tsc_vfl/layouts/index.html diff --git a/assets/main.scss b/assets/main.scss index 5f23392..a98b191 100644 --- a/assets/main.scss +++ b/assets/main.scss @@ -303,6 +303,50 @@ h1 { } } +.news-blog { + .blog-entry { + .header { + a { + &::before { + content: '' !important; + } + font-size: larger; + } + } + .details { + display: flex; + min-height: 240px; + + .teaser-image { + flex: 33% 1 0; + background-color: lightcyan; + } + .intro { + flex: 66% 1 1; + } + .teaser-image, .intro { + // display: ; + } + } + } + + .pagination { + display: flex; + list-style: none; + .page-item { + padding: 0px 5px; + a { + padding: 10px 20px; + display: inline-block; + } + } + + .disabled { + visibility: hidden; + } + } +} + @font-face{ font-family: 'Open Sans Condensed'; font-style: normal; diff --git a/content/page/aktuell/_index.md b/content/_index.md similarity index 89% rename from content/page/aktuell/_index.md rename to content/_index.md index 8e1fda6..34f709f 100644 --- a/content/page/aktuell/_index.md +++ b/content/_index.md @@ -2,6 +2,7 @@ title: "Aktuell" date: 2023-01-20T16:27:40+01:00 draft: false +# type: home url: / menu: main: diff --git a/themes/tsc_vfl/layouts/_default/baseof.html b/themes/tsc_vfl/layouts/_default/baseof.html index ff87b81..dae6839 100644 --- a/themes/tsc_vfl/layouts/_default/baseof.html +++ b/themes/tsc_vfl/layouts/_default/baseof.html @@ -5,9 +5,11 @@
{{- partial "page/header.html" . -}}
+ {{ block "left" . }}
{{- partial "page/left_menu" . -}}
+ {{ end }}
{{- block "main" . -}}{{- end -}}
diff --git a/themes/tsc_vfl/layouts/_default/home.html b/themes/tsc_vfl/layouts/_default/home.html new file mode 100644 index 0000000..189fd65 --- /dev/null +++ b/themes/tsc_vfl/layouts/_default/home.html @@ -0,0 +1,33 @@ +{{ define "main" }} + +

{{ .Title }}

+
+
+ {{ range (.Paginate (first 10 ( where .Site.RegularPages "Section" "==" "news")) 5 ).Pages }} +
+
+ {{ .Date.Format "02.01.2006" }} + {{ .Title }} +
+
+
+ {{ $page := . }} + {{ if .Params.Image }} + + {{ end }} +
+
+ {{ with .Summary }} + {{ . }} + {{ end }} +
+
+
+ {{ end }} + {{ template "_internal/pagination.html" . }} +
+ {{ .Content }} + {{ partial "totop" }} +{{ end }} + +{{ define "left" }}{{ end }} diff --git a/themes/tsc_vfl/layouts/index.html b/themes/tsc_vfl/layouts/index.html deleted file mode 100644 index 08416f6..0000000 --- a/themes/tsc_vfl/layouts/index.html +++ /dev/null @@ -1,5 +0,0 @@ -{{ define "main" }} -
-

{{ .Site.Title }}

-
-{{ end }}