Commit f3e0c7ac authored by Leon Byford's avatar Leon Byford

Merge branch 'master' of https://gitlab.com/ldjb/blog

parents 58435c97 74e8bd5c
......@@ -50,6 +50,7 @@
</footer>
</div>
</div>
<script src="/lib/default.js"></script>
<script src="/lib/anchor.min.js"></script>
<script src="/lib/script.js"></script>
</body>
</html>
......@@ -27,8 +27,6 @@ layout: default
{{ content | replace: '<!-- more -->', '<div id="more"></div>' }}
</div>
</article>
<script src="/lib/anchor.min.js"></script>
<script src="/lib/post.js"></script>
<style>
div.entry img {
cursor: zoom-in;
......
......@@ -39,4 +39,3 @@ span.archive-date {
white-space: nowrap;
}
</style>
<script src="/lib/future.js"></script>
......@@ -11,7 +11,6 @@ layout: default
{% include article-preview.html %}
{% endfor %}
</div>
<script src="/lib/future.js"></script>
{% if numPublishedPosts > 10 %}
<a href="{{ site.baseurl }}{% link archive.html %}" id="archive-link">Find older posts in the archive</a>
{% endif %}
document.getElementById("back-to-top").addEventListener("click", e => {
window.scroll({top: 0, behavior: "smooth"});
e.preventDefault();
});
document.querySelectorAll(".future").forEach(
post => {post.dataset.pubdate <= new Date().toISOString()
&& post.classList.remove("future");}
);
anchors.add("div.entry h3, div.entry h4, div.entry h5, div.entry h6");
document.querySelectorAll("div.entry img").forEach(
img => {
img.onclick = _ => {
img.classList.toggle("zoom");
};
}
);
document.getElementById("back-to-top").addEventListener("click", e => {
window.scroll({top: 0, behavior: "smooth"});
e.preventDefault();
});
document.querySelectorAll(".future").forEach(
post => {post.dataset.pubdate <= new Date().toISOString()
&& post.classList.remove("future");}
);
anchors.options.icon = "#";
anchors.add("div.entry h3, div.entry h4, div.entry h5, div.entry h6");
document.querySelectorAll("div.entry img").forEach(
img => {
img.onclick = _ => {
img.classList.toggle("zoom");
};
}
);
......@@ -29,4 +29,3 @@ div#{{thisTag|slugify}}:target ~ div.posts article div.date a[href="tag#{{thisTa
<h2>Tag not found</h2>
<p>A tag was not specified or it was not found. Try going <a href="/{{site.baseurl}}">back to the homepage</a>.</p>
</div>
<script src="/lib/future.js"></script>
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