From 37e4e80831a65eed46653c50c0505afa6bdeda8e Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 9 Oct 2018 23:54:23 +0100 Subject: [PATCH] Re-add Experience page --- assets/js/components/Navbar.vue | 5 ++++ source/experience.html.twig | 44 +++++++++++++++++---------------- 2 files changed, 28 insertions(+), 21 deletions(-) diff --git a/assets/js/components/Navbar.vue b/assets/js/components/Navbar.vue index 76809fd0..5f82997c 100644 --- a/assets/js/components/Navbar.vue +++ b/assets/js/components/Navbar.vue @@ -56,6 +56,11 @@ href: '/talks', pattern: '^/talks/?', }, + { + title: 'Experience', + href: '/experience', + pattern: '^/experience/?', + }, { title: 'Blog', href: '/blog', diff --git a/source/experience.html.twig b/source/experience.html.twig index 2198f7b7..322e88f0 100644 --- a/source/experience.html.twig +++ b/source/experience.html.twig @@ -115,32 +115,34 @@ experiences: {% for experience in page.experiences|reverse %} {% set company = site.companies[experience.company] %} -
- {% if company.logo %} -
- {{ company.name }} logo -
- {% endif %} +
+
+
+

{{ company.name }}

-
-

{{ company.name }}

+
+ {% if company.url -%} + + {{- company.url -}} + + {%- endif %} -
- {% if company.url -%} - - {{- company.url -}} - - {%- endif %} - -
- {{- experience.role }} from {{ experience.start }} to {{ experience.end|default('Present') -}} - {%- if experience.location %} ({{ experience.location }}){% endif %}. +
+ {{- experience.role }} from {{ experience.start }} to {{ experience.end|default('Present') -}} + {%- if experience.location %} ({{ experience.location }}){% endif %}. +
+ + {% if experience.description %} +
+ {{ experience.description|markdown }} +
+ {% endif %}
- {% if experience.description %} -
- {{ experience.description|markdown }} + {% if company.logo %} +
+ {{ company.name }} logo
{% endif %}