From 09acb111a2b22f5794541fac175b024dd0f9100e Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Fri, 20 May 2022 11:17:31 -0600 Subject: Rename api package to http --- srv/src/api/tpl/assets.html | 51 -------------- srv/src/api/tpl/base.html | 66 ------------------ srv/src/api/tpl/edit-post.html | 101 --------------------------- srv/src/api/tpl/follow.html | 152 ----------------------------------------- srv/src/api/tpl/index.html | 36 ---------- srv/src/api/tpl/post.html | 48 ------------- srv/src/api/tpl/posts.html | 61 ----------------- srv/src/api/tpl/redirect.html | 9 --- 8 files changed, 524 deletions(-) delete mode 100644 srv/src/api/tpl/assets.html delete mode 100644 srv/src/api/tpl/base.html delete mode 100644 srv/src/api/tpl/edit-post.html delete mode 100644 srv/src/api/tpl/follow.html delete mode 100644 srv/src/api/tpl/index.html delete mode 100644 srv/src/api/tpl/post.html delete mode 100644 srv/src/api/tpl/posts.html delete mode 100644 srv/src/api/tpl/redirect.html (limited to 'srv/src/api/tpl') diff --git a/srv/src/api/tpl/assets.html b/srv/src/api/tpl/assets.html deleted file mode 100644 index aa5e422..0000000 --- a/srv/src/api/tpl/assets.html +++ /dev/null @@ -1,51 +0,0 @@ -{{ define "body" }} - -{{ $csrfFormInput := .CSRFFormInput }} - -

Upload Asset

- -

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

- -
- {{ $csrfFormInput }} -
-
- -
-
-
-
-
- -
-
-
- -

Existing Assets

- - - - {{ range .Payload.IDs }} - - - - - {{ end }} - -
{{ . }} -
- {{ $csrfFormInput }} - -
-
- -{{ end }} - -{{ template "base.html" . }} diff --git a/srv/src/api/tpl/base.html b/srv/src/api/tpl/base.html deleted file mode 100644 index 6031919..0000000 --- a/srv/src/api/tpl/base.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - -
- - - - {{ template "body" . }} - -
-

- Unless otherwised specified, all works are licensed under the - WTFPL. -

-
- -
- - - - - diff --git a/srv/src/api/tpl/edit-post.html b/srv/src/api/tpl/edit-post.html deleted file mode 100644 index 9ccfa2a..0000000 --- a/srv/src/api/tpl/edit-post.html +++ /dev/null @@ -1,101 +0,0 @@ -{{ define "body" }} - -
- - {{ .CSRFFormInput }} - -
- -
- - {{ if eq .Payload.ID "" }} - - {{ else }} - {{ .Payload.ID }} - - {{ end }} -
- -
- - -
- -
- - -
- -
- -
- -
- - -
- -
- - -
- -
- -
-
- -
-
- - - - - - - - - -
- -{{ end }} - -{{ template "base.html" . }} diff --git a/srv/src/api/tpl/follow.html b/srv/src/api/tpl/follow.html deleted file mode 100644 index 8cf9dc6..0000000 --- a/srv/src/api/tpl/follow.html +++ /dev/null @@ -1,152 +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. -

- - - - - - - - - -

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/api/tpl/index.html b/srv/src/api/tpl/index.html deleted file mode 100644 index e27cbef..0000000 --- a/srv/src/api/tpl/index.html +++ /dev/null @@ -1,36 +0,0 @@ -{{ define "body" }} - - - - {{ if or (ge .Payload.PrevPage 0) (ge .Payload.NextPage 0) }} -
- - {{ if ge .Payload.PrevPage 0 }} - Newer - {{ end }} - - {{ if ge .Payload.NextPage 0 }} - Older - {{ end }} - -
- {{ end }} - -{{ end }} - -{{ template "base.html" . }} diff --git a/srv/src/api/tpl/post.html b/srv/src/api/tpl/post.html deleted file mode 100644 index 474d7c2..0000000 --- a/srv/src/api/tpl/post.html +++ /dev/null @@ -1,48 +0,0 @@ -{{ define "body" }} - -
-

- {{ .Payload.Title }} -

-
- {{ DateTimeFormat .Payload.PublishedAt }} -  •  - {{ if not .Payload.LastUpdatedAt.IsZero }} - (Updated {{ DateTimeFormat .Payload.LastUpdatedAt }}) -  •  - {{ end }} - {{ .Payload.Description }} -
-
- -{{ if (or .Payload.SeriesPrevious .Payload.SeriesNext) }} -

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

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

- If you liked this post, consider checking out other posts in the series:
- {{ if .Payload.SeriesPrevious }} - Previously: {{ .Payload.SeriesPrevious.Title }}
- {{ end }} - {{ if .Payload.SeriesNext }} - Next: {{ .Payload.SeriesNext.Title }}
- {{ end }} -

-{{ end }} - -{{ end }} - -{{ template "base.html" . }} diff --git a/srv/src/api/tpl/posts.html b/srv/src/api/tpl/posts.html deleted file mode 100644 index 714cf07..0000000 --- a/srv/src/api/tpl/posts.html +++ /dev/null @@ -1,61 +0,0 @@ -{{ define "posts-nextprev" }} - - {{ if or (ge .Payload.PrevPage 0) (ge .Payload.NextPage 0) }} -
- - {{ if ge .Payload.PrevPage 0 }} - Newer - {{ end }} - - {{ if ge .Payload.NextPage 0 }} - Older - {{ end }} - -
- {{ end }} - -{{ end }} - -{{ define "body" }} - - {{ $csrfFormInput := .CSRFFormInput }} - - -

- - - -

- - {{ template "posts-nextprev" . }} - - - - {{ range .Payload.Posts }} - - - - - - - {{ end }} - -
{{ .PublishedAt }}{{ .Title }} - - - - -
- {{ $csrfFormInput }} - -
-
- - {{ template "posts-nextprev" . }} - -{{ end }} - -{{ template "base.html" . }} diff --git a/srv/src/api/tpl/redirect.html b/srv/src/api/tpl/redirect.html deleted file mode 100644 index ed12a2e..0000000 --- a/srv/src/api/tpl/redirect.html +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - -

Redirecting...

- - -- cgit v1.2.3