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 +++++++++++------------------- 3 files changed, 47 insertions(+), 43 deletions(-) (limited to 'themes/neonxp/layouts/_default') 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" }} -
-