1
0
mirror of https://github.com/kremalicious/blog.git synced 2025-02-14 21:10:25 +01:00

just append trailing slash to some url variables, ref #8

This commit is contained in:
Matthias Kretschmann 2013-12-07 16:26:51 +01:00
parent 79589bb328
commit d46f6292a0
3 changed files with 7 additions and 7 deletions

View File

@ -15,7 +15,7 @@
{{ post.content | markdownify }} {{ post.content | markdownify }}
<p> <p>
<a class="more-link" href="{{ post.linkurl }}">Go to source <i class="icon-forward"></i></a> <a class="more-link" href="{{ post.linkurl }}">Go to source <i class="icon-forward"></i></a>
<a class="permalink-link" href="{{ post.url }}" rel="tooltip" title="Permalink">&#8734;</a> <a class="permalink-link" href="{{ post.url | append: '/' }}" rel="tooltip" title="Permalink">&#8734;</a>
</p> </p>
</section> </section>
</article> </article>
@ -39,13 +39,13 @@
<article class="hentry format-post"> <article class="hentry format-post">
<header> <header>
<h1 class="entry-title"><a href="{{ post.url }}">{{ post.title | titlecase }}</a></h1> <h1 class="entry-title"><a href="{{ post.url | append: '/' }}">{{ post.title | titlecase }}</a></h1>
</header> </header>
<section class="entry-content"> <section class="entry-content">
{% if post.image %} {% if post.image %}
<a href="{{ post.url }}"> <a href="{{ post.url | append: '/' }}">
{% picture {{ post.image }} class="teaser" %} {% picture {{ post.image }} class="teaser" %}
</a> </a>
{% endif %} {% endif %}
@ -64,7 +64,7 @@
<footer class="goodie-actions"> <footer class="goodie-actions">
<p class="info col3"> <p class="info col3">
<a class="btn icon-info" href="{{ post.url }}">Release Post</a> <a class="btn icon-info" href="{{ post.url | append: '/' }}">Release Post</a>
</p> </p>
{% if post.download %} {% if post.download %}
@ -77,7 +77,7 @@
{% endif %} {% endif %}
{% unless page.path contains "goodies" %} {% unless page.path contains "goodies" %}
<a class="more-link" href="{{ post.url }}">Continue reading <i class="icon-arrow-right"></i></a> <a class="more-link" href="{{ post.url | append: '/' }}">Continue reading <i class="icon-arrow-right"></i></a>
{% endunless %} {% endunless %}
</section> </section>

View File

@ -54,7 +54,7 @@
<meta http-equiv="cleartype" content="on"> <meta http-equiv="cleartype" content="on">
{% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %} {% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %}
<link rel="canonical" href="{{ canonical }}"> <link rel="canonical" href="{{ canonical | append: '/' }}">
<link rel="stylesheet" href="/assets/css/kremalicious3.min.css"> <link rel="stylesheet" href="/assets/css/kremalicious3.min.css">
{% if page.style %} {% if page.style %}

View File

@ -18,7 +18,7 @@ layout: base
{{ content }} {{ content }}
<p> <p>
<a class="more-link" href="{{ page.linkurl }}">Go to source <i class="icon-forward"></i></a> <a class="more-link" href="{{ page.linkurl }}">Go to source <i class="icon-forward"></i></a>
<a class="permalink-link" href="{{ page.url }}" rel="tooltip" title="Permalink">&#8734;</a> <a class="permalink-link" href="{{ page.url | append: '/' }}" rel="tooltip" title="Permalink">&#8734;</a>
</p> </p>
</section> </section>