From 516f632b84bc418486538a2183564fe94b89097e Mon Sep 17 00:00:00 2001
From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>
Date: Tue, 1 Jul 2025 17:01:45 +0900
Subject: init
---
themes/lugo/.github/workflows/upload.yml | 32 ++++++++++++++++++++
themes/lugo/README.md | 21 +++++++++++++
themes/lugo/archetypes/default.md | 6 ++++
themes/lugo/config.toml | 17 +++++++++++
themes/lugo/layouts/_default/baseof.html | 36 ++++++++++++++++++++++
themes/lugo/layouts/_default/list.html | 20 +++++++++++++
themes/lugo/layouts/_default/rss.xml | 26 ++++++++++++++++
themes/lugo/layouts/_default/single.html | 3 ++
themes/lugo/layouts/partials/nav.html | 8 +++++
themes/lugo/layouts/partials/nextprev.html | 10 +++++++
themes/lugo/layouts/partials/taglist.html | 13 ++++++++
themes/lugo/layouts/shortcodes/hidvid.html | 10 +++++++
themes/lugo/layouts/shortcodes/img.html | 20 +++++++++++++
themes/lugo/layouts/shortcodes/tagcloud.html | 3 ++
themes/lugo/layouts/shortcodes/vid.html | 6 ++++
themes/lugo/static/rss.svg | 1 +
themes/lugo/static/style.css | 45 ++++++++++++++++++++++++++++
17 files changed, 277 insertions(+)
create mode 100644 themes/lugo/.github/workflows/upload.yml
create mode 100644 themes/lugo/README.md
create mode 100644 themes/lugo/archetypes/default.md
create mode 100644 themes/lugo/config.toml
create mode 100644 themes/lugo/layouts/_default/baseof.html
create mode 100644 themes/lugo/layouts/_default/list.html
create mode 100644 themes/lugo/layouts/_default/rss.xml
create mode 100644 themes/lugo/layouts/_default/single.html
create mode 100644 themes/lugo/layouts/partials/nav.html
create mode 100644 themes/lugo/layouts/partials/nextprev.html
create mode 100644 themes/lugo/layouts/partials/taglist.html
create mode 100644 themes/lugo/layouts/shortcodes/hidvid.html
create mode 100644 themes/lugo/layouts/shortcodes/img.html
create mode 100644 themes/lugo/layouts/shortcodes/tagcloud.html
create mode 100644 themes/lugo/layouts/shortcodes/vid.html
create mode 100644 themes/lugo/static/rss.svg
create mode 100644 themes/lugo/static/style.css
(limited to 'themes/lugo')
diff --git a/themes/lugo/.github/workflows/upload.yml b/themes/lugo/.github/workflows/upload.yml
new file mode 100644
index 0000000..13acfb8
--- /dev/null
+++ b/themes/lugo/.github/workflows/upload.yml
@@ -0,0 +1,32 @@
+name: CI
+
+# Controls when the action will run.
+on:
+ # Triggers the workflow on push to master (including merged PRs)
+ push:
+ branches: [ master ]
+
+ # Allows you to run this workflow manually from the Actions tab
+ workflow_dispatch:
+
+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
+jobs:
+ # This workflow contains a single job called "build"
+ update:
+ # The type of runner that the job will run on
+ runs-on: ubuntu-latest
+
+ # Steps represent a sequence of tasks that will be executed as part of the job
+ steps:
+ - name: Updating website.
+ uses: appleboy/ssh-action@master
+ with:
+ host: lukesmith.xyz
+ username: lugo
+ key: ${{ secrets.lugo_ssh }}
+ passphrase: ${{ secrets.lugo_pass }}
+ port: 22
+ script: |
+ cd /var/www/lugo
+ git stash
+ git pull --force origin master
diff --git a/themes/lugo/README.md b/themes/lugo/README.md
new file mode 100644
index 0000000..a39a9e8
--- /dev/null
+++ b/themes/lugo/README.md
@@ -0,0 +1,21 @@
+# Luke's Hugo Theme
+
+A simple Hugo theme I plan on using for my personal website, [Based.Cooking](https://based.cooking) and [LandChad.net](https://landchad.net).
+
+## get started
+
+```sh
+hugo new site new-site
+cd new-site
+git clone https://github.com/lukesmithxyz/lugo themes/lugo
+echo "theme = 'lugo'" >> config.toml
+cp themes/lugo/static/style.css static/
+```
+
+## stuff
+
+- Makes one RSS feed for the entire site at `/index.xml`
+- Stylesheet is in `/style.css` and includes some important stuff for partials.
+- If a post is tagged, links to the tags are placed at the bottom of the post.
+- `nextprev.html` adds links to the Next and Previous articles to the bottom of a page.
+- `taglist.html` links all tags an article is tagged to for related content.
diff --git a/themes/lugo/archetypes/default.md b/themes/lugo/archetypes/default.md
new file mode 100644
index 0000000..00e77bd
--- /dev/null
+++ b/themes/lugo/archetypes/default.md
@@ -0,0 +1,6 @@
+---
+title: "{{ replace .Name "-" " " | title }}"
+date: {{ .Date }}
+draft: true
+---
+
diff --git a/themes/lugo/config.toml b/themes/lugo/config.toml
new file mode 100644
index 0000000..e884199
--- /dev/null
+++ b/themes/lugo/config.toml
@@ -0,0 +1,17 @@
+title = "Website Name"
+baseURL = 'https://example.org'
+languageCode = 'en-us'
+
+[params]
+ # "relatedtext" is the text that appears above the tag list at the bottom of pages.
+ relatedtext = "Related"
+ favicon = "/favicon.ico"
+
+ #list items
+ datesinlist = true
+ authorsinlist = true
+
+ #footer items
+ nextprev = true
+ taglist = true
+ showrss = true
\ No newline at end of file
diff --git a/themes/lugo/layouts/_default/baseof.html b/themes/lugo/layouts/_default/baseof.html
new file mode 100644
index 0000000..57e17ce
--- /dev/null
+++ b/themes/lugo/layouts/_default/baseof.html
@@ -0,0 +1,36 @@
+
+
+
+ {{ if not .IsHome }}{{ .Title | title }} | {{ end }}{{ .Site.Title }}
+
+
+
+ {{ with .Site.Params.favicon }}
+ {{ end -}}
+
+ {{ if isset .Params "tags" }}
+ {{ end -}}
+
+
+
+
+
+{{ if .Site.Menus.main }}{{ partial "nav.html" . }}{{ end -}}
+
+
{{ block "title" . }}{{ end }}
+
+{{ block "main" . }}
+{{ .Content }}
+{{ end }}
+{{ if .Param "nextprev" }}{{ partial "nextprev.html" . -}}{{ end -}}
+{{ if .Param "taglist" }}{{ partial "taglist.html" . }}{{ end -}}
+
+
+{{ block "footer" . }}
+
+{{ end }}
+
+
diff --git a/themes/lugo/layouts/_default/list.html b/themes/lugo/layouts/_default/list.html
new file mode 100644
index 0000000..601fc08
--- /dev/null
+++ b/themes/lugo/layouts/_default/list.html
@@ -0,0 +1,20 @@
+{{ define "title" -}}
+{{ .Title | title }}
+{{- end }}
+{{ define "main" -}}
+{{ .Content }}
+
+{{- range.Pages }}
+
+ {{- if .Param "datesinlist" }} – {{ end -}}
+ {{ .Title }}
+ {{- if .Param "authorsinlist" }}
+ {{ with .Params.authors }}
+ by
+ {{ delimit . ", " " and " }}
+ {{end}}
+ {{ end -}}
+
+{{- end }}
+
+{{- end }}
diff --git a/themes/lugo/layouts/_default/rss.xml b/themes/lugo/layouts/_default/rss.xml
new file mode 100644
index 0000000..38dbe3d
--- /dev/null
+++ b/themes/lugo/layouts/_default/rss.xml
@@ -0,0 +1,26 @@
+
+
+ {{ .Site.Title }}
+ {{ .Permalink }}
+ Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}
+ Hugo -- gohugo.io{{ with .Site.LanguageCode }}
+ {{.}}{{end}}{{ with .Site.Author.email }}
+ {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }}
+ {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }}
+ {{.}}{{end}}{{ if not .Date.IsZero }}
+ {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }}
+ {{ with .OutputFormats.Get "RSS" }}
+ {{ printf "" .Permalink .MediaType | safeHTML }}
+ {{ end }}
+ {{ range .Site.RegularPages }}
+
+ {{ .Title }}
+ {{ .Permalink }}
+ {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}
+ {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}
+ {{ .Permalink }}
+ {{- .Content | html -}}
+
+ {{ end }}
+
+
diff --git a/themes/lugo/layouts/_default/single.html b/themes/lugo/layouts/_default/single.html
new file mode 100644
index 0000000..56c5a11
--- /dev/null
+++ b/themes/lugo/layouts/_default/single.html
@@ -0,0 +1,3 @@
+{{ define "title" -}}
+{{ .Title }}
+{{- end }}
diff --git a/themes/lugo/layouts/partials/nav.html b/themes/lugo/layouts/partials/nav.html
new file mode 100644
index 0000000..a7318fe
--- /dev/null
+++ b/themes/lugo/layouts/partials/nav.html
@@ -0,0 +1,8 @@
+
diff --git a/themes/lugo/layouts/partials/nextprev.html b/themes/lugo/layouts/partials/nextprev.html
new file mode 100644
index 0000000..099f16d
--- /dev/null
+++ b/themes/lugo/layouts/partials/nextprev.html
@@ -0,0 +1,10 @@
+{{ if or .Next .Prev -}}
+