Fixes in formatting

This commit is contained in:
Panos Sakkos 2015-11-18 01:33:00 +01:00
parent 622d95cc31
commit ba0d71b330
6 changed files with 21 additions and 19 deletions

View file

@ -14,10 +14,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="{{site.description}}">
<meta name="author" content="{{site.author}}">
<meta name="keywords" content="{{ site.keywords }}">
<meta name="keywords" content="{{site.keyword}}">
<link rel="canonical" href="{{page.url | replace:'index.html','' | prepend: site.baseurl}}">
{% assign fourofour = "/404.html"%}
{% if page.url == {{fourofour}} | prepend: {{site.baseurl}} %}
{% if page.url == "/404.html" | prepend: {{site.baseurl}} %}
<meta http-equiv="refresh" content="20; url={{site.baseurl}}/">
{% endif %}
<title>{{site.title}} {% if page.title %} | {{page.title}}{% endif %}</title>

View file

@ -16,7 +16,7 @@
{{ post.content | truncatewords: site.post-preview-words | strip_html | markdownify }}
<a href="{{site.baseurl}}/blog/index.html"><h4><strong>View more posts</strong></h4></a>
<a href="{{site.baseurl}}/blog/"><h4><strong>View more posts</strong></h4></a>
</div>
</div>

View file

@ -31,14 +31,17 @@
{% endfor %}
{% else %}
<!-- Blog, Post, Tag pages-->
<!-- Blog, Post, Tag and Error pages -->
{% for p in site.pages_list %}
<li>
{% comment %} If are blog, redirect to index.html of Blog {% endcomment %}
{% if p[1] == "latest-post" %}
<a class="page-scroll" href="{{site.baseurl}}/blog/index.html"> {{ p[0] }}</a>
{% if page.url == "/blog/" | prepend: {{site.baseurl}} %}
<a class="page-scroll" href="#page"> {{p[0]}} </a>
{% else %}
<a class="page-scroll" href="{{site.baseurl}}/index.html#{{ p[1] }}"> {{ p[0] }}</a>
<a href="{{site.baseurl}}/blog/"> {{p[0]}} </a>
{% endif %}
{% else %}
<a href="{{site.baseurl}}/#{{ p[1] }}"> {{p[0]}} </a>
{% endif %}
</li>
{% endfor %}