content update
This commit is contained in:
parent
cbd748459c
commit
dee2d33a36
12 changed files with 144 additions and 94 deletions
|
@ -5,22 +5,27 @@
|
|||
{% block body_class %}template-blogindexpage{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ page.title }}</h1>
|
||||
<section class="flex flex-col items-center justify-center h-full mx-4">
|
||||
<h1>{{ page.title }}</h1>
|
||||
|
||||
<div class="intro">{{ page.intro|richtext }}</div>
|
||||
<div class="intro">{{ page.intro|richtext }}</div>
|
||||
</section>
|
||||
|
||||
{% for post in blogpages %}
|
||||
{% with post=post.specific %}
|
||||
<h2><a href="{% pageurl post %}">{{ post.title }}</a></h2>
|
||||
<section class="flex flex-col h-full mx-4">
|
||||
{% for post in blogpages %}
|
||||
{% with post=post.specific %}
|
||||
<article class="w-full flex flex-col items-center">
|
||||
<h2><a href="{% pageurl post %}">{{ post.title }}</a></h2>
|
||||
|
||||
<!-- Add this: -->
|
||||
{% with post.main_image as main_image %}
|
||||
{% if main_image %}{% image main_image fill-160x100 %}{% endif %}
|
||||
{% endwith %}
|
||||
{% with post.main_image as main_image %}
|
||||
{% if main_image %}{% image main_image width-400 class="blog" %}{% endif %}
|
||||
{% endwith %}
|
||||
|
||||
<p>{{ post.intro }}</p>
|
||||
{{ post.body }}
|
||||
{% endwith %}
|
||||
{% endfor %}
|
||||
|
||||
<p>{{ post.intro }}</p>
|
||||
</article>
|
||||
{% endwith %}
|
||||
{% endfor %}
|
||||
</section>
|
||||
|
||||
{% endblock %}
|
|
@ -5,50 +5,67 @@
|
|||
{% block body_class %}template-blogpage{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ page.title }}</h1>
|
||||
<p class="meta">{{ page.date }}</p>
|
||||
<section class="flex flex-col items-center justify-center h-full mx-4">
|
||||
<article class="mb-16">
|
||||
<h1>{{ page.title }}</h1>
|
||||
<p class="meta">{{ page.date }}</p>
|
||||
|
||||
{% with authors=page.authors.all %}
|
||||
{% if authors %}
|
||||
<h3>Posted by:</h3>
|
||||
<ul>
|
||||
{% for author in authors %}
|
||||
<li style="display: inline">
|
||||
{% image author.author_image fill-40x60 style="vertical-align: middle" %}
|
||||
{{ author.name }}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
{% with authors=page.authors.all %}
|
||||
{% if authors %}
|
||||
<h3>Posted by:</h3>
|
||||
<ul>
|
||||
{% for author in authors %}
|
||||
<li style="display: inline">
|
||||
<div class="group block flex-shrink-0">
|
||||
<div class="flex items-center">
|
||||
<div>
|
||||
{% image author.author_image fill-64x64 class="inline-block h-14 w-14 rounded-full" %}
|
||||
</div>
|
||||
<div class="ml-3">
|
||||
<p class="text-sm font-medium text-gray-700 group-hover:text-gray-900"> {{ author.name }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
|
||||
<div class="intro">{{ page.intro }}</div>
|
||||
<div class="intro">{{ page.intro }}</div>
|
||||
|
||||
{{ page.body }}
|
||||
<div class="blog-content">
|
||||
{{ page.body }}
|
||||
|
||||
<div class="flex">
|
||||
{% for item in page.gallery_images.all %}
|
||||
<div class="m-4">
|
||||
{% image item.image fill-320x240 %}
|
||||
<p>{{ item.caption }}</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<p><a href="{{ page.get_parent.url }}">Return to blog</a></p>
|
||||
|
||||
{% with tags=page.tags.all %}
|
||||
{% if tags %}
|
||||
<div class="tags">
|
||||
<h3>Tags</h3>
|
||||
<ul>
|
||||
{% for tag in tags %}
|
||||
<li><a href="{% slugurl 'tags' %}?tag={{ tag }}">{{ tag }}</a></li>
|
||||
<div class="flex">
|
||||
{% for item in page.gallery_images.all %}
|
||||
<div class="m-4">
|
||||
{% image item.image fill-320x240 %}
|
||||
<p>{{ item.caption }}</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endwith %}
|
||||
{% with tags=page.tags.all %}
|
||||
{% if tags %}
|
||||
<div class="tags">
|
||||
<h3 class="sr-only">Tags</h3>
|
||||
<ul class="flex">
|
||||
{% for tag in tags %}
|
||||
<li><a href="{% slugurl 'tags' %}?tag={{ tag }}">{{ tag }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
|
||||
</article>
|
||||
|
||||
<nav class="w-full">
|
||||
<a href="{{ page.get_parent.url }}" class="font-bold">Return to blog</a>
|
||||
</nav>
|
||||
|
||||
</section>
|
||||
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue