Skip to content
Permalink
Browse files
Modernize parts of v8 themes
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 28, 2018
1 parent 3bf252e commit 8ed2179a60a86a6f16f3bd4bec8ff1c4be897f52
@@ -1,4 +1,4 @@
assets/css/all-nocdn.css=bootstrap.min.css,rst.css,code.css,baguetteBox.min.css,theme.css,blog.css,custom.css
assets/css/all.css=rst.css,code.css,baguetteBox.min.css,theme.css,blog.css,custom.css
assets/js/all-nocdn.js=jquery.min.js,bootstrap.min.js,baguetteBox.min.js,moment-with-locales.min.js,fancydates.js
assets/js/all.js=baguetteBox.min.js,moment-with-locales.min.js,fancydates.js
assets/js/all-nocdn.js=jquery.min.js,bootstrap.min.js,baguetteBox.min.js,moment-with-locales.min.js,fancydates.min.js
assets/js/all.js=baguetteBox.min.js,moment-with-locales.min.js,fancydates.min.js
@@ -84,7 +84,7 @@ lang="{{ lang }}">
<script src="/assets/js/baguetteBox.min.js"></script>
{% endif %}
<script src="/assets/js/moment-with-locales.min.js"></script>
<script src="/assets/js/fancydates.js"></script>
<script src="/assets/js/fancydates.min.js"></script>
{% endif %}
{{ social_buttons_code }}
{% endmacro %}
@@ -1,4 +1,4 @@
assets/css/all-nocdn.css=bootstrap.min.css,rst.css,code.css,baguetteBox.min.css,theme.css,blog.css,custom.css
assets/css/all.css=rst.css,code.css,baguetteBox.min.css,theme.css,blog.css,custom.css
assets/js/all-nocdn.js=jquery.min.js,bootstrap.min.js,baguetteBox.min.js,moment-with-locales.min.js,fancydates.js
assets/js/all.js=baguetteBox.min.js,moment-with-locales.min.js,fancydates.js
assets/js/all-nocdn.js=jquery.min.js,bootstrap.min.js,baguetteBox.min.js,moment-with-locales.min.js,fancydates.min.js
assets/js/all.js=baguetteBox.min.js,moment-with-locales.min.js,fancydates.min.js
@@ -83,7 +83,7 @@ lang="${lang}">
<script src="/assets/js/baguetteBox.min.js"></script>
%endif
<script src="/assets/js/moment-with-locales.min.js"></script>
<script src="/assets/js/fancydates.js"></script>
<script src="/assets/js/fancydates.min.js"></script>
%endif
${social_buttons_code}
</%def>
@@ -1,4 +1,4 @@
assets/css/all-nocdn.css=bootstrap.min.css,bootstrap-theme.min.css,rst_base.css,nikola_rst.css,code.css,baguetteBox.min.css,theme.css,custom.css
assets/css/all.css=rst_base.css,nikola_rst.css,code.css,theme.css,custom.css
assets/js/all-nocdn.js=jquery.min.js,bootstrap.min.js,baguetteBox.min.js,moment-with-locales.min.js,fancydates.js
assets/js/all.js=moment-with-locales.min.js,fancydates.js
assets/js/all-nocdn.js=jquery.min.js,bootstrap.min.js,baguetteBox.min.js,moment-with-locales.min.js,fancydates.min.js
assets/js/all.js=moment-with-locales.min.js,fancydates.min.js
@@ -96,7 +96,7 @@ lang="{{ lang }}">
<script src="/assets/js/baguetteBox.min.js"></script>
{% endif %}
<script src="/assets/js/moment-with-locales.min.js"></script>
<script src="/assets/js/fancydates.js"></script>
<script src="/assets/js/fancydates.min.js"></script>
{% endif %}
{{ social_buttons_code }}
{% endmacro %}
@@ -1,4 +1,4 @@
assets/css/all-nocdn.css=bootstrap.min.css,bootstrap-theme.min.css,rst_base.css,nikola_rst.css,code.css,baguetteBox.min.css,theme.css,custom.css
assets/css/all.css=rst_base.css,nikola_rst.css,code.css,theme.css,custom.css
assets/js/all-nocdn.js=jquery.min.js,bootstrap.min.js,baguetteBox.min.js,moment-with-locales.min.js,fancydates.js
assets/js/all.js=moment-with-locales.min.js,fancydates.js
assets/js/all-nocdn.js=jquery.min.js,bootstrap.min.js,baguetteBox.min.js,moment-with-locales.min.js,fancydates.min.js
assets/js/all.js=moment-with-locales.min.js,fancydates.min.js
@@ -96,7 +96,7 @@ lang="${lang}">
<script src="/assets/js/baguetteBox.min.js"></script>
%endif
<script src="/assets/js/moment-with-locales.min.js"></script>
<script src="/assets/js/fancydates.js"></script>
<script src="/assets/js/fancydates.min.js"></script>
%endif
${social_buttons_code}
</%def>
@@ -1,4 +1,4 @@
assets/css/all-nocdn.css=bootstrap.min.css,rst_base.css,nikola_rst.css,code.css,baguetteBox.min.css,theme.css,custom.css
assets/css/all.css=rst_base.css,nikola_rst.css,code.css,theme.css,custom.css
assets/js/all-nocdn.js=jquery.min.js,bootstrap.min.js,baguetteBox.min.js,moment-with-locales.min.js,fancydates.js
assets/js/all.js=moment-with-locales.min.js,fancydates.js
assets/js/all-nocdn.js=jquery.min.js,bootstrap.min.js,baguetteBox.min.js,moment-with-locales.min.js,fancydates.min.js
assets/js/all.js=moment-with-locales.min.js,fancydates.min.js
@@ -95,7 +95,7 @@ lang="{{ lang }}">
<script src="/assets/js/bootstrap.min.js"></script>
<script src="/assets/js/baguetteBox.min.js"></script>
<script src="/assets/js/moment-with-locales.min.js"></script>
<script src="/assets/js/fancydates.js"></script>
<script src="/assets/js/fancydates.min.js"></script>
{% endif %}
{% endif %}
{{ social_buttons_code }}
@@ -60,45 +60,11 @@

