mirror of
https://github.com/alvierahman90/gronk.git
synced 2025-10-13 07:54:31 +00:00
add blog mode
This commit is contained in:
42
templates/blog_inline_post.html
Normal file
42
templates/blog_inline_post.html
Normal file
@@ -0,0 +1,42 @@
|
||||
{% block content %}
|
||||
<p class="smallText metadata"> title: {{ title }} </p>
|
||||
{% if lecture_slides %}
|
||||
<p class="smallText metadata"> lecture_slides: [
|
||||
{% for slide in lecture_slides %}
|
||||
<a href="{{ base_url}}{{ slide }}">{{ slide }}</a>{% if loop.nextitem %},{% endif %}
|
||||
{% endfor %}
|
||||
]</p>
|
||||
{% endif %}
|
||||
{% if lecture_notes %}
|
||||
<p class="smallText metadata"> lecture_notes: [
|
||||
{% for note in lecture_notes %}
|
||||
<a href="{{ base_url }}{{ note }}">{{ note }}</a>{% if loop.nextitem %},{% endif %}
|
||||
{% endfor %}
|
||||
]</p>
|
||||
{% endif %}
|
||||
|
||||
{% if uuid %}
|
||||
<p class="smallText metadata"> uuid: {{ uuid }} (<a href="{{ base_url }}/permalink?uuid={{ uuid }}">permalink</a>) </p>
|
||||
{% endif %}
|
||||
|
||||
{% if published %}
|
||||
<p class="smallText metadata"> published: {{ published }} </p>
|
||||
{% endif %}
|
||||
|
||||
<p class="smallText metadata"> tags: [
|
||||
{% for tag in tags %}
|
||||
<a href="{{ base_url }}/tags/{{ tag }}">{{ tag }}</a>{% if loop.nextitem %},{% endif %}
|
||||
{% endfor %}
|
||||
]</p>
|
||||
|
||||
<p class="smallText metadata">
|
||||
{% if author is string %}
|
||||
written by: {{ author }}
|
||||
{% elif author is iterable %}
|
||||
written by: [ {% for auth in author %}{{ auth }}{% if loop.nextitem %}, {% endif %}{% endfor %} ]
|
||||
{% endif %}
|
||||
</p>
|
||||
{% block body_content %}
|
||||
{{ content|safe }}
|
||||
{% endblock %}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user