From 3cda48aadae9033f6041e19bbaca4f02ff777d56 Mon Sep 17 00:00:00 2001 From: SayaAndy Date: Sun, 31 Aug 2025 11:28:05 +0700 Subject: refactor: move embeds right into general page --- static/input.css | 5 +++ views/layouts/general-page.html | 66 +++++++++++++++++++++++++++++++++- views/pages/blog-catalogue.html | 3 -- views/pages/blog-page.html | 78 ----------------------------------------- 4 files changed, 70 insertions(+), 82 deletions(-) diff --git a/static/input.css b/static/input.css index 47e7d16..a64c59d 100644 --- a/static/input.css +++ b/static/input.css @@ -472,6 +472,11 @@ body:has(.lg-container:not([class~="lg-inline"])) #sidebar { } } +.map-container .leaflet-container { + width: 100% !important; + height: 100% !important; +} + body[data-theme~="night"] .leaflet-tile, body[data-theme~="ram"] .leaflet-tile { filter: invert(1) hue-rotate(190deg) contrast(1.1) brightness(1.2) !important; diff --git a/views/layouts/general-page.html b/views/layouts/general-page.html index 0b020c6..675b6e9 100644 --- a/views/layouts/general-page.html +++ b/views/layouts/general-page.html @@ -9,6 +9,12 @@ {{ block "top-embeds" . }}{{ end }} + + + + {{- if .MapLocationX }} + + {{- end }} @@ -140,6 +146,10 @@ switchTheme(savedTheme); + + @@ -200,6 +210,9 @@ + + + - {{ block "bottom-embeds" . }}{{ end }} + {{- if .MapLocationX }} + + + + {{- end }} diff --git a/views/pages/blog-catalogue.html b/views/pages/blog-catalogue.html index 1bed1cc..ac2fb7d 100644 --- a/views/pages/blog-catalogue.html +++ b/views/pages/blog-catalogue.html @@ -57,9 +57,7 @@ Loading... -{{ end }} -{{ define "bottom-embeds" }} - {{ end }} diff --git a/views/pages/blog-page.html b/views/pages/blog-page.html index 2f5465c..d8fb118 100644 --- a/views/pages/blog-page.html +++ b/views/pages/blog-page.html @@ -1,23 +1,3 @@ -{{ define "top-embeds" }} - - - -{{- if .MapLocationX }} - -{{- end }} - - - - -{{ end }} - {{ define "body" }}
{{ .ParsedMarkdown }} @@ -32,61 +12,3 @@ {{ define "footer" }}
{{ end }} - -{{ define "bottom-embeds" }} - - - -{{- if .MapLocationX }} - - - -{{- end }} -{{ end }} \ No newline at end of file -- cgit v1.3.1+13