{% block extra_js %}
<script src="/assets/js/justified-layout.min.js"></script>
<script src="/assets/js/gallery.min.js"></script>
<script>
var jsonContent = {{ photo_array_json }};

function renderGallery() {
var container = document.getElementById("gallery_container");
container.innerHTML = '';
var layoutGeometry = require('justified-layout')(jsonContent, {
"containerWidth": container.offsetWidth,
"targetRowHeight": {{ thumbnail_size }}*.6,
"boxSpacing": 5});
container.style.height = layoutGeometry.containerHeight + 'px';
var boxes = layoutGeometry.boxes;
for (var i = 0; i < boxes.length; i++) {
var img = document.createElement("img");
img.setAttribute('src', jsonContent[i].url_thumb);
img.setAttribute('alt', jsonContent[i].title);
img.style.width = boxes[i].width + 'px';
img.style.height = boxes[i].height + 'px';
link = document.createElement("a");
link.setAttribute('href', jsonContent[i].url);
link.setAttribute('class', 'image-reference');
div = document.createElement("div");
div.setAttribute('class', 'image-block');
div.setAttribute('title', jsonContent[i].title);
div.setAttribute('data-toggle', "tooltip")
div.style.width = boxes[i].width + 'px';
div.style.height = boxes[i].height + 'px';
div.style.top = boxes[i].top + 'px';
div.style.left = boxes[i].left + 'px';
link.append(img);
div.append(link);
container.append(div);
}
baguetteBox.run('#gallery_container', {
captions: function(element) {
return element.getElementsByTagName('img')[0].alt;
}});
}
renderGallery();
var jsonContent = ${photo_array_json};
var thumbnailSize = ${thumbnail_size};
renderGallery(jsonContent, thumbnailSize);
window.addEventListener('resize', renderGallery);
</script>
{% endblock %}
</%block>
@@ -1,4 +1,4 @@
assets/css/all-nocdn.css=bootstrap.min.css,rst_base.css,nikola_rst.css,code.css,baguetteBox.min.css,theme.css,custom.css
assets/css/all.css=rst_base.css,nikola_rst.css,code.css,theme.css,custom.css
assets/js/all-nocdn.js=jquery.min.js,bootstrap.min.js,baguetteBox.min.js,moment-with-locales.min.js,fancydates.js
assets/js/all.js=moment-with-locales.min.js,fancydates.js
assets/js/all-nocdn.js=jquery.min.js,bootstrap.min.js,baguetteBox.min.js,moment-with-locales.min.js,fancydates.min.js
assets/js/all.js=moment-with-locales.min.js,fancydates.min.js
@@ -96,7 +96,7 @@ lang="${lang}">
<script src="/assets/js/baguetteBox.min.js"></script>
%endif
<script src="/assets/js/moment-with-locales.min.js"></script>
<script src="/assets/js/fancydates.js"></script>
<script src="/assets/js/fancydates.min.js"></script>
%endif
${social_buttons_code}
</%def>
@@ -60,45 +60,11 @@ ${parent.extra_head()}

