Commit 8b4685ea authored by Zachary Dunn's avatar Zachary Dunn

Cleanup whitespace in rendered html

parent 4f6511b5
......@@ -28,11 +28,11 @@
<link rel="microsub" href="https://aperture.p3k.io/microsub/150" />
<link rel="pingback" href="https://webmention.io/adhoc.systems/xmlrpc" />
<link rel="webmention" href="https://webmention.io/adhoc.systems/webmention" />
{% for link in rel_me_links %}
{%- for link in rel_me_links %}
<link rel="me" href="{{link}}" />
{% endfor %}
{% endfor -%}
<!-- <# TODO: parameterize these rel="feed" links #> -->
{#- TODO: parameterize these rel="feed" links -#}
<link rel="feed" type="text/html" title="Index" href="{{host}}" />
<link rel="feed" type="text/html" title="Notes - {{site_name}}" href="{{host}}/notes" />
<link rel="feed" type="text/html" title="Articles - {{site_name}}" href="{{host}}/articles" />
......@@ -43,14 +43,14 @@
<link rel="authorization_endpoint" href="https://indieauth.com/auth" />
<link rel="token_endpoint" href="https://tokens.indieauth.com/token" />
{% block head %}
{% endblock head %}
{%- block head -%}
{%- endblock head -%}
<meta property="og:site_name" content="{{site_name}}" />
<meta property="og:locale" content="{{locale}}" />
<meta property="og:url" content="{{host}}/{{slug}}" />
{% block opengraph %}
{% endblock opengraph %}
{%- block opengraph -%}
{%- endblock opengraph -%}
</head>
<body class="{{theme}} {% if posts %}h-feed{% endif %}">
<div id="top"></div>
......@@ -58,19 +58,17 @@
<h1 class="p-name">
<a href="{{host}}/" class="u-url" title="Home">{{site_name}}</a>
</h1>
{% block header %}
{%- block header -%}
{% endblock header %}
{% include "partials/nav" %}
</header>
<main>
{% block content %}
{%- block content -%}
{% endblock content %}
</main>
<footer class="main-footer">
<span>&copy; Copyright 2018 by <a href="{{host}}" title="Home">{{name}}</a></span>
{% block footer %}
{%- block footer -%}
{% endblock footer %}
<a href="#top" class="back-to-top" role="button" aria-label="Back to Top">
<svg viewBox="0 0 100 100" width="50px" height="50px" tabindex="-1" role="img" aria-labelledby="title">
......
{% extends "base" %}
{% block content %}
{% include "partials/hcard" %}
{% block content -%}
{% include "partials/hcard" -%}
<hr class="extended-divider" />
{% block entries %}
{% block entries -%}
<section class="entries">
{% for post in posts %}
{% include "partials/entry" %}
{% endfor %}
{%- include "partials/entry" -%}
{%- endfor -%}
</section>
{% endblock entries %}
{% endblock content %}
{%- endblock entries -%}
{%- endblock content -%}
<article class="h-entry entry block
{% if post.like_of %} entry--has-badge entry--like {% endif %}
{% if post.repost_of %} entry--has-badge entry--boost {% endif %}
{% if post.in_reply_to %} entry--has-badge entry--reply {% endif %}
{%- if post.like_of %} entry--has-badge entry--like {% endif -%}
{%- if post.repost_of %} entry--has-badge entry--boost {% endif -%}
{%- if post.in_reply_to %} entry--has-badge entry--reply {% endif -%}
">
{% if post.in_reply_to %}
{%- if post.in_reply_to %}
{% include "partials/reply-context" %}
{% endif %}
{%- endif %}
<header>
<div class="entry__badge">
{% if post.like_of %}
{%- if post.like_of %}
{% include "partials/star" %}
{% endif %}
{% if post.repost_of %}
{%- endif -%}
{%- if post.repost_of %}
{% include "partials/repost-arrows" %}
{% endif %}
{% if post.in_reply_to %}
{%- endif -%}
{%- if post.in_reply_to %}
{% include "partials/reply-arrow" %}
{% endif %}
{%- endif -%}
</div>
<h3 class="p-name entry__name">
{% if post.name %}<a href="{{post.url}}">{{post.name | title}}</a>{% endif %}
......@@ -32,17 +32,17 @@
</h4>
</header>
<section class="block__inner">
{% if post.like_of %}
{% if post.like_of -%}
<p>
<span>Liked <a href="{{ post.like_of }}" class="u-like-of">{{ post.like_of }}</a></span>
</p>
{% endif %}
{% if post.repost_of %}
{%- endif -%}
{% if post.repost_of -%}
<p>
<span>Boosted <a href="{{ post.repost_of }}" class="u-repost-of">{{ post.repost_of }}</a></span>
</p>
{% endif %}
{% if post.src %} <img src="{{post.src}}" class="u-photo" alt="{{post.content}}" /> {% endif %}
{%- endif -%}
{% if post.src %} <img src="{{post.src}}" class="u-photo" alt="{{post.content}}" /> {%- endif -%}
{% if post.summary %}
<p class="p-summary entry__summary">{{ post.summary | safe }}</p>
{% else %}
......@@ -60,4 +60,3 @@
{% endif %}
</section>
</article>
<address class="h-card p-author h-card-grid">
<div class="h-card-grid__first-row h-card__avatar">
<a class="u-url h-card__avatar-link" href="{{host}}">
<a class="u-url u-uid h-card__avatar-link" href="{{host}}">
<img class="u-photo avatar" src="{{host}}/{{avatar_src}}" alt="{{name}}'s avatar" />
</a>
<a class="u-url" href="{{host}}/about" rel="me"></a>
<a rel="me" class="u-url" href="{{host}}/about"></a>
<div class="h-card__name">
<h1 class="p-name">{{name}}</h1>
<h4>
......@@ -11,6 +11,6 @@
</h4>
</div>
</div>
{% include "partials/links" %}
{% include "partials/links" -%}
</address>
......@@ -13,8 +13,7 @@
</label>
</span>
</form>
{% endif %}
{%- endif -%}
<span class="spacer sm-hidden">|</span>
<a href="/notes" title="{{name}}'s Notes">Notes</a>
<span class="spacer">|</span>
......
......@@ -2,7 +2,7 @@
Published on
<a href="{{post.url}}" class="u-url">
<time class="dt-published" datetime="{{post.published}}">
{# {{ post.published | date(format="{{date_format}}") }} #}
{#- {{ post.published | date(format="{{date_format}}") }} -#}
{{post.published}}
</time>
</a>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment