Compare commits

..

No commits in common. "c06dd5c5873f7d2c96946dd2414687e8b0eb71f3" and "2144e9f2f113ff2e3ff6d1df96bb766fd8b79b94" have entirely different histories.

3 changed files with 8 additions and 11 deletions

View File

@ -27,7 +27,7 @@
{{ range .Payload.IDs }}
<tr>
<td><a href="{{ AssetURL . }}">{{ . }}</a></td>
<td><a href="{{ AssetURL . }}" target="_blank">{{ . }}</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 }}">{{ .Payload.Post.ID }}</a>
<a href="{{ PostURL .Payload.Post.ID }}" target="_blank">{{ .Payload.Post.ID }}</a>
<input name="id" type="hidden" value="{{ .Payload.Post.ID }}" />
{{ end }}
</td>
@ -104,15 +104,12 @@
<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">
New Post
<button>New Post</button>
</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 }}">{{ .Title }}</a></td>
<td><a href="{{ PostURL .ID }}" target="_blank">{{ .Title }}</a></td>
<td>
<a href="{{ PostURL .ID }}?edit">
Edit
<button>Edit</button>
</a>
</td>
<td>