feat: remove js-naked-day; restore scripts

This commit is contained in:
Ayo Ayco 2024-05-04 11:46:33 +02:00
parent fd452dbfb3
commit 5e3380232d
5 changed files with 33 additions and 46 deletions

View file

@ -73,34 +73,32 @@
rel="stylesheet" rel="stylesheet"
/> />
<!-- JS Naked Day 2024 <script type="module">
<script type="module"> import {
import { getMentions,
getMentions, renderMentions,
renderMentions, } from "/assets/js/webmention-utils.mjs";
} from "/assets/js/webmention-utils.mjs";
const ignorePaths = [ const ignorePaths = [
"/", "/",
"/categories/", "/categories/",
"/about/", "/about/",
"/technology/", "/technology/",
"/personal/", "/personal/",
"/projects/", "/projects/",
"/talks/", "/talks/",
"/productivity/", "/productivity/",
"/motivational/", "/motivational/",
]; ];
const url = new URL( const url = new URL(
document.URL.replace("http://localhost:4000", "https://ayos.blog") document.URL.replace("http://localhost:4000", "https://ayos.blog")
); );
if (!ignorePaths.includes(url.pathname)) { if (!ignorePaths.includes(url.pathname)) {
const mentions = getMentions(url.toString()) const mentions = getMentions(url.toString())
.then((mentions) => { .then((mentions) => {
renderMentions(mentions, ".blog-post__web-mentions"); renderMentions(mentions, ".blog-post__web-mentions");
}) })
.catch((err) => console.log("err", err)); .catch((err) => console.log("err", err));
} }
</script> </script>
-->
</head> </head>

View file

@ -45,8 +45,3 @@
{% endif %} {% endif %}
</div> </div>
</header> </header>
<div class="banner" style="padding-top:30px">
<p style="text-align:center; font-weight:bold; font-size:xx-large">
<a href="https://js-naked-day.org">JS Naked Day </a>
</p>
</div>

View file

@ -24,13 +24,11 @@
</div> </div>
<div class="side-panel side-panel-bottom" id="donate-form"> <div class="side-panel side-panel-bottom" id="donate-form">
<div class="tip-jar"> <div class="tip-jar">
<!-- JS Naked Day 2024 <script src='https://ko-fi.com/widgets/widget_2.js'></script>
<script src='https://ko-fi.com/widgets/widget_2.js'></script> <script>
<script> kofiwidget2.init('Buy me a coffee', '#ee4a03', 'ayoayco');
kofiwidget2.init('Buy me a coffee', '#ee4a03', 'ayoayco'); kofiwidget2.draw();
kofiwidget2.draw(); </script>
</script>
-->
</div> </div>
</div> </div>
<div> <div>

View file

@ -18,6 +18,4 @@ I keep a thread open on [Mastodon](https://social.ayco.io/@ayo/11063972899041691
<iframe src="https://social.ayco.io/@ayo/110685362953465106/embed" class="mastodon-embed" style="max-width: 100%; border: 0" width="400" allowfullscreen="allowfullscreen"></iframe> <iframe src="https://social.ayco.io/@ayo/110685362953465106/embed" class="mastodon-embed" style="max-width: 100%; border: 0" width="400" allowfullscreen="allowfullscreen"></iframe>
<!-- JS Naked Day 2024 <script src="https://social.ayco.io/embed.js" async="async"></script>
<script src="https://social.ayco.io/embed.js" async="async"></script>
-->

View file

@ -24,9 +24,7 @@ So when the December holidays came, I spent some time and resources to set up [m
<iframe src="https://fosstodon.org/@ayo/109545132022543467/embed" class="mastodon-embed" style="max-width: 100%; border: 0" width="400" allowfullscreen="allowfullscreen"></iframe> <iframe src="https://fosstodon.org/@ayo/109545132022543467/embed" class="mastodon-embed" style="max-width: 100%; border: 0" width="400" allowfullscreen="allowfullscreen"></iframe>
<!-- JS Naked Day 2024
<script src="https://social.ayco.io/embed.js" async="async"></script> <script src="https://social.ayco.io/embed.js" async="async"></script>
-->
## It Didn't Stop There ## It Didn't Stop There