From 4f01edb9230f58ff84b0dd892c931ec8ac9aad55 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 13 Sep 2022 12:56:08 +0200 Subject: move src out of srv, clean up default.nix and Makefile --- srv/src/http/tpl/admin.html | 18 ----- srv/src/http/tpl/assets.html | 57 -------------- srv/src/http/tpl/base.html | 28 ------- srv/src/http/tpl/draft-posts.html | 50 ------------ srv/src/http/tpl/edit-post.html | 142 --------------------------------- srv/src/http/tpl/finalize.html | 45 ----------- srv/src/http/tpl/follow.html | 160 -------------------------------------- srv/src/http/tpl/image.html | 5 -- srv/src/http/tpl/index.html | 37 --------- srv/src/http/tpl/post.html | 44 ----------- srv/src/http/tpl/posts.html | 47 ----------- srv/src/http/tpl/redirect.html | 9 --- srv/src/http/tpl/unsubscribe.html | 44 ----------- 13 files changed, 686 deletions(-) delete mode 100644 srv/src/http/tpl/admin.html delete mode 100644 srv/src/http/tpl/assets.html delete mode 100644 srv/src/http/tpl/base.html delete mode 100644 srv/src/http/tpl/draft-posts.html delete mode 100644 srv/src/http/tpl/edit-post.html delete mode 100644 srv/src/http/tpl/finalize.html delete mode 100644 srv/src/http/tpl/follow.html delete mode 100644 srv/src/http/tpl/image.html delete mode 100644 srv/src/http/tpl/index.html delete mode 100644 srv/src/http/tpl/post.html delete mode 100644 srv/src/http/tpl/posts.html delete mode 100644 srv/src/http/tpl/redirect.html delete mode 100644 srv/src/http/tpl/unsubscribe.html (limited to 'srv/src/http/tpl') diff --git a/srv/src/http/tpl/admin.html b/srv/src/http/tpl/admin.html deleted file mode 100644 index f2ba4d6..0000000 --- a/srv/src/http/tpl/admin.html +++ /dev/null @@ -1,18 +0,0 @@ -{{ define "body" }} - -

Admin

- -This is a directory of pages which are used for managing blog content. They are -mostly left open to inspection, but you will not able to change -anything without providing credentials. - - - -{{ end }} - -{{ template "base.html" . }} - diff --git a/srv/src/http/tpl/assets.html b/srv/src/http/tpl/assets.html deleted file mode 100644 index f21717a..0000000 --- a/srv/src/http/tpl/assets.html +++ /dev/null @@ -1,57 +0,0 @@ -{{ define "body" }} - -

- Back to Admin -

- -

Assets

- -

Upload Asset

- -

- If the given ID is the same as an existing asset's ID, then that asset will be - overwritten. -

- -
-
-
- -
-
-
-
-
- -
-
-
- -{{ if gt (len .Payload.IDs) 0 }} - -

Existing Assets

- - - - {{ range .Payload.IDs }} - - - - - {{ end }} - -
{{ . }} -
- -
-
- -{{ end }} - -{{ end }} - -{{ template "base.html" . }} diff --git a/srv/src/http/tpl/base.html b/srv/src/http/tpl/base.html deleted file mode 100644 index f286222..0000000 --- a/srv/src/http/tpl/base.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - -
- Mediocre Blog - by - mediocregopher -    //    - Follow -  /  - RSS -  /  - License -
- - {{ template "body" . }} - - - - - diff --git a/srv/src/http/tpl/draft-posts.html b/srv/src/http/tpl/draft-posts.html deleted file mode 100644 index 53261b9..0000000 --- a/srv/src/http/tpl/draft-posts.html +++ /dev/null @@ -1,50 +0,0 @@ -{{ define "body" }} - -

- Back to Admin -

- -

Drafts

- -

- New Draft -

- - {{ if ge .Payload.PrevPage 0 }} -

- < < Previous Page -

- {{ end }} - - - - {{ range .Payload.Posts }} - - - - - - {{ end }} - -
{{ .Title }} - - Edit - - -
- -
-
- - {{ if ge .Payload.NextPage 0 }} -

- Next Page > > -

- {{ end }} - -{{ end }} - -{{ template "base.html" . }} diff --git a/srv/src/http/tpl/edit-post.html b/srv/src/http/tpl/edit-post.html deleted file mode 100644 index f8e2730..0000000 --- a/srv/src/http/tpl/edit-post.html +++ /dev/null @@ -1,142 +0,0 @@ -{{ define "body" }} - -

- {{ if .Payload.IsDraft }} - - Back to Drafts - - {{ else }} - - Back to Posts - - {{ end }} -

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Unique ID - - {{ if eq .Payload.Post.ID "" }} - - {{ else if .Payload.IsDraft }} - {{ .Payload.Post.ID }} - - {{ else }} - {{ .Payload.Post.ID }} - - {{ end }} -
Tags (space separated) - - - {{ if gt (len .Payload.Tags) 0 }} - - Existing tags: - {{ range $i, $tag := .Payload.Tags }} - {{ if ne $i 0 }} {{ end }}{{ $tag }} - {{ end }} - - {{ end }} -
Series - -
Title - -
Description - -
- -

- -

- -

- - - - {{ if .Payload.IsDraft }} - - - - - - - - - {{ else }} - - {{ end }} - -

