From 47fc02a8c71af4926148beb5d5cc0fc221aa5429 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Sun, 15 Dec 2024 14:37:33 +0300 Subject: Auto-commit 2024-12-15 --- layouts/_default/_markup/render-codeblock-mermaid.html | 4 ++++ layouts/_default/_markup/render-image.html | 5 +++++ layouts/_default/baseof.html | 6 ++++++ layouts/partials/footer.html | 10 +++++++--- layouts/partials/header.html | 9 ++++++--- layouts/partials/list.html | 2 ++ layouts/partials/pagination.html | 16 ++++++++-------- layouts/partials/single/footer.html | 2 ++ layouts/partials/terms.html | 4 +++- 9 files changed, 43 insertions(+), 15 deletions(-) create mode 100644 layouts/_default/_markup/render-codeblock-mermaid.html (limited to 'layouts') diff --git a/layouts/_default/_markup/render-codeblock-mermaid.html b/layouts/_default/_markup/render-codeblock-mermaid.html new file mode 100644 index 0000000..d32626f --- /dev/null +++ b/layouts/_default/_markup/render-codeblock-mermaid.html @@ -0,0 +1,4 @@ +
+    {{- .Inner | htmlEscape | safeHTML }}
+
+{{ .Page.Store.Set "hasMermaid" true }} \ No newline at end of file diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index 93e530d..b2ccc08 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -1,3 +1,5 @@ +
+ {{ . }} +{{- with .Title }}
{{.}}
{{end -}} + +
\ No newline at end of file diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 313ce06..289d824 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -14,4 +14,10 @@ {{ block "main" . }}{{ end }} {{ partial "footer.html" . }} +{{ if .Store.Get "hasMermaid" }} + +{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 3838be6..d2ac395 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -2,11 +2,15 @@
- 2007—{{ now.Year }} Александр NeonXP Кирюхин. г.Казань +
    +
  • 2007—{{ now.Year }}
  • +
  • Александр NeonXP Кирюхин
  • +
  • г.Казань
  • +
-
+
{{ with .GitInfo }} -
    +
    • Коммит: {{ .AbbreviatedHash }}
    • Дата: {{ .AuthorDate.Format "2006-01-02" }}
    diff --git a/layouts/partials/header.html b/layouts/partials/header.html index e477a29..a83b604 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,6 +1,9 @@ -
- \ No newline at end of file + \ No newline at end of file diff --git a/layouts/partials/list.html b/layouts/partials/list.html index 7c17687..8106fba 100644 --- a/layouts/partials/list.html +++ b/layouts/partials/list.html @@ -21,10 +21,12 @@
{{ end }} {{ end }} + {{ if .Params.Tags }}
{{ partial "icon.html" "tag" }} {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
+ {{ end }} {{ if .Params.Location }}
{{ partial "icon.html" "location" }} diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html index f30e72c..8b8e319 100644 --- a/layouts/partials/pagination.html +++ b/layouts/partials/pagination.html @@ -35,22 +35,22 @@ {{- with .First }} {{- if ne $currentPageNumber .PageNumber }}
  • - +
  • {{- else }}
  • - +
  • {{- end }} {{- end }} {{- with .Prev }}
  • - +
  • {{- else }}
  • - +
  • {{- end }} @@ -75,22 +75,22 @@ {{- with .Next }}
  • - +
  • {{- else }}
  • - +
  • {{- end }} {{- with .Last }} {{- if ne $currentPageNumber .PageNumber }}
  • - +
  • {{- else }}
  • - +
  • {{- end }} {{- end }} diff --git a/layouts/partials/single/footer.html b/layouts/partials/single/footer.html index c0f397a..61826cd 100644 --- a/layouts/partials/single/footer.html +++ b/layouts/partials/single/footer.html @@ -1,9 +1,11 @@