~huyngo/huyngo.srht.site

ref: 687e0787abcd9b019da285534764acdab5e262df huyngo.srht.site/layouts/_default/single.html -rw-r--r-- 1.1 KiB
687e0787Ngô Ngọc Đức Huy Align center for comics 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{{ define "main" }}
{{ if .Menus }}
<nav class="post-navigation">
	{{ range .Menus }}
	<a href="{{ .URL | absLangURL }}" title="{{ .Title }}">{{ .Name }}</a>
	{{ end }}
</nav>
{{ end }}

<article class="post h-entry">
	<header class="post-header">
		{{ if in .Params.categories "comics" }}
		<center>
		{{ end}}
		<h1 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}">{{ trim .Title  " " }}</h1>
		{{ if in .Params.categories "comics" }}
		</center>
		{{ end}}
	</header>
	<div class="content e-content">
		<!-- Comics-->
		{{ if in .Params.categories "comics" }}
		<center>
		{{ partial "comicNav.html" . }}
		{{ .Content }}
		{{ partial "comicNav.html" . }}
		<center>
		{{ else }}
		<!-- normal content -->
		{{ .Content }}
			<!-- book reviews -->
			{{ if in .Params.categories "book review" }}
			<hr>
			{{ i18n "BookShare" }}
			{{ end }}
		{{ end }}
	</div>
	{{ partial "postInfo.html" . }}
</article>

{{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }}
	{{ partial "paginationPost.html" . }}
{{ end }}


{{ partial "custom-webring.html" }}

{{ end }}