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

github.com/caressofsteel/hugo-story.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author⚔️ DR ⚔️ <46758080+caressofsteel@users.noreply.github.com>2021-02-02 04:31:29 +0300
committerGitHub <noreply@github.com>2021-02-02 04:31:29 +0300
commit0287eda06aee989800ce27121522c48bf5468ec2 (patch)
treebb8c0ba2236efc43a545b49cc6c6470e138f04fe
parentdcc16e51cc6ebd1b399e7770e090c25a20d3b8c9 (diff)
parent765f229b303fec230caa0b32bf5de8a01dc29eb7 (diff)
Merge pull request #7 from applikationsprogramvara/add_template
Finalizing bringing in templates
-rw-r--r--layouts/_default/baseof.html24
-rw-r--r--layouts/index.html48
-rw-r--r--layouts/partials/template/footer.html30
3 files changed, 52 insertions, 50 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 0000000..06de0f0
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,24 @@
+<!DOCTYPE HTML>
+<!--
+ Hugo Story by CaressOfSteel
+ A (modular, highly tweakable) responsive one-page theme for Hugo.
+ Ported from Story by HTML5UP.
+ This Hugo theme is licensed under the Creative Commons Attribution 3.0 License.
+-->
+<html>
+
+ {{ partial "template/head" . }}
+
+ <body class="is-preload">
+
+ <!-- Wrapper -->
+ <div id="wrapper" class="divided">
+ {{- block "main" . }}{{- end }}
+ <!-- Wrapper -->
+ </div>
+
+ {{ template "_internal/google_analytics.html" . }}
+ {{ partial "template/scripts" . }}
+
+ </body>
+</html> \ No newline at end of file
diff --git a/layouts/index.html b/layouts/index.html
index fd1edbf..da8f08c 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,35 +1,13 @@
-<!DOCTYPE HTML>
-<!--
- Hugo Story by CaressOfSteel
- A (modular, highly tweakable) responsive one-page theme for Hugo.
- Ported from Story by HTML5UP.
- This Hugo theme is licensed under the Creative Commons Attribution 3.0 License.
--->
-<html>
-
- {{ partial "template/head" . }}
-
- <body class="is-preload">
-
- <!-- Wrapper -->
- <div id="wrapper" class="divided">
-
- <!-- Main -->
- {{ partial "banner" site.Data.banner }}
- {{ partial "spotlight" site.Data.spotlight1 }}
- {{ partial "spotlight" site.Data.spotlight2 }}
- {{ partial "spotlight" site.Data.spotlight3 }}
- {{ partial "gallery" site.Data.gallery }}
- {{ partial "items" site.Data.items }}
- {{ partial "elements" . }}
- {{ partial "elements_reference" . }}
- {{ partial "template/footer" . }}
-
- <!-- Wrapper -->
- </div>
-
- {{ template "_internal/google_analytics.html" . }}
- {{ partial "template/scripts" . }}
-
- </body>
-</html> \ No newline at end of file
+{{ define "main" }}
+
+ {{ partial "banner" site.Data.banner }}
+ {{ partial "spotlight" site.Data.spotlight1 }}
+ {{ partial "spotlight" site.Data.spotlight2 }}
+ {{ partial "spotlight" site.Data.spotlight3 }}
+ {{ partial "gallery" site.Data.gallery }}
+ {{ partial "items" site.Data.items }}
+ {{ partial "elements" . }}
+ {{ partial "elements_reference" . }}
+ {{ partial "template/footer" . }}
+
+{{ end }} \ No newline at end of file
diff --git a/layouts/partials/template/footer.html b/layouts/partials/template/footer.html
index d050cde..671e3bd 100644
--- a/layouts/partials/template/footer.html
+++ b/layouts/partials/template/footer.html
@@ -1,15 +1,15 @@
- <!-- Footer -->
- <footer class="wrapper style1 align-center">
- <div class="inner">
- <ul class="icons">
- <li>{{ with .Site.Params.social.github }}<a target="_blank" href="{{.}}" class="icon brands style2 fa-github"><span class="label">Github</span></a></li>{{end}}
- <li>{{ with .Site.Params.social.twitter }}<a target="_blank" href="{{.}}" class="icon brands style2 fa-twitter"><span class="label">Twitter</span></a></li>{{end}}
- <li>{{ with .Site.Params.social.instagram }}<a target="_blank" href="{{.}}" class="icon brands style2 fa-instagram"><span class="label">Instagram</span></a></li>{{end}}
- <li>{{ with .Site.Params.social.linkedin }}<a target="_blank" href="{{.}}" class="icon brands style2 fa-linkedin"><span class="label">LinkedIn</span></a></li>{{end}}
- <li>{{ with .Site.Params.social.email }}<a target="_blank" href="mailto:{{.}}" class="fav icon style2 fa-envelope"><span class="label">Email</span></a></li>{{end}}
- </ul>
- <p>Hugo Story &copy; 2020 <a target="_blank" href="https://github.com/caressofsteel/">CaressOfSteel</a><span class="footerspacer icon fad fa-diamond"></span>
- Ported from <a target="_blank" href="https://html5up.net/uploads/demos/story/">Story</a> by HTML5UP<span class="footerspacer icon fad fa-diamond"></span>
- Images courtesy of <a target="_blank" href="https://unsplash.com">Unsplash</a></p>
- </div>
- </footer> \ No newline at end of file
+<!-- Footer -->
+<footer class="wrapper style1 align-center">
+ <div class="inner">
+ <ul class="icons">
+ {{ with .Site.Params.social.github }}<li><a target="_blank" href="{{.}}" class="icon brands style2 fa-github"><span class="label">Github</span></a></li>{{end}}
+ {{ with .Site.Params.social.twitter }}<li><a target="_blank" href="{{.}}" class="icon brands style2 fa-twitter"><span class="label">Twitter</span></a></li>{{end}}
+ {{ with .Site.Params.social.instagram }}<li><a target="_blank" href="{{.}}" class="icon brands style2 fa-instagram"><span class="label">Instagram</span></a></li>{{end}}
+ {{ with .Site.Params.social.linkedin }}<li><a target="_blank" href="{{.}}" class="icon brands style2 fa-linkedin"><span class="label">LinkedIn</span></a></li>{{end}}
+ {{ with .Site.Params.social.email }}<li><a target="_blank" href="mailto:{{.}}" class="fav icon style2 fa-envelope"><span class="label">Email</span></a></li>{{end}}
+ </ul>
+ <p>Hugo Story &copy; 2020 <a target="_blank" href="https://github.com/caressofsteel/">CaressOfSteel</a><span class="footerspacer icon fad fa-diamond"></span>
+ Ported from <a target="_blank" href="https://html5up.net/uploads/demos/story/">Story</a> by HTML5UP<span class="footerspacer icon fad fa-diamond"></span>
+ Images courtesy of <a target="_blank" href="https://unsplash.com">Unsplash</a></p>
+</div>
+</footer> \ No newline at end of file