From 977c3323d2a795d6f57cd70cb6b2453f38084ed9 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 22 Feb 2018 18:47:29 +0000 Subject: docs.brew.sh updates - Remove no longer needed `acme-challenge` file - Set title, description, social image, logo, etc. for SEO - Use extensionless permalinks (old links still work) - Cleanup `_config.yml` - Import latest `_layouts/base` from https://brew.sh --- docs/_layouts/base.html | 46 ++++++++++++++++++++++++++++++---------------- 1 file changed, 30 insertions(+), 16 deletions(-) (limited to 'docs/_layouts/base.html') diff --git a/docs/_layouts/base.html b/docs/_layouts/base.html index ee631bda5..422e98bed 100644 --- a/docs/_layouts/base.html +++ b/docs/_layouts/base.html @@ -1,21 +1,29 @@ +{% assign t = site.data.locales[page.lang][page.lang] %}
{% if page.title %} -
{{ page.subtitle }}
+ {% if t.subtitle %} +{{ t.subtitle }}
{% endif %} {% if page.lang %} @@ -80,9 +94,9 @@ if (lang === {{ page.lang | jsonify }}) { return; } else if (lang === "en") { - window.location.replace("/"); + window.location.assign("/"); } else { - window.location.replace("/index_" + lang + ".html"); + window.location.assign("/index_" + lang); } } -- cgit v1.2.3