updated to remove theme, was redundant

This commit is contained in:
Solomon Laing 2022-08-25 15:50:45 +09:30
parent fad5852952
commit 34203f01e1
27 changed files with 225 additions and 7 deletions

View File

@ -1,6 +1,6 @@
--- +++
title: "{{ replace .Name "-" " " | title }}" title = "{{ replace .Name "-" " " | title }}"
date: {{ .Date }} date = {{ .Date }}
lastmod =
draft: true draft: true
--- +++

5
archetypes/links.md Normal file
View File

@ -0,0 +1,5 @@
---
title: "{{ replace .Name "-" " " | title }}"
---
[{{ replace .Name "-" " " | title }}](link)

View File

@ -1,7 +1,6 @@
baseURL = 'https://inkletblot.com/' baseURL = 'https://inkletblot.com/'
languageCode = 'en-us' languageCode = 'en-us'
title = "Ink's Space" title = "Ink's Space"
theme = 'inklo'
[params] [params]
favicon = "/favicon.ico" favicon = "/favicon.ico"

5
content/links/chk.md Normal file
View File

@ -0,0 +1,5 @@
---
title: "chk"
---
[chk](https://chkseven.com)

5
content/links/gitlab.md Normal file
View File

@ -0,0 +1,5 @@
---
title: "gitlab"
---
[gitlab](https://gitlab.inkletblot.com)

5
content/links/hab.md Normal file
View File

@ -0,0 +1,5 @@
---
title: "hab"
---
[hab](https://hab.inkletblot.com)

5
content/links/mail.md Normal file
View File

@ -0,0 +1,5 @@
---
title: "mail"
---
[mail](https://mail.inkletblot.com)

5
content/links/matrix.md Normal file
View File

@ -0,0 +1,5 @@
---
title: "matrix"
---
[matrix](https://matrix.inkletblot.com)

5
content/links/pasty.md Normal file
View File

@ -0,0 +1,5 @@
---
title: "pasty"
---
[pasty](https://proxy.inkletblot.com/pasty)

5
content/links/pet.md Normal file
View File

@ -0,0 +1,5 @@
---
title: "pet"
---
[pet](https://inkletblot.com/pet)

5
content/links/pve.md Normal file
View File

@ -0,0 +1,5 @@
---
title: "proxmox"
---
[proxmox](https://pve.inkletblot.com:8006)

5
content/links/rancher.md Normal file
View File

@ -0,0 +1,5 @@
---
title: "rancher"
---
[rancher](https://rancher.inkletblot.com)

View File

@ -0,0 +1,5 @@
---
title: "streamer"
---
[streamer](https://streamer.inkletblot.com)

7
layouts/404.html Normal file
View File

@ -0,0 +1,7 @@
{{ partial "header.html" . }}
<header><h1>404: Page not found</h1></header>
{{ .Content }}
{{ partial "footer.html" . }}

View File

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode | default "en-us" }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ .Title }}</title>
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
<link rel="stylesheet" href="{{ "style.css" | relURL }}">
{{ with .OutputFormats.Get "RSS" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
{{- end }}
</head>
<body>
{{ partial "header" . }}
{{ block "main" . }}{{ end }}
{{ partial "footer" . }}
</body>
</html>

View File

@ -0,0 +1,16 @@
{{ define "main" }}
<main>
{{ if or .Title .Content }}
<div>
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
{{ with .Content }}<div>{{ . }}</div>{{ end }}
</div>
{{ end }}
{{ range .Paginator.Pages }}
{{ .Render "summary" }}
{{ end }}
{{ partial "pagination.html" . }}
</main>
{{ partial "sidebar.html" . }}
{{ end }}

View File

@ -0,0 +1,26 @@
{{ define "main" }}
<main>
<article>
<h1>{{ .Title }}</h1>
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "02-01-2006" }}</time>
<div>
{{ .Content }}
</div>
{{ with .Params.tags }}
<div>
<ul id="tags">
{{ range . }}
<li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
{{ end }}
</ul>
</div>
{{ end }}
{{ with .Site.DisqusShortname }}
<div>
{{ template "_internal/disqus.html" . }}
</div>
{{ end }}
</article>
</main>
{{ partial "sidebar.html" . }}
{{ end }}

View File

@ -0,0 +1,20 @@
<article>
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "02-01-2006" }}</time>
{{ $date := .Date.UTC.Format "Jan 2, 2006" }}
{{ $lastmod := .Lastmod.UTC.Format "Jan 2, 2006" }}
{{ if and (ne $lastmod $date) (gt .Lastmod .Date) }}
edited <time datetime="{{ .Lastmod.Format "2006-01-02" }}">{{ .Lastmod.Format "02-01-2006" }}</time>
{{ end }}
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
<div>
{{ .Summary }}
{{ if .Truncated }}
<a href="{{ .Permalink }}">Read more...</a>
{{ end }}
</div>
</article>

10
layouts/home/single.html Normal file
View File

@ -0,0 +1,10 @@
{{ define "main" }}
<main>
<article>
<h1>{{ .Title }}</h1>
<div>
{{ .Content }}
</div>
</article>
</main>
{{ end }}

10
layouts/index.html Normal file
View File

@ -0,0 +1,10 @@
{{ define "main" }}
<main>
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
{{ range $paginator.Pages }}
{{ .Render "summary" }}
{{ end }}
{{ partial "pagination.html" . }}
</main>
{{ partial "sidebar.html" . }}
{{ end }}

14
layouts/links/list.html Normal file
View File

@ -0,0 +1,14 @@
{{ define "main" }}
<main>
{{ if or .Title .Content }}
<div>
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
{{ with .Content }}<div>{{ . }}</div>{{ end }}
</div>
{{ end }}
{{ range .Paginator.Pages }}
{{ .Render "summary" }}
{{ end }}
</main>
{{ end }}

View File

@ -0,0 +1,4 @@
<article>
<p>Click!</p>
{{ .Content }}
</article>

View File

@ -0,0 +1,3 @@
<footer>
<p>&copy; {{ now.Year }} <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></p>
</footer>

View File

@ -0,0 +1,12 @@
<header>
<a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
{{ with .Site.Menus.main }}
<nav>
<ul>
{{ range . }}
<li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li>
{{ end }}
</ul>
</nav>
{{ end }}
</header>

View File

@ -0,0 +1,9 @@
<div>
{{ if .Paginator.HasPrev }}
<a href="{{ .Paginator.Prev.URL }}">Previous Page</a>
{{ end }}
{{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}
{{ if .Paginator.HasNext }}
<a href="{{ .Paginator.Next.URL }}">Next Page</a>
{{ end }}
</div>

View File

@ -0,0 +1,14 @@
<aside>
<div>
<div>
<h3>LATEST POSTS</h3>
</div>
<div>
<ul>
{{ range first 5 (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
</div>
</div>
</aside>

@ -1 +0,0 @@
Subproject commit eb91461c0c68af377f3ec3b1c2fdd336243dfd01