Add continue reading buttons
This commit is contained in:
parent
4b5c01e6df
commit
7330fd8226
|
@ -27,3 +27,9 @@ ol,
|
||||||
table,
|
table,
|
||||||
pre
|
pre
|
||||||
@apply .mb-4
|
@apply .mb-4
|
||||||
|
|
||||||
|
.element-invisible
|
||||||
|
@apply .absolute .overflow-hidden .break-normal
|
||||||
|
clip: rect(1px, 1px, 1px, 1px)
|
||||||
|
height: 1px
|
||||||
|
width: 1px
|
||||||
|
|
|
@ -25,9 +25,26 @@ use: [posts]
|
||||||
{% include 'post/intro-image' with { page: post } %}
|
{% include 'post/intro-image' with { page: post } %}
|
||||||
|
|
||||||
<div class="markdown mb-4">
|
<div class="markdown mb-4">
|
||||||
{{ post.summary|markdown }}
|
{% if post.summary %}
|
||||||
{% if post.blocks.excerpt is not empty %}
|
{{ post.summary|markdown }}
|
||||||
|
<div>
|
||||||
|
<a
|
||||||
|
class="button text-grey-darker rounded-lg border border-grey-light bg-grey-lightest no-underline hover:underline focus:underline"
|
||||||
|
href="{{ post.url }}"
|
||||||
|
>
|
||||||
|
Continue reading <span class="element-invisible">about {{ post.title }}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
{% elseif post.blocks.excerpt %}
|
||||||
{{ post.blocks.excerpt|markdown }}
|
{{ post.blocks.excerpt|markdown }}
|
||||||
|
<div>
|
||||||
|
<a
|
||||||
|
class="button text-grey-darker rounded-lg border border-grey-light bg-grey-lightest no-underline hover:underline focus:underline"
|
||||||
|
href="{{ post.url }}"
|
||||||
|
>
|
||||||
|
Continue reading <span class="element-invisible">about {{ post.title }}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ post.blocks.content|markdown }}
|
{{ post.blocks.content|markdown }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue