summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-01-03 18:50:55 +0800
committerRunxi Yu <me@runxiyu.org>2025-01-03 18:50:55 +0800
commitac1a0899ae79bb4e1eb79f17af45f7f2a9f26459 (patch)
treee5eaf9189b25ec830ddc1cb8114db5c8e81a529e
parentindex: Add repositories (diff)
downloadwebsite-ac1a0899ae79bb4e1eb79f17af45f7f2a9f26459.tar.gz
website-ac1a0899ae79bb4e1eb79f17af45f7f2a9f26459.tar.zst
website-ac1a0899ae79bb4e1eb79f17af45f7f2a9f26459.zip
Website update
-rw-r--r--.gitmodules3
-rw-r--r--assets/style.css35
-rw-r--r--content/_index.md4
-rw-r--r--content/e2/_index.md7
m---------content/e2/spec0
-rw-r--r--content/maild/_index.md5
-rw-r--r--content/meseircd/_index.md5
-rw-r--r--hugo.toml6
-rw-r--r--layouts/_default/baseof.html3
-rw-r--r--layouts/_default/home.html8
-rw-r--r--layouts/_default/section.html7
-rw-r--r--layouts/_default/single.html2
12 files changed, 82 insertions, 3 deletions
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
+Subproject 0a88cff0eb41a9580839e6a70af8f00871cf9a5
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 @@
<html>
<head>
<meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
+ {{ $style := resources.Get "style.css" | resources.Minify | resources.Fingerprint }}
+ <link rel="stylesheet" href="{{ $style.RelPermalink }}" />
</head>
<body>
{{ 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" }}
<h1>{{ .Site.Title }}</h1>
{{ .Content }}
+ <h2>Projects</h2>
+ <ul>
+ {{ range .Sections }}
+ <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
+ {{ end }}
+ </li>
+ </ul>
{{ 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" }}
+ <h1>{{ .Title }}</h1>
+ {{ .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 }} &ndash; {{ .Site.Title }}
+ {{ .Title }}
{{ end }}
{{ define "main" }}
<h1>{{ .Title }}</h1>