mirror of
https://github.com/vale981/ablog
synced 2025-03-04 16:51:39 -05:00
postcard changes
This commit is contained in:
parent
77d827e7a1
commit
ee6fd8f24a
1 changed files with 13 additions and 15 deletions
|
@ -1,55 +1,54 @@
|
|||
{% if post.published and post.date != post.update %}
|
||||
<li>{% if fa %}<i class="fa fa-pencil-square-o"></i>{% else %}{{ gettext('Update') }}:{% endif %}
|
||||
{{ post.update.strftime(gettext(ablog.post_date_format)) }}</li>
|
||||
<a>{% if fa %}<i class="fa fa-pencil-square-o"></i>{% else %}{{ gettext('Update') }}:{% endif %}
|
||||
{{ post.update.strftime(gettext(ablog.post_date_format)) }}</a><br>
|
||||
{% endif %}
|
||||
|
||||
{% if post.author %}
|
||||
<li>{% if fa %}<i class="fa-fw fa fa-user"></i>{% else %}{{ gettext('Author') }}:{% endif %}
|
||||
<a>{% if fa %}<i class="fa-fw fa fa-user"></i>{% else %}{{ gettext('Author') }}:{% endif %}
|
||||
{% for coll in post.author %}
|
||||
{% if coll|length %}
|
||||
<a href="{{ pathto(coll.docname) }}">{{ coll }}</a>{% if loop.index < post.author|length %},{% endif %}
|
||||
{% else %}{{ coll }}{% if loop.index < post.author|length %},{% endif %}{% endif %}
|
||||
{% endfor %}</li>
|
||||
{% endfor %}</a><br>
|
||||
{% endif %}
|
||||
|
||||
{% if post.location %}
|
||||
<li>{% if fa %}<i class="fa-fw fa fa-location-arrow"></i>{% else %}{{ gettext('Location') }}:{% endif %}
|
||||
<a>{% if fa %}<i class="fa-fw fa fa-location-arrow"></i>{% else %}{{ gettext('Location') }}:{% endif %}
|
||||
{% for coll in post.location %}
|
||||
{% if coll|length %}
|
||||
<a href="{{ pathto(coll.docname) }}">{{ coll }}</a>{% if loop.index < post.location|length %},{% endif %}
|
||||
{% else %}{{ coll }}{% if loop.index < post.location|length %},{% endif %}{% endif %}
|
||||
{% endfor %}</li>
|
||||
{% endfor %}</a></br>
|
||||
{% endif %}
|
||||
|
||||
{% if post.language %}
|
||||
<li>{% if fa %}<i class="fa-fw fa fa-language"></i>{% else %}{{ gettext('Language') }}:{% endif %}
|
||||
{% for coll in post.language %}
|
||||
{% if fa %}<i class="fa-fw fa fa-language"></i>{% else %}{{ gettext('Language') }}:{% endif %}
|
||||
<a> {% for coll in post.language %}
|
||||
{% if coll|length %}
|
||||
<a href="{{ pathto(coll.docname) }}">{{ coll }}</a>{% if loop.index < post.language|length %},{% endif %}
|
||||
{% else %}{{ coll }}{% if loop.index < post.language|length %},{% endif %}{% endif %}
|
||||
{% endfor %}</li>
|
||||
{% endfor %}</a><br>
|
||||
{% endif %}
|
||||
|
||||
{% if post.category %}
|
||||
<li>{% if fa %}<i class="fa-fw fa fa-folder-open"></i>{% else %}{{ gettext('Category') }}:{% endif %}
|
||||
<a>{% if fa %}<i class="fa-fw fa fa-folder-open"></i>{% else %}{{ gettext('Category') }}:{% endif %}
|
||||
{% for coll in post.category %}
|
||||
{% if coll|length %}
|
||||
<a href="{{ pathto(coll.docname) }}">{{ coll }}</a>{% if loop.index < post.category|length %},{% endif %}
|
||||
{% else %}{{ coll }}{% if loop.index < post.category|length %},{% endif %}{% endif %}
|
||||
{% endfor %}</li>
|
||||
{% endfor %}</a><br>
|
||||
{% endif %}
|
||||
|
||||
{% if post.tags %}
|
||||
<li>{% if post.tags|length > 1 %}{% if fa %}<i class="fa-fw fa fa-tags"></i>{% else %}{{ gettext('Tags') }}:{% endif %}
|
||||
<a>{% if post.tags|length > 1 %}{% if fa %}<i class="fa-fw fa fa-tags"></i>{% else %}{{ gettext('Tags') }}:{% endif %}
|
||||
{% else %}{% if fa %}<i class="fa-fw fa fa-tag"></i>{% else %}{{ gettext('Tag') }}:{% endif %}{% endif %}
|
||||
{% for coll in post.tags %}
|
||||
{% if coll|length %}
|
||||
<a href="{{ pathto(coll.docname) }}">{{ coll }}</a>{% if loop.index < post.tags|length %}{% endif %}
|
||||
{% else %}{{ coll }}{% if loop.index < post.tags|length %}{% endif %}{% endif %}
|
||||
{% endfor %}</li>
|
||||
{% endfor %}</a><br>
|
||||
{% endif %}
|
||||
{% if ablog.disqus_shortname and (ablog[pagename].published or ablog.disqus_drafts) %}
|
||||
<li>
|
||||
<script type="text/javascript">
|
||||
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
|
||||
var disqus_shortname = '{{ ablog.disqus_shortname }}'; // required: replace example with your forum shortname
|
||||
|
@ -64,5 +63,4 @@
|
|||
</script>
|
||||
{% if fa %}<i class="fa-fw fa fa-comments"></i>{% endif %}
|
||||
<a href="{% if pagename != post.docname%}{{ pathto(post.docname) }}{% endif %}#disqus_thread" data-disqus-identifier="/{{post.docname}}/"> {% if not fa %}comment(s){% endif %}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Reference in a new issue