0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -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:
Matt Enlow 2015-04-02 17:39:47 -06:00
parent cb2f0c5dee
commit 91124646ed
2 changed files with 15 additions and 2 deletions

View file

@ -258,6 +258,13 @@
padding: 3px;
}
.post-published-by .status a {
color: inherit;
&:hover {
text-decoration: underline;
}
}
.normal {
text-transform: none;
margin: 0 3px;
@ -427,4 +434,4 @@
.content-preview.keyboard-focused {
animation: keyboard-focus-style-fade-out 1.5s 1 forwards;
}
}

View file

@ -5,7 +5,13 @@
<span class="sr-only">Star</span>
</button>
<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="author">{{#if model.author.name}}{{model.author.name}}{{else}}{{model.author.email}}{{/if}}</span>
</small>