diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2024-05-19 22:14:25 +0200 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2024-05-19 22:14:25 +0200 |
commit | 332e983da476974805a3a0d53bfedaebe73a9fcb (patch) | |
tree | 1956248d86fc07c0193ffdeea77469655fd69c8a /src/http/posts.go | |
parent | 0665d0c65974533fbd313f4e0b062b5103057aeb (diff) |
Get rid of most of preprocess funcs, only Image leftover for convenience
Diffstat (limited to 'src/http/posts.go')
-rw-r--r-- | src/http/posts.go | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/http/posts.go b/src/http/posts.go index 42e5b4a..daaaafc 100644 --- a/src/http/posts.go +++ b/src/http/posts.go @@ -65,25 +65,6 @@ func (a *api) postPreprocessFuncImage(args ...string) (string, error) { func (a *api) postPreprocessFuncs() post.PreprocessFunctions { return post.PreprocessFunctions{ - BlogURL: func(path string) string { - return a.blogURL(a.params.PublicURL, path, false) - }, - BlogHTTPURL: func(path string) string { - return a.blogURL(a.params.PublicURL, path, true) - }, - BlogGeminiURL: func(path string) string { - return a.blogURL(a.params.GeminiPublicURL, path, true) - }, - AssetURL: func(id string) string { - return a.assetURL(id, false) - }, - PostURL: func(id string) string { - return a.postURL(id, false) - }, - StaticURL: func(path string) string { - path = filepath.Join("static", path) - return a.blogURL(a.params.PublicURL, path, false) - }, Image: a.postPreprocessFuncImage, } } |