Compare commits
2 commits
db0db52ec5
...
a5c28c05aa
Author | SHA1 | Date | |
---|---|---|---|
a5c28c05aa | |||
e3057b90c5 |
13 changed files with 265 additions and 0 deletions
5
archetypes/default.md
Normal file
5
archetypes/default.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
+++
|
||||||
|
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
|
||||||
|
date = {{ .Date }}
|
||||||
|
draft = true
|
||||||
|
+++
|
22
assets/css/main.css
Normal file
22
assets/css/main.css
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
body {
|
||||||
|
color: #222;
|
||||||
|
font-family: sans-serif;
|
||||||
|
line-height: 1.5;
|
||||||
|
margin: 1rem;
|
||||||
|
max-width: 768px;
|
||||||
|
}
|
||||||
|
|
||||||
|
header {
|
||||||
|
border-bottom: 1px solid #222;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
border-top: 1px solid #222;
|
||||||
|
margin-top: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #00e;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
1
assets/js/main.js
Normal file
1
assets/js/main.js
Normal file
|
@ -0,0 +1 @@
|
||||||
|
console.log('This site was generated by Hugo.');
|
23
hugo.toml
Normal file
23
hugo.toml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
baseURL = 'https://example.org/'
|
||||||
|
languageCode = 'en-us'
|
||||||
|
title = 'My New Hugo Site'
|
||||||
|
|
||||||
|
[[menus.main]]
|
||||||
|
name = 'Home'
|
||||||
|
pageRef = '/'
|
||||||
|
weight = 10
|
||||||
|
|
||||||
|
[[menus.main]]
|
||||||
|
name = 'Posts'
|
||||||
|
pageRef = '/posts'
|
||||||
|
weight = 20
|
||||||
|
|
||||||
|
[[menus.main]]
|
||||||
|
name = 'Tags'
|
||||||
|
pageRef = '/tags'
|
||||||
|
weight = 30
|
||||||
|
|
||||||
|
[module]
|
||||||
|
[module.hugoVersion]
|
||||||
|
extended = false
|
||||||
|
min = "0.116.0"
|
28
layouts/_default/baseof.html
Normal file
28
layouts/_default/baseof.html
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html
|
||||||
|
lang="{{ or site.Language.LanguageCode }}"
|
||||||
|
dir="{{ or site.Language.LanguageDirection `ltr` }}"
|
||||||
|
>
|
||||||
|
<head>
|
||||||
|
{{ partial "head.html" . }}
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
{
|
||||||
|
<main>{{ block "main" . }}{{ end }}</main>
|
||||||
|
<footer>{{ partial "footer.html" . }}</footer>
|
||||||
|
}
|
||||||
|
<pre>
|
||||||
|
\ ヽ i | / /
|
||||||
|
\
|
||||||
|
;' ':;,, ,;'':;,
|
||||||
|
;' ':;,.,.,.,.,.,,,;' ';,
|
||||||
|
ー ,:' ::::::::、
|
||||||
|
__ ,:' / \ ::::::::',
|
||||||
|
二 :' ● ● ::::::::i.
|
||||||
|
 ̄ i ''' (_人_) '''' ::::::::::i
|
||||||
|
-‐ : ::::::::i
|
||||||
|
`:,、 :::::::::: /
|
||||||
|
/ ,:' : ::::::::::::`:、
|
||||||
|
</pre>
|
||||||
|
</body>
|
||||||
|
</html>
|
27
layouts/_default/home.html
Normal file
27
layouts/_default/home.html
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{{ define "main" }}
|
||||||
|
<div class="one">
|
||||||
|
<div class="flex-row">
|
||||||
|
<span>title:</span>
|
||||||
|
<span class="highlight">'{{ .Params.title }}'</span>
|
||||||
|
,
|
||||||
|
</div>
|
||||||
|
<div class="flex-row">
|
||||||
|
<span>body:</span>
|
||||||
|
<span> <span class="highlight">'{{ .Params.body }}'</span>, </span>
|
||||||
|
</div>
|
||||||
|
<span class="flex-col"
|
||||||
|
>"Q & A": [ {{ range .Params.faq }}
|
||||||
|
<div class="two">
|
||||||
|
{<br />
|
||||||
|
<div class="three">
|
||||||
|
<span>question:</span>
|
||||||
|
<span class="highlight">'{{ .question }}'</span><br>
|
||||||
|
<span>answer:</span>
|
||||||
|
<span class="highlight">'{{ .answer }}'</span>
|
||||||
|
</div>
|
||||||
|
<br />},
|
||||||
|
</div>
|
||||||
|
{{ end }} ],</span
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
8
layouts/_default/list.html
Normal file
8
layouts/_default/list.html
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{{ define "main" }}
|
||||||
|
<h1>{{ .Title }}</h1>
|
||||||
|
{{ .Content }}
|
||||||
|
{{ range .Pages }}
|
||||||
|
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
||||||
|
{{ .Summary }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
12
layouts/partials/footer.html
Normal file
12
layouts/partials/footer.html
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<div class="one">
|
||||||
|
<span>
|
||||||
|
license: <a class="highlight" href="https://creativecommons.org/licenses/by-sa/4.0"
|
||||||
|
>'CC BY-SA 4.0'</a
|
||||||
|
>,
|
||||||
|
</span>
|
||||||
|
<span>
|
||||||
|
"source code": '<a class="highlight" href="https://git.myco.systems/mycosystems/hugo-maintenance"
|
||||||
|
>'https://git.myco.systems/mycosystems/hugo-maintenance'</a
|
||||||
|
>
|
||||||
|
</span>
|
||||||
|
</div>
|
4
layouts/partials/head.html
Normal file
4
layouts/partials/head.html
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width">
|
||||||
|
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
|
||||||
|
{{ partialCached "head/css.html" . }}
|
9
layouts/partials/head/css.html
Normal file
9
layouts/partials/head/css.html
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{{- with resources.Get "css/main.css" }}
|
||||||
|
{{- if eq hugo.Environment "development" }}
|
||||||
|
<link rel="stylesheet" href="{{ .RelPermalink }}">
|
||||||
|
{{- else }}
|
||||||
|
{{- with . | minify | fingerprint }}
|
||||||
|
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
95
static/css/main.css
Normal file
95
static/css/main.css
Normal file
|
@ -0,0 +1,95 @@
|
||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
font-family: Consolas, Monaco, "Lucida Console", monospace;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
color: #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
background-color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
padding-top: 3.5rem;
|
||||||
|
padding-bottom: 3.5rem;
|
||||||
|
padding-left: 1.5rem;
|
||||||
|
padding-right: 1.5rem;
|
||||||
|
height: 100%;
|
||||||
|
background-color: #3d3d3d;
|
||||||
|
max-width: 600px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 700px) {
|
||||||
|
* {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
max-width: 100%;
|
||||||
|
padding-left: 1rem;
|
||||||
|
padding-right: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
p,
|
||||||
|
span,
|
||||||
|
a,
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6 {
|
||||||
|
color: inherit;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-decoration: wavy underline !important;
|
||||||
|
transition: text-decoration 2s ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.highlight {
|
||||||
|
color: rgb(158, 158, 239);
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-row {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-col {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.one {
|
||||||
|
margin-left: 1.5rem;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.two {
|
||||||
|
margin-left: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.three {
|
||||||
|
margin-left: 4.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.four {
|
||||||
|
margin-left: 6rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.five {
|
||||||
|
margin-left: 7.5rem;
|
||||||
|
}
|
BIN
static/favicon.ico
Normal file
BIN
static/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
31
theme.toml
Normal file
31
theme.toml
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
name = 'Theme name'
|
||||||
|
license = 'MIT'
|
||||||
|
licenselink = 'https://github.com/owner/repo/LICENSE'
|
||||||
|
description = 'Theme description'
|
||||||
|
|
||||||
|
# The home page of the theme, where the source can be found
|
||||||
|
homepage = 'https://github.com/owner/repo'
|
||||||
|
|
||||||
|
# If you have a running demo of the theme
|
||||||
|
demosite = 'https://owner.github.io/repo'
|
||||||
|
|
||||||
|
# Taxonomy terms
|
||||||
|
tags = ['blog', 'company']
|
||||||
|
features = ['some', 'awesome', 'features']
|
||||||
|
|
||||||
|
# If the theme has multiple authors
|
||||||
|
authors = [
|
||||||
|
{name = 'Name of author', homepage = 'Website of author'},
|
||||||
|
{name = 'Name of author', homepage = 'Website of author'}
|
||||||
|
]
|
||||||
|
|
||||||
|
# If the theme has a single author
|
||||||
|
[author]
|
||||||
|
name = 'Your name'
|
||||||
|
homepage = 'Your website'
|
||||||
|
|
||||||
|
# If porting an existing theme
|
||||||
|
[original]
|
||||||
|
author = 'Name of original author'
|
||||||
|
homepage = 'Website of original author'
|
||||||
|
repo = 'https://github.com/owner/repo'
|
Loading…
Add table
Reference in a new issue