mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Add link to published posts preview on content page
Ref #1756 - the word "Published" in "Published by {{author}}" now links to the post's front page
This commit is contained in:
parent
cb2f0c5dee
commit
91124646ed
2 changed files with 15 additions and 2 deletions
|
@ -258,6 +258,13 @@
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-published-by .status a {
|
||||||
|
color: inherit;
|
||||||
|
&:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.normal {
|
.normal {
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
margin: 0 3px;
|
margin: 0 3px;
|
||||||
|
@ -427,4 +434,4 @@
|
||||||
|
|
||||||
.content-preview.keyboard-focused {
|
.content-preview.keyboard-focused {
|
||||||
animation: keyboard-focus-style-fade-out 1.5s 1 forwards;
|
animation: keyboard-focus-style-fade-out 1.5s 1 forwards;
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,13 @@
|
||||||
<span class="sr-only">Star</span>
|
<span class="sr-only">Star</span>
|
||||||
</button>
|
</button>
|
||||||
<small class="post-published-by">
|
<small class="post-published-by">
|
||||||
<span class="status">{{#if isPublished}}Published{{else}}Written{{/if}}</span>
|
<span class="status">
|
||||||
|
{{#if isPublished}}
|
||||||
|
<a {{bind-attr title="model.title" href="model.url"}}>Published</a>
|
||||||
|
{{else}}
|
||||||
|
Written
|
||||||
|
{{/if}}
|
||||||
|
</span>
|
||||||
<span class="normal">by</span>
|
<span class="normal">by</span>
|
||||||
<span class="author">{{#if model.author.name}}{{model.author.name}}{{else}}{{model.author.email}}{{/if}}</span>
|
<span class="author">{{#if model.author.name}}{{model.author.name}}{{else}}{{model.author.email}}{{/if}}</span>
|
||||||
</small>
|
</small>
|
||||||
|
|
Loading…
Add table
Reference in a new issue