diff --git a/source/themes/opdavies/opdavies/_layouts/default.html.twig b/source/themes/opdavies/opdavies/_layouts/default.html.twig index c1fc0099..a6d52596 100644 --- a/source/themes/opdavies/opdavies/_layouts/default.html.twig +++ b/source/themes/opdavies/opdavies/_layouts/default.html.twig @@ -20,6 +20,10 @@ {% endblock %} + {% block sidebar %} + {% include 'latest-posts' %} + {% endblock %} + diff --git a/source/themes/opdavies/opdavies/_partials/latest-posts.html.twig b/source/themes/opdavies/opdavies/_partials/latest-posts.html.twig new file mode 100644 index 00000000..7a8eab97 --- /dev/null +++ b/source/themes/opdavies/opdavies/_partials/latest-posts.html.twig @@ -0,0 +1,9 @@ +{% if data.posts %} +

Latest Posts

+ + +{% endif %} \ No newline at end of file