Skip to content

Commit 0c011ca

Browse files
authored
enh: add contact footer as include to every blog post (#765)
1 parent bd45d09 commit 0c011ca

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

_layouts/single.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,15 @@ <h2>{{ page.h2 }}</h2>
6363
{% endif %}
6464
</div>
6565
{{ content }}
66+
67+
{% if page.path contains '_posts/' %}
68+
{% capture connect_with_pyos %}{% include connect-with-pyos.html %}{% endcapture %}
69+
{{ connect_with_pyos | markdownify }}
70+
{% endif %}
71+
6672
{% if page.link %}<div><a href="{{ page.link }}" class="btn btn--primary">{{ site.data.ui-text[site.locale].ext_link_label | default: "Direct Link" }}</a></div>{% endif %}
67-
</section>
73+
74+
</section>
6875

6976
<footer class="page__meta">
7077
{% if site.data.ui-text[site.locale].meta_label %}

0 commit comments

Comments
 (0)