diff --git a/archetypes/default.md b/archetypes/default.md index 00e77bd..e18afa4 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,6 +1,6 @@ ---- -title: "{{ replace .Name "-" " " | title }}" -date: {{ .Date }} ++++ +title = "{{ replace .Name "-" " " | title }}" +date = {{ .Date }} +lastmod = draft: true ---- - ++++ diff --git a/archetypes/links.md b/archetypes/links.md new file mode 100644 index 0000000..825fbef --- /dev/null +++ b/archetypes/links.md @@ -0,0 +1,5 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +--- + +[{{ replace .Name "-" " " | title }}](link) diff --git a/config.toml b/config.toml index f7dd006..fcf8511 100644 --- a/config.toml +++ b/config.toml @@ -1,7 +1,6 @@ baseURL = 'https://inkletblot.com/' languageCode = 'en-us' title = "Ink's Space" -theme = 'inklo' [params] favicon = "/favicon.ico" diff --git a/content/links/chk.md b/content/links/chk.md new file mode 100644 index 0000000..f05579c --- /dev/null +++ b/content/links/chk.md @@ -0,0 +1,5 @@ +--- +title: "chk" +--- + +[chk](https://chkseven.com) diff --git a/content/links/gitlab.md b/content/links/gitlab.md new file mode 100644 index 0000000..d853124 --- /dev/null +++ b/content/links/gitlab.md @@ -0,0 +1,5 @@ +--- +title: "gitlab" +--- + +[gitlab](https://gitlab.inkletblot.com) diff --git a/content/links/hab.md b/content/links/hab.md new file mode 100644 index 0000000..a867800 --- /dev/null +++ b/content/links/hab.md @@ -0,0 +1,5 @@ +--- +title: "hab" +--- + +[hab](https://hab.inkletblot.com) diff --git a/content/links/mail.md b/content/links/mail.md new file mode 100644 index 0000000..084a9af --- /dev/null +++ b/content/links/mail.md @@ -0,0 +1,5 @@ +--- +title: "mail" +--- + +[mail](https://mail.inkletblot.com) diff --git a/content/links/matrix.md b/content/links/matrix.md new file mode 100644 index 0000000..bcf7256 --- /dev/null +++ b/content/links/matrix.md @@ -0,0 +1,5 @@ +--- +title: "matrix" +--- + +[matrix](https://matrix.inkletblot.com) diff --git a/content/links/pasty.md b/content/links/pasty.md new file mode 100644 index 0000000..efbb9cc --- /dev/null +++ b/content/links/pasty.md @@ -0,0 +1,5 @@ +--- +title: "pasty" +--- + +[pasty](https://proxy.inkletblot.com/pasty) diff --git a/content/links/pet.md b/content/links/pet.md new file mode 100644 index 0000000..240845e --- /dev/null +++ b/content/links/pet.md @@ -0,0 +1,5 @@ +--- +title: "pet" +--- + +[pet](https://inkletblot.com/pet) diff --git a/content/links/pve.md b/content/links/pve.md new file mode 100644 index 0000000..8a1ef99 --- /dev/null +++ b/content/links/pve.md @@ -0,0 +1,5 @@ +--- +title: "proxmox" +--- + +[proxmox](https://pve.inkletblot.com:8006) diff --git a/content/links/rancher.md b/content/links/rancher.md new file mode 100644 index 0000000..21f3724 --- /dev/null +++ b/content/links/rancher.md @@ -0,0 +1,5 @@ +--- +title: "rancher" +--- + +[rancher](https://rancher.inkletblot.com) diff --git a/content/links/streamer.md b/content/links/streamer.md new file mode 100644 index 0000000..a25d8d4 --- /dev/null +++ b/content/links/streamer.md @@ -0,0 +1,5 @@ +--- +title: "streamer" +--- + +[streamer](https://streamer.inkletblot.com) diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..b10462e --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,7 @@ +{{ partial "header.html" . }} + +

404: Page not found

+ +{{ .Content }} + +{{ partial "footer.html" . }} \ No newline at end of file diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..c6432d7 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,20 @@ + + + + + + + {{ .Title }} + {{ with .Site.Params.description }}{{ end }} + {{ with .Site.Params.author }}{{ end }} + + {{ with .OutputFormats.Get "RSS" -}} + {{ printf `` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }} + {{- end }} + + + {{ partial "header" . }} + {{ block "main" . }}{{ end }} + {{ partial "footer" . }} + + diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..68fb00c --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,16 @@ +{{ define "main" }} +
+ {{ if or .Title .Content }} +
+ {{ with .Title }}

{{ . }}

{{ end }} + {{ with .Content }}
{{ . }}
{{ end }} +
+ {{ end }} + + {{ range .Paginator.Pages }} + {{ .Render "summary" }} + {{ end }} + {{ partial "pagination.html" . }} +
+{{ partial "sidebar.html" . }} +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..ba4f3aa --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,26 @@ +{{ define "main" }} +
+
+

{{ .Title }}

+ +
+ {{ .Content }} +
+ {{ with .Params.tags }} +
+
    + {{ range . }} +
  • {{ . }}
  • + {{ end }} +
+
+ {{ end }} + {{ with .Site.DisqusShortname }} +
+ {{ template "_internal/disqus.html" . }} +
+ {{ end }} +
+
+{{ partial "sidebar.html" . }} +{{ end }} diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html new file mode 100644 index 0000000..91d49c5 --- /dev/null +++ b/layouts/_default/summary.html @@ -0,0 +1,20 @@ +
+

{{ .Title }}

+ + + {{ $date := .Date.UTC.Format "Jan 2, 2006" }} + {{ $lastmod := .Lastmod.UTC.Format "Jan 2, 2006" }} + + {{ if and (ne $lastmod $date) (gt .Lastmod .Date) }} + edited + {{ end }} + {{ range .Params.tags }} + {{ . }} + {{ end }} +
+ {{ .Summary }} + {{ if .Truncated }} + Read more... + {{ end }} +
+
diff --git a/layouts/home/single.html b/layouts/home/single.html new file mode 100644 index 0000000..f49a80f --- /dev/null +++ b/layouts/home/single.html @@ -0,0 +1,10 @@ +{{ define "main" }} +
+
+

{{ .Title }}

+
+ {{ .Content }} +
+
+
+{{ end }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..ab01f67 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,10 @@ +{{ define "main" }} +
+ {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }} + {{ range $paginator.Pages }} + {{ .Render "summary" }} + {{ end }} + {{ partial "pagination.html" . }} +
+{{ partial "sidebar.html" . }} +{{ end }} diff --git a/layouts/links/list.html b/layouts/links/list.html new file mode 100644 index 0000000..fe3cc0e --- /dev/null +++ b/layouts/links/list.html @@ -0,0 +1,14 @@ +{{ define "main" }} +
+ {{ if or .Title .Content }} +
+ {{ with .Title }}

{{ . }}

{{ end }} + {{ with .Content }}
{{ . }}
{{ end }} +
+ {{ end }} + + {{ range .Paginator.Pages }} + {{ .Render "summary" }} + {{ end }} +
+{{ end }} diff --git a/layouts/links/summary.html b/layouts/links/summary.html new file mode 100644 index 0000000..27303d2 --- /dev/null +++ b/layouts/links/summary.html @@ -0,0 +1,4 @@ +
+

Click!

+ {{ .Content }} +
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..a34c170 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,3 @@ + diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..384d2bf --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,12 @@ +
+ {{ .Site.Title }} + {{ with .Site.Menus.main }} + + {{ end }} +
diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html new file mode 100644 index 0000000..79f8053 --- /dev/null +++ b/layouts/partials/pagination.html @@ -0,0 +1,9 @@ +
+{{ if .Paginator.HasPrev }} + Previous Page +{{ end }} +{{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }} +{{ if .Paginator.HasNext }} + Next Page +{{ end }} +
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html new file mode 100644 index 0000000..92bbd80 --- /dev/null +++ b/layouts/partials/sidebar.html @@ -0,0 +1,14 @@ + diff --git a/themes/inklo b/themes/inklo deleted file mode 160000 index eb91461..0000000 --- a/themes/inklo +++ /dev/null @@ -1 +0,0 @@ -Subproject commit eb91461c0c68af377f3ec3b1c2fdd336243dfd01