master
Ingolf Wagner 2018-06-18 09:02:01 +02:00
commit 94c1a875b1
21 changed files with 202 additions and 0 deletions

6
archetypes/default.md Normal file
View File

@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

3
config.toml Normal file
View File

@ -0,0 +1,3 @@
baseURL = "http://example.org/"
languageCode = "en-us"
title = "My New Hugo Site"

29
content/kubernetes.md Normal file
View File

@ -0,0 +1,29 @@
---
title: "Kubernetes"
date: 2018-06-18T08:56:23+02:00
tags: ["kubernetes", "tinc", "nixos"]
draft: false
---
# My Kubernetes Setup
Here I describe how I setup my home network.
## Tinc
how tinc is configured
## How Kubernetes is configured
### diagram
Hier
### flannel usage
write me
### how to make the services work ?
todo

20
themes/first/LICENSE.md Normal file
View File

@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2018 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.

View File

@ -0,0 +1,2 @@
+++
+++

View File

Binary file not shown.

View File

@ -0,0 +1,17 @@
<html>
<head> <title> {{ .Title }} </title> </head>
<body>
<p>
{{ .Content }}
</p>
<p>
<ul>
{{ range .Pages }}
<li> <a href="{{.URL}}"> {{ .Title }} </a> </li>
{{ end }}
</ul>
</p>
</body>
</html>

View File

@ -0,0 +1,9 @@
<html>
<head> <title> {{ .Title }} </title> </head>
<body>
<h1> {{ .Title }} </h1>
{{ .Content }}
</body>
</html>

21
themes/first/theme.toml Normal file
View File

@ -0,0 +1,21 @@
# theme.toml template for a Hugo theme
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
name = "First"
license = "MIT"
licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE.md"
description = ""
homepage = "http://example.com/"
tags = []
features = []
min_version = "0.36.1"
[author]
name = ""
homepage = ""
# If porting an existing theme
[original]
name = ""
homepage = ""
repo = ""

View File

@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2017 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.

View File

@ -0,0 +1,7 @@
# Giraffe Academy - Hugo Theme
A "Hugo - Static Site Generator" theme used in Giraffe Academy's Hugo course
## Usage
Clone this repository into the themes/ folder. If you want you can rename it to something of your choosing, then modify the config.toml file with the following line:
theme = "ga-hugo-theme"

View File

@ -0,0 +1,2 @@
+++
+++

View File

@ -0,0 +1 @@
<h1>404 - Page Not Found</h1>

View File

@ -0,0 +1,26 @@
<html>
<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>Document</title>
</head>
<body>
{{ partial "header" (dict "Kind" .Kind "Template" "List") }}
{{.Content}}
{{ range .Pages }}
<div style="border: 1px solid black; margin:10px; padding:10px; ">
<div style="font-size:20px;">
<a href="{{.URL}}">{{.Title}}</a>
</div>
<div style="color:grey; font-size:16px;">{{ dateFormat "Monday, Jan 2, 2006" .Date }}</div>
<div style="color:grey; font-size:16px;">{{ if .Params.tags }}<strong>Tags:</strong> {{range .Params.tags}}<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a> {{end}}{{end}}</div>
<div style="color:grey; font-size:16px;">{{ if .Params.categories }}<strong>Categories:</strong> {{range .Params.categories}}<a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}">{{ . }}</a> {{end}}{{end}}</div>
<div style="color:grey; font-size:16px;">{{ if .Params.moods }}<strong>Moods:</strong> {{range .Params.moods}}<a href="{{ "/moods/" | relLangURL }}{{ . | urlize }}">{{ . }}</a> {{end}}{{end}}</div>
<p style="font-size:18px;">{{.Summary}}</p>
</div>
{{ end }}
{{ partial "footer" . }}
</body>
</html>

View File

@ -0,0 +1,19 @@
<html>
<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>Document</title>
</head>
<body>
{{ partial "header" (dict "Kind" .Kind "Template" "Single") }}
<div style="margin:25px;">
<h1>{{.Title}}</h1>
<div style="color:grey; font-size:16px;">{{ dateFormat "Monday, Jan 2, 2006" .Date }}</div>
<div style="color:grey; font-size:16px;">{{if .Params.author}}Author: {{.Params.Author}}{{end}}</div>
<div style="font-size:18px;">{{.Content}}</div>
</div>
{{ partial "footer" . }}
</body>
</html>

View File

@ -0,0 +1,4 @@
<div style="height:35px;"></div>
<div style=" position:fixed; color: white; height:35px; background-color:#757575; bottom:0px; text-align:center; width:99%">
<p style="margin:10px; "><a style="color: white; " target="_blank" href="http://www.giraffeacademy.com/">Giraffe Academy</a> - Hugo Theme</p>
</div>

View File

@ -0,0 +1,3 @@
<div style="text-align: center; height: 75px; padding:1px; text-transform:capitalize; background-color:#42a5f5; color:white">
<h1 style="margin-bottom:-10px; "><a style="text-decoration: none; color:white;"href="/">{{.Template}} Template - {{.Kind}}</a></h1>
</div>

View File

@ -0,0 +1,13 @@
# theme.toml template for a Hugo theme
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
name = "GiraffeAcademy Theme"
license = "MIT"
description = "A theme used in the Giraffe Academy Hugo course"
tags = []
features = []
min_version = "0.25.1"
[author]
name = "Mike Dane"
homepage = "http://www.giraffeacademy.com"