From ef736304163e0952735a8620a48564c288864a94 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Sun, 22 Dec 2024 02:13:20 +0300 Subject: Auto-commit 2024-12-22 --- layouts/_default/_markup/render-header.html | 0 layouts/_default/list.gmi | 7 +- layouts/_default/list.html | 2 +- layouts/_default/list.txt | 8 +- layouts/_default/single.html | 31 +++++- layouts/go/single.html | 22 +++- layouts/index.html | 2 +- layouts/pico8/single.html | 166 +++++++++++++++------------- layouts/projects/single.html | 54 ++++++--- layouts/shortcodes/abbr.html | 1 + 10 files changed, 187 insertions(+), 106 deletions(-) create mode 100644 layouts/_default/_markup/render-header.html create mode 100644 layouts/shortcodes/abbr.html (limited to 'layouts') diff --git a/layouts/_default/_markup/render-header.html b/layouts/_default/_markup/render-header.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/_default/list.gmi b/layouts/_default/list.gmi index 8560760..cbdba50 100644 --- a/layouts/_default/list.gmi +++ b/layouts/_default/list.gmi @@ -1,12 +1,7 @@ # {{ .Title }} -{{ $content := .Content -}} +{{ $content := .RawContent -}} -{{ $content := $content | replaceRE `{{<\s*(?:rel)?ref\s+"([^"]+)"\s*>}}` "$1" -}} -{{ $content := $content | replaceRE `{{<\s*figure\s*(?:.*)?src="([^"]+)"(?:.*)?caption="([^"]+)"(?:.*)?>}}` "![$2]($1)" -}} -{{ $content := $content | replaceRE `{{<\s*image\s*.*?src="([^"]+)".*?>}}` "![]($1)" -}} -{{ $content := $content | replaceRE "(?s:< !--more-- >)" "" -}} -{{ $content := $content | replace "" "" -}} {{ $content := $content | replaceRE `\[(.+?)\]\((.+?)\)` "\n=> $2 $1\n" -}} {{ $content }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index b7799ea..6409b6c 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -7,7 +7,7 @@ {{ .Title }} {{ .Content }} - {{ partial "icon.html" "rss" }} Пописка + {{ partial "icon.html" "rss" }} Подписка {{ end }}
diff --git a/layouts/_default/list.txt b/layouts/_default/list.txt index 3dbd917..0d9cee8 100644 --- a/layouts/_default/list.txt +++ b/layouts/_default/list.txt @@ -1,3 +1,9 @@ +# {{ .Title }} + +{{ $content := .RawContent -}} + +{{ $content }} + {{ range .Pages.ByPublishDate.Reverse }} -{{ .Date.Format "2006-01-02" }} {{ .Title }} {{ with .OutputFormats.Get "txt" -}} {{ .RelPermalink }}{{ end }} +=> {{ .RelPermalink | replaceRE `index.txt` `` }}{{if .Date }} {{ .Date.Format "2006-01-02" }}{{ end }} {{ .Title }} {{ end }} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index c5f73ba..507553d 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,9 +1,28 @@ {{ define "main" }} -
-
- {{ partial "single/header.html" . }} -
{{ .Content }}
- {{ partial "single/footer.html" . }} -
+
+
+ +
+
+ {{ partial "single/header.html" . }} +
{{ .Content }}
+ {{ partial "single/footer.html" . }} +
+
+
{{ end }} diff --git a/layouts/go/single.html b/layouts/go/single.html index 75cf89f..99c6d28 100644 --- a/layouts/go/single.html +++ b/layouts/go/single.html @@ -1,5 +1,22 @@ {{ define "main" }} -
+
+
+ +
{{ partial "single/header.html" . }}
+
+
+
{{ end }} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 2347e65..3c1a604 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -8,7 +8,7 @@ {{ .Content }} - {{ partial "icon.html" "rss" }} Пописка + {{ partial "icon.html" "rss" }} Подписка {{ end }}
diff --git a/layouts/pico8/single.html b/layouts/pico8/single.html index 01797ce..4871f4f 100644 --- a/layouts/pico8/single.html +++ b/layouts/pico8/single.html @@ -1,79 +1,97 @@ {{ define "main" }} -
-
- {{ partial "single/header.html" . }} -
- -
-

Управление

-

Игрок 1

- ←  - →  - ↑  - ↓  - Z C  - X V  -

Игрок 2

- S  - F  - E  - D  - Q W  - TAB  -

Пауза

- P/Enter - - {{ partial "single/footer.html" . }} +
+
+ -
+
+
+ {{ partial "single/header.html" . }} +
+ +
+

Управление

+

Игрок 1

+ ←  + →  + ↑  + ↓  + Z C  + X V  +

Игрок 2

+ S  + F  + E  + D  + Q W  + TAB  +

Пауза

+ P/Enter + + {{ partial "single/footer.html" . }} +
+
+
+
+
diff --git a/layouts/projects/single.html b/layouts/projects/single.html index c10b21c..35ef62b 100644 --- a/layouts/projects/single.html +++ b/layouts/projects/single.html @@ -1,21 +1,43 @@ {{ define "main" }} -
-
- {{ partial "single/header.html" . }} - {{ end }} diff --git a/layouts/shortcodes/abbr.html b/layouts/shortcodes/abbr.html new file mode 100644 index 0000000..7ccfcd3 --- /dev/null +++ b/layouts/shortcodes/abbr.html @@ -0,0 +1 @@ +{{ .Get "text" }} \ No newline at end of file -- cgit v1.2.3