Added Hugo Simple theme and configured some basic customizations.
This commit is contained in:
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
public/
|
||||||
|
static/images/
|
||||||
|
static/mixes/
|
||||||
|
static/songs/
|
||||||
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "themes/hugo-simple"]
|
||||||
|
path = themes/hugo-simple
|
||||||
|
url = https://github.com/maolonglong/hugo-simple.git
|
||||||
19
.justfile
Normal file
19
.justfile
Normal file
@@ -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/
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
# iiogama.0x212.com
|
||||||
|
|
||||||
|
Personal website for iiogama
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
* [Hugo](https://gohugo.io)
|
||||||
|
* [Just](https://just.systems)
|
||||||
|
* [Rclone](https://rclone.org)
|
||||||
|
|||||||
5
archetypes/default.md
Normal file
5
archetypes/default.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
+++
|
||||||
|
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
|
||||||
|
date = {{ .Date }}
|
||||||
|
draft = true
|
||||||
|
+++
|
||||||
78
assets/style.css
Normal file
78
assets/style.css
Normal file
@@ -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 */
|
||||||
|
}
|
||||||
4
hugo.toml
Normal file
4
hugo.toml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
baseURL = 'https://iiogama.0x212.com'
|
||||||
|
languageCode = 'en-us'
|
||||||
|
title = 'iiogama@0x212.com'
|
||||||
|
theme = 'hugo-simple'
|
||||||
19
layouts/_default/home.html
Normal file
19
layouts/_default/home.html
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{{ define "main" }}
|
||||||
|
<main aria-role="main">
|
||||||
|
<header class="home-page-header">
|
||||||
|
<h1>{{ .Title }}</h1>
|
||||||
|
{{ with .Params.subtitle }}
|
||||||
|
<span class="subtitle">{{ . }}</span>
|
||||||
|
{{ end }}
|
||||||
|
</header>
|
||||||
|
<div class="home-page-content">
|
||||||
|
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
|
||||||
|
{{ .Content }}
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
{{ range first 10 .Site.RegularPages }}
|
||||||
|
{{ .Render "summary" }}
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
{{ end }}
|
||||||
9
layouts/partials/footer.html
Normal file
9
layouts/partials/footer.html
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{{ with .Site.Copyright }}
|
||||||
|
<span>{{ . }}</span>
|
||||||
|
{{ end }}
|
||||||
|
{{ if not .Site.Params.hideMadeWithLine }}
|
||||||
|
<span>
|
||||||
|
{{ if .Site.Copyright }}|{{ end }}
|
||||||
|
<p>Just some dude.</p>
|
||||||
|
</span>
|
||||||
|
{{ end }}
|
||||||
6
layouts/partials/header.html
Normal file
6
layouts/partials/header.html
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<nav>{{- partial "nav.html" . -}}</nav>
|
||||||
|
|
||||||
|
<h1>{{ .Title }}</h1>
|
||||||
|
{{ with .Description }}
|
||||||
|
<p>{{ . }}</p>
|
||||||
|
{{ end }}
|
||||||
34
layouts/partials/nav.html
Normal file
34
layouts/partials/nav.html
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
{{ $currentPage := . -}}
|
||||||
|
{{ range .Site.Menus.main.ByWeight }}
|
||||||
|
<a
|
||||||
|
href="{{ .URL }}"
|
||||||
|
{{ if eq $currentPage .Page }}class="current"{{ end }}
|
||||||
|
>{{ .Name }}</a
|
||||||
|
>
|
||||||
|
{{ end }}
|
||||||
|
{{ if not .Site.Params.hideRSSLink }}
|
||||||
|
<a href="/about/">
|
||||||
|
About
|
||||||
|
</a>
|
||||||
|
<a href="/">
|
||||||
|
Contact
|
||||||
|
</a>
|
||||||
|
<a href="/music/">
|
||||||
|
Music
|
||||||
|
</a>
|
||||||
|
<a href="/posts/">
|
||||||
|
Posts
|
||||||
|
</a>
|
||||||
|
<a href="/wiki/">
|
||||||
|
Wiki
|
||||||
|
</a>
|
||||||
|
<a href="{{ relURL "index.xml" }}">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 448 512">
|
||||||
|
<!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.-->
|
||||||
|
<path
|
||||||
|
d="M0 64C0 46.3 14.3 32 32 32c229.8 0 416 186.2 416 416c0 17.7-14.3 32-32 32s-32-14.3-32-32C384 253.6 226.4 96 32 96C14.3 96 0 81.7 0 64zM0 416a64 64 0 1 1 128 0A64 64 0 1 1 0 416zM32 160c159.1 0 288 128.9 288 288c0 17.7-14.3 32-32 32s-32-14.3-32-32c0-123.7-100.3-224-224-224c-17.7 0-32-14.3-32-32s14.3-32 32-32z"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
RSS
|
||||||
|
</a>
|
||||||
|
{{ end }}
|
||||||
1
themes/hugo-simple
Submodule
1
themes/hugo-simple
Submodule
Submodule themes/hugo-simple added at 2bce4a3899
Reference in New Issue
Block a user