-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement author contributions to the UI and dedicated author pages.
- Loading branch information
Showing
10 changed files
with
219 additions
and
33 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,4 +73,3 @@ $container-small-width : 700px; | |
/* OTHER */ | ||
|
||
$border-radius : 3px; | ||
$astronaut-size : 20vh; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{{!< default}} | ||
|
||
<article class="page page-author"> | ||
{{> material-cover}} | ||
<div class="profile-container animated fade-in"> | ||
{{#author}} | ||
<div class="profile-image"> | ||
{{#if image}} | ||
<img src="{{image}}" alt="{{name}}'s picture" class="avatar rounded" /> | ||
{{else}} | ||
<img src="/ghost/img/user-image.png" class="avatar rounded" /> | ||
{{/if}} | ||
</div> | ||
{{/author}} | ||
<div class="post-card animated"> | ||
<div class="post-container"> | ||
{{#author}} | ||
<div class="author-header"> | ||
<h1> | ||
{{name}} | ||
<a rel="me" target="_blank" href="{{twitter_url}}" class="hvr-grow-rotate" title="{{name}}'s twitter"> | ||
<i class='fa fa-twitter'></i> | ||
</a> | ||
</h1> | ||
|
||
<p>{{#if bio}}{{bio}}{{/if}}</p> | ||
</div> | ||
{{/author}} | ||
<ol class="author-posts-list"> | ||
{{#foreach posts}} | ||
<li> | ||
<a href="{{url}}" title="link to {{{title}}}"> | ||
<h2>{{{title}}}</h2> | ||
<p class="description">{{excerpt}}…</p> | ||
</a> | ||
</li> | ||
{{/foreach}} | ||
</ol> | ||
</div> | ||
</div> | ||
</div> | ||
{{pagination}} | ||
</article> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{{#author}} | ||
<div class='author-credit'> | ||
<figure class="author-image"> | ||
<a class="img" href="{{url}}"> | ||
{{#if image}} | ||
<img src="{{image}}" alt="{{name}}'s picture" class="avatar rounded" /> | ||
{{else}} | ||
<img src="/ghost/img/user-image.png" class="avatar rounded" /> | ||
{{/if}} | ||
</a> | ||
</figure> | ||
|
||
<div class="author-info"> | ||
<h4><a href="{{url}}" class='author-name'>{{name}}</a></h4> | ||
{{#if bio}} | ||
<p>{{bio}}</p> | ||
{{else}} | ||
<p>Read <a href="{{url}}">more posts</a> by this author.</p> | ||
{{/if}} | ||
<div class="author-meta"> | ||
{{#if twitter}}<a href="{{twitter_url}}">{{twitter}}</a>{{/if}} | ||
</div> | ||
</div> | ||
</div> | ||
{{/author}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ | |
<div class="post-content"> | ||
{{content}} | ||
</div> | ||
{{> post-author-credit}} | ||
{{> comments}} | ||
</div> | ||
</div> | ||
|