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

github.com/gonnux/hugo-apps-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByeonggon Lee <gonny952@gmail.com>2018-10-31 13:08:55 +0300
committerByeonggon Lee <gonny952@gmail.com>2018-10-31 13:08:55 +0300
commitb5567cf415e6fc94f0265a6a7f4d3e404647ba06 (patch)
treed8161288c9b3c2755d38d0fd327bf82ab863b0d7 /layouts
parent8e0c555c7016ff8b172d13ea4eed7634546e8105 (diff)
Modified templates
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html27
-rw-r--r--layouts/_default/list.html5
-rw-r--r--layouts/_default/single.html8
-rw-r--r--layouts/index.html1
4 files changed, 34 insertions, 7 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 5f8e2ec..0eabbe1 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,11 +1,24 @@
+{{ if .Params.full }}
+ {{- block "main" . }}{{- end }}
+{{ else }}
<!DOCTYPE html>
<html>
+{{/*
{{- partial "head.html" . -}}
- <body>
- {{- partial "header.html" . -}}
- <div id="content">
- {{- block "main" . }}{{- end }}
- </div>
- {{- partial "footer.html" . -}}
- </body>
+*/}}
+<body>
+{{/*
+ {{- partial "header.html" . -}}
+*/}}
+ <h1> header from baseof.html </h1>
+ <div id="content">
+ {{- block "main" . }}{{- end }}
+ </div>
+ <h1> footer from baseof.html </h1>
+{{/*
+ {{- partial "footer.html" . -}}
+*/}}
+</body>
</html>
+
+{{ end }}
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index e69de29..1262b31 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -0,0 +1,5 @@
+{{ define "main" }}
+ {{ range .Pages }}
+ <h1>{{ .Title }}</h1>
+ {{ end }}
+{{ end }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index e69de29..d8a3a59 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -0,0 +1,8 @@
+{{ define "main" }}
+{{ if .Params.full }}
+ <h1> true </h1>
+{{ else }}
+ <h1> false </h1>
+{{ end }}
+ {{ .Content }}
+{{ end }}
diff --git a/layouts/index.html b/layouts/index.html
index e69de29..995b211 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -0,0 +1 @@
+<h1> INDEX PAGE </h1>