<!DOCTYPE HTML>
<html lang="fr">
  <head>
    {% include head.html %}
  </head>
  <body>
     <div id="back" class="back fade-in row">
        <a href="{{ site.baseurl }}/">❮ Back</a>
   </div>

    <div id="logo" class="ten centered slide-down">
       <img src="{{ site.logoUrl }}"></img>
    </div>

    <div id="content" class="fade-in">
      <article class="row">
        <header>
          <h1 class="static-title">{{ page.title }}</h1>
          <p><time datetime="{{ page.date | date:'%Y-%m-%d' }}">{{ page.date | date:'%d %B %Y' }}</time> — <span class="capitalize">{{ page.categories| join }}</span></p>
        </header>
        <div id="post-content" class="ten">
          {{ content }}
          <footer class="article-footer">
             <a target="_blank" href="http://twitter.com/?status={{ page.title | replace: '&amp;', '%26' | replace: '&', '%26' | replace: ' ', '+' }}%20{{ site.url }}{{ page.url | replace: '.html', '' }}%20via%20%40{{ site.twitterUsername }}">Share on Twitter</a>
          </footer>

        </div>
      </article>
      {% include footer.html %}
    </div>
  </body>
</html>


<!DOCTYPE HTML>
<html lang="fr">
  <head>
    {% include head.html %}
  </head>
  <body>
     <div id="back" class="back fade-in row">
        <a href="{{ site.baseurl }}/">❮ Back</a>
   </div>

    <div id="logo" class="ten centered slide-down">
       <img src="{{ site.logoUrl }}"></img>
    </div>

    <div id="content" class="fade-in">
      <article class="row">
        <header>
          <h1 class="static-title">{{ page.title }}</h1>
          <p><time datetime="{{ page.date | date:'%Y-%m-%d' }}">{{ page.date | date:'%d %B %Y' }}</time> — <span class="capitalize">{{ page.categories| join }}</span></p>
        </header>
        <div id="post-content" class="ten">
          {{ content }}
          {% if site.twitterUsername %}
          <footer class="article-footer">
             <a target="_blank" href="http://twitter.com/?status={{ page.title | replace: '&amp;', '%26' | replace: '&', '%26' | replace: ' ', '+' }}%20{{ site.url }}{{ page.url | replace: '.html', '' }}%20via%20%40{{ site.twitterUsername }}">Share on Twitter</a>
          </footer>
         {% endif %}
        </div>
      </article>
      {% include footer.html %}
    </div>
  </body>
</html>


Hide Twitter button if no username in config
Hide Twitter button if no username in config
