diff --git a/_includes/layout/base/breadcrumbs.html b/_includes/layout/base/breadcrumbs.html new file mode 100644 index 00000000..fd2f430d --- /dev/null +++ b/_includes/layout/base/breadcrumbs.html @@ -0,0 +1,28 @@ +{% comment %} +This file is licensed under the MIT License (MIT) available on +http://opensource.org/licenses/MIT. +{% endcomment %} + + diff --git a/_includes/layout/base/content.html b/_includes/layout/base/content.html new file mode 100644 index 00000000..001db305 --- /dev/null +++ b/_includes/layout/base/content.html @@ -0,0 +1,8 @@ +{% comment %} +This file is licensed under the MIT License (MIT) available on +http://opensource.org/licenses/MIT. +{% endcomment %} + +
+ {{ content }} +
diff --git a/_includes/layout/base/footer-js.html b/_includes/layout/base/footer-js.html new file mode 100644 index 00000000..b75ea04a --- /dev/null +++ b/_includes/layout/base/footer-js.html @@ -0,0 +1,9 @@ +{% comment %} +This file is licensed under the MIT License (MIT) available on +http://opensource.org/licenses/MIT. +{% endcomment %} + + diff --git a/_includes/layout/base/footer-license.html b/_includes/layout/base/footer-license.html new file mode 100644 index 00000000..3332cef0 --- /dev/null +++ b/_includes/layout/base/footer-license.html @@ -0,0 +1,6 @@ +{% comment %} +This file is licensed under the MIT License (MIT) available on +http://opensource.org/licenses/MIT. +{% endcomment %} + +
© Bitcoin Project 2009-{{ site.time | date: '%Y' }} {% translate footer layout %}
diff --git a/_includes/layout/base/footer-menu.html b/_includes/layout/base/footer-menu.html new file mode 100644 index 00000000..1af12879 --- /dev/null +++ b/_includes/layout/base/footer-menu.html @@ -0,0 +1,18 @@ +{% comment %} +This file is licensed under the MIT License (MIT) available on +http://opensource.org/licenses/MIT. +{% endcomment %} + +
+ Network Status + {% translate menu-legal layout %} + {% case page.lang %} + {% when 'ar' or 'es' or 'sl' %} + Privacy + {% else %} + {% translate menu-privacy layout %} + {% endcase %} + {% translate menu-press layout %} + {% translate menu-about-us layout %} + Blog +
diff --git a/_includes/layout/base/footer-sponsor.html b/_includes/layout/base/footer-sponsor.html new file mode 100644 index 00000000..9922946e --- /dev/null +++ b/_includes/layout/base/footer-sponsor.html @@ -0,0 +1,8 @@ +{% comment %} +This file is licensed under the MIT License (MIT) available on +http://opensource.org/licenses/MIT. +{% endcomment %} + +
+
{% translate sponsor layout %} Bitcoin Foundation
+
diff --git a/_includes/layout/base/head-language-dropdown.html b/_includes/layout/base/head-language-dropdown.html new file mode 100644 index 00000000..8e3b7db6 --- /dev/null +++ b/_includes/layout/base/head-language-dropdown.html @@ -0,0 +1,17 @@ +{% comment %} +This file is licensed under the MIT License (MIT) available on +http://opensource.org/licenses/MIT. +{% endcomment %} + diff --git a/_includes/layout/base/head-language-select.html b/_includes/layout/base/head-language-select.html new file mode 100644 index 00000000..ada4678f --- /dev/null +++ b/_includes/layout/base/head-language-select.html @@ -0,0 +1,9 @@ +{% comment %} +This file is licensed under the MIT License (MIT) available on +http://opensource.org/licenses/MIT. +{% endcomment %} +
diff --git a/_includes/layout/base/head-logo.html b/_includes/layout/base/head-logo.html new file mode 100644 index 00000000..1de7c8f6 --- /dev/null +++ b/_includes/layout/base/head-logo.html @@ -0,0 +1,6 @@ +{% comment %} +This file is licensed under the MIT License (MIT) available on +http://opensource.org/licenses/MIT. +{% endcomment %} + + diff --git a/_includes/layout/base/head-menu.html b/_includes/layout/base/head-menu.html new file mode 100644 index 00000000..5f56ccd4 --- /dev/null +++ b/_includes/layout/base/head-menu.html @@ -0,0 +1,35 @@ +{% comment %} +This file is licensed under the MIT License (MIT) available on +http://opensource.org/licenses/MIT. +{% endcomment %} + + diff --git a/_includes/layout/base/head-mobile-menu.html b/_includes/layout/base/head-mobile-menu.html new file mode 100644 index 00000000..b093d36e --- /dev/null +++ b/_includes/layout/base/head-mobile-menu.html @@ -0,0 +1,6 @@ +{% comment %} +This file is licensed under the MIT License (MIT) available on +http://opensource.org/licenses/MIT. +{% endcomment %} + + diff --git a/_includes/layout/base/html-head.html b/_includes/layout/base/html-head.html new file mode 100644 index 00000000..2b6b4b05 --- /dev/null +++ b/_includes/layout/base/html-head.html @@ -0,0 +1,19 @@ +{% comment %} +This file is licensed under the MIT License (MIT) available on +http://opensource.org/licenses/MIT. +{% endcomment %} + + + + +{% capture title %}{% translate title %}{% endcapture %}{% if title != '' %}{{ title }}{% else %}{{ page.title }}{% endif %} +{% capture metadescription %}{% translate metadescription %}{% endcapture %}{% if metadescription != '' %}{% endif %} +{% lesscss main.less %} + + +{% if page.lang == 'ar' or page.lang == 'fa' %}{% lesscss rtl.less %}{% endif %} +{% if page.lang == 'bg' or page.lang == 'el' or page.lang == 'ko' or page.lang == 'hi' or page.lang == 'pl' or page.lang == 'sl' or page.lang == 'ro' or page.lang == 'ru' or page.lang == 'tr' or page.lang == 'uk' or page.lang == 'zh_CN' or page.lang == 'zh_TW' %}{% lesscss sans.less %}{% endif %} + +{% if page.id != 'download' %}{% endif %} + + diff --git a/_includes/layout/base/pagetop-alert.html b/_includes/layout/base/pagetop-alert.html new file mode 100644 index 00000000..6e2a2836 --- /dev/null +++ b/_includes/layout/base/pagetop-alert.html @@ -0,0 +1,10 @@ +{% comment %} +This file is licensed under the MIT License (MIT) available on +http://opensource.org/licenses/MIT. +{% endcomment %} + +{% if site.ALERT %} + +{% endif %} diff --git a/_includes/layout/base/pagetop-detect-mobile.html b/_includes/layout/base/pagetop-detect-mobile.html new file mode 100644 index 00000000..45e06444 --- /dev/null +++ b/_includes/layout/base/pagetop-detect-mobile.html @@ -0,0 +1,6 @@ +{% comment %} +This file is licensed under the MIT License (MIT) available on +http://opensource.org/licenses/MIT. +{% endcomment %} + +
diff --git a/_layouts/base.html b/_layouts/base.html index 14183d3d..6996621a 100644 --- a/_layouts/base.html +++ b/_layouts/base.html @@ -4,109 +4,34 @@ --- + - - - -{% capture title %}{% translate title %}{% endcapture %}{% if title != '' %}{{ title }}{% else %}{{ page.title }}{% endif %} -{% capture metadescription %}{% translate metadescription %}{% endcapture %}{% if metadescription != '' %}{% endif %} -{% lesscss main.less %} - - -{% if page.lang == 'ar' or page.lang == 'fa' %}{% lesscss rtl.less %}{% endif %} -{% if page.lang == 'bg' or page.lang == 'el' or page.lang == 'ko' or page.lang == 'hi' or page.lang == 'pl' or page.lang == 'sl' or page.lang == 'ro' or page.lang == 'ru' or page.lang == 'tr' or page.lang == 'uk' or page.lang == 'zh_CN' or page.lang == 'zh_TW' %}{% lesscss sans.less %}{% endif %} - -{% if page.id != 'download' %}{% endif %} - - +{% include layout/base/html-head.html %} + -
-{% if site.ALERT %} -