From 8829dce0f4afdc39d2825603ce0e62e2f3060aa0 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 5 Jan 2019 00:17:55 +0000 Subject: [PATCH] Re-organise partials --- .../{ => about}/availability.html.twig | 2 +- .../availability/limited.html.twig | 0 .../{ => about}/availability/no.html.twig | 0 .../{ => about}/availability/yes.html.twig | 0 source/_partials/{ => about}/badges.html.twig | 10 ++++---- .../{ => about}/certification.html.twig | 0 source/_partials/meetup.html.twig | 10 -------- source/_partials/meetups.html.twig | 23 ------------------- .../table.html.twig} | 0 source/about.html.twig | 4 ++-- source/talks.html.twig | 4 ++-- 11 files changed, 10 insertions(+), 43 deletions(-) rename source/_partials/{ => about}/availability.html.twig (77%) rename source/_partials/{ => about}/availability/limited.html.twig (100%) rename source/_partials/{ => about}/availability/no.html.twig (100%) rename source/_partials/{ => about}/availability/yes.html.twig (100%) rename source/_partials/{ => about}/badges.html.twig (88%) rename source/_partials/{ => about}/certification.html.twig (100%) delete mode 100644 source/_partials/meetup.html.twig delete mode 100644 source/_partials/meetups.html.twig rename source/_partials/{talks-table.html.twig => talks/table.html.twig} (100%) diff --git a/source/_partials/availability.html.twig b/source/_partials/about/availability.html.twig similarity index 77% rename from source/_partials/availability.html.twig rename to source/_partials/about/availability.html.twig index f376bdc0..b65db64d 100644 --- a/source/_partials/availability.html.twig +++ b/source/_partials/about/availability.html.twig @@ -4,7 +4,7 @@ diff --git a/source/_partials/availability/limited.html.twig b/source/_partials/about/availability/limited.html.twig similarity index 100% rename from source/_partials/availability/limited.html.twig rename to source/_partials/about/availability/limited.html.twig diff --git a/source/_partials/availability/no.html.twig b/source/_partials/about/availability/no.html.twig similarity index 100% rename from source/_partials/availability/no.html.twig rename to source/_partials/about/availability/no.html.twig diff --git a/source/_partials/availability/yes.html.twig b/source/_partials/about/availability/yes.html.twig similarity index 100% rename from source/_partials/availability/yes.html.twig rename to source/_partials/about/availability/yes.html.twig diff --git a/source/_partials/badges.html.twig b/source/_partials/about/badges.html.twig similarity index 88% rename from source/_partials/badges.html.twig rename to source/_partials/about/badges.html.twig index d0436059..60b6b5b4 100644 --- a/source/_partials/badges.html.twig +++ b/source/_partials/about/badges.html.twig @@ -14,7 +14,7 @@

Certifications

- {% include 'certification' with { + {% include 'about/certification' with { title: 'Acquia certified Grand Master - Drupal 8', url: 'http://certification.acquia.com/user/1647756', image: { @@ -23,7 +23,7 @@ }, } %} - {% include 'certification' with { + {% include 'about/certification' with { title: 'Acquia certified Developer - Drupal 8', image: { filename: 'acquia-d8-developer.png', @@ -31,7 +31,7 @@ }, } %} - {% include 'certification' with { + {% include 'about/certification' with { title: 'Acquia certified Back End Specialist - Drupal 8', image: { filename: 'acquia-d8-back-end.png', @@ -39,7 +39,7 @@ }, } %} - {% include 'certification' with { + {% include 'about/certification' with { title: 'Acquia certified Front End Specialist - Drupal 8', image: { filename: 'acquia-d8-front-end.png', @@ -47,7 +47,7 @@ }, } %} - {% include 'certification' with { + {% include 'about/certification' with { title: 'Acquia certified Cloud Pro', image: { filename: 'acquia-cloud-pro.png', diff --git a/source/_partials/certification.html.twig b/source/_partials/about/certification.html.twig similarity index 100% rename from source/_partials/certification.html.twig rename to source/_partials/about/certification.html.twig diff --git a/source/_partials/meetup.html.twig b/source/_partials/meetup.html.twig deleted file mode 100644 index b1b00fd2..00000000 --- a/source/_partials/meetup.html.twig +++ /dev/null @@ -1,10 +0,0 @@ -
  • - - {{ name }} logo - -
  • diff --git a/source/_partials/meetups.html.twig b/source/_partials/meetups.html.twig deleted file mode 100644 index 09ee9a52..00000000 --- a/source/_partials/meetups.html.twig +++ /dev/null @@ -1,23 +0,0 @@ -
    -

    Things that I organise

    - -
      - {% include 'meetup' with { - name: 'Drupal Bristol', - logo: 'drupal-bristol.jpeg', - url: 'http://www.drupalbristol.org.uk', - } %} - - {% include 'meetup' with { - name: 'DrupalCamp Bristol', - logo: 'drupalcamp-bristol.png', - url: 'http://www.drupalcampbristol.co.uk', - } %} - - {% include 'meetup' with { - name: 'PHPSW', - logo: 'phpsw.jpeg', - url: 'http://phpsw.uk', - } %} -
    -
    diff --git a/source/_partials/talks-table.html.twig b/source/_partials/talks/table.html.twig similarity index 100% rename from source/_partials/talks-table.html.twig rename to source/_partials/talks/table.html.twig diff --git a/source/about.html.twig b/source/about.html.twig index d135b7a0..e280d601 100644 --- a/source/about.html.twig +++ b/source/about.html.twig @@ -27,12 +27,12 @@ permalink: /

    You can find me on Twitter, and see my open source work on Drupal.org and GitHub as well as on Packagist, npm and Ansible Galaxy.

    - {% include 'availability' %} + {% include 'about/availability' %} {% include 'posts/latest' %}
    - {% include 'badges' %} + {% include 'about/badges' %}
    {% endblock %} diff --git a/source/talks.html.twig b/source/talks.html.twig index a226078a..35d539c3 100644 --- a/source/talks.html.twig +++ b/source/talks.html.twig @@ -43,7 +43,7 @@ talks: {% set upcoming_talks = getUpcomingTalks(data.talks|merge(page.talks), site.events) %} {% if not upcoming_talks.empty %} - {% include "talks-table" with { + {% include "talks/table" with { talks: upcoming_talks, upcoming: true, } %} @@ -55,7 +55,7 @@ talks:

    Previous Talks

    - {% include "talks-table" with { + {% include "talks/table" with { talks: getPastTalks(data.talks|merge(page.talks), site.events) } %}