First clean commit

This commit is contained in:
Eorn 2020-04-12 10:16:04 +02:00
commit aec8a123a4
22 changed files with 763 additions and 0 deletions

20
LICENSE Normal file
View File

@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2019 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
archetypes/default.md Normal file
View File

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

30
i18n/en.toml Normal file
View File

@ -0,0 +1,30 @@
[categories]
other = "Categories"
[recent-posts]
other = "Recent posts"
[tags]
other = "Tags"
[poweredby]
other = "Brooding made possible by <a href=\"https://gohugo.io\">Hugo</a> &amp; <a href=\"https://forge.goe.land/eorn/simple-goeland\">Simple-Goeland</a>."
[publishedIn]
other = "Published in"
[on]
other = "on"
[readingTime]
other = "Reading time"
[readingTimeValue]
one = "~1 min"
other = "~{{ .Count }} mins"
[recentContent]
other = "Recent content on"
[readMore]
other = "Read more"

31
i18n/fr.toml Normal file
View File

@ -0,0 +1,31 @@
[categories]
other = "Catégories"
[recent-posts]
other = "Billets récents"
[tags]
other = "Tags"
[poweredby]
other = "Couvaison rendue possible par <a href=\"https://gohugo.io\">Hugo</a> &amp; <a href=\"https://forge.goe.land/eorn/simple-goeland\">Simple-Goeland</a>."
[publishedIn]
other = "Publié dans"
[on]
other = "le"
[readingTime]
other = "Durée de lecture"
[readingTimeValue]
one = "~1 min"
other = "~{{ .Count }} mins"
[recentContent]
other = "Contenu récent sur"
[readMore]
other = "Lire la suite"

0
layouts/404.html Normal file
View File

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<div id="content">
{{- block "main" . }}{{- end }}
</div>
{{- partial "footer.html" . -}}
</body>
</html>

View File

