diff options
author | danielkvist <d94.zaragoza@gmail.com> | 2019-01-11 23:28:22 +0300 |
---|---|---|
committer | danielkvist <d94.zaragoza@gmail.com> | 2019-01-11 23:28:22 +0300 |
commit | 1e5e8bbed8b438f907fe329326a52813c0a78add (patch) | |
tree | 99c75275d4cbb03edbb01ca484d3b0f5d376dfd5 /layouts | |
parent | 5edaf2098174517d8e25e964b21657406a8a23b3 (diff) |
add section partials and dummy content
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/index.html | 1 | ||||
-rw-r--r-- | layouts/partials/section.html | 6 | ||||
-rw-r--r-- | layouts/partials/sections.html | 10 | ||||
-rw-r--r-- | layouts/partials/separator.html | 3 |
4 files changed, 20 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html index 2a4cb0f..8575e89 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,3 +1,4 @@ {{ define "main" }} {{ partial "hero.html" . }} +{{ partial "sections.html" . }} {{ end }}
\ No newline at end of file diff --git a/layouts/partials/section.html b/layouts/partials/section.html new file mode 100644 index 0000000..ef05877 --- /dev/null +++ b/layouts/partials/section.html @@ -0,0 +1,6 @@ +<section class="section"> + <h1 class="section__title">{{ .Title }}</h1> + <div class="section__content"> + {{ .Content }} + </div> +</section>
\ No newline at end of file diff --git a/layouts/partials/sections.html b/layouts/partials/sections.html new file mode 100644 index 0000000..6d4cfc3 --- /dev/null +++ b/layouts/partials/sections.html @@ -0,0 +1,10 @@ +{{ $items := (where $.Site.RegularPages "Type" "sections") }} +{{ $len := (len $items) }} + +{{ range $i, $e := $items }} +{{ partial "section.html" .}} + +{{ if ne (add $i 1) $len }} +{{ partial "separator.html" . }} +{{ end }} +{{ end}}
\ No newline at end of file diff --git a/layouts/partials/separator.html b/layouts/partials/separator.html new file mode 100644 index 0000000..e890b22 --- /dev/null +++ b/layouts/partials/separator.html @@ -0,0 +1,3 @@ +<div class="separator"> + <i class="fas fa-circle"></i> +</div>
\ No newline at end of file |