This repository has been archived on 2023-03-14. You can view files and clone it, but cannot push or open issues or pull requests.
personal-website-old/pages/_includes/layout_eportfolio.njk

65 lines
1.7 KiB
Plaintext
Raw Normal View History

2020-11-26 15:42:01 +00:00
---
username: Laureηt
---
<!DOCTYPE html>
<html lang="en">
<head>
2020-11-26 15:42:01 +00:00
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ username }}</title>
<link rel="stylesheet" href="{{ '/css/main.css' | url }}">
<link rel="stylesheet" href="{{ '/css/blink.css' | url }}">
<link rel="shortcut icon" type="image/x-icon" href="{{ '/favicon.ico' | url }}">
<script src="{{ '/javascript/chaffle.min.js' | url }}"></script>
</head>
<body>
2020-11-26 15:42:01 +00:00
<header style="margin-bottom: 0;">
<span data-chaffle-onload="" data-chaffle="en">{{ username }}</span>
<span class="blink" style="display:inline;">_</span>
{{ collections.all | eleventyNavigation | eleventyNavigationToHtml | safe }}
2020-11-26 15:42:01 +00:00
</header>
2020-11-26 15:42:01 +00:00
<hr style="margin-top: .5em;">
{{ content | safe }}
<div class="btn-back">
<span>&laquo;</span>
<a href="{{ '/' | url }}">Go back</a>
</div>
<footer>
&copy; {% year %}
{{ username }}
2020-11-26 15:42:01 +00:00
</footer>
<script>
var elm_mouseover = document.querySelectorAll('[data-chaffle]');
var elm_onload = document.querySelectorAll('[data-chaffle-onLoad]');
Array
.prototype
.forEach
.call(elm_mouseover, function (el) {
2020-11-26 15:42:01 +00:00
var chaffle = new Chaffle(el)
el.addEventListener('mouseover', function () {
chaffle.init();
});
});
Array
.prototype
.forEach
.call(elm_onload, function (el) {
2020-11-26 15:42:01 +00:00
var chaffle = new Chaffle(el)
chaffle.init();
setInterval(function () {
2020-11-26 15:42:01 +00:00
chaffle.init();
}, 10000)
});
2020-11-26 15:42:01 +00:00
</script>
</body>
2020-11-26 15:42:01 +00:00
</html>