From 97f1f2a3bc84bf6483aced671c11c4e0445a0210 Mon Sep 17 00:00:00 2001 From: lonjil Date: Tue, 5 Apr 2022 13:20:37 +0200 Subject: [PATCH] init --- .gitignore | 1 + archetypes/default.md | 6 ++ config.toml | 21 +++++++ content/posts/a-post.md | 10 ++++ content/posts/another-post.md | 9 +++ content/posts/i-suck.md | 14 +++++ layouts/_default/baseof.html | 12 ++++ layouts/_default/list.html | 14 +++++ layouts/_default/single.html | 10 ++++ layouts/index.html | 21 +++++++ layouts/partials/footer.html | 5 ++ layouts/partials/head.html | 21 +++++++ layouts/partials/header.html | 11 ++++ static/css/main.css | 84 +++++++++++++++++++++++++++ static/images/Icon_External_Link.png | Bin 0 -> 144 bytes 15 files changed, 239 insertions(+) create mode 100644 .gitignore create mode 100644 archetypes/default.md create mode 100644 config.toml create mode 100644 content/posts/a-post.md create mode 100644 content/posts/another-post.md create mode 100644 content/posts/i-suck.md create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/single.html create mode 100644 layouts/index.html create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/head.html create mode 100644 layouts/partials/header.html create mode 100644 static/css/main.css create mode 100644 static/images/Icon_External_Link.png diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a48cf0d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +public diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..1a123da --- /dev/null +++ b/config.toml @@ -0,0 +1,21 @@ +baseURL = 'https://blog.lonjil.xyz/' +languageCode = 'en-us' +title = "lonjil's web log" + + +[menu] + [[menu.main]] + name = "Home" + pre = "home" + url = "/" + weight = 1 + [[menu.main]] + name = "Posts" + pre = "what-is-this-shit" + url = "/posts/" + weight = 2 + [[menu.main]] + name = "Tags" + pre = "tag" + url = "/tags/" + weight = 3 diff --git a/content/posts/a-post.md b/content/posts/a-post.md new file mode 100644 index 0000000..6eff58d --- /dev/null +++ b/content/posts/a-post.md @@ -0,0 +1,10 @@ +--- +title: "A blog" +date: "2021-12-08T04:00:00+01:00" +draft: false +tags: ["garbage", "misc"] +--- +I guess I have a blog now. + + +What the fuck are blogs for? Guess I'll have to find out. diff --git a/content/posts/another-post.md b/content/posts/another-post.md new file mode 100644 index 0000000..a2a6099 --- /dev/null +++ b/content/posts/another-post.md @@ -0,0 +1,9 @@ +--- +title: "I guess this works?" +date: "2021-12-08T19:40:00+01:00" +tags: ["success", "misc"] +--- +I have successfully made some kind of terrible theme. + + +And yes, I am copying Plan 9's color scheme and window outlines. diff --git a/content/posts/i-suck.md b/content/posts/i-suck.md new file mode 100644 index 0000000..b3b5155 --- /dev/null +++ b/content/posts/i-suck.md @@ -0,0 +1,14 @@ +--- +title: "Today I am no longer way behind in school" +date: "2021-12-22T13:44:00+01:00" +draft: false +tags: ["failure", "success", "school"] +--- +Today, I successfully completed a test that I had missed, +and finished 3 assignments that I was way late on. + + +So I feel hella great, getting so much shit done finally. +Especially the last assignment which I mostly worked on this morning. +But really I should feel like a dumbass cuz why the fuck did +I get so far behind in the first place? Geez. diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..0ef6cb8 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,12 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} +
+ {{- block "main" . }}{{- end }} +
+
+ {{- partial "footer.html" . -}} + + diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..c3be7fe --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,14 @@ +{{ define "main" }} +

{{ .Title }}

+{{ range .Pages.ByPublishDate.Reverse }} +
+

{{ .Title }}

+{{ .Summary }} +{{ .PublishDate.Format "2006-01-02" }} — +{{ if isset .Params "tags" }} +{{ delimit .Params.tags ", " }} +{{ end }} +
+
+{{ end }} +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..3936317 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,10 @@ +{{ define "main" }} +
+
+

{{ .Title }}

+{{ .Date.Format "2006-01-02" }} — +{{ delimit .Params.tags ", " }} +
+{{ .Content }} +
+{{ end }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..ee401f7 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,21 @@ +{{ define "main" }} +
+

{{ .Site.Title }}

+
+ +
+ {{ range first (.Site.Params.PostLimit | default 4) (where .Site.RegularPages.ByPublishDate.Reverse "Section" "posts") }} +
+ {{ .Title }} + {{ .Summary }} + {{ .PublishDate.Format "2006-01-02" }} — + {{ if isset .Params "tags" }} + {{ delimit .Params.tags ", " }} + {{ end }} +
+
+ {{ end }} + +
+ +{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..05572d5 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,5 @@ +
+ GitHub | + Treehouse Gitea | + Twitter +
diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..d870563 --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,21 @@ + + + + + + + {{ $title := print .Site.Title " | " .Title }} + {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} + {{ $title }} + + {{ if .Site.Author.name }} + + {{ end }} + {{ if .Description }} + + {{ end }} + + + {{ $css := "css/main.css" | relURL }} + + diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..e62f1ee --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,11 @@ +
+ +
diff --git a/static/css/main.css b/static/css/main.css new file mode 100644 index 0000000..86f3418 --- /dev/null +++ b/static/css/main.css @@ -0,0 +1,84 @@ +html { + font-size-adjust: 100%; +} + +body { + word-wrap: break-word; + background: #EEE; + color: #222; + margin: 5px auto; + max-width: 650px; + line-height: 1.2; +} + +a, a:link { + color: #44a; + text-decoration: underline; +} + +a:visited { + color: #609; +} + +a:active, a:hover { + color: #a00; +} + +a:focus { + outline: #FF0000 dotted medium; +} + +a.external:after { + content: url(/images/Icon_External_Link.png); +} + +article, aside, details, figcaption, figure, +footer, header, hgroup, menu, nav, section { + display: block; +} + +blockquote, q { + quotes: none; +} + +blockquote:before, blockquote:after, q:before, q:after { + content: ''; + content: none; +} + +*.box { + background: #EAFEFE; + padding: 10px; + border: 4px solid #8888CC; +} + +article { + background: #FFFFEA; + font-family: 'Century Gothic', CenturyGothic, AppleGotic, sans-serif; + padding: 10px; + border: 4px solid #99994C; +} +article.cmt { + background: #E9FCEA; + border: 4px solid #448844; +} + +*.box2 { + background: #E9FCEA; + border: 4px solid #448844; + padding: 10px; +} + +blockquote { + padding: 5px; + background: #EAFEFE; + border: 4px solid #8888CC; + font-family: Verdana, Geneva, sans-serif; +} + +code { + font-family: Courier, 'Lucida Sans Typewriter', 'Lucida Typewriter', Consolas, monospace; } + +h4, h3, h2 { + margin-top: 0; +} diff --git a/static/images/Icon_External_Link.png b/static/images/Icon_External_Link.png new file mode 100644 index 0000000000000000000000000000000000000000..16f9b92db47a1f1cd9d2320cc7d03122155a5200 GIT binary patch literal 144 zcmeAS@N?(olHy`uVBq!ia0vp^JRr=$1|-8uW1a)4a8DPr>mdKI;Vst028P**8l(j literal 0 HcmV?d00001