<%block name="extra_js">
<script src="/assets/js/justified-layout.min.js"></script>
<script src="/assets/js/gallery.min.js"></script>
<script>
var jsonContent = ${photo_array_json};

function renderGallery() {
var container = document.getElementById("gallery_container");
container.innerHTML = '';
var layoutGeometry = require('justified-layout')(jsonContent, {
"containerWidth": container.offsetWidth,
"targetRowHeight": ${thumbnail_size}*.6,
"boxSpacing": 5});
container.style.height = layoutGeometry.containerHeight + 'px';
var boxes = layoutGeometry.boxes;
for (var i = 0; i < boxes.length; i++) {
var img = document.createElement("img");
img.setAttribute('src', jsonContent[i].url_thumb);
img.setAttribute('alt', jsonContent[i].title);
img.style.width = boxes[i].width + 'px';
img.style.height = boxes[i].height + 'px';
link = document.createElement("a");
link.setAttribute('href', jsonContent[i].url);
link.setAttribute('class', 'image-reference');
div = document.createElement("div");
div.setAttribute('class', 'image-block');
div.setAttribute('title', jsonContent[i].title);
div.setAttribute('data-toggle', "tooltip")
div.style.width = boxes[i].width + 'px';
div.style.height = boxes[i].height + 'px';
div.style.top = boxes[i].top + 'px';
div.style.left = boxes[i].left + 'px';
link.append(img);
div.append(link);
container.append(div);
}
baguetteBox.run('#gallery_container', {
captions: function(element) {
return element.getElementsByTagName('img')[0].alt;
}});
}
renderGallery();
var thumbnailSize = ${thumbnail_size};
renderGallery(jsonContent, thumbnailSize);
window.addEventListener('resize', renderGallery);
</script>
</%block>
@@ -1,4 +1,4 @@
assets/css/all-nocdn.css=bootstrap.min.css,font-awesome.min.css,rst.css,code.css,baguetteBox.min.css,roboto.css,material.css,ripples.css,kc.fab.css,theme.css,custom.css
assets/css/all.css=rst.css,code.css,roboto.css,material.css,ripples.css,kc.fab.css,theme.css,custom.css
assets/js/all-nocdn.js=jquery.min.js,bootstrap.min.js,kc.fab.min.js,baguetteBox.min.js,moment-with-locales.min.js,fancydates.js,ripples.min.js,material.min.js
assets/js/all.js=kc.fab.min.js,baguetteBox.min.js,moment-with-locales.min.js,fancydates.js,ripples.min.js,material.min.js
assets/js/all-nocdn.js=jquery.min.js,bootstrap.min.js,kc.fab.min.js,baguetteBox.min.js,moment-with-locales.min.js,fancydates.min.js,ripples.min.js,material.min.js
assets/js/all.js=kc.fab.min.js,baguetteBox.min.js,moment-with-locales.min.js,fancydates.min.js,ripples.min.js,material.min.js
@@ -105,7 +105,7 @@ lang="{{ lang }}">
{% endif %}
<script src="/assets/js/kc.fab.min.js"></script>
<script src="/assets/js/moment-with-locales.min.js"></script>
<script src="/assets/js/fancydates.js"></script>
<script src="/assets/js/fancydates.min.js"></script>
<script src="/assets/js/ripples.min.js"></script>
<script src="/assets/js/material.min.js"></script>
{% endif %}
@@ -54,45 +54,11 @@

