Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dldx/hpstr-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/read-more.html')
-rw-r--r--layouts/partials/read-more.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/layouts/partials/read-more.html b/layouts/partials/read-more.html
new file mode 100644
index 0000000..97afc0f
--- /dev/null
+++ b/layouts/partials/read-more.html
@@ -0,0 +1,19 @@
+<div class="read-more">
+ {% for post in site.related_posts limit:1 %}
+ <div class="read-more-header">
+ <a href="{{ site.url }}{{ page.previous.url }}" class="read-more-btn">Read More</a>
+ </div><!-- /.read-more-header -->
+ <div class="read-more-content">
+ <h3><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h3>
+ <p>{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 140 }}&hellip;{% endif %} <a href="{{ site.url }}{{ post.url }}">Continue reading</a></p>
+ </div><!-- /.read-more-content -->
+ {% endfor %}
+ <div class="read-more-list">
+ {% for post in site.related_posts limit:2 offset:1 %}
+ <div class="list-item">
+ <h4><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h4>
+ <span>Published on {{ post.date | date: "%B %d, %Y" }}</span>
+ </div><!-- /.list-item -->
+ {% endfor %}
+ </div><!-- /.read-more-list -->
+</div><!-- /.read-more --> \ No newline at end of file