From 953f0291ee58d4fde0586571c2f6d7823cb54e15 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 3 Jan 2025 18:04:14 +0800 Subject: New site --- .gitignore | 3 +++ archetypes/default.md | 5 +++++ content/_index.md | 5 +++++ hugo.toml | 3 +++ layouts/_default/baseof.html | 15 +++++++++++++++ layouts/_default/home.html | 7 +++++++ layouts/_default/single.html | 7 +++++++ upload | 2 ++ 8 files changed, 47 insertions(+) create mode 100644 .gitignore create mode 100644 archetypes/default.md create mode 100644 content/_index.md create mode 100644 hugo.toml create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/home.html create mode 100644 layouts/_default/single.html create mode 100755 upload diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a8f048b --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/public +/.hugo_build.lock +/resources/_gen 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/content/_index.md b/content/_index.md new file mode 100644 index 0000000..cdaa1af --- /dev/null +++ b/content/_index.md @@ -0,0 +1,5 @@ +These web pages haven't been developed yet. Please check back later. + +## Contact + +`#lindenii` on [irc.runxiyu.org](https://irc.runxiyu.org) diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..bfcffab --- /dev/null +++ b/hugo.toml @@ -0,0 +1,3 @@ +baseURL = 'https://lindenii.runxiyu.org/' +languageCode = 'en-us' +title = 'Lindenii' diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..6d931cb --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,15 @@ + + + + + {{ block "title" . }}{{ .Site.Title }}{{ end }} + + + {{ block "main" . }} + {{ end }} + {{ block "footer" . }} + {{ end }} + + + + diff --git a/layouts/_default/home.html b/layouts/_default/home.html new file mode 100644 index 0000000..872513f --- /dev/null +++ b/layouts/_default/home.html @@ -0,0 +1,7 @@ +{{ define "title" }} + {{ .Site.Title }} +{{ end }} +{{ define "main" }} +

{{ .Site.Title }}

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

{{ .Title }}

+ {{ .Content }} +{{ end }} diff --git a/upload b/upload new file mode 100755 index 0000000..57bccf7 --- /dev/null +++ b/upload @@ -0,0 +1,2 @@ +#!/bin/sh +hugo && rsync --chmod=u=rwX,go=rX --delete-after -rv public/ lindenii.runxiyu.org:/var/www/lindenii/ -- cgit v1.2.3