Welcome to mirror list, hosted at ThFree Co, Russian Federation.

single.html « _default « layouts - github.com/curttimson/hugo-theme-dopetrope.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 18708b36bd9e76d9a6b54827d5a6d13dc2e4ae77 (plain)
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
{{ define "main" }}
	<div id="page-wrapper">

		<!-- Header -->
		<div id="header-wrapper">
			<div id="header">

				{{ partial "logo.html" . }}
				{{ partial "nav.html" . }}

			</div>
		</div>

		<!-- Main -->
		<div id="main-wrapper">
			<div class="container">
				{{ if and (or (eq .Site.Data.sidebar.content.position "left") (eq .Site.Data.sidebar.content.position "right")) (not (eq .Params.hidesidebar true)) }}
				<div class="row">
					{{ if eq .Site.Data.sidebar.content.position "left" }}
					<div class="4u 12u(mobile)">
						{{ partial "post/sidebar" . }}
					</div>
					{{ end }}
					<div class="8u 12u(mobile)">
						{{ partial "post/content.html" . }}
					</div>
					{{ if eq .Site.Data.sidebar.content.position "right" }}
					<div class="4u 12u(mobile)">
						{{ partial "post/sidebar" . }}
					</div>
					{{ end }}
				</div>
				{{ else }}
				{{ partial "post/content.html" . }}
				{{ end }}
			</div>
		</div>

		{{ partial "footer/index.html" . }}

	</div>

	{{ partial "scripts/index.html" . }}

{{ end }}