Remove theme from gitignore & add .html to imports

Also change extension from verbose nunjucks to just nunj
parent 7f8ec3d5
...@@ -3,6 +3,5 @@ coverage ...@@ -3,6 +3,5 @@ coverage
build build
build-debug build-debug
content content
theme
static static
.buildconfig .buildconfig
{% include "partials/header" %} {% include "partials/header.html" %}
<div class="section container" id="content"> <div class="section container" id="content">
<div class="metadata"> <div class="metadata">
<h2 id="title">{{ metadata.title }}</h2> <h2 id="title">{{ metadata.title }}</h2>
...@@ -30,4 +30,4 @@ ...@@ -30,4 +30,4 @@
</p> </p>
</article> </article>
</div> </div>
{% include "partials/footer" %} {% include "partials/footer.html" %}
{{ include "partials/header.html" }}
{{ include "partials/footer.html" }}
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
{{ metadata.headerextra | safe }} {{ metadata.headerextra | safe }}
</head> </head>
<body {{ "class=type-article" if type=="article" }}> <body {{ "class=type-article" if type=="article" }}>
{% import "partials/svgs" as svgs %} {% import "partials/svgs.html" as svgs %}
<div id="all"> <div id="all">
<!-- Top nav --> <!-- Top nav -->
<nav class="supernav" role="navigation" style="z-index:5;position:absolute;"> <nav class="supernav" role="navigation" style="z-index:5;position:absolute;">
...@@ -141,5 +141,4 @@ ...@@ -141,5 +141,4 @@
</ul> </ul>
</div> </div>
</nav> </nav>
{% include "partials/search" %} {% include "partials/search.html" %}
{% import "partials/svgs" as svgs %} {% import "partials/svgs.html" as svgs %}
<div id=content class=container> <div id=content class=container>
<div class="section"> <div class="section">
<div class="row"> <div class="row">
...@@ -35,8 +35,8 @@ ...@@ -35,8 +35,8 @@
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
{% include "partials/paginator" %} {% include "partials/paginator.html" %}
</div> </div>
<div class="hide-on-small-only"> <div class="hide-on-small-only">
...@@ -62,21 +62,21 @@ ...@@ -62,21 +62,21 @@
if ($(this).height() > maxHeight) { maxHeight = $(this).height(); } if ($(this).height() > maxHeight) { maxHeight = $(this).height(); }
}); });
$(".head-perex").height(maxHeight); $(".head-perex").height(maxHeight);
$(".head-title").height("auto"); $(".head-title").height("auto");
maxHeight = 0; maxHeight = 0;
$(".head-title").each(function(){ $(".head-title").each(function(){
if ($(this).height() > maxHeight) { maxHeight = $(this).height(); } if ($(this).height() > maxHeight) { maxHeight = $(this).height(); }
}); });
$(".head-title").height(maxHeight); $(".head-title").height(maxHeight);
$(".head-info").height("auto"); $(".head-info").height("auto");
maxHeight = 0; maxHeight = 0;
$(".head-info").each(function(){ $(".head-info").each(function(){
if ($(this).height() > maxHeight) { maxHeight = $(this).height(); } if ($(this).height() > maxHeight) { maxHeight = $(this).height(); }
}); });
$(".head-info").height(maxHeight); $(".head-info").height(maxHeight);
// Sidelink icons of same size // Sidelink icons of same size
$(".sidelink-icon").css("top",$(window).height()/2); $(".sidelink-icon").css("top",$(window).height()/2);
}; };
......
{% import "partials/svgs" as svgs %} {% import "partials/svgs.html" as svgs %}
<ul class="pagination"> <ul class="pagination">
<li><a {{ (" href=\""+config.baseurl +"/"+ metadata.firstpage.file +"\"") | safe if metadata.firstpage.file != file }}> <li><a {{ (" href=\""+config.baseurl +"/"+ metadata.firstpage.file +"\"") | safe if metadata.firstpage.file != file }}>
...@@ -17,9 +17,8 @@ ...@@ -17,9 +17,8 @@
<li><a {{ " href="+config.baseurl +"/"+ metadata.nextpage.file if metadata.nextpage != undefined }}> <li><a {{ " href="+config.baseurl +"/"+ metadata.nextpage.file if metadata.nextpage != undefined }}>
{{ svgs.chevronright( "#999" if metadata.nextpage == undefined else "#000", 1,"em" ) }} {{ svgs.chevronright( "#999" if metadata.nextpage == undefined else "#000", 1,"em" ) }}
</a></li> </a></li>
<li><a {{ (" href=\""+config.baseurl +"/"+ metadata.lastpage.file +"\"") | safe if metadata.lastpage.file != file }}> <li><a {{ (" href=\""+config.baseurl +"/"+ metadata.lastpage.file +"\"") | safe if metadata.lastpage.file != file }}>
{{ svgs.doublechevronright( "#999" if metadata.lastpage.file == file else "#000", 1,"em" ) }} {{ svgs.doublechevronright( "#999" if metadata.lastpage.file == file else "#000", 1,"em" ) }}
</a></li> </a></li>
</ul> </ul>
{% include "partials/header.html" %}
{% include "partials/list.html" %}
{% include "partials/footer.html" %}
{% include "partials/header" %}
{% include "partials/list" %}
{% include "partials/footer" %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment