From ac1a0899ae79bb4e1eb79f17af45f7f2a9f26459 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 3 Jan 2025 18:50:55 +0800 Subject: Website update --- .gitmodules | 3 +++ assets/style.css | 35 +++++++++++++++++++++++++++++++++++ content/_index.md | 4 ++-- content/e2/_index.md | 7 +++++++ content/e2/spec | 1 + content/maild/_index.md | 5 +++++ content/meseircd/_index.md | 5 +++++ hugo.toml | 6 ++++++ layouts/_default/baseof.html | 3 +++ layouts/_default/home.html | 8 ++++++++ layouts/_default/section.html | 7 +++++++ layouts/_default/single.html | 2 +- 12 files changed, 83 insertions(+), 3 deletions(-) create mode 100644 .gitmodules create mode 100644 assets/style.css create mode 100644 content/e2/_index.md create mode 160000 content/e2/spec create mode 100644 content/maild/_index.md create mode 100644 content/meseircd/_index.md create mode 100644 layouts/_default/section.html diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..912b525 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "content/e2/spec"] + path = content/e2/spec + url = https://git.lindenii.runxiyu.org/e2-spec.git/ diff --git a/assets/style.css b/assets/style.css new file mode 100644 index 0000000..cc7b1d6 --- /dev/null +++ b/assets/style.css @@ -0,0 +1,35 @@ +html { + font-family: system-ui, sans-serif; + --bg: hsl(32, 98%, 92%); + --fg: #1E1F21; + --link-color: #24527d; + --text-decoration-color: #CCC; + color: var(--fg); + background-color: var(--bg); +} +@media(prefers-color-scheme:dark) { + html { + --bg: #1E1F21; + --fg: #EEEFF1; + --link-color: #5ca7ed; + --text-decoration-color: #474747; + } +} + +body { + margin: 0 auto; + padding: 1rem; +} + +body:not(.wide) { + max-width: 50rem; +} + +h1 { + text-align: center; +} + +a:link, a:visited { + text-decoration-color: var(--text-decoration-color); + color: var(--link-color); +} diff --git a/content/_index.md b/content/_index.md index 9a2592d..c665729 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,8 +1,8 @@ -These web pages haven't been developed yet. Please check back later. +Please note that this website is still under development. ## Contact -`#lindenii` on [irc.runxiyu.org](https://irc.runxiyu.org) +[`#lindenii`](https://runxiyu.org/~fun/kiwiirc/kiwiirc_v1.7.1-2/#lindenii) on [irc.runxiyu.org](https://irc.runxiyu.org) ## Repositories diff --git a/content/e2/_index.md b/content/e2/_index.md new file mode 100644 index 0000000..4ac3e9e --- /dev/null +++ b/content/e2/_index.md @@ -0,0 +1,7 @@ +--- +title: The e² Programming Language +--- + +e² is a new programming language. + +- [Specification](spec) diff --git a/content/e2/spec b/content/e2/spec new file mode 160000 index 0000000..0a88cff --- /dev/null +++ b/content/e2/spec @@ -0,0 +1 @@ +Subproject commit 0a88cff0eb41a9580839e6a70af8f00871cf9a5b diff --git a/content/maild/_index.md b/content/maild/_index.md new file mode 100644 index 0000000..da3f98f --- /dev/null +++ b/content/maild/_index.md @@ -0,0 +1,5 @@ +--- +title: maild +--- + +Lindenii maild is a simple SMTP server. diff --git a/content/meseircd/_index.md b/content/meseircd/_index.md new file mode 100644 index 0000000..83457a8 --- /dev/null +++ b/content/meseircd/_index.md @@ -0,0 +1,5 @@ +--- +title: MeseIRCd +--- + +MeseIRCd is a new Internet Relay Chat server. diff --git a/hugo.toml b/hugo.toml index bfcffab..a19ff22 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,3 +1,9 @@ baseURL = 'https://lindenii.runxiyu.org/' languageCode = 'en-us' title = 'Lindenii' + +[markup.goldmark.renderer] +unsafe = true + +[markup.tableOfContents] +ordered = true diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 6d931cb..359e544 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -2,7 +2,10 @@ + {{ block "title" . }}{{ .Site.Title }}{{ end }} + {{ $style := resources.Get "style.css" | resources.Minify | resources.Fingerprint }} + {{ block "main" . }} diff --git a/layouts/_default/home.html b/layouts/_default/home.html index 872513f..8bcf1b4 100644 --- a/layouts/_default/home.html +++ b/layouts/_default/home.html @@ -4,4 +4,12 @@ {{ define "main" }}

{{ .Site.Title }}

{{ .Content }} +

Projects

+ {{ end }} + diff --git a/layouts/_default/section.html b/layouts/_default/section.html new file mode 100644 index 0000000..480b8f5 --- /dev/null +++ b/layouts/_default/section.html @@ -0,0 +1,7 @@ +{{ define "title" }} + {{ .Title }} +{{ end }} +{{ define "main" }} +

{{ .Title }}

+ {{ .Content }} +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index ba2e421..480b8f5 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,5 +1,5 @@ {{ define "title" }} - {{ .Title }} – {{ .Site.Title }} + {{ .Title }} {{ end }} {{ define "main" }}

{{ .Title }}

-- cgit v1.2.3