siinus
2 years ago
23 changed files with 326 additions and 0 deletions
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
--- |
||||
title: "{{ replace .Name "-" " " | title }}" |
||||
date: {{ .Date }} |
||||
draft: true |
||||
--- |
||||
|
@ -0,0 +1,17 @@
@@ -0,0 +1,17 @@
|
||||
baseURL = 'https://siinus.net/' |
||||
languageCode = 'en-us' |
||||
title = 'siinus' |
||||
theme = 'lugo' |
||||
|
||||
copyright = 'and copyleft' |
||||
|
||||
defaultContentLanguage = 'et' |
||||
[languages] |
||||
[languages.en] |
||||
contentDir = 'content/en/' |
||||
weight = 2 |
||||
title = 'Home of siinus' |
||||
[languages.et] |
||||
contentDir = 'content/et/' |
||||
weight = 1 |
||||
title = 'siinuse urgas' |
@ -0,0 +1,18 @@
@@ -0,0 +1,18 @@
|
||||
--- |
||||
title: 'Johhaidii' |
||||
--- |
||||
|
||||
Tere! Sa jõudsid just ühele tumedale lehele. Selle renderdamiseks ei raisatud eriti oluliselt arvutusvõimsust, niiet suuremat kahju siin külastusest ei teki. Lase hea maitsta, niipalju kui on. |
||||
|
||||
Ma ei kujuta ette, kas siia saidile kunagi ka mingit sisulist lisaväärtust tekib. |
||||
|
||||
--- |
||||
|
||||
## Kontakt |
||||
|
||||
- kast (at) siinus (dot) net |
||||
- helistajaid ma kardan, aga tungival soovil numbri leiad ise kuskilt |
||||
- https://git.kahtlane.info/siinus |
||||
- irc ja matrix on kah |
||||
|
||||
--- |
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
{{ partial "header.html" . -}} |
||||
<header><h1>{{ .Title }}</h1></header> |
||||
<article> |
||||
{{ .Content -}} |
||||
</article> |
||||
{{ partial "footer.html" . }} |
@ -0,0 +1,10 @@
@@ -0,0 +1,10 @@
|
||||
<hr> |
||||
{{ partial "nextprev.html" . -}} |
||||
{{ partial "taglist.html" . -}} |
||||
</main> |
||||
<footer> |
||||
<a href="{{ .Site.BaseURL }}">{{ .Site.BaseURL }}</a><br><br> |
||||
<a href="/index.xml"><img src="/rss.svg" style="max-height:1.5em" alt="RSS Feed" title="Subscribe via RSS for updates."></a> |
||||
</footer> |
||||
</body> |
||||
</html> |
@ -0,0 +1,45 @@
@@ -0,0 +1,45 @@
|
||||
body { |
||||
font-family: sans-serif ; |
||||
background: #110000 ; |
||||
color: #ccc ; |
||||
} |
||||
|
||||
main { |
||||
max-width: 800px ; |
||||
margin: auto ; |
||||
} |
||||
|
||||
img { |
||||
max-width: 100% ; |
||||
} |
||||
|
||||
header h1 { |
||||
text-align: center ; |
||||
} |
||||
|
||||
footer { |
||||
text-align: center ; |
||||
clear: both ; |
||||
} |
||||
|
||||
/* For TAGLIST.HTML */ |
||||
.taglist { |
||||
text-align: center ; |
||||
clear: both ; |
||||
} |
||||
|
||||
/* For NEXTPREV.HTML */ |
||||
#nextprev { |
||||
/* The container for both the previous and next articles. */ |
||||
} |
||||
#prevart { |
||||
float: left ; |
||||
text-align: left ; |
||||
} |
||||
#nextart { |
||||
float: right ; |
||||
text-align: right ; |
||||
} |
||||
#nextart,#prevart { |
||||
max-width: 33% ; |
||||
} |
@ -0,0 +1,21 @@
@@ -0,0 +1,21 @@
|
||||
# Luke's Hugo Theme |
||||
|
||||
A simple Hugo theme I plan on using for my personal website, [Based.Cooking](https://based.cooking) and [LandChad.net](https://landchad.net). |
||||
|
||||
## get started |
||||
|
||||
```sh |
||||
hugo new site new-site |
||||
cd new-site |
||||
git clone https://github.com/lukesmithxyz/lugo themes/lugo |
||||
echo "theme = 'lugo'" >> config.toml |
||||
cp themes/lugo/static/style.css static/ |
||||
``` |
||||
|
||||
## stuff |
||||
|
||||
- Makes one RSS feed for the entire site at `/index.xml` |
||||
- Stylesheet is in `/style.css` and includes some important stuff for partials. |
||||
- If a post is tagged, links to the tags are placed at the bottom of the post. |
||||
- `nextprev.html` adds links to the Next and Previous articles to the bottom of a page. |
||||
- `taglist.html` links all tags an article is tagged to for related content. |
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
--- |
||||
title: "{{ replace .Name "-" " " | title }}" |
||||
date: {{ .Date }} |
||||
draft: true |
||||
--- |
||||
|
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
title = "Website Name" |
||||
baseURL = 'https://example.org' |
||||
languageCode = 'en-us' |
||||
|
||||
[params] |
||||
# "relatedtext" is the text that appears above the tag list at the bottom of pages. |
||||
#relatedtext = "Related:" |
||||
favicon = "/favicon.ico" |
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
{{ partial "header.html" . -}} |
||||
<header><h1 id="tag_{{ .Title }}">{{ .Title | title }}</h1></header> |
||||
<article> |
||||
{{ .Content -}} |
||||
<ul> |
||||
{{- range.Pages }} |
||||
<li><time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006 Jan 02" }}</time> – <a href="{{ .RelPermalink }}">{{ .Title }}</a></li> |
||||
{{ end -}} |
||||
</ul> |
||||
</article> |
||||
{{- partial "footer.html" . }} |
@ -0,0 +1,26 @@
@@ -0,0 +1,26 @@
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> |
||||
<channel> |
||||
<title>{{ .Site.Title }}</title> |
||||
<link>{{ .Permalink }}</link> |
||||
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .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.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}} |
||||
<guid>{{ .Permalink }}</guid> |
||||
<description>{{- .Content | html -}}</description> |
||||
</item> |
||||
{{ end }} |
||||
</channel> |
||||
</rss> |
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
{{ partial "header.html" . -}} |
||||
<header><h1>{{ .Title }}</h1></header> |
||||
<article> |
||||
{{ .Content -}} |
||||
{{ partial "footer.html" . }} |
@ -0,0 +1,10 @@
@@ -0,0 +1,10 @@
|
||||
{{ partial "nextprev.html" . -}} |
||||
{{ partial "taglist.html" . -}} |
||||
</article> |
||||
</main> |
||||
<footer> |
||||
<a href="{{ .Site.BaseURL }}">{{ .Site.BaseURL }}</a><br><br> |
||||
<a href="/index.xml"><img src="/rss.svg" style="max-height:1.5em" alt="RSS Feed" title="Subscribe via RSS for updates."></a> |
||||
</footer> |
||||
</body> |
||||
</html> |
@ -0,0 +1,21 @@
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html> |
||||
<html lang="{{ .Site.Language }}"> |
||||
<head> |
||||
<title>{{ if not .IsHome }}{{ .Title | title }} | {{ end }}{{ .Site.Title }}</title> |
||||
<link rel="canonical" href="{{ .Site.BaseURL }}"> |
||||
<link rel='alternate' type='application/rss+xml' title="{{ .Site.Title }} RSS" href='/index.xml'> |
||||
<link rel='stylesheet' type='text/css' href='/style.css'> |
||||
{{ with .Site.Params.favicon }}<link rel="icon" href="{{ . }}"> |
||||
{{ end -}} |
||||
<meta name="description" content="{{ with .Params.description }}{{ . }}{{ else }}{{ .Summary }}{{ end }}"> |
||||
{{ if isset .Params "tags" }}<meta name="keywords" content="{{ with .Params.tags }}{{ delimit . ", " }}{{ end }}"> |
||||
{{ end -}} |
||||
<meta name="viewport" content="width=device-width, initial-scale=1"> |
||||
<meta name="robots" content="index, follow"> |
||||
<meta charset="utf-8"> |
||||
</head> |
||||
<body> |
||||
{{- if .Site.Menus.main }} |
||||
{{ partial "nav.html" . }} |
||||
{{ end }} |
||||
<main> |
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
<nav> |
||||
<ul> |
||||
{{- $sec := .Page.Section }}{{ $file := .File.TranslationBaseName -}} |
||||
{{ range.Site.Menus.main.ByWeight }}{{ $base := path.Base .URL }} |
||||
<li><a {{ if or ( eq $sec $base ) ( eq $file $base ) ( and (eq $sec "") ( eq $file "_index") (eq $base "/") ) }}class="menuactive" {{ end }}href="{{ .URL }}"><span class=pre>{{ .Pre }}</span><span class=menuname>{{ .Name }}</span></a></li> |
||||
{{- end }} |
||||
</ul> |
||||
</nav> |
@ -0,0 +1,10 @@
@@ -0,0 +1,10 @@
|
||||
{{ if or .Next .Prev -}} |
||||
<div id="nextprev"> |
||||
{{- with .Prev }} |
||||
<a href="{{ .RelPermalink}}"><div id="prevart">Previous:<br>{{.Title}}</div></a> |
||||
{{ end -}} |
||||
{{- with .Next -}} |
||||
<a href="{{ .RelPermalink}}"><div id="nextart">Next:<br>{{.Title}}</div></a> |
||||
{{ end -}} |
||||
</div> |
||||
{{ end -}} |
@ -0,0 +1,13 @@
@@ -0,0 +1,13 @@
|
||||
{{- if isset .Params "tags" -}} |
||||
{{- $tagsLen := len .Params.tags -}} |
||||
{{- if gt $tagsLen 0 -}} |
||||
<div style="clear:both" class=taglist> |
||||
{{- with .Site.Params.relatedtext }}{{ . }}<br>{{ end -}} |
||||
{{- range $k, $v := .Params.tags -}} |
||||
{{- $url := printf "tags/%s" (. | urlize | lower) -}} |
||||
<a id="tag_{{ . | lower }}" href="{{ $url | absURL }}">{{ . | title }}</a> |
||||
{{- if lt $k (sub $tagsLen 1) }} · {{ end -}} |
||||
{{- end -}} |
||||
</div> |
||||
{{- end -}} |
||||
{{- end }} |
@ -0,0 +1,10 @@
@@ -0,0 +1,10 @@
|
||||
<details> |
||||
<summary>Click to reveal video.</summary> |
||||
<iframe src="{{ index .Params 0 }}" |
||||
loading="lazy" |
||||
sandbox="allow-same-origin allow-scripts allow-popups" |
||||
allowfullscreen frameborder="0" |
||||
class="embvid" |
||||
title="Embedded Video"> |
||||
</iframe> |
||||
</details> |
@ -0,0 +1,20 @@
@@ -0,0 +1,20 @@
|
||||
<!-- |
||||
class: class of the figure |
||||
link: url the image directs to |
||||
alt: alternative text |
||||
caption: caption |
||||
mouse: what the image says when moused over ("title" in HTML) |
||||
--> |
||||
<figure {{ with .Get "class" }}class="{{.}}"{{ end -}}> |
||||
{{- with .Get "link"}}<a href="{{.}}">{{ end -}} |
||||
<img src="{{ .Get "src" }}" |
||||
{{- with .Get "mouse" }} title="{{.}}"{{ end -}} |
||||
{{- with .Get "alt" }} alt="{{.}}"{{ end -}} |
||||
> |
||||
{{- if .Get "link"}}</a>{{ end -}} |
||||
{{- with .Get "caption" -}} |
||||
<figcaption> |
||||
{{- . -}} |
||||
</figcaption> |
||||
{{- end -}} |
||||
</figure> |
@ -0,0 +1,3 @@
@@ -0,0 +1,3 @@
|
||||
{{ if isset .Site.Taxonomies "tags" }}{{ if not (eq (len .Site.Taxonomies.tags) 0) }} <ul id="tagcloud"> |
||||
{{ range $name, $items := .Site.Taxonomies.tags }}{{ $url := printf "%s/%s" "tags" ($name | urlize | lower)}}<li><a href="{{ $url | absURL }}" id="tag_{{ $name }}">{{ $name | title }}</a></li> |
||||
{{ end }}</ul>{{ end }}{{ end }} |
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
<iframe src="{{ index .Params 0 }}" |
||||
loading="lazy" |
||||
sandbox="allow-same-origin allow-scripts allow-popups" |
||||
allowfullscreen frameborder="0" |
||||
title="Embedded Video"> |
||||
</iframe> |
@ -0,0 +1,45 @@
@@ -0,0 +1,45 @@
|
||||
body { |
||||
font-family: sans-serif ; |
||||
background: #110000 ; |
||||
color: #ccc ; |
||||
} |
||||
|
||||
main { |
||||
max-width: 800px ; |
||||
margin: auto ; |
||||
} |
||||
|
||||
img { |
||||
max-width: 100% ; |
||||
} |
||||
|
||||
header h1 { |
||||
text-align: center ; |
||||
} |
||||
|
||||
footer { |
||||
text-align: center ; |
||||
clear: both ; |
||||
} |
||||
|
||||
/* For TAGLIST.HTML */ |
||||
.taglist { |
||||
text-align: center ; |
||||
clear: both ; |
||||
} |
||||
|
||||
/* For NEXTPREV.HTML */ |
||||
#nextprev { |
||||
/* The container for both the previous and next articles. */ |
||||
} |
||||
#prevart { |
||||
float: left ; |
||||
text-align: left ; |
||||
} |
||||
#nextart { |
||||
float: right ; |
||||
text-align: right ; |
||||
} |
||||
#nextart,#prevart { |
||||
max-width: 33% ; |
||||
} |
Loading…
Reference in new issue