remove lang switcher from reader view #14
This commit is contained in:
		
							parent
							
								
									61f5b5facf
								
							
						
					
					
						commit
						e3e9ce62d2
					
				
					 5 changed files with 41 additions and 29 deletions
				
			
		|  | @ -281,6 +281,16 @@ main h1 { | ||||||
| 
 | 
 | ||||||
| /* Articles */ | /* Articles */ | ||||||
| 
 | 
 | ||||||
|  | .post-header { | ||||||
|  |     margin-top: 1em; | ||||||
|  |     line-height: 1.1em; | ||||||
|  |     margin-bottom: 1em; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .post-header header { | ||||||
|  |     display: inline; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| .post-navigation { | .post-navigation { | ||||||
|     background: var(--nav-bg-color); |     background: var(--nav-bg-color); | ||||||
|     text-align: center; |     text-align: center; | ||||||
|  | @ -331,12 +341,6 @@ article:not(:last-of-type) { | ||||||
|     padding-bottom: 2em; |     padding-bottom: 2em; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| article header { |  | ||||||
|     margin-top: 1em; |  | ||||||
|     line-height: 1.1em; |  | ||||||
|     margin-bottom: 1em; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
| article header h1 { | article header h1 { | ||||||
|     font-size: 1.35em; |     font-size: 1.35em; | ||||||
|  |  | ||||||
|  | @ -8,10 +8,12 @@ | ||||||
|         {{ $pages := where .Pages "Type" "in" site.Params.mainSections }} |         {{ $pages := where .Pages "Type" "in" site.Params.mainSections }} | ||||||
|         {{ range $pages }} |         {{ range $pages }} | ||||||
|             <div class="post-short-list h-entry"> |             <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> |                         <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" . }} |                         {{ partial "post-language-switcher.html" . }} | ||||||
|                     </header> |                     </header> | ||||||
|  |                 </div> | ||||||
|                 {{ partial "post-info.html" . }} |                 {{ partial "post-info.html" . }} | ||||||
|             </div> |             </div> | ||||||
|         {{ end }} |         {{ end }} | ||||||
|  |  | ||||||
|  | @ -8,11 +8,13 @@ | ||||||
|     {{ end }} |     {{ end }} | ||||||
| 
 | 
 | ||||||
|     <article class="post h-entry"> |     <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> |                 <h1 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}">{{ trim .Title  " " }}</h1> | ||||||
| 
 | 
 | ||||||
|                 {{ partial "post-language-switcher.html" . }} |                 {{ partial "post-language-switcher.html" . }} | ||||||
|             </header> |             </header> | ||||||
|  |         </div> | ||||||
|         <div class="content e-content"> |         <div class="content e-content"> | ||||||
|             {{ .Content }} |             {{ .Content }} | ||||||
|         </div> |         </div> | ||||||
|  |  | ||||||
|  | @ -1,5 +1,6 @@ | ||||||
| {{ if .IsTranslated }} | {{ if .IsTranslated }} | ||||||
|     {{ $pageLang := .Page.Lang}} |     {{ $pageLang := .Page.Lang}} | ||||||
|  |     <span> | ||||||
|         <ul class="post-translations"> |         <ul class="post-translations"> | ||||||
|             {{ range .AllTranslations }} |             {{ range .AllTranslations }} | ||||||
|                 {{ if eq .Lang $pageLang }} |                 {{ if eq .Lang $pageLang }} | ||||||
|  | @ -13,4 +14,5 @@ | ||||||
|                 {{ end }} |                 {{ end }} | ||||||
|             {{ end }} |             {{ end }} | ||||||
|         </ul> |         </ul> | ||||||
|  |     </span> | ||||||
| {{ end }} | {{ end }} | ||||||
|  | @ -1,8 +1,10 @@ | ||||||
| <article class="post-list h-feed"> | <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> |             <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> |         </header> | ||||||
|  |         {{ partial "post-language-switcher.html" . }} | ||||||
|  |     </div> | ||||||
| 
 | 
 | ||||||
|     {{ if not .Site.Params.disableSummary }} |     {{ if not .Site.Params.disableSummary }} | ||||||
|         <div class="content post-summary p-summary"> |         <div class="content post-summary p-summary"> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue