summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ivanov <[email protected]>2026-01-20 23:35:22 +0200
committerMarin Ivanov <[email protected]>2026-01-20 23:35:22 +0200
commit3cef603d44d77afcf8ea0c8d910b297274ff8ba0 (patch)
tree6b555e6e05e124fbad1c03984ff8d32492a6b426
parent9f29802d285b70e99ef0c7dbba2719a3f15900eb (diff)
add back link to a new post
-rw-r--r--template.html27
1 files changed, 15 insertions, 12 deletions
diff --git a/template.html b/template.html
index e37ee98..ad1811c 100644
--- a/template.html
+++ b/template.html
@@ -194,20 +194,23 @@
</form>
{{end}}
- {{if .TextLink }}
- <fieldset>
- <legend>Text Link</legend>
- <a href="{{ .Host }}{{ .TextLink }}">{{ .Host }}{{ .TextLink }}</a>
- </fieldset>
- {{end}}
+ {{if not .Form }}
+ {{if .TextLink }}
+ <fieldset>
+ <legend>Text Link</legend>
+ <a href="{{ .Host }}{{ .TextLink }}">{{ .Host }}{{ .TextLink }}</a>
+ </fieldset>
+ {{end}}
- {{if .FileLink }}
- <fieldset>
- <legend>File Link</legend>
- <a href="{{ .Host }}{{ .FileLink }}">{{ .Host }}{{ .FileLink }}</a>
- </fieldset>
- {{end}}
+ {{if .FileLink }}
+ <fieldset>
+ <legend>File Link</legend>
+ <a href="{{ .Host }}{{ .FileLink }}">{{ .Host }}{{ .FileLink }}</a>
+ </fieldset>
+ {{end}}
+ <a href="/">↩ Back to New Post</a>
+ {{end}}
</div>
</div>