From: Joann Mõndresku Date: Wed, 21 Sep 2022 17:58:23 +0000 (+0300) Subject: Based quest initial theme. X-Git-Url: https://git.based.quest/%24%24URL?a=commitdiff_plain;h=3d3f8b5c32a990e668937e6edfb897c7c03842c4;p=bquest.git Based quest initial theme. --- 3d3f8b5c32a990e668937e6edfb897c7c03842c4 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..147d594 --- /dev/null +++ b/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/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..26f317f --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..a9c83cd --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,4 @@ +{{ - partial "header.html" . - }} +

hi

+ + diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..d45fa5f --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,8 @@ +{{ partial "header.html" . -}} +

{{.Site.Title}} – Articles for {{.Title}}

+ +{{ partial "footer.html" .}} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..9072580 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,8 @@ +{{ partial "header.html" . -}} +

<-- Back

+
+

{{.Site.Title }} – {{ .Title }}

+

Posted on {{ .Date.Format "02/01/2006 15:04:05" }}

+ {{ .Content }} +
+{{ partial "footer.html" . }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..0495271 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,37 @@ +{{ partial "header.html" . -}} +

> curl {{ .Site.Title }} -v
+* Trying 127.0.0.1:80...
+* Connected to {{ .Site.Title }} (127.0.0.1) port 80 (#0)
+> GET / HTTP 1.1
+> Host: based.quest
+> User-Agent: curl/b.45.3d
+> Accept */*
+>

+

< HTTP/1.1 200 OK
+< Server: nginx
+< Date: Right now o'clock
+< Content-Type: base/based
+< Last-Modified: Doesn't need to be modified, is perfect as-is.
+< Connection: keep-alive

+

based

+ +{{ partial "links.html" }} + +

Tags: {{ range $name, $taxonomy := .Site.Taxonomies.tags }}{{ $name }} {{ end }}

+{{ range .Pages.GroupBy "Section" "desc"}} +{{ with $.Site.GetPage "section" .Key }} +

{{ .Title }}

+ +{{ end }} +{{ end }} + +{{ partial "tags.html" . }} +{{ partial "footer.html" . }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..26e9c59 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,2 @@ +



Join us at Matrix: {{ .Site.Params.Matrix }}

+

© 2021 - 2022 {{ .Site.Title }} | Powered by Hugo | Donate | Atom RSS

diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..558ff53 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,12 @@ + + + + {{ .Site.Title }} + + + + + {{ if .Params.img }}{{ end }} + + diff --git a/layouts/partials/links.html b/layouts/partials/links.html new file mode 100644 index 0000000..8e879f5 --- /dev/null +++ b/layouts/partials/links.html @@ -0,0 +1,2 @@ +

Create layouts/partials/links.html to create your own links section here.

+

diff --git a/layouts/partials/tags.html b/layouts/partials/tags.html new file mode 100644 index 0000000..757db6f --- /dev/null +++ b/layouts/partials/tags.html @@ -0,0 +1,13 @@ + {{- if isset .Params "tags" -}} + {{- $tagsLen := len .Params.tags -}} + {{- if gt $tagsLen 0 -}} +
+ {{- with .Site.Params.relatedtext }}{{ . }}
{{ end -}} + {{- range $k, $v := .Params.tags -}} + {{- $url := printf "tags/%s" (. | urlize | lower) -}} + {{ . | title }} + {{- if lt $k (sub $tagsLen 1) }} · {{ end -}} + {{- end -}} +
+ {{- end -}} + {{- end }} diff --git a/layouts/shortcodes/tags.html b/layouts/shortcodes/tags.html new file mode 100644 index 0000000..c6c5e02 --- /dev/null +++ b/layouts/shortcodes/tags.html @@ -0,0 +1,3 @@ +{{ if isset .Site.Taxonomies "tags" }}{{ if not (eq (len .Site.Taxonomies.tags) 0) }}

+ {{ range $name, $items := .Site.Taxonomies.tags }}{{ $url := printf "%s/%s" "tags" ($name | urlize | lower)}}

  • {{ $name | title }}
  • + {{ end }}

    {{ end }}{{ end }} diff --git a/static/bquest.css b/static/bquest.css new file mode 100644 index 0000000..f640d12 --- /dev/null +++ b/static/bquest.css @@ -0,0 +1 @@ +body,html{background:#000;color:#fff;max-width:1024px;margin:1em auto;padding:0 0.5em;font-family:monospace;font-size:large;}.cern-blue{color:#397ef6;}a,a:visited{color:#fff;}p{margin:0;padding:0}#post p{margin:12px 0;margin:revert;text-align:justify;}#post a,#post a:visited{color:#00b7ff;}pre code {display:block;padding:1em 1em 1em 1em;overflow-x:auto;}code{border:1px solid #ffb300;border-radius:5px;color:#19ca24;background:#202020;display:inline-block;} diff --git a/theme.toml b/theme.toml new file mode 100644 index 0000000..926f0f2 --- /dev/null +++ b/theme.toml @@ -0,0 +1,13 @@ +# theme.toml template for a Hugo theme +# See https://github.com/gohugoio/hugoThemes#themetoml for an example + +name = "bquest" +description = "The theme for based.quest website" +homepage = "https://based.quest/" +tags = ["blog"] +features = [] +min_version = "0.41.0" + +[author] + name = "Joann Mondresku" + homepage = "https://cernodile.com"