diff options
author | Matthew Lemon <chaffinach+git@protonmail.ch> | 2022-01-05 21:02:38 +0000 |
---|---|---|
committer | Matthew Lemon <chaffinach+git@protonmail.ch> | 2022-01-05 21:02:38 +0000 |
commit | bd856b0c078d14beb2d92cd7ef13c1f131b1bebc (patch) | |
tree | 6343411fdaad49371e3d97816dbd13fd6746ee34 /themes | |
parent | 4c76ce4aa306db8e6d8d5b825126c09fca723eec (diff) | |
parent | f7a556559b17c6267ff898f68cae02a49bf87da6 (diff) |
added in clegg post
Diffstat (limited to 'themes')
m--------- | themes/etch | 0 | ||||
-rw-r--r-- | themes/problematic/LICENSE | 20 | ||||
-rw-r--r-- | themes/problematic/archetypes/default.md | 2 | ||||
-rw-r--r-- | themes/problematic/layouts/404.html | 0 | ||||
-rw-r--r-- | themes/problematic/layouts/_default/baseof.html | 11 | ||||
-rw-r--r-- | themes/problematic/layouts/_default/li.html | 6 | ||||
-rw-r--r-- | themes/problematic/layouts/_default/list.html | 3 | ||||
-rw-r--r-- | themes/problematic/layouts/_default/single.html | 4 | ||||
-rw-r--r-- | themes/problematic/layouts/index.html | 22 | ||||
-rw-r--r-- | themes/problematic/layouts/partials/footer.html | 0 | ||||
-rw-r--r-- | themes/problematic/layouts/partials/head.html | 13 | ||||
-rw-r--r-- | themes/problematic/layouts/partials/header.html | 12 | ||||
-rw-r--r-- | themes/problematic/layouts/partials/posts.html | 6 | ||||
-rw-r--r-- | themes/problematic/theme.toml | 21 |
14 files changed, 120 insertions, 0 deletions
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/li.html b/themes/problematic/layouts/_default/li.html new file mode 100644 index 0000000..2a7f3d9 --- /dev/null +++ b/themes/problematic/layouts/_default/li.html @@ -0,0 +1,6 @@ +<li> + <a href="{{ .Permalink }}"> + <small><time>{{ .Date.Format "Jan 2, 2006" }}</time></small>: + {{ .Title }} + </a> +</li> diff --git a/themes/problematic/layouts/_default/list.html b/themes/problematic/layouts/_default/list.html new file mode 100644 index 0000000..97af0e3 --- /dev/null +++ b/themes/problematic/layouts/_default/list.html @@ -0,0 +1,3 @@ +{{ define "main" }} +{{- partial "posts.html" . -}} +{{ 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/themes/problematic/layouts/index.html b/themes/problematic/layouts/index.html new file mode 100644 index 0000000..de7fa73 --- /dev/null +++ b/themes/problematic/layouts/index.html @@ -0,0 +1,22 @@ + +{{ 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 "summary"}} + {{ end }} + </div> + </main> +{{ end }} + + 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..12477e4 --- /dev/null +++ b/themes/problematic/layouts/partials/head.html @@ -0,0 +1,13 @@ +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + {{ with .Site.Params.description -}} + <meta name="description" content="{{ . }}"> + {{ end }} + {{ printf `<link rel="shortcut icon" href="%s">` ("favicon.ico" | absURL) | safeHTML }} + {{ with .OutputFormats.Get "rss" -}} + {{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ end -}} + + <title>{{ .Title }}</title> +</head> diff --git a/themes/problematic/layouts/partials/header.html b/themes/problematic/layouts/partials/header.html new file mode 100644 index 0000000..9a66449 --- /dev/null +++ b/themes/problematic/layouts/partials/header.html @@ -0,0 +1,12 @@ +<header id="banner"> + <h2><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h2> + <nav> + <ul> + {{ range .Site.Menus.main.ByWeight -}} + <li> + {{ .Pre }}<a href="{{ .URL }}" title="{{ .Title }}">{{- .Name -}}</a>{{ .Post }} + </li> + {{- end }} + </ul> + </nav> +</header> diff --git a/themes/problematic/layouts/partials/posts.html b/themes/problematic/layouts/partials/posts.html new file mode 100644 index 0000000..8ff3eb2 --- /dev/null +++ b/themes/problematic/layouts/partials/posts.html @@ -0,0 +1,6 @@ +<h3>Posts</h3> +<ul id="posts"> +{{- range where site.RegularPages "Type" "in" site.Params.mainSections }} + {{ .Render "li" }} +{{- end }} +</ul> 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 = "" |