Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.4.1

- On a post page, the admin-only link sections (Backlinks, Linked Posts, External Links, External Backlinks) and the comments sit on cards like the post body. They were drawn straight onto the background photo, where the text was hard to read.

## 1.4.0

- The footer's "Powered by goblog" line comes from goblog's shared `_powered_by` partial instead of being written out in the theme. It now links to [goblog.live](https://www.goblog.live) rather than the GitHub repository, and a site can hide it with the **Show "Powered by goblog"** setting under Admin → Settings → Appearance (goblog #644).
Expand Down
3 changes: 3 additions & 0 deletions static/css/goblog.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,6 @@ video {
/* The "Powered by goblog" credit is goblog's shared _powered_by partial; its
link takes the colour of the footer line around it. */
.powered-by a { color: inherit; }

/* Admin-only link sections under a post */
.post-links + .post-links { margin-top: 24px; }
27 changes: 8 additions & 19 deletions templates/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ <h1 style="font-weight: 700; margin-bottom: 8px; color: #1c2e1c;">{{ .post.Title
</div>

{{ if .is_admin }}
<div class="row">
<div class="container left">
<div class="glass-card text-left">
<div class="post-links">
<h3>Backlinks</h3>
<p class="text-muted">Posts that link to this post</p>
{{ if .backlinks }}
Expand All @@ -41,10 +41,8 @@ <h3>Backlinks</h3>
<p>None</p>
{{ end }}
</div>
</div>

<div class="row">
<div class="container left">
<div class="post-links">
<h3>Linked Posts</h3>
<p class="text-muted">Blog posts this post links to</p>
{{ if .outbound_links }}
Expand All @@ -57,10 +55,8 @@ <h3>Linked Posts</h3>
<p>None</p>
{{ end }}
</div>
</div>

<div class="row">
<div class="container left">
<div class="post-links">
<h3>External Links</h3>
<p class="text-muted">External URLs in this post</p>
{{ if .post.ExternalLinks }}
Expand All @@ -73,10 +69,8 @@ <h3>External Links</h3>
<p>None</p>
{{ end }}
</div>
</div>

<div class="row">
<div class="container left">
<div class="post-links">
<h3>External Backlinks</h3>
<p class="text-muted">External sites linking to this post</p>
{{ if .external_backlinks }}
Expand Down Expand Up @@ -107,14 +101,9 @@ <h3>External Backlinks</h3>
</div>
{{ end }}

</div>


<!-- Comments Section -->
<div class="container">
<div class="row">
<div class="container left">
<hr>
<!-- Comments Section -->
<div class="glass-card text-left">
<div>
<h3 class="text-left" id="comments">Comments ({{ len .comments }})</h3>

{{ if .comment_error }}
Expand Down
Loading