From 5e90a88f777f53295d12b43572fc922b63261246 Mon Sep 17 00:00:00 2001 From: rehrar <rehrar@tuta.io> Date: Tue, 19 Dec 2017 14:07:07 -0700 Subject: [PATCH] Added two new layouts for use by User Guides - The goal being to allow for titles within the user guides while not over complicating the layouts and titles --- _layouts/blog_by_tag.html | 6 +++--- _layouts/customnt.html | 7 +++++++ _layouts/default.html | 2 +- _layouts/static_page.html | 2 +- _layouts/user-guide.html | 14 ++++++++++++++ 5 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 _layouts/customnt.html create mode 100644 _layouts/user-guide.html diff --git a/_layouts/blog_by_tag.html b/_layouts/blog_by_tag.html index 1b357a77..0fae8397 100644 --- a/_layouts/blog_by_tag.html +++ b/_layouts/blog_by_tag.html @@ -23,7 +23,7 @@ layout: custom <div> {% if site.tags[tag.slug] %} {% for post in site.tags[tag.slug] %} - <h3><a href="{{ post.url }}">{{ post.title }}</a></h3> + <h3><a href="{{site.baseurl}}/{{ post.url }}">{{ post.title }}</a></h3> <p> {{ post.summary }} </p> @@ -46,7 +46,7 @@ layout: custom {% for post in site.posts limit:4 %} <div class="row start-xs info-block-row"> <div class="col"> - <p><a href="{{ post.url }}">{{ post.title }}</a></p> + <p><a href="{{site.baseurl}}/{{ post.url }}">{{ post.title }}</a></p> </div> </div> {% endfor %} @@ -60,7 +60,7 @@ layout: custom {% for tag in site.data.tags limit:4 %} <div class="row start-xs"> <div class="col"> - <p><a href="/blog/tags/{{ tag.slug }}.html">{{ tag.name }}</a></p> + <p><a href="{{site.baseurl}}/blog/tags/{{ tag.slug }}.html">{{ tag.name }}</a></p> </div> </div> {% endfor %} diff --git a/_layouts/customnt.html b/_layouts/customnt.html new file mode 100644 index 00000000..8ed8b39e --- /dev/null +++ b/_layouts/customnt.html @@ -0,0 +1,7 @@ +--- +layout: base +--- + +<div class="site-wrap"> + {{content}} +</div> \ No newline at end of file diff --git a/_layouts/default.html b/_layouts/default.html index 94ba7876..687f0d8a 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,5 +1,5 @@ --- layout: base --- -<h1 class="text-center">{{page.title}}</h1> +<h1 class="text-center">{% t page.title %}</h1> {{content}} \ No newline at end of file diff --git a/_layouts/static_page.html b/_layouts/static_page.html index e224d019..95eb68b0 100644 --- a/_layouts/static_page.html +++ b/_layouts/static_page.html @@ -1,7 +1,7 @@ --- layout: base --- -<h1 class="text-center">{{page.title}}</h1> +<h1 class="text-center">{% t page.title %}</h1> <div class="site-wrap"> <!-- FULL WIDTH BLOCK --> <section class="container full"> diff --git a/_layouts/user-guide.html b/_layouts/user-guide.html new file mode 100644 index 00000000..2cde2d7e --- /dev/null +++ b/_layouts/user-guide.html @@ -0,0 +1,14 @@ +--- +layout: base +--- + <div class="site-wrap"> + <!-- FULL WIDTH BLOCK --> + <section class="container full"> + <div class="info-block text-adapt"> + <div> + {{content}} + </div> + </div> + </section> + <!-- END FULL WIDTH BLOCK --> + </div> \ No newline at end of file -- GitLab