From a4106b2b0e2bd73bda5a7ecc22659c0920d56ade Mon Sep 17 00:00:00 2001 From: Nantha Sorubakanthan Date: Sat, 18 Oct 2025 16:45:59 +0200 Subject: rework website --- layouts/_default/_markup/render-heading.html | 4 +++ layouts/_default/baseof.html | 40 +++++++++++++++++++++++++--- layouts/partials/buttons.html | 8 ------ layouts/partials/footer.html | 17 ------------ layouts/partials/head.html | 16 ----------- layouts/partials/header.html | 3 --- layouts/shortcodes/article-list.html | 2 +- 7 files changed, 41 insertions(+), 49 deletions(-) create mode 100644 layouts/_default/_markup/render-heading.html delete mode 100644 layouts/partials/buttons.html delete mode 100644 layouts/partials/footer.html delete mode 100644 layouts/partials/head.html delete mode 100644 layouts/partials/header.html (limited to 'layouts') diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html new file mode 100644 index 0000000..60e75b7 --- /dev/null +++ b/layouts/_default/_markup/render-heading.html @@ -0,0 +1,4 @@ + + + {{strings.Repeat (sub .Level 1) ""}}{{.Text | safeHTML}} + diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index add4e17..6f4f5b0 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,19 +1,51 @@ - + - {{ partial "head.html" . }} + + + + {{ if .IsHome }}{{ site.Title }}{{ else }}{{ .Title }}{{ end }} + + + + + + {{ $images := .Page.Resources.ByType "image" }} + {{ with index $images 0 }} + {{ $processed := .Resize "600x" }} + {{ $processed := $processed.Crop "512x512" }} + + {{ end }}
- {{ partial "header.html" . }} +

{{ if .IsHome }}{{ site.Title }}

{{ else }}{{ .Title }} + {{ end }} +
{{ block "main" . }}{{ end }}
diff --git a/layouts/partials/buttons.html b/layouts/partials/buttons.html deleted file mode 100644 index beb7d9e..0000000 --- a/layouts/partials/buttons.html +++ /dev/null @@ -1,8 +0,0 @@ -
- BAN PORN - Codeberg logo - Logo de mon site -
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html deleted file mode 100644 index 08aa27c..0000000 --- a/layouts/partials/footer.html +++ /dev/null @@ -1,17 +0,0 @@ -{{- $isregular := (in .Site.RegularPages .Page) -}} - -{{- if $isregular }} -{{- $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} -{{ if .IsHome }}{{ else }} -
-

Return

{{ end }} - -
-{{- end -}} - -
- diff --git a/layouts/partials/head.html b/layouts/partials/head.html deleted file mode 100644 index c2e3597..0000000 --- a/layouts/partials/head.html +++ /dev/null @@ -1,16 +0,0 @@ - - - -{{ if .IsHome }}{{ site.Title }}{{ else }}{{ .Title }}{{ end }} - - - - - - -{{- $images := .Page.Resources.ByType "image" }} -{{- with index $images 0 }} -{{- $processed := .Resize "600x" }} -{{- $processed := $processed.Crop "512x512" }} - -{{- end -}} \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html deleted file mode 100644 index a26436e..0000000 --- a/layouts/partials/header.html +++ /dev/null @@ -1,3 +0,0 @@ -

{{ if .IsHome }}{{ site.Title }}

{{ else }}{{ .Title }} -{{ end -}} -
diff --git a/layouts/shortcodes/article-list.html b/layouts/shortcodes/article-list.html index 9f245dc..338643c 100644 --- a/layouts/shortcodes/article-list.html +++ b/layouts/shortcodes/article-list.html @@ -3,4 +3,4 @@
  • {{ .Date.Format "02/01/06" }} - {{ .Title }}
  • {{- end }} -See more... +See more... -- cgit v1.2.3