diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-11-18 23:18:18 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-11-18 23:18:18 +0300 |
commit | 74b65dd83f7c66d1f67f961b1fee65400b1fc334 (patch) | |
tree | dd9d5f0db2dbc733bcbbb04f98f0d18abf40031e /themes/neonxp/layouts/partials | |
parent | 1c1ae0094244868c63bd875c0cbfa50ced37de8d (diff) |
Фикс темы под мобильные устройства
Diffstat (limited to 'themes/neonxp/layouts/partials')
-rw-r--r-- | themes/neonxp/layouts/partials/comments.html | 2 | ||||
-rw-r--r-- | themes/neonxp/layouts/partials/footer.html | 15 | ||||
-rw-r--r-- | themes/neonxp/layouts/partials/head.html | 2 | ||||
-rw-r--r-- | themes/neonxp/layouts/partials/head/css.html | 9 | ||||
-rw-r--r-- | themes/neonxp/layouts/partials/list.html | 2 | ||||
-rw-r--r-- | themes/neonxp/layouts/partials/menu.html | 12 |
6 files changed, 23 insertions, 19 deletions
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 -}} -<article> +<article class="comments"> <header>Комментарии</header> <div id="remark42"></div> </article> 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 @@ <nav> <ul> <li> - <cite>2007—{{ now.Year }}</cite> - </li> - <li> - <cite> Александр NeonXP Кирюхин. </cite> - </li> - <li> - <cite>г.Казань</cite> + <cite>2007—{{ now.Year }} Александр NeonXP Кирюхин. г.Казань</cite> </li> </ul> - <ul> - <li><a href="https://git.neonxp.ru/neonxp/blog">Исходный код</a>.</li> - <li><a href="mailto:i@neonxp.ru" rel="me">Электропочта</a>.</li> - <li><a href="https://neonxp.ru/posts/index.xml">РСС</a>.</li> + <li><a href="https://git.neonxp.ru/neonxp/blog">Исходный код</a></li> + <li><a href="mailto:i@neonxp.ru" rel="me">Электропочта</a></li> + <li><a href="https://neonxp.ru/posts/index.xml">РСС</a></li> </ul> </nav> 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 @@ <link rel="icon" type="image/png" href="/favicon.png"> <link rel="authorization_endpoint" href="https://indieauth.com/auth"> <link rel="token_endpoint" href="https://tokens.indieauth.com/token"> -<link rel="micropub" href="https://eo7kjtzrfq0v1s2.m.pipedream.net/micropub"> +<link rel="micropub" href="https://neonxp.ru/micropub"> <title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title> {{ 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" }} + <link rel="stylesheet" href="{{ .RelPermalink }}"> + {{- else }} + {{- with . | minify | fingerprint }} + <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"> + {{- end }} + {{- end }} +{{- end }} {{- with resources.Get "css/syntax.css" }} {{- if eq hugo.Environment "development" }} <link rel="stylesheet" href="{{ .RelPermalink }}"> 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 @@ <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a> {{ if .Date }} <span> - {{- .Date | time.Format (or .Site.Params.dateFormat.published "Jan 02, 2006") -}} + {{- .Date | time.Format (or .Site.Params.dateFormat.published "02 Jan 2006") -}} </span> {{ end }} </header> 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 }} <aside> - <ul> - {{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }} - </ul> + <nav> + <ol> + {{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }} + </ol> + </nav> </aside> {{- end }} @@ -42,9 +44,9 @@ Renders a menu for the given menu ID. {{- end -}} >{{ $name }}</a> {{- with .Children }} - <ul> + <ol> {{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }} - </ul> + </ol> {{- end }} </li> {{- end }} |