mnts.dev/partials/floating-header.hbs

29 lines
1.3 KiB
Handlebars
Raw Normal View History

2017-05-15 20:03:47 +00:00
<div class="floating-header">
<div class="floating-header-logo">
<a href="{{@site.url}}">
{{#if @site.icon}}
<img src="{{img_url @site.icon size="xxs"}}" alt="{{@site.title}} icon" />
2017-05-15 20:03:47 +00:00
{{/if}}
<span>{{@site.title}}</span>
2017-05-15 20:03:47 +00:00
</a>
</div>
<span class="floating-header-divider">&mdash;</span>
<div class="floating-header-title">{{title}}</div>
<div class="floating-header-share">
<div class="floating-header-share-label">Share this {{> "icons/point"}}</div>
<a class="floating-header-share-tw" href="https://twitter.com/share?text={{encode title}}&amp;url={{url absolute="true"}}"
onclick="window.open(this.href, 'share-twitter', 'width=550,height=235');return false;">
{{> "icons/twitter"}}
</a>
<a class="floating-header-share-fb" href="https://www.facebook.com/sharer/sharer.php?u={{url absolute="true"}}"
onclick="window.open(this.href, 'share-facebook','width=580,height=296');return false;">
{{> "icons/facebook"}}
</a>
</div>
<progress id="reading-progress" class="progress" value="0">
2017-06-14 11:16:16 +00:00
<div class="progress-container">
<span class="progress-bar"></span>
</div>
</progress>
2017-05-15 20:03:47 +00:00
</div>