Compare commits

...

2 Commits

Author SHA1 Message Date
Brian Picciano
c06dd5c587 make button vs link usage consistent 2022-08-16 22:04:57 -06:00
Brian Picciano
7bd7af44a9 remove target:_blanks 2022-08-16 22:01:25 -06:00
3 changed files with 11 additions and 8 deletions

View File

@ -27,7 +27,7 @@
{{ range .Payload.IDs }}
<tr>
<td><a href="{{ AssetURL . }}" target="_blank">{{ . }}</a></td>
<td><a href="{{ AssetURL . }}">{{ . }}</a></td>
<td>
<form
action="{{ AssetURL . }}?method=delete"

View File

@ -27,7 +27,7 @@
placeholder="e.g. how-to-fly-a-kite"
value="{{ .Payload.Post.ID }}" />
{{ else }}
<a href="{{ PostURL .Payload.Post.ID }}" target="_blank">{{ .Payload.Post.ID }}</a>
<a href="{{ PostURL .Payload.Post.ID }}">{{ .Payload.Post.ID }}</a>
<input name="id" type="hidden" value="{{ .Payload.Post.ID }}" />
{{ end }}
</td>
@ -104,12 +104,15 @@
<input type="submit" value="Update" formaction="{{ BlogURL "posts/" }}" />
{{ end }}
<a href="{{ BlogURL "posts/" }}">
<button type="button">Back</button>
</a>
</p>
</form>
<p>
<a href="{{ BlogURL "posts/" }}">
Back to Posts
</a>
</p>
{{ end }}
{{ template "base.html" . }}

View File

@ -2,7 +2,7 @@
<p>
<a href="{{ BlogURL "posts/" }}?edit">
<button>New Post</button>
New Post
</a>
</p>
@ -17,10 +17,10 @@
{{ range .Payload.Posts }}
<tr>
<td>{{ .PublishedAt.Local.Format "2006-01-02 15:04:05 MST" }}</td>
<td><a href="{{ PostURL .ID }}" target="_blank">{{ .Title }}</a></td>
<td><a href="{{ PostURL .ID }}">{{ .Title }}</a></td>
<td>
<a href="{{ PostURL .ID }}?edit">
<button>Edit</button>
Edit
</a>
</td>
<td>