remove lang switcher from reader view #14
This commit is contained in:
parent
61f5b5facf
commit
e3e9ce62d2
@ -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;
|
||||
|
@ -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">
|
||||
<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 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 }}
|
||||
|
@ -8,11 +8,13 @@
|
||||
{{ end }}
|
||||
|
||||
<article class="post h-entry">
|
||||
<header class="post-header">
|
||||
<h1 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}">{{ trim .Title " " }}</h1>
|
||||
<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>
|
||||
{{ partial "post-language-switcher.html" . }}
|
||||
</header>
|
||||
</div>
|
||||
<div class="content e-content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
@ -1,16 +1,18 @@
|
||||
{{ if .IsTranslated }}
|
||||
{{ $pageLang := .Page.Lang}}
|
||||
<ul class="post-translations">
|
||||
{{ range .AllTranslations }}
|
||||
{{ if eq .Lang $pageLang }}
|
||||
<li>
|
||||
{{ upper .Lang }}
|
||||
</li>
|
||||
{{ else }}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">{{ upper .Lang }}</a>
|
||||
</li>
|
||||
<span>
|
||||
<ul class="post-translations">
|
||||
{{ range .AllTranslations }}
|
||||
{{ if eq .Lang $pageLang }}
|
||||
<li>
|
||||
{{ upper .Lang }}
|
||||
</li>
|
||||
{{ else }}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">{{ upper .Lang }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</ul>
|
||||
</span>
|
||||
{{ end }}
|
@ -1,8 +1,10 @@
|
||||
<article class="post-list h-feed">
|
||||
<header class="post-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>
|
||||
<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>
|
||||
</header>
|
||||
{{ partial "post-language-switcher.html" . }}
|
||||
</header>
|
||||
</div>
|
||||
|
||||
{{ if not .Site.Params.disableSummary }}
|
||||
<div class="content post-summary p-summary">
|
||||
|
Loading…
Reference in New Issue
Block a user