From 38a5488da4b80029f815bb485faff7caac9ef39f Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 10 Jul 2017 09:22:20 +0100 Subject: [PATCH] Add section title to HTML title --- content/robotics/2017/first-global.md | 11 +++++++++++ layouts/partials/head.html | 9 ++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 content/robotics/2017/first-global.md diff --git a/content/robotics/2017/first-global.md b/content/robotics/2017/first-global.md new file mode 100644 index 0000000..37fd1d8 --- /dev/null +++ b/content/robotics/2017/first-global.md @@ -0,0 +1,11 @@ +--- +title: First Global +image: https://farm3.staticflickr.com/2851/33427687130_bde9d52b36_o_d.jpg +--- + +### First Global Information +> The top three UK teams from this year's competition will get the opportunity to represent the UK in the FIRST Global Challenge 2017. The FIRST Global Challenge is an international robotics competition featuring teams from more than 100 countries, and is being held in Washington, D.C. in July this year. + +> The team who builds the best robot (out of the top three) will go on to compete on behalf of the UK! They will have their flights and accommodation paid for (up to a maximum of 8 people) by our generous sponsors too! + +> More information will be provided if you are one of the three teams that gets this award at the competition. For more details on the FIRST Global Challenge, see [this website](http://first.global/). Good luck! diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 1aaae17..f7a8e14 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -10,7 +10,14 @@ - {{ .Title }} | {{ .Site.Title }} + {{ if .Parent }} + {{ if ne .Parent .Site.Home }} + {{ .Title }} | {{ .Parent.Title }} | {{ .Site.Title }} + {{ end }} + {{ .Title }} | {{ .Site.Title }} + {{ else }} + {{ .Title }} | {{ .Site.Title }} + {{ end }} {{ partial "metadata.html" . }}