@ -0,0 +1,39 @@
{{- $pctx := . -}}
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
{{- $pages := slice -}}
{{- if or $.IsHome $.IsSection -}}
{{- $pages = $pctx.RegularPages -}}
{{- else -}}
{{- $pages = $pctx.Pages -}}
{{- end -}}
{{- $limit := .Site.Params.rss.limit -}}
{{- if ge $limit 1 -}}
{{- $pages = $pages | first $limit -}}
{{- end -}}
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<description>{{ i18n "recentContent" }} {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }} {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
{{ range $pages }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Params.rss.authorName }}<author>{{.}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>{{ .Content | html }}</description>
</item>
{{ end }}
</channel>
</rss>

View File

@ -0,0 +1 @@
{{ template "index.html" . }}

View File

@ -0,0 +1,26 @@
{{ partial "header" . }}
{{ partial "nav" . }}
{{ partial "sidebar" . }}
<section class="page-content">
<div class="container">
<article>
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
<div class="tags-list">
{{ if .Params.tags }}
{{ partial "tags" .Params.tags }}
{{ end }}
</div>
<span class="article-date">{{ i18n "publishedIn" }} <a href="{{ .CurrentSection.URL }}">{{ .CurrentSection.Name }}</a> {{ i18n "on" }} {{ .Date.Format "2006-01-02" }}. {{ i18n "readingTime" }} {{ i18n "readingTimeValue" .ReadingTime }}.</span>
<div class="post-content">
{{ .Content }}
{{ if .Site.Params.Info.related }}
<div class="related">{{ partial "related" . }}</div>
</div>
</article>
{{ end }}
</div>
</section>
{{ partial "footer" . }}

36
layouts/index.html Normal file
View File

@ -0,0 +1,36 @@
{{ partial "header" . }}
{{ partial "nav" . }}
{{ partial "sidebar" . }}
<section class="page-content">
<div class="container">
{{- $pctx := . -}}
{{ if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
{{- $pages := $pctx.RegularPages -}}
{{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }}
{{ range sort .Paginator.Pages }}
<article>
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
<div class="tags-list">
{{ if .Params.tags }}
{{ partial "tags" .Params.tags }}
{{ end }}
</div>
<span class="article-date">{{ i18n "publishedIn" }} <a href="{{ .CurrentSection.URL }}">{{ .CurrentSection.Name }}</a> {{ i18n "on" }} {{ .Date.Format "2006-01-02" }}. {{ i18n "readingTime" }} {{ i18n "readingTimeValue" .ReadingTime }}.</span>
<div class="post-content">
{{ if .Description }}
{{ .Description | plainify | safeHTML }}
<span class="button"><a href="{{ .Permalink }}">{{ i18n "readMore" }}</a></span>
{{ else }}
{{ .Summary | plainify | safeHTML }}
{{ if .Truncated }}
<span class="button"><a href="{{ .Permalink }}">{{ i18n "readMore" }}</a></span>
{{ end }}
{{ end }}
</div>
</article>
{{ end }}
</div>
{{ template "_internal/pagination.html" . }}
</section>
{{ partial "footer" . }}

View File

@ -0,0 +1,16 @@
</main>
<footer class="footer container">
<div class="has-text-centered">
<p>{{ .Site.Copyright | safeHTML }}</p>
{{ if .Site.Params.Info.poweredby }}
<p>{{ i18n "poweredby" | safeHTML }}</p>
{{ end }}
</div>
</footer>
{{ if .Site.Params.matomoAnalytics }}
{{- partial "analytitcs/matomo" . -}}
{{ end }}
</body>
</html>

View File

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" {{ with .Site.LanguageCode }} lang="{{ . }}"{{ end }}>
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
{{ if eq .IsHome false }}
<title>{{ .Title }} | {{ .Site.Title }}</title>
{{ else }}
<title>{{ .Site.Title }}</title>
{{ end }}
{{ if .Site.Params.Info.enableSocial }}
<!-- Social here. -->
{{ end }}
{{ if .Site.Params.rss }}
<link href="{{ .Site.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}
<link rel="stylesheet" href="{{ "css/style.css" | relURL }}"/>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="canonical" href="{{ .Permalink }}">
</head>
<body>

31
layouts/partials/nav.html Normal file
View File

@ -0,0 +1,31 @@
<div class="container" id="navbar">
<nav class="nav-main">
<div class="nav-top nav-left">
<h1>
<a href="{{ .Site.BaseURL }}">
{{ .Site.Title }}
</a>
</h1>
</div>
<div class="nav-top nav-right">
<nav class="nav-item level is-mobile">
{{- $social := ( .Site.Params.social ) -}}
{{- range $platform := $social.config.platforms -}}
{{- with $userLink := ( index $social $platform ) -}}
<a class="level-item" aria-label="{{ $platform }}" target="_blank" rel="noopener" href="{{ $userLink }}">
<span class="icon {{ $platform }}">
<i>
{{- partial "svg/icons" $platform -}}
</i>
</span>
</a>
{{- end -}}
{{- end -}}
{{- range $.Site.Home.AllTranslations }}
<a class="level-item" href="{{ .Permalink }}">{{ .Language.Lang }}</a>
{{- end }}
</nav>
</div>
</nav>
</div>

View File

@ -0,0 +1,9 @@
{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
<h3>Billets similaires</h3>
<ul>
{{ range . }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a> <span class="article-date">- {{ i18n "readingTimeValue" .ReadingTime }}</span></li>
{{ end }}
</ul>
{{ end }}

View File

@ -0,0 +1,15 @@
{{ $page := .currentPage }}
{{ range .menu }}
{{ $posts := (where .Pages "File.Dir" "in" .Dir) }}
{{ $postCount := len $posts }}
<li>
<a href="{{ .URL }}" class="{{ if or (.IsAncestor $page) (eq . $page) }}active{{ end }}">{{ .Name }}</a>
{{/* if ne $postCount 0 */}}{{/* $postCount */}}{{/* end */}}
<ul>
{{ if .Sections }}
{{ partial "section-menu.html" (dict "menu" .Sections "currentPage" $page) }}
{{ end }}
</ul>
</li>
{{ end }}

View File

@ -0,0 +1,46 @@
{{ template "structure-menu" (dict "currentLevel" $.Site "currentPage" .Page "level" 0 ) }}
{{ define "structure-menu" }}
{{ $level := .level }}
{{ $currentLevel := .currentLevel }}
{{ $currentPage := .currentPage }}
{{ $children := .currentLevel.Sections }}
{{ if $currentLevel.Pages }}
{{ range $currentLevel.Pages }}
{{ if not (eq 0 $level) }}
{{ $children = $children | append . }}
{{ else }}
{{ if and ( eq .Section "" ) ( not .IsHome ) }}
{{ $children = $children | append . }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ $url := "#" }}
{{ if gt $level 0 }}
{{ $url = $currentLevel.Permalink }}
{{ else }}
{{ $url = $currentLevel.BaseURL }}
{{ end }}
<a href="{{ $url }}">{{ $currentLevel.Title }}</a>
{{ if $children }}
<ol>
{{ range $children }}
<li>
{{ if .IsNode }}
{{ template "structure-menu" (dict "currentLevel" . "currentPage" $currentPage "level" (add 1 $level)) }}
{{ else }}
* <a href="{{ .Permalink }}">{{ .Title }}</a>
{{ end }}
</li>
{{ end }}
</ol>
{{ end }}
{{ end }}

View File

@ -0,0 +1,9 @@
{{ $currentPageName := .Page.Name }}
<div class="tags-list">
{{ range $name, $items := .Site.Taxonomies.tags }}
<span class="tag{{ if eq $currentPageName $name }} active{{ end }}">
<a href="{{ "/tags/" | relLangURL }}{{ $name | urlize }}">#{{ $name }}</a> ({{ len $items }})
</span>
{{ end }}
</div>

View File

@ -0,0 +1,10 @@
<main class="container flex">
<aside class="sidebar">
<h2>{{ i18n "categories" }}</h2>
{{- partial "section-menu.html" (dict "menu" .Site.Sections "currentPage" .Page) -}}
<br>
<h2>{{ i18n "tags" }}</h2>
{{- partial "section-tags.html" . -}}
</aside>

View File

@ -0,0 +1,17 @@
<svg width="24px" height="24px" stroke-linecap='round' stroke-linejoin='round' stroke-width='2' aria-hidden='true'>
{{ if eq "category" . }}
<path d="M22,19a2,2,0,0,1-2,2H4a2,2,0,0,1-2-2V5A2,2,0,0,1,4,3H9l2,3h9a2,2,0,0,1,2,2Z"/>
{{ else if eq "tag" . }}
<path d="M20.59,13.41l-7.17,7.17a2,2,0,0,1-2.83,0L2,12V2H12l8.59,8.59A2,2,0,0,1,20.59,13.41Z"/>
{{ else if eq "pleroma" . }}
<path d="M 6.3639366,0.01050336 A 1.8667213,1.8667213 0 0 0 4.4972158,1.8772247 V 23.990694 H 10.456365 V 0.01050336 Z m 7.1079014,0 V 12.0006 h 4.164224 a 1.8667213,1.8667213 0 0 0 1.866722,-1.866722 V 0.01050336 Z m 0,18.02104164 v 5.959149 h 4.164224 a 1.8667213,1.8667213 0 0 0 1.866722,-1.866721 v -4.092428 z"/>
{{ else if eq "pixelfed" . }}
<path d="m 11.984695,0.22506496 c -1.815628,0 -3.3299145,1.34106024 -3.6105556,3.08063064 C 6.9457153,2.274237 4.9273063,2.3965452 3.6436771,3.680175 2.360048,4.9638047 2.2381449,6.9810363 3.2691968,8.4094596 c 0.1879077,-0.029688 0.3786319,-0.049462 0.5746741,-0.049462 -0.1960422,0 -0.3867664,0.020544 -0.5746741,0.050644 -1.74201,0.2782028 -3.08534033,1.7921214 -3.08534033,3.6093764 0,1.817184 1.34349543,3.331876 3.08534033,3.610555 -1.0314587,1.428423 -0.9091488,3.446833 0.3744803,4.730463 1.2836291,1.283628 3.3020382,1.405938 4.7304623,0.374479 0.2806411,1.73957 1.7949276,3.080631 3.6105556,3.080631 1.815628,0 3.328735,-1.341061 3.609376,-3.080631 1.428424,1.031459 3.446834,0.909149 4.730463,-0.374479 1.283629,-1.28363 1.406345,-3.30204 0.37448,-4.730463 1.739569,-0.280641 3.08063,-1.794928 3.08063,-3.610555 0,-1.815628 -1.341061,-3.3291426 -3.08063,-3.6093764 C 21.730879,6.9822175 21.608163,4.9642145 20.324534,3.6801791 19.040905,2.3965452 17.022495,2.274237 15.594071,3.3056943 15.31343,1.5661252 13.800323,0.22506496 11.984695,0.22506496 Z M 10.352526,7.9513697 h 2.98171 c 1.946784,0 3.525766,1.5485218 3.525766,3.4586423 0,1.910121 -1.578982,3.458643 -3.525766,3.458643 h -2.065529 l -2.9499148,2.84393 V 9.9462423 c 0,-1.1019922 0.9105888,-1.9948726 2.0337338,-1.9948726 z"/>
{{ else if eq "gitea" . }}
<path d="m 4.2190154,6.1697971 c -1.8410965,-0.0051 -4.30822304,1.3110466 -4.17177579,4.6099739 0.21320668,5.154792 4.90941339,5.632983 6.78686019,5.674369 0.2059724,0.96689 2.4148822,4.301733 4.0502912,4.477438 h 7.16507 C 22.345798,20.609922 25.563199,6.3215752 23.178075,6.2672616 19.233863,6.4760981 16.895641,6.5810928 14.890831,6.5987348 V 11.05893 l -0.625068,-0.310433 -0.0042,-4.1473745 C 11.960557,6.6001633 9.9352669,6.4802 6.0911349,6.2672616 5.609953,6.2621598 4.9393467,6.1718582 4.2189185,6.1698175 Z M 4.4796269,7.9924915 C 4.551215,7.9915324 4.624488,7.9918997 4.6994772,7.9935131 4.9600967,10.634197 5.3852182,12.17917 6.2458048,14.539675 4.0505698,14.249495 2.1824379,13.532113 1.8388315,10.854246 1.661165,9.4696319 2.2603543,8.0225309 4.4796269,7.9920018 Z m 8.5384901,2.5975335 c 0.149763,0.002 0.301616,0.03703 0.44568,0.107035 l 0.747152,0.363074 -0.535972,1.097853 c -0.08178,-0.002 -0.163218,0.01133 -0.24028,0.03878 -0.348179,0.12534 -0.528837,0.509199 -0.403525,0.857375 0.02576,0.07092 0.06332,0.136789 0.111023,0.195133 l -0.923553,1.891457 c -0.07568,3.77e-4 -0.150753,0.01347 -0.222041,0.03888 -0.348178,0.12534 -0.528838,0.509199 -0.403526,0.857386 0.12534,0.348176 0.509191,0.52882 0.857376,0.40352 0.348178,-0.12534 0.528838,-0.509199 0.403526,-0.857375 -0.03366,-0.09285 -0.08738,-0.17696 -0.157364,-0.246559 l 0.900031,-1.843224 c 0.06595,0.0061 0.132477,0.0031 0.197427,-0.0092 0,0 1.205684,0.368511 1.340628,0.746952 0.128605,0.360635 -0.700411,1.990115 -0.700411,1.990115 -0.02459,0.0051 -0.04884,0.01265 -0.07266,0.02112 -0.348232,0.12534 -0.528903,0.50926 -0.403525,0.857488 0.12534,0.348176 0.50919,0.52882 0.857376,0.40352 0.348233,-0.12534 0.528904,-0.50927 0.403525,-0.857477 -0.06083,-0.16842 -0.186559,-0.305495 -0.349109,-0.380603 1.123267,-2.303855 1.109336,-2.329588 -0.607031,-3.141599 0.08016,-0.163002 0.0907,-0.351584 0.0292,-0.522514 -0.03167,-0.08724 -0.08112,-0.16689 -0.145203,-0.234008 l 0.527699,-1.080804 2.917055,1.417358 c 0.526864,0.256018 0.74493,0.88621 0.488934,1.413082 l -2.005661,4.127936 c -0.256001,0.526862 -0.886219,0.744932 -1.413083,0.488925 l -4.127924,-2.00576 C 10.007017,16.471904 9.7889478,15.84168 10.044949,15.314809 l 2.005761,-4.127814 c 0.175999,-0.362217 0.528846,-0.578471 0.90342,-0.595063 0.02129,-9.79e-4 0.04258,-10e-4 0.06398,-9.79e-4 z"/>
{{ else if eq "rss" . }}
<circle cx="3.4735401" cy="20.822733" r="2.8750246"/>
<path d="M 0.59851632,0.69756368 V 5.0112737 c 10.32192368,0 18.68883168,8.3669073 18.68883168,18.6888323 h 4.311364 c 0,-12.706435 -10.296108,-23.00254232 -23.00019568,-23.00254232 z"/>
<path d="m 10.662276,23.697759 h 4.313709 c 0,-7.937415 -6.4353603,-14.3751216 -14.37512179,-14.3751216 v 4.3137086 c 5.55525149,0 10.06141279,4.503814 10.06141279,10.061413 z"/>
{{ end }}
</svg>

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@ -0,0 +1,9 @@
{{ range first 1 . }}
<span class="tag"><a href="{{ "/tags/" | relURL }}{{ . | urlize }}/">#{{ . }}</a></span>
{{ end }}
{{ if gt (len .) 1 }}
{{ range after 1 . }}
| <span class="tag"><a href="{{ "/tags/" | relURL }}{{ . | urlize }}/">#{{ . }}</a></span>
{{ end }}
{{ end }}

353
static/css/style.css Normal file
View File

@ -0,0 +1,353 @@
/***********
* CSS style for the Simple-Goeland Hugo theme
* Author: eorn (https://forge.goe.land/eorn/simple-goeland)
***********/
/* CSS reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/* Sections, containers... */
main {
display: block;
}
.flex {
display: flex;
}
.container {
max-width: 80rem;
margin: 0 auto;
}
.sidebar {
flex: 0 0 250px;
font-size: 0.9em;
}
.page-content {
font-size: 1em;
min-width: 320px;
flex-grow: 1;
padding-left: 12px;
}
main.container {
margin-top : 12px;
margin-bottom: 25px;
padding-top: 20px;
border-top: 1px solid #53bcdf;
}
/* Navbar */
#navbar {
height: 40px;
font-family: "Source Code Pro", monospace;
}
.nav-left {
float: left;
}
.nav-right {
float: right;
margin-top: 8px;
}
.nav-left a, .nav-left h1 {
text-decoration: none;
color: #53bcdf;
font-size: 30px;
font-weight: bold;
vertical-align: middle;
}
.nav-right a {
text-decoration: none;
color: white;
}
.nav-right img, .nav-right svg {
margin: 0px;
padding: 0px;
vertical-align: bottom;
}
.pleroma svg {
fill: #f39f54;
}
.pleroma svg:hover {
fill: #ffc992;
}
.pixelfed svg {
fill: #c02fa8;
}
.pixelfed svg:hover {
fill: #ff61f2;
}
.gitea svg {
fill: #5f9825;
}
.gitea svg:hover {
fill: #8dcc4a;
}
.rss svg {
fill: #f76300;
}
.rss svg:hover {
fill: #ffac46;
}
/* Sidebar */
.sidebar {
font-family: "Source Code Pro", monospace;
line-height: 1.5;
}
.sidebar hr {
border 0;
}
.sidebar h2 {
border-top: 1px solid #53bcdf;
font-size: 20px;
font-weight: bold;
text-align: center;
margin-bottom: 10px;
padding-top: 5px;
}
.sidebar a {
color: #53bcdf;
text-decoration: underline;
}
.sidebar a:hover {
text-decoration: none;
color: #9de2ff;
}
.sidebar ul, .sidebar li, .sidebar ul li {
margin: 0px;
padding: 0px;
list-style: none;
}
.sidebar li ul {
margin-left: 20px;
}
a.active {
font-weight: bold;
color: #9de2ff;
}
.pagination {
font-family: "Source Code Pro", monospace;
padding-top: 15px;
text-align: center;
}
.pagination ul, .pagination li {
display: inline;
margin: 0;
padding: 0;
list-style: none;
}
.page-content li.page-item::before {
content: "";
width: 0em;
margin-left: 0em;
margin: 0px;
padding: 0px;
}
.pagination a {
background-color: #2f3335;
padding: 4px;
}
/* Footer */
.footer {
font-family: "Source Code Pro", monospace;
border-top: 1px solid #53bcdf;
padding-top: 15px;
}
/* Content defaults */
body {
font-family: "Source Sans Pro", sans-serif;
color: white;
background-color: #232627;
text-rendering: optimizeLegibility;
line-height: 1.15;
margin: 0 auto;
max-width: 1280px;
padding: 15px;
}
.has-text-centered {
text-align: center;
}
.page-content p {
margin-top: 10px;
margin-bottom: 10px;
}
a {
color: #53bcdf;
text-decoration: underline;
font-family: "Source Code Pro", monospace;
}
a:hover {
text-decoration: none;
color: #9de2ff;
}
.tag a {
background-color: #2f3335;
padding: 2px;
color: #76e09d;
}
.tag a:hover {
color: #b4ffd2;
}
.tag.active a {
font-weight: bold;
color: #b4ffd2;
}
.button a {
background-color: #2f3335;
padding: 2px;
margin: 2px;
}
.page-content article {
margin-bottom: 25px;
border-top: 1px dashed #bbb677;
}
.page-content h1, .page-content h1 a {
font-size: 30px;
margin-bottom: 10px;
font-weight: bold;
color: #bbb677;
}
.page-content h1 a:hover {
color: #f0eca9;
}
.page-content h2 {
font-size: 25px;
font-weight: bold;
color: #bbb677;
}
.page-content h3 {
font-size: 20px;
font-weight: bold;
color: #bbb677;
}
.page-content h4 {
font-size: 15px;
font-weight: bold;
color: #bbb677;
}
.page-content h5 {
font-size: 15px;
color: #bbb677;
}
.page-content .article-date {
font-family: "Source Code Pro", monospace;
font-size: 0.8em;
margin: 0px;
}
.page-content .tags-list {
float: right;
}
article .post-content {
margin-top: 20px;
}
.page-content ul {
padding: 0px;
list-style: none;
}
.page-content ul li{
margin-left: 10px;
}
.page-content ul li::before {
content: "\2022";
color: #53bcdf;
font-weight: bold;
display: inline-block;
width: 0.75em;
margin-left: -0.5em;
}
.related {
margin-top: 25px;
border-top: 1px dashed #bbb677;
padding-top: 10px;
}
/* Responsive */
@media only screen and (max-width: 800px) {
.flex {
display: table;
}
.sidebar {
display: table-footer-group;
}
.page-content {
display: table-header-group;
padding: 0px;
}
#navbar .nav-left, #navbar .nav-right {
float: none;
text-align: center;
}
#navbar {
min-height: 75px;
}
}

21
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 = "Simple Goeland"
license = "MIT"
licenselink = "https://forge.goe.land/eorn/simple-goeland/src/branch/master/LICENSE"
description = ""
homepage = "http://forge.goe.land/eorn/simple-goeland"
tags = []
features = []
min_version = "0.58"
[author]
name = "Eorn"
homepage = "https://blog.goe.land"
# If porting an existing theme
[original]
name = ""
homepage = ""
repo = ""