summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--assets/css/main.css281
-rw-r--r--assets/css/min770px.css54
-rw-r--r--config.toml2
-rw-r--r--layouts/blog/li.html24
-rw-r--r--layouts/blog/single.html18
m---------themes/etch0
-rw-r--r--themes/problematic/LICENSE20
-rw-r--r--themes/problematic/archetypes/default.md2
-rw-r--r--themes/problematic/layouts/404.html0
-rw-r--r--themes/problematic/layouts/_default/baseof.html11
-rw-r--r--themes/problematic/layouts/_default/list.html6
-rw-r--r--themes/problematic/layouts/_default/single.html4
-rw-r--r--themes/problematic/layouts/index.html (renamed from layouts/index.html)9
-rw-r--r--themes/problematic/layouts/partials/footer.html0
-rw-r--r--themes/problematic/layouts/partials/head.html0
-rw-r--r--themes/problematic/layouts/partials/header.html0
-rw-r--r--themes/problematic/theme.toml21
17 files changed, 73 insertions, 379 deletions
diff --git a/assets/css/main.css b/assets/css/main.css
deleted file mode 100644
index c55dd2c..0000000
--- a/assets/css/main.css
+++ /dev/null
@@ -1,281 +0,0 @@
-*, *:before, *:after {
- box-sizing: border-box;
-}
-
-html {
- font-size: 62.5%;
-}
-
-body {
- font-size: 26px;
- font-size: 1.6rem;
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
- color: #313a3d;
- width: 100%;
- margin: 0 auto;
- padding: 0 16px;
- line-height: 1.6;
-}
-
-header#banner {
- margin: 25px 0;
-}
-
-header#banner a {
- color: #313a3d;
- text-decoration: none;
-}
-
-header#banner a:hover {
- text-decoration: underline;
-}
-
-header#banner h2 {
- display: inline;
- font-size: 21px;
- font-size: 2.1rem;
- margin: 0 8px 0 0;
-}
-
-header#banner nav {
- display: inline-block;
-}
-
-header#banner nav ul {
- list-style-type: none;
- font-size: 1.05em;
- text-transform: lowercase;
- margin: 0;
- padding: 0;
-}
-
-header#banner nav ul li {
- display: inline;
- margin: 0 3px;
-}
-
-header#banner nav ul li a {
- color: #454545;
-}
-
-main#content a {
- color: #007dfa;
- text-decoration: none;
-}
-
-main#content a:hover {
- text-decoration: underline;
-}
-
-main#content h1,
-main#content h2,
-main#content h3,
-main#content h4,
-main#content h5,
-main#content h6 {
- margin-bottom: 0;
- line-height: 1.15;
-}
-
-main#content h3 {
- font-size: 19px;
- font-size: 1.9rem;
-}
-
-main#content h1 + p,
-main#content h2 + p,
-main#content h3 + p,
-main#content h4 + p,
-main#content h5 + p,
-main#content h6 + p {
- margin-top: 5px;
-}
-
-main#content p {
- color: #394548;
- margin: 16px 0;
-}
-
-main#content hr {
- height: 1px;
- border: 0;
- background: #d8d8d8;
-}
-
-main#content abbr {
- cursor: help;
-}
-
-/* index.html styles */
-main#content ul#posts {
- list-style-type: none;
- font-size: 12px;
- font-size: 1.6rem;
- margin-top: 0;
- padding: 0;
-}
-
-main#content ul#posts li {
- margin: 5px 0;
- padding: 0;
-}
-
-main#content ul#posts small {
- font-size: 0.8em;
- color: #767676;
- margin-left: 10px;
-}
-
-main#content ul#posts li a {
- text-decoration: none;
-}
-
-main#content ul#posts li a:hover {
- color: #369aff;
-}
-
-main#content ul#posts li a:hover small {
- color: inherit;
-}
-
-/* single.html styles */
-main#content header#post-header h1 {
- display: block;
- font-size: 23px;
- font-size: 2.3rem;
- font-weight: 600;
- line-height: 1.15;
-}
-
-main#content header#post-header > div {
- display: block;
- font-size: 0.85em;
- color: #767676;
-}
-
-main#content #toc {
- border: 1px solid #b1b1b1;
- border-radius: 1px;
- line-height: 26px;
- margin: 16px 0;
- padding: 9px 14px;
-}
-
-main#content #toc h4 {
- font-size: 1.06em;
- color: #3d3d3d;
- margin: 0;
-}
-
-main#content #toc nav#TableOfContents {
- margin-top: 4px;
-}
-
-main#content #toc nav#TableOfContents > ul, main#content #toc nav#TableOfContents > ol {
- margin-left: -40px;
-}
-
-main#content #toc ul, main#content #toc ol {
- font-size: 0.98em;
- margin: 0;
- padding: 0 0 0 40px;
-}
-
-main#content #toc ul {
- list-style-type: none;
-}
-
-main#content #toc ol {
- counter-reset: item;
-}
-
-main#content #toc ol li {
- display: block;
-}
-
-main#content #toc ol li:before {
- content: counters(item, ".") ". ";
- counter-increment: item;
-}
-
-main#content img {
- max-width: 100%;
- margin: 0 auto;
-}
-
-main#content figure {
- margin: 16px 0;
-}
-
-main#content figure img {
- display: block;
- max-width: 100%;
- margin: 0 auto;
-}
-
-main#content figure figcaption {
- font-size: 0.92em;
- font-style: italic;
- line-height: 22px;
- text-align: center;
- margin-top: 6px;
- padding: 0 10px;
-}
-
-main#content figure figcaption h4 {
- font-style: normal;
- display: inline;
- margin: 0;
-}
-
-main#content figure figcaption p {
- display: inline;
- margin: 0;
- padding-left: 8px;
-}
-
-main#content blockquote {
- font-style: italic;
- margin-top: 10px;
- margin-bottom: 10px;
- margin-left: 50px;
- padding-left: 15px;
- border-left: 3px solid #ccc;
-}
-
-main#content code,
-main#content pre {
- font-family: 'Menlo', monospace;
-}
-
-main#content code {
- font-size: 0.96em;
- padding: 0 5px;
-}
-
-main#content pre {
- display: block;
- overflow-x: auto;
- font-size: 14px;
- font-size: 1.4rem;
- white-space: pre;
- margin: 20px 0;
- padding: 1.5rem 1.5rem;
- line-height: 1.4;
-}
-
-main#content pre code {
- padding: 0;
-}
-
-main#content section.footnotes {
- font-size: 0.9em;
-}
-
-footer#footer {
- font-size: 14px;
- font-size: 1.4rem;
- font-weight: 400;
- color: #b3b3b3;
- margin: 40px 0;
-}
diff --git a/assets/css/min770px.css b/assets/css/min770px.css
deleted file mode 100644
index dfa9450..0000000
--- a/assets/css/min770px.css
+++ /dev/null
@@ -1,54 +0,0 @@
-@media (min-width: 770px) {
-body {
- width: 800px;
- line-height: 1.5;
- background: #b5b5b5;
- font-size: 12px;
-}
-
-main#content hr {
- width: 108%;
- margin-left: -3.8%;
-}
-
-/* index.html styles */
-header#banner h2 {
- font-size: 25px;
- font-size: 2.5rem;
-}
-
-main#content h3 {
- font-size: 20px;
- font-size: 2rem;
-}
-
-main#content ul#posts {
- font-size: 18px;
- font-size: 1.8rem;
-}
-
-/* single.html styles */
-main#content header#post-header h1 {
- font-size: 24px;
- font-size: 2.4rem;
-}
-
-main#content img {
- max-width: 108%;
- margin-left: -3.8%;
-}
-
-main#content figure {
- margin-left: -3.8%;
-}
-
-main#content figure img {
- max-width: 108%;
-}
-
-main#content pre {
- width: 108%;
- margin-left: -3.8%;
- padding: 1.5rem 2.2rem;
-}
-}
diff --git a/config.toml b/config.toml
index 245b143..c26650c 100644
--- a/config.toml
+++ b/config.toml
@@ -1,6 +1,6 @@
baseURL = "https://yulqen.org"
title = "Yulqen"
-theme = "etch"
+theme = "problematic"
languageCode = "en-gb"
enableInlineShortcodes = true
pygmentsCodeFences = true
diff --git a/layouts/blog/li.html b/layouts/blog/li.html
deleted file mode 100644
index cb44e71..0000000
--- a/layouts/blog/li.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<style>
- #cat-category {
- font-size: small;
- color: red;
- }
- #vim-category {
- font-size: small;
- color: #2abb01;
- }
-</style>
-
-<li>
- <a href="{{ .Permalink }}">
- {{ .Title }}
- {{ if isset .Params "category" }}
- {{ if eq .Params.Category "cats" }}
- <span id="cat-category">[{{ lower .Params.Category }}]</span>
- {{ else if (eq .Params.Category "vim") }}
- <span id="vim-category">[{{ lower .Params.Category }}]</span>
- {{ end }}
- {{ end }}
- <small><time>{{ .Date.Format "2 Jan, 2006" }}</time></small>
- </a>
-</li>
diff --git a/layouts/blog/single.html b/layouts/blog/single.html
deleted file mode 100644
index 698be33..0000000
--- a/layouts/blog/single.html
+++ /dev/null
@@ -1,18 +0,0 @@
-{{ define "main" }}
-<article>
- <header id="post-header">
- <h1>{{ .Title }}</h1>
- <div>
- {{- if isset .Params "date" -}}
- {{ if eq .Lastmod .Date }}
- <time>{{ .Date.Format "Monday 2 Jan, 2006" }}</time>
- {{ else }}
- Updated <time>{{ .Lastmod.Format "Monday 2 Jan, 2006" }}</time>
- {{ end }}
- {{- end -}}
- </div>
- </header>
- This is a {{ .Kind }}.
- {{- .Content -}}
-</article>
-{{ end }}
diff --git a/themes/etch b/themes/etch
deleted file mode 160000
-Subproject f6133c4eac182bdd560ed80c4c07495b043ed8f
diff --git a/themes/problematic/LICENSE b/themes/problematic/LICENSE
new file mode 100644
index 0000000..147d594
--- /dev/null
+++ b/themes/problematic/LICENSE
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright (c) 2022 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.
diff --git a/themes/problematic/archetypes/default.md b/themes/problematic/archetypes/default.md
new file mode 100644
index 0000000..ac36e06
--- /dev/null
+++ b/themes/problematic/archetypes/default.md
@@ -0,0 +1,2 @@
++++
++++
diff --git a/themes/problematic/layouts/404.html b/themes/problematic/layouts/404.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/themes/problematic/layouts/404.html
diff --git a/themes/problematic/layouts/_default/baseof.html b/themes/problematic/layouts/_default/baseof.html
new file mode 100644
index 0000000..5f8e2ec
--- /dev/null
+++ b/themes/problematic/layouts/_default/baseof.html
@@ -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>
diff --git a/themes/problematic/layouts/_default/list.html b/themes/problematic/layouts/_default/list.html
new file mode 100644
index 0000000..3ebdde1
--- /dev/null
+++ b/themes/problematic/layouts/_default/list.html
@@ -0,0 +1,6 @@
+{{ define "main" }}
+<h1>{{ .Title }}</h1>
+{{ range .Pages.ByPublishDate.Reverse }}
+<p><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>
+{{ end }}
+{{ end }}
diff --git a/themes/problematic/layouts/_default/single.html b/themes/problematic/layouts/_default/single.html
new file mode 100644
index 0000000..17b274b
--- /dev/null
+++ b/themes/problematic/layouts/_default/single.html
@@ -0,0 +1,4 @@
+{{ define "main" }}
+<h1>{{ .Title }}</h1>
+{{ .Content }}
+{{ end }}
diff --git a/layouts/index.html b/themes/problematic/layouts/index.html
index 95320cc..de7fa73 100644
--- a/layouts/index.html
+++ b/themes/problematic/layouts/index.html
@@ -1,12 +1,19 @@
+
{{ define "main" }}
<main aria-role="main">
+ <header class="homepage-header">
+ <h1>{{.Title}}</h1>
+ {{ with .Params.subtitle }}
+ <span class="subtitle">{{.}}</span>
+ {{ end }}
+ </header>
<div class="homepage-content">
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
{{.Content}}
</div>
<div>
{{ range first 10 .Site.RegularPages }}
- {{ .Render "about"}}
+ {{ .Render "summary"}}
{{ end }}
</div>
</main>
diff --git a/themes/problematic/layouts/partials/footer.html b/themes/problematic/layouts/partials/footer.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/themes/problematic/layouts/partials/footer.html
diff --git a/themes/problematic/layouts/partials/head.html b/themes/problematic/layouts/partials/head.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/themes/problematic/layouts/partials/head.html
diff --git a/themes/problematic/layouts/partials/header.html b/themes/problematic/layouts/partials/header.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/themes/problematic/layouts/partials/header.html
diff --git a/themes/problematic/theme.toml b/themes/problematic/theme.toml
new file mode 100644
index 0000000..85b0199
--- /dev/null
+++ b/themes/problematic/theme.toml
@@ -0,0 +1,21 @@
+# theme.toml template for a Hugo theme
+# See https://github.com/gohugoio/hugoThemes#themetoml for an example
+
+name = "Problematic"
+license = "MIT"
+licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE"
+description = ""
+homepage = "http://example.com/"
+tags = []
+features = []
+min_version = "0.41.0"
+
+[author]
+ name = ""
+ homepage = ""
+
+# If porting an existing theme
+[original]
+ name = ""
+ homepage = ""
+ repo = ""