From db6cb54326c80f805c50e0710acba3818270ae2d Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 5 Jan 2022 20:28:20 +0000 Subject: got absolute minima running --- themes/problematic/LICENSE | 20 ++++++++++++++++++++ themes/problematic/archetypes/default.md | 2 ++ themes/problematic/layouts/404.html | 0 themes/problematic/layouts/_default/baseof.html | 11 +++++++++++ themes/problematic/layouts/_default/list.html | 6 ++++++ themes/problematic/layouts/_default/single.html | 4 ++++ themes/problematic/layouts/index.html | 22 ++++++++++++++++++++++ themes/problematic/layouts/partials/footer.html | 0 themes/problematic/layouts/partials/head.html | 0 themes/problematic/layouts/partials/header.html | 0 themes/problematic/theme.toml | 21 +++++++++++++++++++++ 11 files changed, 86 insertions(+) create mode 100644 themes/problematic/LICENSE create mode 100644 themes/problematic/archetypes/default.md create mode 100644 themes/problematic/layouts/404.html create mode 100644 themes/problematic/layouts/_default/baseof.html create mode 100644 themes/problematic/layouts/_default/list.html create mode 100644 themes/problematic/layouts/_default/single.html create mode 100644 themes/problematic/layouts/index.html create mode 100644 themes/problematic/layouts/partials/footer.html create mode 100644 themes/problematic/layouts/partials/head.html create mode 100644 themes/problematic/layouts/partials/header.html create mode 100644 themes/problematic/theme.toml (limited to 'themes/problematic') 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 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 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} +
+ {{- block "main" . }}{{- end }} +
+ {{- partial "footer.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" }} +

{{ .Title }}

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

{{ .Title }}

+{{ 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" }} +

{{ .Title }}

+{{ .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" }} +
+
+

{{.Title}}

+ {{ with .Params.subtitle }} + {{.}} + {{ end }} +
+
+ + {{.Content}} +
+
+ {{ range first 10 .Site.RegularPages }} + {{ .Render "summary"}} + {{ end }} +
+
+{{ end }} + + diff --git a/themes/problematic/layouts/partials/footer.html b/themes/problematic/layouts/partials/footer.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/problematic/layouts/partials/head.html b/themes/problematic/layouts/partials/head.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/problematic/layouts/partials/header.html b/themes/problematic/layouts/partials/header.html new file mode 100644 index 0000000..e69de29 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 = "" -- cgit v1.2.3 From 62443b2f690d52b4949f8a92fa713ab6848be606 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 5 Jan 2022 20:36:54 +0000 Subject: reformat --- themes/problematic/layouts/_default/list.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'themes/problematic') diff --git a/themes/problematic/layouts/_default/list.html b/themes/problematic/layouts/_default/list.html index 3ebdde1..61cf6dc 100644 --- a/themes/problematic/layouts/_default/list.html +++ b/themes/problematic/layouts/_default/list.html @@ -1,6 +1,6 @@ {{ define "main" }}

{{ .Title }}

-{{ range .Pages.ByPublishDate.Reverse }} -

{{ .Title }}

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

{{ .Title }}

+ {{ end }} {{ end }} -- cgit v1.2.3 From f7a556559b17c6267ff898f68cae02a49bf87da6 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 5 Jan 2022 21:01:12 +0000 Subject: site works with no css --- themes/problematic/layouts/_default/li.html | 6 ++++++ themes/problematic/layouts/_default/list.html | 5 +---- themes/problematic/layouts/partials/head.html | 13 +++++++++++++ themes/problematic/layouts/partials/header.html | 12 ++++++++++++ themes/problematic/layouts/partials/posts.html | 6 ++++++ 5 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 themes/problematic/layouts/_default/li.html create mode 100644 themes/problematic/layouts/partials/posts.html (limited to 'themes/problematic') 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 @@ +
  • + + : + {{ .Title }} + +
  • diff --git a/themes/problematic/layouts/_default/list.html b/themes/problematic/layouts/_default/list.html index 61cf6dc..97af0e3 100644 --- a/themes/problematic/layouts/_default/list.html +++ b/themes/problematic/layouts/_default/list.html @@ -1,6 +1,3 @@ {{ define "main" }} -

    {{ .Title }}

    - {{ range .Pages.ByPublishDate.Reverse }} -

    {{ .Title }}

    - {{ end }} +{{- partial "posts.html" . -}} {{ end }} diff --git a/themes/problematic/layouts/partials/head.html b/themes/problematic/layouts/partials/head.html index e69de29..12477e4 100644 --- a/themes/problematic/layouts/partials/head.html +++ b/themes/problematic/layouts/partials/head.html @@ -0,0 +1,13 @@ + + + + {{ with .Site.Params.description -}} + + {{ end }} + {{ printf `` ("favicon.ico" | absURL) | safeHTML }} + {{ with .OutputFormats.Get "rss" -}} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ end -}} + + {{ .Title }} + diff --git a/themes/problematic/layouts/partials/header.html b/themes/problematic/layouts/partials/header.html index e69de29..9a66449 100644 --- a/themes/problematic/layouts/partials/header.html +++ b/themes/problematic/layouts/partials/header.html @@ -0,0 +1,12 @@ + 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 @@ +

    Posts

    +
      +{{- range where site.RegularPages "Type" "in" site.Params.mainSections }} + {{ .Render "li" }} +{{- end }} +
    -- cgit v1.2.3