Skip to content

Commit

Permalink
added cdn version option
Browse files Browse the repository at this point in the history
  • Loading branch information
bennpearson committed Mar 19, 2018
1 parent 3e984b4 commit e576965
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@

<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
<link rel="stylesheet" href="{{ "/css/responsive.css" | prepend: site.baseurl }}">
<link rel="stylesheet" href="https://cdn.ons.gov.uk/sdc/0bceacd/css/responsive.css">

{% if page.cdn %}
<link rel="stylesheet" href="https://cdn.ons.gov.uk/sdc/{{ page.cdn }}/css/responsive.css">
{% else %}
<link rel="stylesheet" href="https://cdn.ons.gov.uk/sdc/v1.0.0/css/responsive.css">
{% endif %}

<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}">
<link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Lato:300,400,600,700,900'>
Expand Down
1 change: 1 addition & 0 deletions _prototypes/definition/v1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: D1
project: Definition
globalcss: false
cdn: v1.0.0
---

<header class="page__header">
Expand Down

0 comments on commit e576965

Please sign in to comment.