devel_custom_hugo_theme to master #4
20
site/themes/hugo_ff_theme/LICENSE
Normal file
20
site/themes/hugo_ff_theme/LICENSE
Normal file
@ -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.
|
2
site/themes/hugo_ff_theme/archetypes/default.md
Normal file
2
site/themes/hugo_ff_theme/archetypes/default.md
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
+++
|
||||||
|
+++
|
0
site/themes/hugo_ff_theme/layouts/404.html
Normal file
0
site/themes/hugo_ff_theme/layouts/404.html
Normal file
11
site/themes/hugo_ff_theme/layouts/_default/baseof.html
Normal file
11
site/themes/hugo_ff_theme/layouts/_default/baseof.html
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
{{- partial "head.html" . -}}
|
||||||
|
<body>
|
||||||
|
{{- partial "navigation.html" . -}}
|
||||||
|
<div class="container mb-5 w-75">
|
||||||
|
{{- block "main" . }}{{- end }}
|
||||||
|
</div>
|
||||||
|
{{- partial "footer.html" . -}}
|
||||||
|
</body>
|
||||||
|
</html>
|
15
site/themes/hugo_ff_theme/layouts/_default/list.html
Normal file
15
site/themes/hugo_ff_theme/layouts/_default/list.html
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{{ define "main" }}
|
||||||
|
<article class="pa3 pa4-ns nested-copy-line-height nested-img">
|
||||||
|
<section class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy mid-gray">
|
||||||
|
{{- .Content -}}
|
||||||
|
</section>
|
||||||
|
<section class="flex-ns flex-wrap justify-around mt5">
|
||||||
|
{{ range .Paginator.Pages }}
|
||||||
|
<div class="relative w-100 w-30-l mb4 bg-white">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
</section>
|
||||||
|
{{- template "_internal/pagination.html" . -}}
|
||||||
|
</article>
|
||||||
|
{{ end }}
|
5
site/themes/hugo_ff_theme/layouts/index.html
Normal file
5
site/themes/hugo_ff_theme/layouts/index.html
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{{ define "main" }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{ end }}
|
4
site/themes/hugo_ff_theme/layouts/page/single.html
Normal file
4
site/themes/hugo_ff_theme/layouts/page/single.html
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{{ define "header" }}{{ partial "page-header.html" . }}{{ end }}
|
||||||
|
{{ define "main" }}
|
||||||
|
{{ .Content }}
|
||||||
|
{{ end }}
|
18
site/themes/hugo_ff_theme/layouts/partials/footer.html
Normal file
18
site/themes/hugo_ff_theme/layouts/partials/footer.html
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
|
||||||
|
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
|
||||||
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
<div class="container py-4">
|
||||||
|
<h3>Rechtliche Hinweise</h3>
|
||||||
|
<ul class="navbar-nav mr-auto mb-5">
|
||||||
|
{{ if .Site.Menus.footer }}
|
||||||
|
{{ range .Site.Menus.footer }}
|
||||||
|
<li ><a href="{{ .URL }}" class="link_over_magenta">{{ .Name }}</a></li>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
© 2019 Freifunk Rhein-Sieg e.V.
|
||||||
|
</div>
|
||||||
|
</footer>
|
8
site/themes/hugo_ff_theme/layouts/partials/head.html
Normal file
8
site/themes/hugo_ff_theme/layouts/partials/head.html
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
|
<title>{{.Title}}</title>
|
||||||
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
|
||||||
|
<link rel="stylesheet" href="/css/custom.css">
|
||||||
|
</head>
|
24
site/themes/hugo_ff_theme/layouts/partials/navigation.html
Normal file
24
site/themes/hugo_ff_theme/layouts/partials/navigation.html
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<!-------------------------------------------------------
|
||||||
|
Navbar
|
||||||
|
-------------------------------------------------------->
|
||||||
|
<nav class="navbar navbar-expand-lg navbar-light bg-light m-0 p-0">
|
||||||
|
<a class="navbar-brand my-1 mx-4" href="/">Freifunk Rhein-Sieg e.V.</a>
|
||||||
|
<button class="navbar-toggler m-3" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||||
|
<ul class="navbar-nav ml-auto">
|
||||||
|
{{ if .Site.Menus.main }}
|
||||||
|
{{ range .Site.Menus.main }}
|
||||||
|
<li class="nav-item m-0">
|
||||||
|
<a class="nav-link p-3" href="{{ .URL }}">{{ .Name }}</a>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
<!-------------------------------------------------------
|
||||||
|
End Navbar
|
||||||
|
-------------------------------------------------------->
|
@ -0,0 +1,4 @@
|
|||||||
|
<sponsor>
|
||||||
|
<a href="{{ .Get "link" }}" class="p-3 d-inline-block">
|
||||||
|
<img src="{{ .Get "img" }}" width="250px" alt="{{ .Get "alt" }}"></a>
|
||||||
|
</sponsor>
|
41
site/themes/hugo_ff_theme/static/css/custom.css
Normal file
41
site/themes/hugo_ff_theme/static/css/custom.css
Normal file
@ -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;
|
||||||
|
}
|
21
site/themes/hugo_ff_theme/theme.toml
Normal file
21
site/themes/hugo_ff_theme/theme.toml
Normal file
@ -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 = ""
|
Loading…
Reference in New Issue
Block a user