Normalise built-in templates
Two main purposes of changes here: - To make the formatting and indentation of the raw output prettier; - To simplify the HTML yielded by dropping unnecessary bits. The 404 changes are a tad more extensive, altering the actual wording to match conventional stub 404 pages a little more.
This commit is contained in:
parent
cc01d3f82f
commit
4a10d0497e
|
@ -1,10 +1,3 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<title>404 Not Found</title>
|
||||||
<head>
|
<h1>404 Not Found</h1>
|
||||||
<title>File Not Found: 404.</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>Oops!</h1>
|
|
||||||
<h2>File Not Found: 404.</h2>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html>
|
<meta charset="utf-8">
|
||||||
<head>
|
<link rel="canonical" href="{{ url | safe }}">
|
||||||
|
<meta http-equiv="refresh" content="0;url={{ url | safe }}">
|
||||||
<title>Redirect</title>
|
<title>Redirect</title>
|
||||||
<link rel="canonical" href="{{ url | safe }}" />
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|
||||||
<meta http-equiv="refresh" content="0;url={{ url | safe }}" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<p><a href="{{ url | safe }}">Click here</a> to be redirected.</p>
|
<p><a href="{{ url | safe }}">Click here</a> to be redirected.</p>
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<language>{{ config.default_language }}</language>
|
<language>{{ config.default_language }}</language>
|
||||||
<atom:link href="{{ feed_url | safe }}" rel="self" type="application/rss+xml"/>
|
<atom:link href="{{ feed_url | safe }}" rel="self" type="application/rss+xml"/>
|
||||||
<lastBuildDate>{{ last_build_date | date(format="%a, %d %b %Y %H:%M:%S %z") }}</lastBuildDate>
|
<lastBuildDate>{{ last_build_date | date(format="%a, %d %b %Y %H:%M:%S %z") }}</lastBuildDate>
|
||||||
{% for page in pages %}
|
{%- for page in pages %}
|
||||||
<item>
|
<item>
|
||||||
<title>{{ page.title }}</title>
|
<title>{{ page.title }}</title>
|
||||||
<pubDate>{{ page.date | date(format="%a, %d %b %Y %H:%M:%S %z") }}</pubDate>
|
<pubDate>{{ page.date | date(format="%a, %d %b %Y %H:%M:%S %z") }}</pubDate>
|
||||||
|
@ -16,6 +16,6 @@
|
||||||
<guid>{{ page.permalink | escape_xml | safe }}</guid>
|
<guid>{{ page.permalink | escape_xml | safe }}</guid>
|
||||||
<description>{% if page.summary %}{{ page.summary }}{% else %}{{ page.content }}{% endif %}</description>
|
<description>{% if page.summary %}{{ page.summary }}{% else %}{{ page.content }}{% endif %}</description>
|
||||||
</item>
|
</item>
|
||||||
{% endfor %}
|
{%- endfor %}
|
||||||
</channel>
|
</channel>
|
||||||
</rss>
|
</rss>
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
<div {% if class %}class="{{class}}"{% endif %}>
|
<div {% if class %}class="{{class}}"{% endif %}>
|
||||||
<iframe src="https://www.streamable.com/e/{{id}}"
|
<iframe src="https://www.streamable.com/e/{{id}}" scrolling="no" frameborder="0" allowfullscreen mozallowfullscreen webkitallowfullscreen></iframe>
|
||||||
scrolling="no"
|
|
||||||
frameborder="0"
|
|
||||||
allowfullscreen mozallowfullscreen webkitallowfullscreen>
|
|
||||||
</iframe>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
<div {% if class %}class="{{class}}"{% endif %}>
|
<div {% if class %}class="{{class}}"{% endif %}>
|
||||||
<iframe src="//player.vimeo.com/video/{{id}}" webkitallowfullscreen mozallowfullscreen allowfullscreen>
|
<iframe src="//player.vimeo.com/video/{{id}}" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
|
||||||
</iframe>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
<div {% if class %}class="{{class}}"{% endif %}>
|
<div {% if class %}class="{{class}}"{% endif %}>
|
||||||
<iframe src="https://www.youtube.com/embed/{{id}}{% if autoplay %}?autoplay=1{% endif %}" webkitallowfullscreen mozallowfullscreen allowfullscreen>
|
<iframe src="https://www.youtube.com/embed/{{id}}{% if autoplay %}?autoplay=1{% endif %}" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
|
||||||
</iframe>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
{% for sitemap_entry in entries %}
|
{%- for sitemap_entry in entries %}
|
||||||
<url>
|
<url>
|
||||||
<loc>{{ sitemap_entry.permalink | escape_xml | safe }}</loc>
|
<loc>{{ sitemap_entry.permalink | escape_xml | safe }}</loc>
|
||||||
{% if sitemap_entry.date %}
|
{%- if sitemap_entry.date %}
|
||||||
<lastmod>{{ sitemap_entry.date }}</lastmod>
|
<lastmod>{{ sitemap_entry.date }}</lastmod>
|
||||||
{% endif %}
|
{%- endif %}
|
||||||
</url>
|
</url>
|
||||||
{% endfor %}
|
{%- endfor %}
|
||||||
</urlset>
|
</urlset>
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
{% for sitemap in sitemaps %}
|
{%- for sitemap in sitemaps %}
|
||||||
<sitemap>
|
<sitemap>
|
||||||
<loc>{{ sitemap }}</loc>
|
<loc>{{ sitemap }}</loc>
|
||||||
</sitemap>
|
</sitemap>
|
||||||
{% endfor %}
|
{%- endfor %}
|
||||||
</sitemapindex>
|
</sitemapindex>
|
Loading…
Reference in a new issue