From 033cb2f47e0490b754cc4edaeeb7eb8c49da249e Mon Sep 17 00:00:00 2001 From: Andreas Kurm Date: Sat, 8 Feb 2020 19:34:06 +0100 Subject: [PATCH] Added custom hugo theme --- site/themes/hugo_ff_theme/LICENSE | 20 +++++++++ .../hugo_ff_theme/archetypes/default.md | 2 + site/themes/hugo_ff_theme/layouts/404.html | 0 .../layouts/_default/baseof.html | 11 +++++ .../hugo_ff_theme/layouts/_default/list.html | 15 +++++++ .../layouts/_default/single.html | 0 site/themes/hugo_ff_theme/layouts/index.html | 5 +++ .../hugo_ff_theme/layouts/page/single.html | 4 ++ .../layouts/partials/footer.html | 18 ++++++++ .../hugo_ff_theme/layouts/partials/head.html | 8 ++++ .../layouts/partials/navigation.html | 24 +++++++++++ .../layouts/shortcodes/sponsor.html | 4 ++ .../hugo_ff_theme/static/css/custom.css | 41 +++++++++++++++++++ site/themes/hugo_ff_theme/theme.toml | 21 ++++++++++ 14 files changed, 173 insertions(+) create mode 100644 site/themes/hugo_ff_theme/LICENSE create mode 100644 site/themes/hugo_ff_theme/archetypes/default.md create mode 100644 site/themes/hugo_ff_theme/layouts/404.html create mode 100644 site/themes/hugo_ff_theme/layouts/_default/baseof.html create mode 100644 site/themes/hugo_ff_theme/layouts/_default/list.html create mode 100644 site/themes/hugo_ff_theme/layouts/_default/single.html create mode 100644 site/themes/hugo_ff_theme/layouts/index.html create mode 100644 site/themes/hugo_ff_theme/layouts/page/single.html create mode 100644 site/themes/hugo_ff_theme/layouts/partials/footer.html create mode 100644 site/themes/hugo_ff_theme/layouts/partials/head.html create mode 100644 site/themes/hugo_ff_theme/layouts/partials/navigation.html create mode 100644 site/themes/hugo_ff_theme/layouts/shortcodes/sponsor.html create mode 100644 site/themes/hugo_ff_theme/static/css/custom.css create mode 100644 site/themes/hugo_ff_theme/theme.toml diff --git a/site/themes/hugo_ff_theme/LICENSE b/site/themes/hugo_ff_theme/LICENSE new file mode 100644 index 0000000..faff36e --- /dev/null +++ b/site/themes/hugo_ff_theme/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2020 YOUR_NAME_HERE + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/site/themes/hugo_ff_theme/archetypes/default.md b/site/themes/hugo_ff_theme/archetypes/default.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/site/themes/hugo_ff_theme/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/site/themes/hugo_ff_theme/layouts/404.html b/site/themes/hugo_ff_theme/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/site/themes/hugo_ff_theme/layouts/_default/baseof.html b/site/themes/hugo_ff_theme/layouts/_default/baseof.html new file mode 100644 index 0000000..6f525d9 --- /dev/null +++ b/site/themes/hugo_ff_theme/layouts/_default/baseof.html @@ -0,0 +1,11 @@ + + + {{- partial "head.html" . -}} + + {{- partial "navigation.html" . -}} +
+ {{- block "main" . }}{{- end }} +
+ {{- partial "footer.html" . -}} + + diff --git a/site/themes/hugo_ff_theme/layouts/_default/list.html b/site/themes/hugo_ff_theme/layouts/_default/list.html new file mode 100644 index 0000000..51720d0 --- /dev/null +++ b/site/themes/hugo_ff_theme/layouts/_default/list.html @@ -0,0 +1,15 @@ +{{ define "main" }} +
+
+ {{- .Content -}} +
+
+ {{ range .Paginator.Pages }} +
+ +
+ {{ end }} +
+ {{- template "_internal/pagination.html" . -}} +
+{{ end }} \ No newline at end of file diff --git a/site/themes/hugo_ff_theme/layouts/_default/single.html b/site/themes/hugo_ff_theme/layouts/_default/single.html new file mode 100644 index 0000000..e69de29 diff --git a/site/themes/hugo_ff_theme/layouts/index.html b/site/themes/hugo_ff_theme/layouts/index.html new file mode 100644 index 0000000..c0e231e --- /dev/null +++ b/site/themes/hugo_ff_theme/layouts/index.html @@ -0,0 +1,5 @@ +{{ define "main" }} + + + +{{ end }} \ No newline at end of file diff --git a/site/themes/hugo_ff_theme/layouts/page/single.html b/site/themes/hugo_ff_theme/layouts/page/single.html new file mode 100644 index 0000000..581a1c5 --- /dev/null +++ b/site/themes/hugo_ff_theme/layouts/page/single.html @@ -0,0 +1,4 @@ +{{ define "header" }}{{ partial "page-header.html" . }}{{ end }} +{{ define "main" }} +{{ .Content }} +{{ end }} diff --git a/site/themes/hugo_ff_theme/layouts/partials/footer.html b/site/themes/hugo_ff_theme/layouts/partials/footer.html new file mode 100644 index 0000000..558dc65 --- /dev/null +++ b/site/themes/hugo_ff_theme/layouts/partials/footer.html @@ -0,0 +1,18 @@ + + + + + + \ No newline at end of file diff --git a/site/themes/hugo_ff_theme/layouts/partials/head.html b/site/themes/hugo_ff_theme/layouts/partials/head.html new file mode 100644 index 0000000..dceeb79 --- /dev/null +++ b/site/themes/hugo_ff_theme/layouts/partials/head.html @@ -0,0 +1,8 @@ + + + + + {{.Title}} + + + \ No newline at end of file diff --git a/site/themes/hugo_ff_theme/layouts/partials/navigation.html b/site/themes/hugo_ff_theme/layouts/partials/navigation.html new file mode 100644 index 0000000..e9a5052 --- /dev/null +++ b/site/themes/hugo_ff_theme/layouts/partials/navigation.html @@ -0,0 +1,24 @@ + + + \ No newline at end of file diff --git a/site/themes/hugo_ff_theme/layouts/shortcodes/sponsor.html b/site/themes/hugo_ff_theme/layouts/shortcodes/sponsor.html new file mode 100644 index 0000000..0820eae --- /dev/null +++ b/site/themes/hugo_ff_theme/layouts/shortcodes/sponsor.html @@ -0,0 +1,4 @@ + + + {{ .Get + \ No newline at end of file diff --git a/site/themes/hugo_ff_theme/static/css/custom.css b/site/themes/hugo_ff_theme/static/css/custom.css new file mode 100644 index 0000000..f466f47 --- /dev/null +++ b/site/themes/hugo_ff_theme/static/css/custom.css @@ -0,0 +1,41 @@ +body{ + font-family: 'robota', sans-serif; + font-size: 90%; +} + +h1{margin: 1em;text-align: center;font-weight: 100;} +h2{margin-top: 2em;} +h3{margin-top: 1em;} + +a{color:#009ee0;} +a:hover{color:#009ee0;text-decoration: underline;} +a:visited{color:#009ee0;} + +a.link_over_magenta{color:#fff;} +a.link_over_magenta:hover{color:#fff;text-decoration: underline;} +a.link_over_magenta:visited{color:#fff;} + +footer{ + width: 100%; + background-color: #dc0067; + color: #fff; +} + +.navbar{ + background-color: #dc0067!important; + color : #fff!important; +} + +.navbar a{color : #fff!important;} + +.nav-item:hover{ + background-color : hsl(332, 100%, 40%)!important; +} + +.navbar-toggler{ + border-color: #fff!important; +} + +.navbar-toggler-icon{ + background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")!important; +} diff --git a/site/themes/hugo_ff_theme/theme.toml b/site/themes/hugo_ff_theme/theme.toml new file mode 100644 index 0000000..aabf5b0 --- /dev/null +++ b/site/themes/hugo_ff_theme/theme.toml @@ -0,0 +1,21 @@ +# theme.toml template for a Hugo theme +# See https://github.com/gohugoio/hugoThemes#themetoml for an example + +name = "Hugo_ff_theme" +license = "MIT" +licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE" +description = "" +homepage = "localhost" +tags = [] +features = [] +min_version = "0.41" + +[author] + name = "" + homepage = "" + +# If porting an existing theme +[original] + name = "" + homepage = "" + repo = ""