Фикс темы под мобильные устройства
This commit is contained in:
parent
1c1ae00942
commit
74b65dd83f
14 changed files with 101 additions and 107 deletions
|
@ -1,6 +1,6 @@
|
|||
+++
|
||||
title = '~/NeonXP.log'
|
||||
title = 'Привет!'
|
||||
+++
|
||||
Добро пожаловать на мой личный сервер. Да, это старая добрая домашняя страница, персональный сайт, «хомяк», называйте как привычнее.
|
||||
<!--more-->
|
||||
Меня зовут Саня, я Go разработчик. Остальное обо мне на [отдельной странице](/pages/me). А ниже [мой бортжурнал](/posts/).
|
||||
Меня зовут Саня, я Go разработчик. Остальное обо мне на [отдельной странице](/pages/me). А рядом — [мой бортжурнал](/posts/).
|
|
@ -15,7 +15,7 @@ enabled = true
|
|||
enabled = true
|
||||
|
||||
[params.dateFormat]
|
||||
published = "02.01.2006"
|
||||
published = "Monday, 02 January 2006"
|
||||
lastUpdated = "15:04 02.01.2006"
|
||||
|
||||
[params.comments]
|
||||
|
|
1
themes/neonxp/assets/css/flexboxgrid.min.css
vendored
Normal file
1
themes/neonxp/assets/css/flexboxgrid.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -12,21 +12,36 @@
|
|||
height: 64px;
|
||||
}
|
||||
|
||||
@media (min-width: 1030px) {
|
||||
.single-page {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: var(--pico-block-spacing-horizontal);
|
||||
}
|
||||
.print-footer {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media print {
|
||||
.sidebar {
|
||||
min-width: 300px;
|
||||
height: auto;
|
||||
display: none;
|
||||
}
|
||||
.sidebar .toc {
|
||||
min-width: 300px;
|
||||
article {
|
||||
border: 0
|
||||
}
|
||||
article footer {
|
||||
display: none;
|
||||
}
|
||||
.container>header {
|
||||
display: none;
|
||||
}
|
||||
.container>footer {
|
||||
display: none;
|
||||
}
|
||||
.comments {
|
||||
display: none;
|
||||
}
|
||||
.h-entry {
|
||||
width: 100%;
|
||||
max-width: 1130px;
|
||||
width: 100% !important;
|
||||
}
|
||||
.container {
|
||||
width: 100% !important;
|
||||
}
|
||||
.print-footer {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
|
@ -1,7 +1,26 @@
|
|||
{{ define "main" }}
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 last-xs last-sm first-md first-lg sidebar">
|
||||
<article>
|
||||
<header>Навигатор</header>
|
||||
{{ partial "menu.html" (dict "menuID" "sections" "page" .) }}
|
||||
</article>
|
||||
</div>
|
||||
<div class="h-entry col-xs-12 col-sm-12 col-md-8 col-lg-8">
|
||||
<article>
|
||||
<header class="p-name">
|
||||
{{ .Title }}
|
||||
</header>
|
||||
<div class="e-content">
|
||||
{{ .Content }}
|
||||
{{ range site.RegularPages }}
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
||||
{{ .Summary }}
|
||||
</div>
|
||||
</article>
|
||||
{{ $pages := where site.RegularPages "Type" "posts" }}
|
||||
{{ $paginator := .Paginate $pages 7 }}
|
||||
{{ range $paginator.Pages }}
|
||||
{{ partial "list.html" . }}
|
||||
{{ end }}
|
||||
<nav>{{ partial "pagination.html" . }}</nav>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,19 +1,18 @@
|
|||
{{ define "main" }}
|
||||
<div class="single-page">
|
||||
<div class="sidebar">
|
||||
<article class="toc">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 last-xs last-sm first-md first-lg sidebar">
|
||||
<article>
|
||||
<header>Навигатор</header>
|
||||
{{ partial "menu.html" (dict "menuID" "sections" "page" .) }}
|
||||
</article>
|
||||
</div>
|
||||
<div class="h-entry">
|
||||
<div class="h-entry col-xs-12 col-sm-12 col-md-8 col-lg-8">
|
||||
{{ if .Title }}
|
||||
<article>
|
||||
<header>{{ .Title }}</header>
|
||||
{{ .Content }}
|
||||
</article>
|
||||
{{ end }}
|
||||
<h1>Страницы:</h1>
|
||||
{{ $paginator := .Paginate .Pages 7 }}
|
||||
{{ range $paginator.Pages }}
|
||||
{{ partial "list.html" . }}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{{ define "main" }}
|
||||
<div class="single-page">
|
||||
<div class="sidebar">
|
||||
<div class="toc">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 last-xs last-sm first-md first-lg sidebar">
|
||||
{{ if .Params.toc }}
|
||||
<article>
|
||||
<header>Содержание</header>
|
||||
|
@ -9,29 +8,22 @@
|
|||
</article>
|
||||
{{ end }}
|
||||
<article>
|
||||
<header>Разделы</header>
|
||||
<header>Навигатор</header>
|
||||
{{ partial "menu.html" (dict "menuID" "sections" "page" .) }}
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
<div class="h-entry">
|
||||
<div class="h-entry col-xs-12 col-sm-12 col-md-8 col-lg-8">
|
||||
<article>
|
||||
<header class="space-between">
|
||||
<span class="p-name">
|
||||
{{ .Title }}
|
||||
</span>
|
||||
<span class="p-name"> {{ .Title }} </span>
|
||||
{{ if .Date }}
|
||||
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
|
||||
{{ $dateHuman := .Date | time.Format (or .Site.Params.dateFormat.published "Jan 02, 2006") }}
|
||||
<time class="dt-published" datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
|
||||
{{ end }}
|
||||
</header>
|
||||
<div class="p-summary">
|
||||
{{ .Summary }}
|
||||
</div>
|
||||
<div class="e-content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
<div class="p-summary">{{ .Summary }}</div>
|
||||
<div class="e-content">{{ .Content }}</div>
|
||||
<footer class="space-between">
|
||||
<span>
|
||||
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
|
||||
|
@ -42,12 +34,6 @@
|
|||
{{ if .Params.Location }}
|
||||
<span class="p-location">@ {{.Params.Location}}</span>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Lastmod }}
|
||||
{{ $dateMachine := .Lastmod | time.Format "2006-01-02T15:04:05-07:00" }}
|
||||
{{ $dateHuman := .Lastmod | time.Format (or .Site.Params.dateFormat.lastUpdated "Jan 02, 2006") }}
|
||||
<time class="dt-updated" datetime="{{ $dateMachine }}">Изм: {{ $dateHuman }}</time>
|
||||
{{ end }}
|
||||
</footer>
|
||||
</article>
|
||||
{{ if .Params.comments }} {{ partial "comments.html" . }} {{ end }}
|
||||
|
|
|
@ -1,30 +0,0 @@
|
|||
{{ define "main" }}
|
||||
<div class="single-page">
|
||||
<div class="sidebar">
|
||||
<article class="toc">
|
||||
<header>Навигатор</header>
|
||||
{{ partial "menu.html" (dict "menuID" "sections" "page" .) }}
|
||||
</article>
|
||||
</div>
|
||||
<div class="h-entry">
|
||||
<article>
|
||||
<header class="p-name">
|
||||
{{ .Title }}
|
||||
</header>
|
||||
<div class="p-summary">
|
||||
{{ .Summary }}
|
||||
</div>
|
||||
<div class="e-content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
<h1>Блог</h1>
|
||||
{{ $pages := where site.RegularPages "Type" "posts" }}
|
||||
{{ $paginator := .Paginate $pages 7 }}
|
||||
{{ range $paginator.Pages }}
|
||||
{{ partial "list.html" . }}
|
||||
{{ end }}
|
||||
<nav>{{ partial "pagination.html" . }}</nav>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
|
@ -1,5 +1,5 @@
|
|||
{{- with .Site.Params.comments -}}
|
||||
<article>
|
||||
<article class="comments">
|
||||
<header>Комментарии</header>
|
||||
<div id="remark42"></div>
|
||||
</article>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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" . }}
|
||||
|
|
|
@ -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 }}">
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -12,9 +12,11 @@ Renders a menu for the given menu ID.
|
|||
|
||||
{{- with index site.Menus $menuID }}
|
||||
<aside>
|
||||
<ul>
|
||||
<nav>
|
||||
<ol>
|
||||
{{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }}
|
||||
</ul>
|
||||
</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 }}
|
||||
|
|
Loading…
Reference in a new issue