Merge pull request #216 from Modulos/feature/no_author

Remove author from blog posts
This commit is contained in:
Levi Velázquez 2017-05-02 23:55:49 -05:00 committed by GitHub
commit f525606100
2 changed files with 3 additions and 25 deletions

View file

@ -17,21 +17,10 @@
{% render_model post "abstract" "" "" 'truncatewords_html:10' %}
</h2>
<span class="meta">
Posted
{% if post.author %}
by
<a href="{% url 'djangocms_blog:posts-author' post.author.get_username %}">
{% if post.author.get_full_name %}
{{ post.author.get_full_name }}
{% else %}
{{ post.author }}
{% endif %}
</a>
{% endif %}
on {{ post.date_published|date:"DATE_FORMAT" }}
Posted on {{ post.date_published|date:"DATE_FORMAT" }}
</span>
</div>
</div>
</div>
</div>
</header>
</header>

View file

@ -16,18 +16,7 @@
</h2>
</a>
<p class="post-meta" style="font-size:0.9em;">
Posted
{% if post.author %}
by
<!-- <a href="{% url 'djangocms_blog:posts-author' post.author.get_username %}"> -->
{% if post.author.get_full_name %}
{{ post.author.get_full_name }}
{% else %}
{{ post.author }}
{% endif %}
<!-- </a> -->
{% endif %}
on {{ post.date_published|date:"DATE_FORMAT" }}
Posted on {{ post.date_published|date:"DATE_FORMAT" }}
</p>
<p class="post-subtitle">