position.njk 5.6 KB
Newer Older
Ken Hawkins's avatar
Ken Hawkins committed
1 2 3 4 5 6 7 8 9
<!doctype html>
{%- set where %}
{% if pagination.items[0].emblSiteName == "Hinxton" %}EMBL-EBI Hinxton{% endif %}
{% endset -%}
<html lang="en" class="vf-no-js">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" media="all" href="{{ '/css/styles.css' | url }}" />
Ken Hawkins's avatar
Ken Hawkins committed
10
    {# All jobs defer to the old embl.de site #}
Ken Hawkins's avatar
Ken Hawkins committed
11
    {# <link rel="canonical" href="https://www.embl.de/jobs/searchjobs/index.php?ref={{ pagination.items[0].field_jobs_reference_number }}" /> #}
Ken Hawkins's avatar
Ken Hawkins committed
12

Ken Hawkins's avatar
Ken Hawkins committed
13 14
    <!-- Search indexing optimisations -->
    <meta class="swiftype" name="what" data-type="string" content="{{ embl_content_meta_properties.what }}" />
15 16
    {% if meta.swiftype_image -%}
    {# https://swiftype.com/documentation/site-search/crawler-configuration/meta-tags#thumbnails #}
Ken Hawkins's avatar
Ken Hawkins committed
17
    <meta class="swiftype" name="image" data-type="enum" content="{{ meta.swiftype_image }}" />
18 19
    {%- endif %}

Ken Hawkins's avatar
Ken Hawkins committed
20
    <!-- Descriptive meta -->
21
    <meta name="title" content="{{ pagination.items[0].title | safe | jobTitleClean | safe }} | {{ title or (renderData and renderData.title) or siteConfig.siteInformation.title}}">
Ken Hawkins's avatar
Ken Hawkins committed
22 23 24 25 26 27 28 29 30
    <meta name="author" content="{{ meta.author or "EMBL" }}">
    <meta name="robots" content="index, follow">
    <meta name="keywords" content="{{pagination.items[0].field_jobs_group}}, {{pagination.items[0].field_jobs_categorisation}}, {{ meta.keywords }}">
    <meta name="description" content="{{ pagination.items[0].field_jobs_description | striptags | truncate(150) }}">

    <!-- Open Graph / Facebook -->
    <meta property="og:type" content="website">

    <meta property="og:url" content="https://embl.org/jobs{{ page.url }}">
31
    <meta property="og:title" content="{{ pagination.items[0].title | safe | jobTitleClean | safe }} | {{ title or (renderData and renderData.title) or siteConfig.siteInformation.title}}">
Ken Hawkins's avatar
Ken Hawkins committed
32 33 34
    <meta property="og:description" content="{{ pagination.items[0].field_jobs_description | striptags | truncate(150) }}">
    {% if meta.image -%}
    <meta property="og:image" content="{{ meta.image }}">
35 36
    {% else %}
    <meta property="og:image" content="https://acxngcvroo.cloudimg.io/v7/https://www.embl.org/files/wp-content/uploads/embl-jobs-social-image.png">
Ken Hawkins's avatar
Ken Hawkins committed
37 38 39 40 41
    {%- endif %}

    <!-- Twitter -->
    <meta property="twitter:card" content="summary_large_image">
    <meta property="og:url" content="https://embl.org/jobs{{ page.url }}">
Ken Hawkins's avatar
Typo  
Ken Hawkins committed
42
    <meta property="twitter:title" content="{{ pagination.items[0].title | safe | jobTitleClean | safe }} | {{ pagination.items[0].field_jobs_duty_station | striptags | replace("EMBL-EBI Hinxton","EMBL-EBI, Hinxton, UK") }}">
43
    <meta property="twitter:description" content="{{ pagination.items[0].field_jobs_type | striptags }}; Grade: {{ pagination.items[0].field_jobs_advertise_grade | striptags | truncate(150) }}">
Ken Hawkins's avatar
Ken Hawkins committed
44 45
    {% if meta.image -%}
    <meta property="twitter:image" content="{{ meta.image }}">
46 47
    {% else %}
    <meta property="twitter:image" content="https://acxngcvroo.cloudimg.io/v7/https://www.embl.org/files/wp-content/uploads/embl-jobs-social-image.png">
Ken Hawkins's avatar
Ken Hawkins committed
48 49
    {%- endif %}

Ken Hawkins's avatar
Ken Hawkins committed
50
    <!-- Content descriptors -->
51
    {% if pagination.items[0].field_jobs_staff_category != "EICAT Advertising Only" %}
Ken Hawkins's avatar
Ken Hawkins committed
52
    <meta name="embl:who" content="none"> {# the people, groups and teams involved #}
53
    {% endif %}
54 55 56
    {% if pagination.items[0].field_jobs_duty_station | striptags == "All EMBL Sites (Germany, UK, France, Italy, Spain)"%}
    <meta name="embl:where" content="All EMBL sites">
    {% else %}
Ken Hawkins's avatar
Ken Hawkins committed
57
    <meta name="embl:where" content="{{ pagination.items[0].field_jobs_duty_station | striptags }}"> {# at which EMBL sites the content applies #}
58
    {% endif %}
Ken Hawkins's avatar
Tweaks  
Ken Hawkins committed
59 60
    <meta name="embl:what" content="{{ embl_content_meta_properties.what }}"> {# the activities covered #}
    {# <meta name="embl:what" content="{{ pagination.items[0].field_jobs_categorisation }}"> the activities covered #}
Ken Hawkins's avatar
Ken Hawkins committed
61
    <meta name="embl:active" content="{{ embl_content_meta_properties.active }}"> {# which of the who/what/where is active #}
Ken Hawkins's avatar
Ken Hawkins committed
62 63

    <!-- Content role -->
Ken Hawkins's avatar
Ken Hawkins committed
64 65
    <meta name="embl:utility" content="{{ embl_content_meta_properties.utility }}"> {# if content is task and work based or if is meant to inspire #}
    <meta name="embl:reach" content="{{ embl_content_meta_properties.reach }}"> {# if content is externally (public) or internally focused (those that work at EMBL) #}
Ken Hawkins's avatar
Ken Hawkins committed
66

Ken Hawkins's avatar
Ken Hawkins committed
67
    <!-- Page information -->
Ken Hawkins's avatar
Ken Hawkins committed
68 69 70 71 72 73 74 75
    <!-- This page is dynamically generated -->
    <meta name="embl:maintainer" content="{{ embl_content_meta_properties.maintainer }}"> {# the contact person or group responsible for the page #}
    <meta name="embl:last-review" content="{{ embl_content_meta_properties.lastreview }}"> {# the last time the page was reviewed or updated #}
    <meta name="embl:review-cycle" content="{{ embl_content_meta_properties.reviewcycle }}"> {# how long in days before the page should be checked #}
    <meta name="embl:expiry" content="{{ embl_content_meta_properties.expiry }}"> {# if there is a fixed point in time when the page is no longer relevant #}

    <!-- analytics -->
    {# <meta name="vf:page-type" content="{{ meta.pagetype }}"> for analytics tracking #}
Ken Hawkins's avatar
Ken Hawkins committed
76

77
    <title>{{ pagination.items[0].title | safe | jobTitleClean | safe }} | Jobs | EMBL</title>
Ken Hawkins's avatar
Ken Hawkins committed
78 79 80
    {% render '@vf-no-js' %}
    {% render '@embl-favicon' %}
  </head>
Ken Hawkins's avatar
Ken Hawkins committed
81 82 83 84
  <body class="vf-body {{ bodyClass }}">
    <link rel="import" href="https://www.embl.org/api/v1/pattern.html?filter-content-type=article&filter-id=574&pattern=node-body&source=contenthub" data-target="self" data-embl-js-content-hub-loader>
    {% render '@embl-breadcrumbs-lookup' %}
    {{ content | safe }}
Ken Hawkins's avatar
Ken Hawkins committed
85 86 87
    {% include "footer.njk" %}
  </body>
</html>