Merge pull request #121 from Mitrichius/fix-safari-reader-view

Remove lang switcher from reader view #14
This commit is contained in:
Dmitry Kolosov 2021-12-19 14:36:07 +03:00 committed by GitHub
commit 0b15d3bc48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 41 additions and 29 deletions

View File

@ -281,6 +281,16 @@ main h1 {
/* Articles */
.post-header {
margin-top: 1em;
line-height: 1.1em;
margin-bottom: 1em;
}
.post-header header {
display: inline;
}
.post-navigation {
background: var(--nav-bg-color);
text-align: center;
@ -331,12 +341,6 @@ article:not(:last-of-type) {
padding-bottom: 2em;
}
article header {
margin-top: 1em;
line-height: 1.1em;
margin-bottom: 1em;
}
article header h1 {
font-size: 1.35em;

View File

@ -8,10 +8,12 @@
{{ $pages := where .Pages "Type" "in" site.Params.mainSections }}
{{ range $pages }}
<div class="post-short-list h-entry">
<header class="post-header">
<div class="post-header">
<header>
<h2 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}"><a class="u-url" href="{{ .RelPermalink }}">{{ trim .Title " " }}</a></h2>
{{ partial "post-language-switcher.html" . }}
</header>
</div>
{{ partial "post-info.html" . }}
</div>
{{ end }}

View File

@ -8,11 +8,13 @@
{{ end }}
<article class="post h-entry">
<header class="post-header">
<div class="post-header">
<header>
<h1 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}">{{ trim .Title " " }}</h1>
{{ partial "post-language-switcher.html" . }}
</header>
</div>
<div class="content e-content">
{{ .Content }}
</div>

View File

@ -1,5 +1,6 @@
{{ if .IsTranslated }}
{{ $pageLang := .Page.Lang}}
<span>
<ul class="post-translations">
{{ range .AllTranslations }}
{{ if eq .Lang $pageLang }}
@ -13,4 +14,5 @@
{{ end }}
{{ end }}
</ul>
</span>
{{ end }}

View File

@ -1,8 +1,10 @@
<article class="post-list h-feed">
<header class="post-header">
<div class="post-header">
<header>
<h1 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}"><a class="u-url" href="{{ .RelPermalink }}">{{ trim .Title " " }}</a></h1>
{{ partial "post-language-switcher.html" . }}
</header>
{{ partial "post-language-switcher.html" . }}
</div>
{{ if not .Site.Params.disableSummary }}
<div class="content post-summary p-summary">