diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..58a1444 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +public/ +static/images/ +static/mixes/ +static/songs/ diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..0bff732 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/hugo-simple"] + path = themes/hugo-simple + url = https://github.com/maolonglong/hugo-simple.git diff --git a/.justfile b/.justfile new file mode 100644 index 0000000..a5bbd4d --- /dev/null +++ b/.justfile @@ -0,0 +1,19 @@ +default: project-name + @just --list + +project-name: + @echo "iiogama.0x212.com" + +build: + hugo --gc --minify + +clean: + rm -rI ./public + +deploy: + rclone sync ./public/ iiogama.0x212.com:public/ + +push: + +todo: + nb todos/ diff --git a/README.md b/README.md index e69de29..70e5cb9 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,9 @@ +# iiogama.0x212.com + +Personal website for iiogama + +## Dependencies + +* [Hugo](https://gohugo.io) +* [Just](https://just.systems) +* [Rclone](https://rclone.org) diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..c6f3fce --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +title = '{{ replace .File.ContentBaseName "-" " " | title }}' +date = {{ .Date }} +draft = true ++++ diff --git a/assets/style.css b/assets/style.css new file mode 100644 index 0000000..bdaf0d5 --- /dev/null +++ b/assets/style.css @@ -0,0 +1,78 @@ +@font-face { + font-family: comic-shanns; + src: url(/fonts/comic-shanns-nerd-font-regular.ttf) +} +* { + font-family: comic-shanns; +} +body { + -webkit-text-size-adjust: 100%; /* prevent Mobile Safari from adjusting font sizes */ +} + +nav a.current { + color: var(--accent) !important; + border-color: var(--accent) !important; +} + +div.pagination { + display: flex; + justify-content: space-between; +} + +ul.blog-posts { + padding-left: 0; +} + +ul.blog-posts > li { + list-style-type: none; + display: flex; +} + +ul.blog-posts > li span { + flex: 0 0 130px; + color: var(--text-light); +} + +nav#TableOfContents > ul { + margin-block-start: 0; +} + +.icon { + vertical-align: sub; + padding-right: 0.25rem; + display: inline-block; + width: 1em; + height: 1.3em; + margin-right: 0.2rem; + stroke-width: 0; + stroke: currentColor; + fill: currentColor; +} + +div.highlight code, +div.highlight pre, +div.highlight pre span { + color: inherit; +} +img[src$='#center'] +{ + display: block; + margin: 0.7rem auto; /* you can replace the vertical '0.7rem' by + whatever floats your boat, but keep the + horizontal 'auto' for this to work */ + /* whatever else styles you fancy here */ +} + +img[src$='#floatleft'] +{ + float:left; + margin: 0.7rem; /* this margin is totally up to you */ + /* whatever else styles you fancy here */ +} + +img[src$='#floatright'] +{ + float:right; + margin: 0.7rem; /* this margin is totally up to you */ + /* whatever else styles you fancy here */ +} diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..30ef8bb --- /dev/null +++ b/hugo.toml @@ -0,0 +1,4 @@ +baseURL = 'https://iiogama.0x212.com' +languageCode = 'en-us' +title = 'iiogama@0x212.com' +theme = 'hugo-simple' diff --git a/layouts/_default/home.html b/layouts/_default/home.html new file mode 100644 index 0000000..41a5553 --- /dev/null +++ b/layouts/_default/home.html @@ -0,0 +1,19 @@ +{{ define "main" }} +
+
+

{{ .Title }}

+ {{ with .Params.subtitle }} + {{ . }} + {{ end }} +
+
+ + {{ .Content }} +
+
+ {{ range first 10 .Site.RegularPages }} + {{ .Render "summary" }} + {{ end }} +
+
+{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..57d91e2 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,9 @@ +{{ with .Site.Copyright }} + {{ . }} +{{ end }} +{{ if not .Site.Params.hideMadeWithLine }} + + {{ if .Site.Copyright }}|{{ end }} +

Just some dude.

+
+{{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..095d626 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,6 @@ + + +

{{ .Title }}

+{{ with .Description }} +

{{ . }}

+{{ end }} diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html new file mode 100644 index 0000000..3bcaed1 --- /dev/null +++ b/layouts/partials/nav.html @@ -0,0 +1,34 @@ +{{ $currentPage := . -}} +{{ range .Site.Menus.main.ByWeight }} +{{ .Name }} + {{ end }} + {{ if not .Site.Params.hideRSSLink }} + + About + + + Contact + + + Music + + + Posts + + + Wiki + + + + + + + RSS + + {{ end }} diff --git a/themes/hugo-simple b/themes/hugo-simple new file mode 160000 index 0000000..2bce4a3 --- /dev/null +++ b/themes/hugo-simple @@ -0,0 +1 @@ +Subproject commit 2bce4a389945613090f3782e2a6c0bac37e40944