{% block extra_js %}
<script src="/assets/js/justified-layout.min.js"></script>
<script src="/assets/js/gallery.min.js"></script>
<script>
var jsonContent = {{ photo_array_json }};

function renderGallery() {
var container = document.getElementById("gallery_container");
container.innerHTML = '';
var layoutGeometry = require('justified-layout')(jsonContent, {
"containerWidth": container.offsetWidth,
"targetRowHeight": {{ thumbnail_size }}*.6,
"boxSpacing": 5});
container.style.height = layoutGeometry.containerHeight + 'px';
var boxes = layoutGeometry.boxes;
for (var i = 0; i < boxes.length; i++) {
var img = document.createElement("img");
img.setAttribute('src', jsonContent[i].url_thumb);
img.setAttribute('alt', jsonContent[i].title);
img.style.width = boxes[i].width + 'px';
img.style.height = boxes[i].height + 'px';
link = document.createElement("a");
link.setAttribute('href', jsonContent[i].url);
link.setAttribute('class', 'image-reference');
div = document.createElement("div");
div.setAttribute('class', 'image-block');
div.setAttribute('title', jsonContent[i].title);
div.setAttribute('data-toggle', "tooltip")
div.style.width = boxes[i].width + 'px';
div.style.height = boxes[i].height + 'px';
div.style.top = boxes[i].top + 'px';
div.style.left = boxes[i].left + 'px';
link.append(img);
div.append(link);
container.append(div);
}
baguetteBox.run('#gallery_container', {
captions: function(element) {
return element.getElementsByTagName('img')[0].alt;
}});
}
renderGallery();
var jsonContent = ${photo_array_json};
var thumbnailSize = ${thumbnail_size};
renderGallery(jsonContent, thumbnailSize);
window.addEventListener('resize', renderGallery);
</script>
{% endblock %}
</%block>
@@ -1,4 +1,4 @@
assets/css/all-nocdn.css=rst_base.css,nikola_rst.css,code.css,baguetteBox.min.css,theme.css,forkfont.css,custom.css
assets/css/all.css=rst_base.css,nikola_rst.css,code.css,baguetteBox.min.css,theme.css,custom.css
assets/js/all-nocdn.js=baguetteBox.min.js,moment-with-locales.min.js,fancydates.js
assets/js/all.js=fancydates.js
assets/js/all-nocdn.js=baguetteBox.min.js,moment-with-locales.min.js,fancydates.min.js
assets/js/all.js=fancydates.min.js
@@ -1,4 +1,4 @@
assets/css/all-nocdn.css=rst_base.css,nikola_rst.css,code.css,baguetteBox.min.css,theme.css,custom.css
assets/css/all.css=rst_base.css,nikola_rst.css,code.css,baguetteBox.min.css,theme.css,custom.css
assets/js/all-nocdn.js=baguetteBox.min.js,moment-with-locales.min.js,fancydates.js
assets/js/all.js=fancydates.js
assets/js/all-nocdn.js=baguetteBox.min.js,moment-with-locales.min.js,fancydates.min.js
assets/js/all.js=fancydates.min.js
@@ -1,4 +1,4 @@
assets/css/all-nocdn.css=rst_base.css,nikola_rst.css,code.css,baguetteBox.min.css,theme.css,custom.css
assets/css/all.css=rst_base.css,nikola_rst.css,code.css,baguetteBox.min.css,theme.css,custom.css
assets/js/all-nocdn.js=baguetteBox.min.js,moment-with-locales.min.js,fancydates.js
assets/js/all.js=fancydates.js
assets/js/all-nocdn.js=baguetteBox.min.js,moment-with-locales.min.js,fancydates.min.js
assets/js/all.js=fancydates.min.js

0 comments on commit 8ed2179

Please sign in to comment.