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

github.com/danielkvist/hugo-terrassa-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielkvist <d94.zaragoza@gmail.com>2019-01-11 23:28:22 +0300
committerdanielkvist <d94.zaragoza@gmail.com>2019-01-11 23:28:22 +0300
commit1e5e8bbed8b438f907fe329326a52813c0a78add (patch)
tree99c75275d4cbb03edbb01ca484d3b0f5d376dfd5
parent5edaf2098174517d8e25e964b21657406a8a23b3 (diff)
add section partials and dummy content
-rw-r--r--exampleSite/config.toml2
-rw-r--r--exampleSite/content/sections/simple-choices.md8
-rw-r--r--exampleSite/content/sections/simple-people.md10
-rw-r--r--exampleSite/content/sections/simple-values.md8
-rw-r--r--exampleSite/content/sections/simple.md8
-rw-r--r--layouts/index.html1
-rw-r--r--layouts/partials/section.html6
-rw-r--r--layouts/partials/sections.html10
-rw-r--r--layouts/partials/separator.html3
9 files changed, 55 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 897ce22..450d08c 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -52,7 +52,7 @@ themesDir = "../.." # Not necessary on production sites
codepen = "https://codepen.io/john"
instagram = "https://instagram.com/john"
pinterest = ""
- youtube = "https://youtube.com/channel/john"
+ youtube = ""
linkedin = ""
weibo = ""
mastodon = ""
diff --git a/exampleSite/content/sections/simple-choices.md b/exampleSite/content/sections/simple-choices.md
new file mode 100644
index 0000000..426f964
--- /dev/null
+++ b/exampleSite/content/sections/simple-choices.md
@@ -0,0 +1,8 @@
+---
+title : "Simple Choices"
+description: ""
+draft: true
+weight: 2
+---
+
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. \ No newline at end of file
diff --git a/exampleSite/content/sections/simple-people.md b/exampleSite/content/sections/simple-people.md
new file mode 100644
index 0000000..4e55e1f
--- /dev/null
+++ b/exampleSite/content/sections/simple-people.md
@@ -0,0 +1,10 @@
+---
+title : "Simple People"
+description: ""
+draft: true
+weight: 3
+---
+
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. \ No newline at end of file
diff --git a/exampleSite/content/sections/simple-values.md b/exampleSite/content/sections/simple-values.md
new file mode 100644
index 0000000..1bd10f2
--- /dev/null
+++ b/exampleSite/content/sections/simple-values.md
@@ -0,0 +1,8 @@
+---
+title : "Simple Values"
+description: ""
+draft: true
+weight: 1
+---
+
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. \ No newline at end of file
diff --git a/exampleSite/content/sections/simple.md b/exampleSite/content/sections/simple.md
new file mode 100644
index 0000000..d1374d0
--- /dev/null
+++ b/exampleSite/content/sections/simple.md
@@ -0,0 +1,8 @@
+---
+title : "Simple"
+description: ""
+draft: true
+weight: 4
+---
+
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. \ No newline at end of file
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