summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-07-04 12:30:13 +0200
committerPatrick Spek <p.spek@tyil.nl>2020-07-04 12:30:13 +0200
commitf8555ce79642f82ef3a2f7dda1fc4ee017a034e0 (patch)
tree24b323ff63f438e50a5083190f8a21fd46ec9853
parentb4ae74946dd1f845ea0767cd9bcf3d7a81984e1b (diff)
Alter the templates to render slightly better HTML
-rw-r--r--_includes/footer.html5
-rw-r--r--_includes/head.html30
-rw-r--r--_includes/header.html6
-rw-r--r--_layouts/default.html9
-rw-r--r--_pages/index.html7
5 files changed, 22 insertions, 35 deletions
diff --git a/_includes/footer.html b/_includes/footer.html
index 42b2a92..e1f6637 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -1,9 +1,8 @@
+
<footer class="site-footer">
<div class="container">
<hr>
- <p>
- &copy; 2016 - {{ 'now' | date: "%Y" }} &ndash; Patrick "tyil" Spek
- </p>
+ <p>&copy; 2016 - {{ 'now' | date: "%Y" }} &ndash; Patrick "tyil" Spek</p>
<p>
All content is licensed as per the license shown below that content.
All other sources (html, css, ...) are released under the terms of the
diff --git a/_includes/head.html b/_includes/head.html
index 2be5a01..78ef1f7 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -1,19 +1,15 @@
-<head lang="en">
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
-
- <link rel="stylesheet" type="text/css" href="{{ "/css/pygments.css" | prepend: site.baseurl }}" />
- <link rel="stylesheet" type="text/css" href="{{ "/css/main.css" | prepend: site.baseurl }}" />
-
- <title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
- {% if page.excerpt.size != 0 and page.excerpt.size > 0 %}
- <meta name="description" content="{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}" />
- {% else %}
- <meta name="description" content="{{ page.description | strip_newlines }}" />
- {% endif %}
-
- <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
- <link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="{{ "/atom.xml" | prepend: site.baseurl | prepend: site.url }}">
+<head lang="en">
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">{% if page.description %}
+ <meta name="description" content="{{ page.description | strip_newlines }}" />
+{% endif %}
+ <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
+ <link rel="stylesheet" type="text/css" href="{{ "/css/pygments.css" | prepend: site.baseurl }}" />
+ <link rel="stylesheet" type="text/css" href="{{ "/css/main.css" | prepend: site.baseurl }}" />
+ <link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="{{ "/atom.xml" | prepend: site.baseurl | prepend: site.url }}">
+ <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}">
+
+ <title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
</head>
diff --git a/_includes/header.html b/_includes/header.html
index 2335d7c..9c0a8e5 100644
--- a/_includes/header.html
+++ b/_includes/header.html
@@ -1,10 +1,8 @@
<header id="site-header">
<div class="container">
<nav>
- <a href="{{ site.baseurl }}/" class="brand-name">{{ site.title }}</a>
- {% for collection in site.collections %}
- <a href="{{ collection.label | prepend: "/" | prepend: site.baseurl }}/">{{ collection.label | capitalize }}</a>
- {% endfor %}
+ <a href="{{ site.baseurl }}/" class="brand-name">{{ site.title }}</a>{% for collection in site.collections %}
+ <a href="{{ collection.label | prepend: "/" | prepend: site.baseurl }}/">{{ collection.label | capitalize }}</a>{% endfor %}
<a href="{{ "/support" | prepend: site.baseurl }}/">Support me</a>
</nav>
</div>
diff --git a/_layouts/default.html b/_layouts/default.html
index d923f68..228f4c7 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -1,13 +1,12 @@
<!DOCTYPE html>
<html lang="en">
- {% include head.html %}
+{% include head.html %}
<body>
- {% include header.html %}
+{% include header.html %}
<main>
<div class="container">
- {{ content }}
- </div>
+{{ content }} </div>
</main>
- {% include footer.html %}
+{% include footer.html %}
</body>
</html>
diff --git a/_pages/index.html b/_pages/index.html
index 1593b23..12c368b 100644
--- a/_pages/index.html
+++ b/_pages/index.html
@@ -9,12 +9,7 @@ description: >
software related.
---
-{% for post in site.posts %}
- {% if post.wip %} {% continue %} {% endif %}
- {% assign blogpost = post %}
- {% break %}
-{% endfor %}
-
+{% for post in site.posts %}{% if post.wip %}{% continue %}{% endif %}{% assign blogpost = post %}{% break %}{% endfor %}
{% markdown %}
## About me