- -
- -{{ end }} - -{{ template "base.html" . }} diff --git a/srv/src/http/tpl/finalize.html b/srv/src/http/tpl/finalize.html deleted file mode 100644 index 8bdfceb..0000000 --- a/srv/src/http/tpl/finalize.html +++ /dev/null @@ -1,45 +0,0 @@ -{{ define "body" }} - - - - - - - - - -{{ end }} - -{{ template "base.html" . }} diff --git a/srv/src/http/tpl/follow.html b/srv/src/http/tpl/follow.html deleted file mode 100644 index 23c30a6..0000000 --- a/srv/src/http/tpl/follow.html +++ /dev/null @@ -1,160 +0,0 @@ -{{ define "body" }} - - - -

- Here's your options for receiving updates about new blog posts: -

- -

Option 1: Email

- -

- Email is by far my preferred option for notifying followers of new posts. -

- -

- The entire email list system for this blog, from storing subscriber email - addresses to the email server which sends the notifications out, has been - designed from scratch and is completely self-hosted in my living room. -

- -

- I solemnly swear that: -

- - - -

- With all that said, if you'd like to receive an email everytime a new blog - post is published then input your email below and smash that subscribe button! - You will need to verify your email, so be sure to check your spam folder to - complete the process if you don't immediately see anything in your inbox. -

- -

- Unfortunately Google considers all emails from my mail server to be spam. I'm - tired of seeing the bounce errors on my side, so I'm disabling the ability to - sign up for the mailing list with a GMail address. Sorry (not sorry). -

- - - -
- - - -
- - - -

Option 2: RSS

- -

- RSS is the classic way to follow any blog. It comes from a time before - aggregators like reddit and twitter stole the show, when people felt capable - to manage their own content feeds. We should use it again. -

- -

- To follow over RSS give any RSS reader the following URL... -

- -

- {{ BlogURL "feed.xml" }} -

- -

- ...and posts from this blog will show up in your RSS feed as soon as they are - published. There are literally thousands of RSS readers out there. Here's some - recommendations: -

- - - -{{ end }} - -{{ template "base.html" . }} diff --git a/srv/src/http/tpl/image.html b/srv/src/http/tpl/image.html deleted file mode 100644 index ba9b75d..0000000 --- a/srv/src/http/tpl/image.html +++ /dev/null @@ -1,5 +0,0 @@ -
- - - -
diff --git a/srv/src/http/tpl/index.html b/srv/src/http/tpl/index.html deleted file mode 100644 index ce5f264..0000000 --- a/srv/src/http/tpl/index.html +++ /dev/null @@ -1,37 +0,0 @@ -{{ define "body" }} - - {{ if ge .Payload.PrevPage 0 }} -

- < < Previous Page -

- {{ else }} -

- Welcome to the Mediocre Blog! Posts are listed in chronological order. If - you aren't sure of where to start I recommend picking at random. -

- {{ end }} - - - - - - - - {{ range .Payload.Posts }} - - - - - - {{ end }} -
{{ DateTimeFormat .PublishedAt }}{{ .Title }}{{ .Description }}
- - {{ if ge .Payload.NextPage 0 }} -

- Next Page > > -

- {{ end }} - -{{ end }} - -{{ template "base.html" . }} diff --git a/srv/src/http/tpl/post.html b/srv/src/http/tpl/post.html deleted file mode 100644 index 23500eb..0000000 --- a/srv/src/http/tpl/post.html +++ /dev/null @@ -1,44 +0,0 @@ -{{ define "body" }} - -

- {{ .Payload.Title }} -

- -

- - {{ .Payload.Description }} -

- -
- -{{ .Payload.Body }} - -

- Published {{ DateTimeFormat .Payload.PublishedAt }} - {{ if not .Payload.LastUpdatedAt.IsZero }} -
Last updated {{ DateTimeFormat .Payload.LastUpdatedAt }} - {{ end }} -

- -{{ if (or .Payload.SeriesPrevious .Payload.SeriesNext) }} -
-

- This post is part of a series.
- - {{ if .Payload.SeriesPrevious }} - Previously: {{ .Payload.SeriesPrevious.Title }} - {{ end }} - - {{ if (and .Payload.SeriesNext .Payload.SeriesPrevious) }} -
- {{ end }} - - {{ if .Payload.SeriesNext }} - Next: {{ .Payload.SeriesNext.Title }}
- {{ end }} - -

-{{ end }} - -{{ end }} - -{{ template "base.html" . }} diff --git a/srv/src/http/tpl/posts.html b/srv/src/http/tpl/posts.html deleted file mode 100644 index fbeaa41..0000000 --- a/srv/src/http/tpl/posts.html +++ /dev/null @@ -1,47 +0,0 @@ -{{ define "body" }} - -

- Back to Admin -

- -

Posts

- - {{ if ge .Payload.PrevPage 0 }} -

- < < Previous Page -

- {{ end }} - - - - {{ range .Payload.Posts }} - - - - - - - {{ end }} - -
{{ .PublishedAt.Local.Format "2006-01-02 15:04:05 MST" }}{{ .Title }} - - Edit - - -
- -
-
- - {{ if ge .Payload.NextPage 0 }} -

- Next Page > > -

- {{ end }} - -{{ end }} - -{{ template "base.html" . }} diff --git a/srv/src/http/tpl/redirect.html b/srv/src/http/tpl/redirect.html deleted file mode 100644 index a50b324..0000000 --- a/srv/src/http/tpl/redirect.html +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - -

Redirecting...

- - diff --git a/srv/src/http/tpl/unsubscribe.html b/srv/src/http/tpl/unsubscribe.html deleted file mode 100644 index ad01735..0000000 --- a/srv/src/http/tpl/unsubscribe.html +++ /dev/null @@ -1,44 +0,0 @@ -{{ define "body" }} - - - - - - - - - -{{ end }} - -{{ template "base.html" . }} -- cgit v1.2.3