diff --git a/app/config/sculpin_site.yml b/app/config/sculpin_site.yml index d838600f..18dc707b 100644 --- a/app/config/sculpin_site.yml +++ b/app/config/sculpin_site.yml @@ -92,6 +92,8 @@ joindin: lanyrd: url: http://lanyrd.com/profile/opdavies +latest_posts: 3 + linkedin: url: http://uk.linkedin.com/in/opdavies diff --git a/assets/sass/components/_latest-posts.sass b/assets/sass/components/_latest-posts.sass new file mode 100644 index 00000000..e7304c58 --- /dev/null +++ b/assets/sass/components/_latest-posts.sass @@ -0,0 +1,12 @@ +.latest-posts + @extend .panel + @extend .panel-default + + &__heading + @extend .panel-heading + + ul + @extend .list-group + + li + @extend .list-group-item diff --git a/source/_includes/latest-posts.html.twig b/source/_includes/latest-posts.html.twig new file mode 100644 index 00000000..ea3cd9bc --- /dev/null +++ b/source/_includes/latest-posts.html.twig @@ -0,0 +1,16 @@ +
+
Latest blog posts
+ + +
diff --git a/source/_includes/sidebar.html.twig b/source/_includes/sidebar.html.twig index 63417459..74ca6f9c 100644 --- a/source/_includes/sidebar.html.twig +++ b/source/_includes/sidebar.html.twig @@ -12,6 +12,10 @@ {% include('availability') %} + + {% if page.url == '/.' %} + {% include ('latest-posts') %} + {% endif %} {% endblock %} {% endblock %} diff --git a/source/index.md b/source/index.md index 1a038ea8..1231db9e 100644 --- a/source/index.md +++ b/source/index.md @@ -23,6 +23,8 @@ tools: - { title: CentOS, website: https://www.centos.org/about } - { title: Git, website: http://git-scm.com } - { title: Ansible, website: http://www.ansible.com } +use: + - posts --- # About Me