-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating theme - version 4.0.0 - fonts, conditional comments, prev & …
…next posts, share buttons
- Loading branch information
1 parent
dd5a6c2
commit c2c7aa7
Showing
25 changed files
with
331 additions
and
198 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
<div class="c-disqus-comments"> | ||
{{! Replace Code From Here }} | ||
<div id="disqus_thread"></div> | ||
<div id="disqus_thread"> | ||
<a class="c-disqus-comments__button" onclick="WillowGhostTheme.loadDisqusComments();"> | ||
Load Comments | ||
</a> | ||
</div> | ||
<script> | ||
(function() { | ||
var d = document, s = d.createElement('script'); | ||
s.src = '//yourssite.disqus.com/embed.js'; | ||
s.setAttribute('data-timestamp', +new Date()); | ||
(d.head || d.body).appendChild(s); | ||
})(); | ||
var WillowGhostTheme = { | ||
loadDisqusComments: function () { | ||
{{! Replace Code From Here }} | ||
var d = document, s = d.createElement('script'); | ||
s.src = '//yourssite.disqus.com/embed.js'; | ||
s.setAttribute('data-timestamp', +new Date()); | ||
(d.head || d.body).appendChild(s); | ||
{{! Replace Code Until Here }} | ||
} | ||
}; | ||
</script> | ||
{{! Replace Code Until Here }} | ||
</div> |
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 |
---|---|---|
|
@@ -9,6 +9,4 @@ | |
{{/foreach}} | ||
</span> | ||
{{/if}} | ||
| | ||
{{> "post-share"}} | ||
</div> |
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 |
---|---|---|
@@ -1,16 +1,14 @@ | ||
<span class="c-post-view-share"> | ||
<a class="c-post-view-share__item--twitter" href="https://twitter.com/intent/tweet?text={{encode title}}&url={{url absolute="true"}}" | ||
<div class="c-post-view-share"> | ||
<a class="c-post-view-share__item c-post-view-share__item--twitter" href="https://twitter.com/intent/tweet?text={{encode title}}&url={{url absolute="true"}}" | ||
onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;"> | ||
Share on Twitter | ||
</a> | ||
| | ||
<a class="c-post-view-share__item--facebook" href="https://www.facebook.com/sharer/sharer.php?u={{url absolute="true"}}" | ||
<a class="c-post-view-share__item c-post-view-share__item--facebook" href="https://www.facebook.com/sharer/sharer.php?u={{url absolute="true"}}" | ||
onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;"> | ||
Share on Facebook | ||
</a> | ||
| | ||
<a class="c-post-view-share__item--google" href="https://plus.google.com/share?url={{url absolute="true"}}" | ||
<a class="c-post-view-share__item c-post-view-share__item--google" href="https://plus.google.com/share?url={{url absolute="true"}}" | ||
onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;"> | ||
Share on Google+ | ||
</a> | ||
</span> | ||
</div> |
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,47 @@ | ||
<div class="c-post-view-prev-next"> | ||
{{#next_post}} | ||
<article class="c-post-view-prev-next__item {{post_class}}"> | ||
<a class="c-post-view-prev-next__image" href="{{url}}" title="{{title}}"> | ||
<img class="c-post-view-prev-next__image__img" src="{{image}}" alt="{{title}}"/> | ||
<span class="c-post-view-prev-next__image__label c-post-view-prev-next__image__label--next"> | ||
Next Post | ||
</span> | ||
</a> | ||
|
||
<h3 class="c-post-view-prev-next__title"> | ||
<a href="{{url}}" title="{{title}}">{{title}}</a> | ||
</h3> | ||
</article> | ||
{{else}} | ||
<article class="c-post-view-prev-next__item"> | ||
<div class="c-post-view-prev-next__image c-post-view-prev-next__image--placeholder"> | ||
<span class="c-post-view-prev-next__image__label c-post-view-prev-next__image__label--next"> | ||
No Newer Posts | ||
</span> | ||
</div> | ||
</article> | ||
{{/next_post}} | ||
|
||
{{#prev_post}} | ||
<article class="c-post-view-prev-next__item {{post_class}}"> | ||
<a class="c-post-view-prev-next__image" href="{{url}}" title="{{title}}"> | ||
<img class="c-post-view-prev-next__image__img" src="{{image}}" alt="{{title}}"/> | ||
<span class="c-post-view-prev-next__image__label c-post-view-prev-next__image__label--previous"> | ||
Previous Post | ||
</span> | ||
</a> | ||
|
||
<h3 class="c-post-view-prev-next__title"> | ||
<a href="{{url}}" title="{{title}}">{{title}}</a> | ||
</h3> | ||
</article> | ||
{{else}} | ||
<article class="c-post-view-prev-next__item"> | ||
<div class="c-post-view-prev-next__image c-post-view-prev-next__image--placeholder"> | ||
<span class="c-post-view-prev-next__image__label c-post-view-prev-next__image__label--previous"> | ||
No Older Posts | ||
</span> | ||
</div> | ||
</article> | ||
{{/prev_post}} | ||
</div> |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.