have 11ty pass through img, js, css
also fix some urls and delete the original index.html (now in _content anyway)
This commit is contained in:
parent
cab41f32a4
commit
a346517f02
6 changed files with 9 additions and 81 deletions
|
@ -28,6 +28,9 @@ module.exports = function(eleventyConfig) {
|
||||||
return collectionApi.getFilteredByGlob("_content/notes/*.md").reverse();
|
return collectionApi.getFilteredByGlob("_content/notes/*.md").reverse();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
eleventyConfig.addPassthroughCopy("img");
|
||||||
|
eleventyConfig.addPassthroughCopy("js");
|
||||||
|
|
||||||
// Return your Object options:
|
// Return your Object options:
|
||||||
return {
|
return {
|
||||||
dir: {
|
dir: {
|
||||||
|
|
|
@ -17,7 +17,7 @@ title: Mon Repos (Death's Domain)
|
||||||
<link rel="microsub" href="https://aperture.p3k.io/microsub/807">
|
<link rel="microsub" href="https://aperture.p3k.io/microsub/807">
|
||||||
<link rel="micropub" href="https://micropub.death.id.au/.netlify/functions/micropub">
|
<link rel="micropub" href="https://micropub.death.id.au/.netlify/functions/micropub">
|
||||||
<link rel="micropub_media" href="https://micropub.death.id.au/.netlify/functions/media">
|
<link rel="micropub_media" href="https://micropub.death.id.au/.netlify/functions/media">
|
||||||
<link rel="stylesheet" href="/styles.css">
|
<link rel="stylesheet" href="/css/styles.css">
|
||||||
<title>{{ title }}</title>
|
<title>{{ title }}</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<link rel="microsub" href="https://aperture.p3k.io/microsub/807">
|
<link rel="microsub" href="https://aperture.p3k.io/microsub/807">
|
||||||
<link rel="micropub" href="https://micropub.death.id.au/.netlify/functions/micropub">
|
<link rel="micropub" href="https://micropub.death.id.au/.netlify/functions/micropub">
|
||||||
<link rel="micropub_media" href="https://micropub.death.id.au/.netlify/functions/media">
|
<link rel="micropub_media" href="https://micropub.death.id.au/.netlify/functions/media">
|
||||||
<link rel="stylesheet" href="styles.css">
|
<link rel="stylesheet" href="/css/styles.css">
|
||||||
<script src="https://kit.fontawesome.com/ebe14e90c3.js" crossorigin="anonymous"></script>
|
<script src="https://kit.fontawesome.com/ebe14e90c3.js" crossorigin="anonymous"></script>
|
||||||
<title>Mon Repos (Death's Domain)</title>
|
<title>Mon Repos (Death's Domain)</title>
|
||||||
</head>
|
</head>
|
||||||
|
@ -47,8 +47,8 @@
|
||||||
<li><i class="fa-brands fa-linkedin"></i> <a class="u-url" href="https://www.linkedin.com/in/gordon-pedersen/">Gordon Pedersen</a></li>
|
<li><i class="fa-brands fa-linkedin"></i> <a class="u-url" href="https://www.linkedin.com/in/gordon-pedersen/">Gordon Pedersen</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</main>
|
</main>
|
||||||
<script src="js/follow.js"></script>
|
<script src="/js/follow.js"></script>
|
||||||
<script src="js/button-input.js"></script>
|
<script src="/js/button-input.js"></script>
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('unhandledrejection', function(event) {
|
window.addEventListener('unhandledrejection', function(event) {
|
||||||
alert(event.reason)
|
alert(event.reason)
|
||||||
|
|
|
@ -17,7 +17,7 @@ title: Mon Repos (Death's Domain)
|
||||||
<link rel="microsub" href="https://aperture.p3k.io/microsub/807">
|
<link rel="microsub" href="https://aperture.p3k.io/microsub/807">
|
||||||
<link rel="micropub" href="https://micropub.death.id.au/.netlify/functions/micropub">
|
<link rel="micropub" href="https://micropub.death.id.au/.netlify/functions/micropub">
|
||||||
<link rel="micropub_media" href="https://micropub.death.id.au/.netlify/functions/media">
|
<link rel="micropub_media" href="https://micropub.death.id.au/.netlify/functions/media">
|
||||||
<link rel="stylesheet" href="../../styles.css">
|
<link rel="stylesheet" href="/css/styles.css">
|
||||||
<script src="https://cdn.jsdelivr.net/npm/luxon/build/global/luxon.min.js" crossorigin="anonymous"></script>
|
<script src="https://cdn.jsdelivr.net/npm/luxon/build/global/luxon.min.js" crossorigin="anonymous"></script>
|
||||||
<title>{{ title }}</title>
|
<title>{{ title }}</title>
|
||||||
</head>
|
</head>
|
||||||
|
@ -38,5 +38,5 @@ title: Mon Repos (Death's Domain)
|
||||||
</ol>
|
</ol>
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
<script src="../../js/relative-time.js"></script>
|
<script src="/js/relative-time.js"></script>
|
||||||
</html>
|
</html>
|
75
index.html
75
index.html
|
@ -1,75 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="mobile-web-app-capable" content="yes" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<link rel="icon" type="image/svg+xml" href="img/avatar-tt.svg">
|
|
||||||
<link rel="icon" type="image/png" href="img/avatar-tiny.png">
|
|
||||||
<link rel="authorization_endpoint" href="https://indieauth.com/auth">
|
|
||||||
<link rel="token_endpoint" href="https://tokens.indieauth.com/token">
|
|
||||||
<link rel="webmention" href="https://webmention.io/death.id.au/webmention" />
|
|
||||||
<link rel="pingback" href="https://webmention.io/death.id.au/xmlrpc" />
|
|
||||||
<link rel="microsub" href="https://aperture.p3k.io/microsub/807">
|
|
||||||
<link rel="micropub" href="https://micropub.death.id.au/.netlify/functions/micropub">
|
|
||||||
<link rel="micropub_media" href="https://micropub.death.id.au/.netlify/functions/media">
|
|
||||||
<link rel="stylesheet" href="styles.css">
|
|
||||||
<script src="https://kit.fontawesome.com/ebe14e90c3.js" crossorigin="anonymous"></script>
|
|
||||||
<title>Mon Repos (Death's Domain)</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<!-- Reference for representative h-card properties: https://microformats.org/wiki/h-card -->
|
|
||||||
<main class="h-card" rel="author">
|
|
||||||
<img class="u-featured" src="img/banner-1500x500.jpg" alt="A grim reaper in a decorated cubicle, writing and daydreaming, surrounded by many other grim reapers in bland, grey, cubicles" />
|
|
||||||
<img class="u-photo" alt="My profile photo — a pixelated version of me" src="img/avatar-tt.svg" />
|
|
||||||
<h1>
|
|
||||||
I'm <span class="p-name">Gordon Pedersen</span>.
|
|
||||||
</h1>
|
|
||||||
<p class="p-note">
|
|
||||||
...and I am a human on the Internet.
|
|
||||||
</p>
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
<button class="icon-button button-input"
|
|
||||||
data-instruction="Please enter your fediverse / mastodon handle (e.g. '@user@domain.social')"
|
|
||||||
data-placeholder="@user@domain.social"
|
|
||||||
data-success="Thanks for the follow!"
|
|
||||||
onsubmit="handleFollow(event.value)">
|
|
||||||
<img src="img/Fediverse_logo_proposal.svg" alt="Fediverse logo">
|
|
||||||
Follow @death.au@death.id.au
|
|
||||||
</button>
|
|
||||||
</li>
|
|
||||||
<li><i><img class="tiny-avatar" src="img/avatar-tt-trans.svg"></i> <a class="u-uid u-url" href="https://death.id.au">Mon Repos (you are here)</a><a class="u-url" href="acct:death.au@death.id.au"></a></li>
|
|
||||||
<li><i class="fa-brands fa-mastodon"></i> <a class="u-url" href="https://pkm.social/@death_au" rel="me">@death_au@pkm.social</a></li>
|
|
||||||
<li><i class="fa-brands fa-github"></i> <a class="u-url" href="https://github.com/deathau" rel="me">@deathau</a></li>
|
|
||||||
<li><i class="fa-brands fa-twitter"></i> <a class="u-url" href="https://twitter.com/death_au" rel="me">@death_au</a></li>
|
|
||||||
<li><i class="fa-brands fa-linkedin"></i> <a class="u-url" href="https://www.linkedin.com/in/gordon-pedersen/">Gordon Pedersen</a></li>
|
|
||||||
</ul>
|
|
||||||
</main>
|
|
||||||
<script src="js/follow.js"></script>
|
|
||||||
<script src="js/button-input.js"></script>
|
|
||||||
<script>
|
|
||||||
window.addEventListener('unhandledrejection', function(event) {
|
|
||||||
alert(event.reason)
|
|
||||||
})
|
|
||||||
function handleFollow(handle) {
|
|
||||||
try{
|
|
||||||
follow('@death.au@death.id.au', handle)
|
|
||||||
}
|
|
||||||
catch(e){
|
|
||||||
alert(e)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function tryFollow(user) {
|
|
||||||
try{
|
|
||||||
follow(user)
|
|
||||||
}
|
|
||||||
catch(e){
|
|
||||||
alert(e)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
Loading…
Reference in a new issue