From 74b65dd83f7c66d1f67f961b1fee65400b1fc334 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Mon, 18 Nov 2024 23:18:18 +0300 Subject: Фикс темы под мобильные устройства MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/neonxp/layouts/_default/home.html | 29 +++++++++++++--- themes/neonxp/layouts/_default/list.html | 9 +++-- themes/neonxp/layouts/_default/single.html | 52 ++++++++++------------------ themes/neonxp/layouts/index.html | 30 ---------------- themes/neonxp/layouts/partials/comments.html | 2 +- themes/neonxp/layouts/partials/footer.html | 15 +++----- themes/neonxp/layouts/partials/head.html | 2 +- themes/neonxp/layouts/partials/head/css.html | 9 +++++ themes/neonxp/layouts/partials/list.html | 2 +- themes/neonxp/layouts/partials/menu.html | 12 ++++--- 10 files changed, 70 insertions(+), 92 deletions(-) delete mode 100644 themes/neonxp/layouts/index.html (limited to 'themes/neonxp/layouts') diff --git a/themes/neonxp/layouts/_default/home.html b/themes/neonxp/layouts/_default/home.html index 0df6597..9d97e21 100644 --- a/themes/neonxp/layouts/_default/home.html +++ b/themes/neonxp/layouts/_default/home.html @@ -1,7 +1,26 @@ {{ define "main" }} - {{ .Content }} - {{ range site.RegularPages }} -

{{ .LinkTitle }}

- {{ .Summary }} - {{ end }} +
+ +
+
+
+ {{ .Title }} +
+
+ {{ .Content }} +
+
+ {{ $pages := where site.RegularPages "Type" "posts" }} + {{ $paginator := .Paginate $pages 7 }} + {{ range $paginator.Pages }} + {{ partial "list.html" . }} + {{ end }} + +
+
{{ end }} diff --git a/themes/neonxp/layouts/_default/list.html b/themes/neonxp/layouts/_default/list.html index 065ee1a..6a399e7 100644 --- a/themes/neonxp/layouts/_default/list.html +++ b/themes/neonxp/layouts/_default/list.html @@ -1,19 +1,18 @@ {{ define "main" }} -
-