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/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 +++++++----- 6 files changed, 23 insertions(+), 19 deletions(-) (limited to 'themes/neonxp/layouts/partials') diff --git a/themes/neonxp/layouts/partials/comments.html b/themes/neonxp/layouts/partials/comments.html index c01c3b7..77b4410 100644 --- a/themes/neonxp/layouts/partials/comments.html +++ b/themes/neonxp/layouts/partials/comments.html @@ -1,5 +1,5 @@ {{- with .Site.Params.comments -}} -
+
Комментарии
diff --git a/themes/neonxp/layouts/partials/footer.html b/themes/neonxp/layouts/partials/footer.html index a68920c..f520850 100644 --- a/themes/neonxp/layouts/partials/footer.html +++ b/themes/neonxp/layouts/partials/footer.html @@ -1,19 +1,12 @@ diff --git a/themes/neonxp/layouts/partials/head.html b/themes/neonxp/layouts/partials/head.html index 119b138..6731ae0 100644 --- a/themes/neonxp/layouts/partials/head.html +++ b/themes/neonxp/layouts/partials/head.html @@ -3,7 +3,7 @@ - + {{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }} {{ partialCached "head/css.html" . }} {{ partialCached "head/js.html" . }} diff --git a/themes/neonxp/layouts/partials/head/css.html b/themes/neonxp/layouts/partials/head/css.html index 09e7397..c0dc59e 100644 --- a/themes/neonxp/layouts/partials/head/css.html +++ b/themes/neonxp/layouts/partials/head/css.html @@ -7,6 +7,15 @@ {{- end }} {{- end }} {{- end }} +{{- with resources.Get "css/flexboxgrid.min.css" }} + {{- if eq hugo.Environment "development" }} + + {{- else }} + {{- with . | minify | fingerprint }} + + {{- end }} + {{- end }} +{{- end }} {{- with resources.Get "css/syntax.css" }} {{- if eq hugo.Environment "development" }} diff --git a/themes/neonxp/layouts/partials/list.html b/themes/neonxp/layouts/partials/list.html index 3b1bacc..72d546c 100644 --- a/themes/neonxp/layouts/partials/list.html +++ b/themes/neonxp/layouts/partials/list.html @@ -3,7 +3,7 @@ {{ .LinkTitle }} {{ if .Date }} - {{- .Date | time.Format (or .Site.Params.dateFormat.published "Jan 02, 2006") -}} + {{- .Date | time.Format (or .Site.Params.dateFormat.published "02 Jan 2006") -}} {{ end }} diff --git a/themes/neonxp/layouts/partials/menu.html b/themes/neonxp/layouts/partials/menu.html index 97f2e1f..c860b4c 100644 --- a/themes/neonxp/layouts/partials/menu.html +++ b/themes/neonxp/layouts/partials/menu.html @@ -12,9 +12,11 @@ Renders a menu for the given menu ID. {{- with index site.Menus $menuID }} {{- end }} @@ -42,9 +44,9 @@ Renders a menu for the given menu ID. {{- end -}} >{{ $name }} {{- with .Children }} - + {{- end }} {{- end }} -- cgit v1.2.3