Add my status.cafe widget

This commit is contained in:
Helen Chong 2024-06-01 00:29:42 +08:00
parent 1bddbf8b7f
commit 64e76fc094
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,12 @@
<div id="statuscafe" class="text-box">
<h3>My Lastest Status</h3>
<div id="statuscafe-username"></div>
<div id="statuscafe-content"></div>
</div>
<script src="https://status.cafe/current-status.js?name=leilukin" defer></script>
<style>
#statuscafe-content {
margin: 0 0 0.5em 1em;
}
</style>

View File

@ -35,12 +35,15 @@ eleventyComputed:
<section class="content__section"> <section class="content__section">
<h2>What is New?</h2> <h2>What is New?</h2>
<div class="text-box"> <div class="text-box">
<h3>Major News: 31 May 2024</h3> <h3>Major News: 31 May 2024</h3>
<p>{{ sitemeta.siteName }} now has a custom domain name: leilukin.com! Currently this site is hosted on both Netlify and Neocities.</p> <p>{{ sitemeta.siteName }} now has a custom domain name: leilukin.com! Currently this site is hosted on both Netlify and Neocities.</p>
<p>You can read <a href="/blog/posts/2024-05-31-domain-name-hosting-change-leilukins-hub">my blog post about the new domain name and hosting change</a> for more information.</p> <p>You can read <a href="/blog/posts/2024-05-31-domain-name-hosting-change-leilukins-hub">my blog post about the new domain name and hosting change</a> for more information.</p>
</div> </div>
{% include "main/statuscafe.njk" %}
<div class="text-box"> <div class="text-box">
{% for log in collections["changelogs"] | reverse | itemLimit(1) %} {% for log in collections["changelogs"] | reverse | itemLimit(1) %}
<h3 class="date-style">{{ log.data.date | formatDate }}:</h3> <h3 class="date-style">{{ log.data.date | formatDate }}:</h3>