diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | archetypes/default.md | 5 | ||||
-rw-r--r-- | content/_index.md | 5 | ||||
-rw-r--r-- | hugo.toml | 3 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 15 | ||||
-rw-r--r-- | layouts/_default/home.html | 7 | ||||
-rw-r--r-- | layouts/_default/single.html | 7 | ||||
-rwxr-xr-x | upload | 2 |
8 files changed, 47 insertions, 0 deletions
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 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8" /> + <title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title> + </head> + <body> + {{ block "main" . }} + {{ end }} + {{ block "footer" . }} + {{ end }} + </body> +</html> + + 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" }} + <h1>{{ .Site.Title }}</h1> + {{ .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" }} + <h1>{{ .Title }}</h1> + {{ .Content }} +{{ end }} @@ -0,0 +1,2 @@ +#!/bin/sh +hugo && rsync --chmod=u=rwX,go=rX --delete-after -rv public/ lindenii.runxiyu.org:/var/www/lindenii/ |