fix(Style): Adjust code style for consistency

This commit is contained in:
Stephen Burgess 2018-06-12 12:05:33 -05:00
parent d32c7e4b66
commit 438778db39
4 changed files with 10 additions and 8 deletions

View file

@ -1,9 +1,9 @@
{% macro post_card(article) %}
{% if article.author.display_name %}
{% set name = article.author.display_name %}
{% else %}
{% set name = article.author.username %}
{% endif %}
{% if article.author.display_name %}
{% set name = article.author.display_name %}
{% else %}
{% set name = article.author.username %}
{% endif %}
<div class="card">
<h3><a href="{{ article.url }}">{{ article.post.title }}</a></h3>
<main><p>{{ article.post.content | striptags | truncate(length=200) }}</p></main>

View file

@ -8,12 +8,13 @@
<a href="../">{{ blog.title }}</a>
{% endblock header %}
{% block content %}
{% if author.display_name %}
{% set name = author.display_name %}
{% else %}
{% set name = author.username %}
{% endif %}
{% block content %}
<p>
<b>Written by <a href="/@/{{ author.fqn }}/">{{ name }}</a></b>
&mdash;

View file

@ -1,12 +1,13 @@
{% extends "base" %}
{% import "macros" as macros %}
{% block title %}
{% if user.display_name %}
{% set name = user.display_name %}
{% else %}
{% set name = user.username %}
{% endif %}
{% block title %}
{{ name }}
{% endblock title %}

View file

@ -1,12 +1,12 @@
{% extends "base" %}
{% block title %}
{% if user.display_name %}
{% set name = user.display_name %}
{% else %}
{% set name = user.username %}
{% endif %}
{% block title %}
{{ name }}'s Followers
{% endblock title %}