commit 2e94aa3148aada146ee45c224928286cb1ef0626 Author: kurets Date: Sat Dec 17 08:30:26 2022 +0200 jaded diff --git a/new-site/.hugo_build.lock b/new-site/.hugo_build.lock new file mode 100644 index 00000000..e69de29b diff --git a/new-site/archetypes/default.md b/new-site/archetypes/default.md new file mode 100644 index 00000000..00e77bd7 --- /dev/null +++ b/new-site/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/new-site/config.toml b/new-site/config.toml new file mode 100644 index 00000000..05a067c7 --- /dev/null +++ b/new-site/config.toml @@ -0,0 +1,4 @@ +baseURL = 'https://vodoraslo.xyz/' +languageCode = 'en-us' +title = 'My New Hugo Site' +theme = 'lugo' diff --git a/new-site/content/first.md b/new-site/content/first.md new file mode 100644 index 00000000..f7c92bd9 --- /dev/null +++ b/new-site/content/first.md @@ -0,0 +1,10 @@ +--- +title: "First" +date: 2022-12-17T08:26:58+02:00 +draft: false +--- + +# asdsda + +asdasda + diff --git a/new-site/public/categories/index.html b/new-site/public/categories/index.html new file mode 100644 index 00000000..f03aaaa0 --- /dev/null +++ b/new-site/public/categories/index.html @@ -0,0 +1,29 @@ + + + + Categories | My New Hugo Site + + + + + + + + + + +
+

Categories

+
+ +
    +
+
+
+ + + + + diff --git a/new-site/public/categories/index.xml b/new-site/public/categories/index.xml new file mode 100644 index 00000000..c10bb4f0 --- /dev/null +++ b/new-site/public/categories/index.xml @@ -0,0 +1,24 @@ + + + My New Hugo Site + https://vodoraslo.xyz/categories/ + Recent content in Categories on My New Hugo Site + Hugo -- gohugo.io + en-us + + + + + + First + https://vodoraslo.xyz/first/ + Sat, 17 Dec 2022 08:26:58 +0200 + + https://vodoraslo.xyz/first/ + <h1 id="asdsda">asdsda</h1> +<p>asdasda</p> + + + + + diff --git a/new-site/public/first/index.html b/new-site/public/first/index.html new file mode 100644 index 00000000..54c55787 --- /dev/null +++ b/new-site/public/first/index.html @@ -0,0 +1,31 @@ + + + + First | My New Hugo Site + + + + + + + + + + +
+

First

+
+ +

asdsda

+

asdasda

+ + +
+
+ + + + + diff --git a/new-site/public/index.html b/new-site/public/index.html new file mode 100644 index 00000000..3b9db630 --- /dev/null +++ b/new-site/public/index.html @@ -0,0 +1,31 @@ + + + + + My New Hugo Site + + + + + + + + + + +
+

My New Hugo Site

+ +
+ + + + + diff --git a/new-site/public/index.xml b/new-site/public/index.xml new file mode 100644 index 00000000..2c7133ad --- /dev/null +++ b/new-site/public/index.xml @@ -0,0 +1,24 @@ + + + My New Hugo Site + https://vodoraslo.xyz/ + Recent content on My New Hugo Site + Hugo -- gohugo.io + en-us + + + + + + First + https://vodoraslo.xyz/first/ + Sat, 17 Dec 2022 08:26:58 +0200 + + https://vodoraslo.xyz/first/ + <h1 id="asdsda">asdsda</h1> +<p>asdasda</p> + + + + + diff --git a/new-site/public/rss.svg b/new-site/public/rss.svg new file mode 100644 index 00000000..c68fc246 --- /dev/null +++ b/new-site/public/rss.svg @@ -0,0 +1 @@ + diff --git a/new-site/public/sitemap.xml b/new-site/public/sitemap.xml new file mode 100644 index 00000000..20f5f7ee --- /dev/null +++ b/new-site/public/sitemap.xml @@ -0,0 +1,14 @@ + + + + https://vodoraslo.xyz/first/ + 2022-12-17T08:26:58+02:00 + + https://vodoraslo.xyz/categories/ + + https://vodoraslo.xyz/ + + https://vodoraslo.xyz/tags/ + + diff --git a/new-site/public/style.css b/new-site/public/style.css new file mode 100644 index 00000000..d3b2088c --- /dev/null +++ b/new-site/public/style.css @@ -0,0 +1,45 @@ +body { + font-family: sans-serif ; + background: #110000 ; + color: #ccc ; +} + +main { + max-width: 800px ; + margin: auto ; +} + +img { + max-width: 100% ; +} + +header h1 { + text-align: center ; +} + +footer { + text-align: center ; + clear: both ; +} + +/* For TAGLIST.HTML */ +.taglist { + text-align: center ; + clear: both ; +} + +/* For NEXTPREV.HTML */ +#nextprev { + /* The container for both the previous and next articles. */ +} +#prevart { + float: left ; + text-align: left ; +} +#nextart { + float: right ; + text-align: right ; +} +#nextart,#prevart { + max-width: 33% ; +} diff --git a/new-site/public/tags/index.html b/new-site/public/tags/index.html new file mode 100644 index 00000000..5d1cca86 --- /dev/null +++ b/new-site/public/tags/index.html @@ -0,0 +1,29 @@ + + + + Tags | My New Hugo Site + + + + + + + + + + +
+

Tags

+
+ +
    +
+
+
+ + + + + diff --git a/new-site/public/tags/index.xml b/new-site/public/tags/index.xml new file mode 100644 index 00000000..6495bac2 --- /dev/null +++ b/new-site/public/tags/index.xml @@ -0,0 +1,24 @@ + + + My New Hugo Site + https://vodoraslo.xyz/tags/ + Recent content in Tags on My New Hugo Site + Hugo -- gohugo.io + en-us + + + + + + First + https://vodoraslo.xyz/first/ + Sat, 17 Dec 2022 08:26:58 +0200 + + https://vodoraslo.xyz/first/ + <h1 id="asdsda">asdsda</h1> +<p>asdasda</p> + + + + + diff --git a/new-site/static/style.css b/new-site/static/style.css new file mode 100644 index 00000000..d3b2088c --- /dev/null +++ b/new-site/static/style.css @@ -0,0 +1,45 @@ +body { + font-family: sans-serif ; + background: #110000 ; + color: #ccc ; +} + +main { + max-width: 800px ; + margin: auto ; +} + +img { + max-width: 100% ; +} + +header h1 { + text-align: center ; +} + +footer { + text-align: center ; + clear: both ; +} + +/* For TAGLIST.HTML */ +.taglist { + text-align: center ; + clear: both ; +} + +/* For NEXTPREV.HTML */ +#nextprev { + /* The container for both the previous and next articles. */ +} +#prevart { + float: left ; + text-align: left ; +} +#nextart { + float: right ; + text-align: right ; +} +#nextart,#prevart { + max-width: 33% ; +} diff --git a/new-site/themes/lugo/.github/workflows/upload.yml b/new-site/themes/lugo/.github/workflows/upload.yml new file mode 100644 index 00000000..13acfb8b --- /dev/null +++ b/new-site/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/new-site/themes/lugo/README.md b/new-site/themes/lugo/README.md new file mode 100644 index 00000000..a39a9e82 --- /dev/null +++ b/new-site/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/new-site/themes/lugo/archetypes/default.md b/new-site/themes/lugo/archetypes/default.md new file mode 100644 index 00000000..00e77bd7 --- /dev/null +++ b/new-site/themes/lugo/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/new-site/themes/lugo/config.toml b/new-site/themes/lugo/config.toml new file mode 100644 index 00000000..c5916350 --- /dev/null +++ b/new-site/themes/lugo/config.toml @@ -0,0 +1,8 @@ +title = "Website Name" +baseURL = 'https://vodoraslo.xyz' +languageCode = 'en-us' + +[params] + # "relatedtext" is the text that appears above the tag list at the bottom of pages. + #relatedtext = "Related:" + favicon = "/favicon.ico" diff --git a/new-site/themes/lugo/layouts/_default/baseof.html b/new-site/themes/lugo/layouts/_default/baseof.html new file mode 100644 index 00000000..57e17cef --- /dev/null +++ b/new-site/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/new-site/themes/lugo/layouts/_default/list.html b/new-site/themes/lugo/layouts/_default/list.html new file mode 100644 index 00000000..b05c0a22 --- /dev/null +++ b/new-site/themes/lugo/layouts/_default/list.html @@ -0,0 +1,17 @@ +{{ define "title" -}} +{{ .Title | title }} +{{- end }} +{{ define "main" -}} +{{ .Content }} + +{{- end }} diff --git a/new-site/themes/lugo/layouts/_default/rss.xml b/new-site/themes/lugo/layouts/_default/rss.xml new file mode 100644 index 00000000..38dbe3dd --- /dev/null +++ b/new-site/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/new-site/themes/lugo/layouts/_default/single.html b/new-site/themes/lugo/layouts/_default/single.html new file mode 100644 index 00000000..56c5a115 --- /dev/null +++ b/new-site/themes/lugo/layouts/_default/single.html @@ -0,0 +1,3 @@ +{{ define "title" -}} +{{ .Title }} +{{- end }} diff --git a/new-site/themes/lugo/layouts/partials/nav.html b/new-site/themes/lugo/layouts/partials/nav.html new file mode 100644 index 00000000..a7318fe0 --- /dev/null +++ b/new-site/themes/lugo/layouts/partials/nav.html @@ -0,0 +1,8 @@ + diff --git a/new-site/themes/lugo/layouts/partials/nextprev.html b/new-site/themes/lugo/layouts/partials/nextprev.html new file mode 100644 index 00000000..099f16da --- /dev/null +++ b/new-site/themes/lugo/layouts/partials/nextprev.html @@ -0,0 +1,10 @@ +{{ if or .Next .Prev -}} +
+{{- with .Prev }} +
Previous:
{{.Title}}
+{{ end -}} +{{- with .Next -}} +
Next:
{{.Title}}
+{{ end -}} +
+{{ end -}} diff --git a/new-site/themes/lugo/layouts/partials/taglist.html b/new-site/themes/lugo/layouts/partials/taglist.html new file mode 100644 index 00000000..757db6f5 --- /dev/null +++ b/new-site/themes/lugo/layouts/partials/taglist.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/new-site/themes/lugo/layouts/shortcodes/hidvid.html b/new-site/themes/lugo/layouts/shortcodes/hidvid.html new file mode 100644 index 00000000..14f592d7 --- /dev/null +++ b/new-site/themes/lugo/layouts/shortcodes/hidvid.html @@ -0,0 +1,10 @@ +
+ Click to reveal video. + +
diff --git a/new-site/themes/lugo/layouts/shortcodes/img.html b/new-site/themes/lugo/layouts/shortcodes/img.html new file mode 100644 index 00000000..ff7959bc --- /dev/null +++ b/new-site/themes/lugo/layouts/shortcodes/img.html @@ -0,0 +1,20 @@ + +
+ {{- with .Get "link"}}{{ end -}} + {{.}} + {{- if .Get "link"}}{{ end -}} + {{- with .Get "caption" -}} +
+ {{- . -}} +
+ {{- end -}} +
diff --git a/new-site/themes/lugo/layouts/shortcodes/tagcloud.html b/new-site/themes/lugo/layouts/shortcodes/tagcloud.html new file mode 100644 index 00000000..0cf0118f --- /dev/null +++ b/new-site/themes/lugo/layouts/shortcodes/tagcloud.html @@ -0,0 +1,3 @@ +{{ if isset .Site.Taxonomies "tags" }}{{ if not (eq (len .Site.Taxonomies.tags) 0) }} {{ end }}{{ end }} diff --git a/new-site/themes/lugo/layouts/shortcodes/vid.html b/new-site/themes/lugo/layouts/shortcodes/vid.html new file mode 100644 index 00000000..4c612fe5 --- /dev/null +++ b/new-site/themes/lugo/layouts/shortcodes/vid.html @@ -0,0 +1,6 @@ + diff --git a/new-site/themes/lugo/static/rss.svg b/new-site/themes/lugo/static/rss.svg new file mode 100644 index 00000000..c68fc246 --- /dev/null +++ b/new-site/themes/lugo/static/rss.svg @@ -0,0 +1 @@ + diff --git a/new-site/themes/lugo/static/style.css b/new-site/themes/lugo/static/style.css new file mode 100644 index 00000000..d3b2088c --- /dev/null +++ b/new-site/themes/lugo/static/style.css @@ -0,0 +1,45 @@ +body { + font-family: sans-serif ; + background: #110000 ; + color: #ccc ; +} + +main { + max-width: 800px ; + margin: auto ; +} + +img { + max-width: 100% ; +} + +header h1 { + text-align: center ; +} + +footer { + text-align: center ; + clear: both ; +} + +/* For TAGLIST.HTML */ +.taglist { + text-align: center ; + clear: both ; +} + +/* For NEXTPREV.HTML */ +#nextprev { + /* The container for both the previous and next articles. */ +} +#prevart { + float: left ; + text-align: left ; +} +#nextart { + float: right ; + text-align: right ; +} +#nextart,#prevart { + max-width: 33% ; +}