mirror of
https://github.com/adulau/brouilleursdeblanc.git
synced 2024-11-23 10:37:10 +00:00
8e87ba0295
Changes the twitter link to use tags instead of categories when creating the hashtags in the link. Also removes spaces in tags with multiple words. For example: post tags | twitter hashtags ----------------------------------------- [open source] | #opensource [java] | #java [open source, java] | #opensource #java ----------------------------------------
80 lines
4.9 KiB
HTML
80 lines
4.9 KiB
HTML
<!doctype html>
|
|
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
|
|
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
|
|
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
|
|
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<![endif]-->
|
|
<head>
|
|
{% include head.html %}
|
|
</head>
|
|
|
|
<body id="post">
|
|
|
|
{% include navigation.html %}
|
|
|
|
<div id="main" role="main">
|
|
<article class="hentry">
|
|
{% if page.image.feature %}<img src="{{ site.url }}/images/{{ page.image.feature }}" class="entry-feature-image" alt="{{ page.title }}" {% if site.logo == null %}style="margin-top:0;"{% endif %}>{% if page.image.credit %}<p class="image-credit">Photo Credit: <a href="{{ page.image.creditlink }}">{{ page.image.credit }}</a>{% endif %}{% endif %}
|
|
<div class="entry-wrapper">
|
|
<header class="entry-header">
|
|
<span class="entry-tags">{% for tag in page.tags %}<a href="{{ site.url }}/tags/#{{ tag }}" title="Pages tagged {{ tag }}">{{ tag }}</a>{% unless forloop.last %} • {% endunless %}{% endfor %}</span>
|
|
{% if page.link %}
|
|
<h1 class="entry-title"><a href="{{ page.link }}">{% if page.headline %}{{ page.headline }}{% else %}{{ page.title }}{% endif %} <span class="link-arrow">→</span></a></h1>
|
|
{% else %}
|
|
<h1 class="entry-title">{% if page.headline %}{{ page.headline }}{% else %}{{ page.title }}{% endif %}</h1>
|
|
{% endif %}
|
|
</header>
|
|
<footer class="entry-meta">
|
|
{% if page.author.name %}
|
|
{% if page.author.avatar %}
|
|
<img src="{{ site.url }}/images/{{ page.author.avatar }}" alt="{{ page.author.name }} photo" class="author-photo">
|
|
{% else %}
|
|
<img src="{{ site.url }}/images/bio-photo-alt.jpg" alt="{{ page.author.name }} photo" class="author-photo">
|
|
{% endif %}
|
|
<span class="author vcard">By <span class="fn">{{ page.author.name }}</span></span>
|
|
{% else %}
|
|
{% if site.owner.avatar %}
|
|
<img src="{{ site.url }}/images/{{ site.owner.avatar }}" alt="{{ site.owner.name }} photo" class="author-photo">
|
|
{% else %}
|
|
<img src="{{ site.url }}/images/bio-photo-alt.jpg" alt="{{ site.owner.name }} photo" class="author-photo">
|
|
{% endif %}
|
|
<span class="author vcard">By <span class="fn"><a href="{{ site.url }}/about/" title="About {{ site.owner.name }}">{{ site.owner.name }}</a></span></span>
|
|
{% endif %}
|
|
<span class="entry-date date published"><time datetime="{{ page.date | date_to_xmlschema }}"><i class="icon-calendar-empty"></i> {{ page.date | date: "%B %d, %Y" }}</time></span>
|
|
{% if page.modified %}<span class="entry-date date modified"><time datetime="{{ page.modified }}"><i class="icon-pencil"></i> {{ page.modified | date: "%B %d, %Y" }}</time></span>{% endif %}
|
|
{% if site.disqus_shortname and page.comments %}<span class="entry-comments"><i class="icon-comment-alt"></i> <a href="#disqus_thread">Comment</a></span>{% endif %}
|
|
<span><a href="{{ site.url }}{{ page.url }}" rel="bookmark" title="{{ page.title }}"><i class="icon-link"></i> Permalink</a></span>
|
|
{% if page.share %}
|
|
<span class="social-share-facebook">
|
|
<a href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ page.url }}" title="Share on Facebook" itemprop="Facebook"><i class="icon-facebook-sign"></i> Like</a></span>
|
|
<span class="social-share-twitter">
|
|
<a href="https://twitter.com/intent/tweet?hashtags={{ page.tags | join: ',' | remove: ' ' }}&text={{ page.title | escape | replace:' ','%20' }}&url={{ site.url }}{{ page.url }}&via={{site.owner.twitter}}" title="Share on Twitter" itemprop="Twitter"><i class="icon-twitter-sign"></i> Tweet</a></span>
|
|
<span class="social-share-googleplus">
|
|
<a href="https://plus.google.com/share?url={{ site.url }}{{ page.url }}" title="Share on Google Plus" itemprop="GooglePlus"><i class="icon-google-plus-sign"></i> +1</a></span>
|
|
<!-- /.social-share -->{% endif %}
|
|
</footer>
|
|
<div class="entry-content">
|
|
{{ content }}
|
|
{% if site.disqus_shortname and page.comments %}<div id="disqus_thread"></div><!-- /#disqus_thread -->{% endif %}
|
|
</div><!-- /.entry-content -->
|
|
</div><!-- /.entry-wrapper -->
|
|
<nav class="pagination" role="navigation">
|
|
{% if page.previous %}
|
|
<a href="{{ site.url }}{{ page.previous.url }}" class="btn" title="{{ page.previous.title }}">Previous article</a>
|
|
{% endif %}
|
|
{% if page.next %}
|
|
<a href="{{ site.url }}{{ page.next.url }}" class="btn" title="{{ page.next.title }}">Next article</a>
|
|
{% endif %}
|
|
</nav><!-- /.pagination -->
|
|
</article>
|
|
</div><!-- /#main -->
|
|
|
|
<div class="footer-wrapper">
|
|
<footer role="contentinfo">
|
|
{% include footer.html %}
|
|
</footer>
|
|
</div><!-- /.footer-wrapper -->
|
|
|
|
{% include scripts.html %}
|
|
|
|
</body>
|
|
</html>
|