clone of github.com/decent-newsroom/newsroom
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
930 B

{% if article is defined %}
<{{ tag }} {{ attributes }}>
<div class="card-header">
{% if category %}<small class="text-uppercase">{{ category }}</small>{% endif %}
{% if article.image %}
<img src="{{ article.image }}" alt="">
{% endif %}
</div>
<div class="card-body">
{# <small>{{ article.createdAt|date('F j') }}</small>#}
<h2 class="card-title">{{ article.title }}</h2>
<p class="lede">
{{ article.summary }}
</p>
</div>
</{{ tag }}>
{#<div class="card card-footer">#}
{# <a href="{{ path('author-profile', { npub: article.pubkey })}}"><twig:Molecules:UserFromNpub pubkey="{{ article.pubkey }}" /></a>#}
{#</div>#}
{% endif %}
{% if user is defined %}
<{{ tag }} {{ attributes }}>
<div class="card-body">
<h3 class="card-title">{{ user.name }}</h3>
<p>{{ user.about }}</p>
</div>
</{{ tag }}>
{% endif %}