Rename directories
This commit is contained in:
parent
d235573df7
commit
a5d4a04c32
20 changed files with 0 additions and 0 deletions
26
source/_partials/availability.html.twig
Normal file
26
source/_partials/availability.html.twig
Normal file
|
@ -0,0 +1,26 @@
|
|||
<div class="availability panel panel-default">
|
||||
<div class="panel-heading">Availability</div>
|
||||
|
||||
<div class="panel-body">
|
||||
{% for key, availability in site.availability %}
|
||||
<p>
|
||||
{% if availability == 'yes' %}
|
||||
<i class="fa fa-thumbs-o-up text-success"></i>
|
||||
|
||||
{{ key == 'full' ? 'Currently have available full-time capacity' }}
|
||||
{{ key == 'part' ? 'Currently have available part-time capacity' }}
|
||||
{% elseif availability == 'limited' %}
|
||||
<i class="fa fa-thumbs-o-up text-warning"></i>
|
||||
|
||||
{{ key == 'full' ? 'Currently have limited full-time capacity' }}
|
||||
{{ key == 'part' ? 'Currently have limited part-time capacity' }}
|
||||
{% else %}
|
||||
<i class="fa fa-thumbs-o-down text-danger"></i>
|
||||
|
||||
{{ key == 'full' ? 'Currently no spare full-time capacity.' }}
|
||||
{{ key == 'part' ? 'Currently no spare part-time capacity.' }}
|
||||
{% endif %}
|
||||
</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
13
source/_partials/footer.html.twig
Normal file
13
source/_partials/footer.html.twig
Normal file
|
@ -0,0 +1,13 @@
|
|||
<footer class="container">
|
||||
<p class="copyright">© 2010-{{ 'now'|date('Y') }} {{ site.title }}. Powered by <a href="https://sculpin.io">Sculpin</a>.</p>
|
||||
|
||||
{% include('meetups') %}
|
||||
</footer>
|
||||
|
||||
<script src="{{ site.url }}/assets/js/site.js"></script>
|
||||
|
||||
{% block scripts %}{% endblock %}
|
||||
|
||||
{% if site.google_analytics_tracking_id %}
|
||||
<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', '{{ site.google_analytics_tracking_id }}', 'auto'); ga('send', 'pageview');</script>
|
||||
{% endif %}
|
26
source/_partials/head.html.twig
Normal file
26
source/_partials/head.html.twig
Normal file
|
@ -0,0 +1,26 @@
|
|||
<head>
|
||||
{% include('title') %}
|
||||
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
{% if page.meta.description %}
|
||||
<meta name="description" content="{{ page.meta.description|e('html') }}">
|
||||
{% endif %}
|
||||
|
||||
{% if page.meta.og %}
|
||||
{{ include('og', { og: page.meta.og }) }}
|
||||
{% endif %}
|
||||
|
||||
<link rel="stylesheet" href="{{ site.url }}/assets/css/site.css">
|
||||
{% block styles %}{% endblock %}
|
||||
|
||||
{% for size in site.apple_touch_icon_sizes %}
|
||||
<link rel="apple-touch-icon" href="{{ site.gravatar.url }}?s={{ size }}" sizes="{{ size }}x{{ size }}">
|
||||
{% endfor %}
|
||||
|
||||
{% for size in site.favicon_sizes %}
|
||||
<link rel="icon" href="{{ site.gravatar.url }}?s={{ size }}" sizes="{{ size }}x{{ size }}">
|
||||
{% endfor %}
|
||||
</head>
|
16
source/_partials/latest-posts.html.twig
Normal file
16
source/_partials/latest-posts.html.twig
Normal file
|
@ -0,0 +1,16 @@
|
|||
<div class="latest-posts">
|
||||
<div class="latest-posts__heading">Latest blog posts</div>
|
||||
|
||||
<ul>
|
||||
{% for post in data.posts|slice(0, site.latest_posts) %}
|
||||
<li class="post">
|
||||
<span class="post__title">
|
||||
<a href="{{ post.url }}">
|
||||
{{ post.title }}
|
||||
</a>
|
||||
</span> -
|
||||
<span class="post__date">{{ post.date|date(site.default_date_format) }}</span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
12
source/_partials/meetups.html.twig
Normal file
12
source/_partials/meetups.html.twig
Normal file
|
@ -0,0 +1,12 @@
|
|||
<div class="meetups">
|
||||
<h2>Things that I organise</h2>
|
||||
<ul>
|
||||
{% for meetup in site.meetups %}
|
||||
<li class="meetups--{{ meetup.name|lower|replace({ ' ': '-' }) }}">
|
||||
<a href="{{ meetup.website }}" title="{{ meetup.name }}">
|
||||
<img src="{{ site.images_url }}/assets/images/meetups/{{ meetup.logo }}" alt="{{ meetup.name }}">
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
33
source/_partials/nav.html.twig
Normal file
33
source/_partials/nav.html.twig
Normal file
|
@ -0,0 +1,33 @@
|
|||
<nav class="navbar navbar-inverse navbar-fixed-top">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="{{ site.url }}/">{{ site.title }}</a>
|
||||
</div>
|
||||
|
||||
<div id="navbar" class="collapse navbar-collapse" role="navigation">
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="{{ page.url == '/.' ? 'active' }}">
|
||||
<a href="/">About</a>
|
||||
</li>
|
||||
|
||||
<li class="{{ page.url == '/experience' ? 'active' }}">
|
||||
<a href="/experience">Experience</a>
|
||||
</li>
|
||||
|
||||
<li class="{{ page.url == '/talks' or '/talks/' in page.url ? 'active' }}">
|
||||
<a href="/talks">Talks</a>
|
||||
</li>
|
||||
|
||||
<li class="{{ page.url == '/blog' or '/blog/' in page.url ? 'active' }}">
|
||||
<a href="/blog">Blog</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>{# .nav-collapse #}
|
||||
</div>
|
||||
</nav>
|
37
source/_partials/og.html.twig
Normal file
37
source/_partials/og.html.twig
Normal file
|
@ -0,0 +1,37 @@
|
|||
{% if og.title %}
|
||||
<meta property="og:title" content="{{ og.title|raw }}"/>
|
||||
{% endif %}
|
||||
|
||||
{% if og.description %}
|
||||
<meta property="og:description" content="{{ og.description|raw }}"/>
|
||||
{% endif %}
|
||||
|
||||
{% if og.type %}
|
||||
<meta property="og:type" content="{{ og.type }}"/>
|
||||
{% endif %}
|
||||
|
||||
{% if og.image and og.image.url %}
|
||||
<meta property="og:image" content="{{ og.image.url }}"/>
|
||||
{% if og.image.type %}
|
||||
<meta property="og:image:type" content="{{ og.image.type }}"/>
|
||||
{% endif %}
|
||||
{% if og.image.width %}
|
||||
<meta property="og:image:width" content="{{ og.image.width }}"/>
|
||||
{% endif %}
|
||||
{% if og.image.height %}
|
||||
<meta property="og:image:height" content="{{ og.image.height }}"/>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if og.title %}
|
||||
{% if og.image %}
|
||||
<meta name="twitter:card" content="summary_large_image"/>
|
||||
<meta name="twitter:image:src" content="{{ og.image.url }}">
|
||||
<meta name="twitter:creator" content="@{{ site.twitter.name }}"/>
|
||||
{% else %}
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
{% endif %}
|
||||
<meta name="twitter:title" content="{{ og.title|raw }}"/>
|
||||
<meta name="twitter:text:description" content="{{ og.description|raw }}"/>
|
||||
<meta name="twitter:site" content="@{{ site.twitter.name }}"/>
|
||||
{% endif %}
|
4
source/_partials/post-header.html.twig
Normal file
4
source/_partials/post-header.html.twig
Normal file
|
@ -0,0 +1,4 @@
|
|||
{% set title_tag = title_tag|default('h1') %}
|
||||
<{{ title_tag }}>{{ page.title }}</{{ title_tag }}>
|
||||
|
||||
<p class="posted">Posted: {{ page.date|date('jS F Y') }}</p>
|
21
source/_partials/projects/company.html.twig
Normal file
21
source/_partials/projects/company.html.twig
Normal file
|
@ -0,0 +1,21 @@
|
|||
{% if page.company %}
|
||||
{% set company = site.companies[page.company] %}
|
||||
|
||||
<div class="project__company project__company--{{ company.logo ? 'has-logo' : 'no-logo' }}">
|
||||
<h2>Built {{ page.freelance ? 'for' : 'whilst at' }}</h2>
|
||||
|
||||
{% if company.logo %}
|
||||
{% set name = '<img src="/assets/images/experience/' ~ company.logo ~ '" alt="' ~ company.name ~ '">' %}
|
||||
{% else %}
|
||||
{% set name = company.name %}
|
||||
{% endif %}
|
||||
|
||||
{% if company.website %}
|
||||
<a href="{{ company.website }}" title="{{ company.name }}">
|
||||
{{ name|raw }}
|
||||
</a>
|
||||
{% else %}
|
||||
{{ name|raw }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
11
source/_partials/projects/skills.html.twig
Normal file
11
source/_partials/projects/skills.html.twig
Normal file
|
@ -0,0 +1,11 @@
|
|||
{% if page.skills %}
|
||||
<div class="project--skills">
|
||||
<h2>Skills</h2>
|
||||
|
||||
<ul>
|
||||
{% for item in page.skills|sort %}
|
||||
<li>{{ site.skills[item].title }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
21
source/_partials/sidebar.html.twig
Normal file
21
source/_partials/sidebar.html.twig
Normal file
|
@ -0,0 +1,21 @@
|
|||
{% block sidebar_wrapper %}
|
||||
<div class="col-md-3">
|
||||
{% block sidebar %}
|
||||
<div class="panel badges">
|
||||
<a class="badges__badge--da-member" href="https://assoc.drupal.org/membership" title="I’m a Drupal Association member.">
|
||||
<img src="{{ site.images_url }}/assets/images/da-individual-member.png" alt="Drupal Association Individual Member">
|
||||
</a>
|
||||
|
||||
<a href="https://www.drupal.org/8">
|
||||
<img alt="I built Drupal 8 with hand holding a wrench on blue background" src="{{ site.images_url }}/assets/images/drupal-8.jpg"/>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{% include('availability') %}
|
||||
|
||||
{% if page.url == '/.' %}
|
||||
{% include ('latest-posts') %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% endblock %}
|
1
source/_partials/speakerdeck.html.twig
Normal file
1
source/_partials/speakerdeck.html.twig
Normal file
|
@ -0,0 +1 @@
|
|||
<script async class="speakerdeck-embed" data-id="{{ data_id }}" data-ratio="1.29456384323641" src="//speakerdeck.com/assets/embed.js"></script>
|
8
source/_partials/talk-listing-item.html.twig
Normal file
8
source/_partials/talk-listing-item.html.twig
Normal file
|
@ -0,0 +1,8 @@
|
|||
<li>
|
||||
{{ talk.event.name }} -
|
||||
{% if talk.fuzzy_date %}
|
||||
{{ talk.title }}
|
||||
{% else %}
|
||||
<a href="{{ talk.url }}">{{ talk.title }}</a>
|
||||
{% endif %}
|
||||
</li>
|
7
source/_partials/title.twig
Normal file
7
source/_partials/title.twig
Normal file
|
@ -0,0 +1,7 @@
|
|||
<title>{% spaceless %}
|
||||
{% if page.url == '/.' %}
|
||||
{{ site.subtitle }} | {{ site.title }}
|
||||
{% else %}
|
||||
{{ page.title }} | {{ site.title }}
|
||||
{% endif %}
|
||||
{% endspaceless %}</title>
|
5
source/_partials/tweet.twig
Normal file
5
source/_partials/tweet.twig
Normal file
|
@ -0,0 +1,5 @@
|
|||
<p>
|
||||
<blockquote class="twitter-tweet" data-cards="hidden" lang="en">
|
||||
{{ content|raw }}
|
||||
</blockquote>
|
||||
</p>
|
Loading…
Add table
Add a link
Reference in a new issue