diff --git a/partials/byline-multiple.hbs b/partials/byline-multiple.hbs new file mode 100644 index 0000000..351b5ca --- /dev/null +++ b/partials/byline-multiple.hbs @@ -0,0 +1,96 @@ +
+ +
+

This post was a collaboration between

+

{{authors}}

+
+ + + +
+ +{{#contentFor "scripts"}} + +{{/contentFor}} diff --git a/partials/byline-single.hbs b/partials/byline-single.hbs new file mode 100644 index 0000000..5ea29b7 --- /dev/null +++ b/partials/byline-single.hbs @@ -0,0 +1,23 @@ +{{!-- Everything inside the #author tags pulls data from the author --}} +{{#author}} + +
+ {{#if profile_image}} + {{name}} + {{else}} + {{> "icons/avatar"}} + {{/if}} +
+

{{name}}

+ {{#if bio}} +

{{bio}}

+ {{else}} +

Read more posts by this author.

+ {{/if}} +
+
+
+ Read More +
+ +{{/author}} diff --git a/post.hbs b/post.hbs index 9bf6107..c3585c0 100644 --- a/post.hbs +++ b/post.hbs @@ -47,102 +47,22 @@ into the {body} of the default.hbs template --}} {{!-- - - If you use Disqus comments, just uncomment this block. - The only thing you need to change is "test-apkdzgmqhj" - which - should be replaced with your own Disqus site-id. -
-
- + If you want to embed comments, this is a good place to do it!
--}} @@ -271,56 +191,6 @@ $(document).ready(function () { update(); -}); - -// Adds delay to author card dropups to disappear. This gives enough -// time for the user to interact with the author card while they move -// the mouse from the avatar to the card. Also makes space for the -// interacted avatar. -$(document).ready(function () { - - var hoverTimeout; - var direction = 'left'; - - $('.author-list-item:first-child').addClass('first-child'); - - function makeSpaceForAvatar(avatar) { - if (avatar.hasClass('first-child')) { - return; - } - - $('.author-list-item').each(function(i, obj) { - - if ($(this)[0] != avatar[0]) { - if (Number($(this).css('z-index')) > Number(avatar.css('z-index'))) { - $(this).children('.moving-avatar').addClass('left'); - } else { - $(this).children('.moving-avatar').addClass('right'); - } - } - - }); - } - - $('.author-list-item').hover(function(){ - var $this = $(this); - - clearTimeout(hoverTimeout); - - $('.author-card').removeClass('hovered'); - $(this).children('.author-card').addClass('hovered'); - - makeSpaceForAvatar($this); - }, function() { - var $this = $(this); - - $('.author-list-item').children('.moving-avatar').removeClass('left right'); - - hoverTimeout = setTimeout(function() { - $this.children('.author-card').removeClass('hovered'); - }, 800); - }); - }); {{/contentFor}}