fix(Style): Adjust code style for consistency
This commit is contained in:
parent
d32c7e4b66
commit
438778db39
@ -1,9 +1,9 @@
|
||||
{% macro post_card(article) %}
|
||||
{% if article.author.display_name %}
|
||||
{% if article.author.display_name %}
|
||||
{% set name = article.author.display_name %}
|
||||
{% else %}
|
||||
{% else %}
|
||||
{% set name = article.author.username %}
|
||||
{% endif %}
|
||||
{% 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>
|
||||
|
@ -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>
|
||||
—
|
||||
|
@ -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 %}
|
||||
|
||||
|
@ -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 %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user