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

github.com/dewittn/hugo-html5up-alpha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNelson/Roberto <dewittn@gmail.com>2020-05-12 17:20:25 +0300
committerNelson/Roberto <dewittn@gmail.com>2020-05-12 17:20:25 +0300
commit24b4c90aac53d86cfdb66b1ca8293b2deec67a93 (patch)
tree95d2e96f9ec31dca90e0329d7be7b775c48b5ec8 /exampleSite
parent1eca6b1f54bd9a783361e70cf203b02d53ccd6d6 (diff)
Chages for posting on Github
- Moved elements layout into exampleSite dir - Updated config for demo site - Minor tweaks to footer and header - Added README.md, LICENSE, CONTRIBUTING.md and CHANGELOG.md
Diffstat (limited to 'exampleSite')
-rw-r--r--exampleSite/config/_default/config.toml5
-rw-r--r--exampleSite/config/production/config.toml2
-rw-r--r--exampleSite/layouts/section/elements.html16
3 files changed, 20 insertions, 3 deletions
diff --git a/exampleSite/config/_default/config.toml b/exampleSite/config/_default/config.toml
index 8cc446d..eb1765f 100644
--- a/exampleSite/config/_default/config.toml
+++ b/exampleSite/config/_default/config.toml
@@ -8,9 +8,10 @@ disqusShortname = ""
[params]
description = "Another fine responsive site template freebie by HTML5 UP."
images = ["images/pic01.jpg"]
- author = "Themefisher"
+ author = "Hugo Port: [Nelson/Roberto](https://nelsonroberto.com/)"
copyright = "© Untitled. All rights reserved."
- design = "Desing: [HTML5 UP](http://html5up.net/) | Hugo Port: [Nelson/Roberto](https://nelsonroberto.com/)."
+ design = "Design: [HTML5 UP](http://html5up.net/)"
+ mainSections = ["blog"]
# For Pages the .RelPermalink must match the menu .URL
diff --git a/exampleSite/config/production/config.toml b/exampleSite/config/production/config.toml
index cdfa10d..26bf4a9 100644
--- a/exampleSite/config/production/config.toml
+++ b/exampleSite/config/production/config.toml
@@ -1,3 +1,3 @@
# All other settings are inherited from _default/config.toml
# This way you can run a development and production versions without rewriting the config file
-baseURL = "https://hugo-theme-massively.netlify.com/" \ No newline at end of file
+baseURL = "https://hugo-html5up-alpha.nelsonroberto.com/" \ No newline at end of file
diff --git a/exampleSite/layouts/section/elements.html b/exampleSite/layouts/section/elements.html
new file mode 100644
index 0000000..03b349c
--- /dev/null
+++ b/exampleSite/layouts/section/elements.html
@@ -0,0 +1,16 @@
+{{ define "main" }}
+{{/* An example of custom layout. Displays each page in the elements folder as a <section> of the /elements page. */}}
+<header>
+ <h2>{{ .Title }}</h2>
+ <p>{{ .Description }}</p>
+</header>
+{{ range .Pages }}
+<div class="row">
+ <div class="col-12">
+ <section class="box">
+ {{ .Content }}
+ </section>
+ </div>
+</div>
+{{ end }}
+{{ end }} \ No newline at end of file