mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 12:05:28 +00:00
feat: replace Svelte LegalDate component with Preact
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
---
|
||||
import LegalDate from './LegalDate.svelte';
|
||||
import { LegalDate } from './LegalDate';
|
||||
import { site } from '../data/site';
|
||||
---
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script>
|
||||
export const LegalDate = () => {
|
||||
const currentDate = new Date();
|
||||
const isoDate = currentDate.toISOString();
|
||||
const currentYear = currentDate.getFullYear();
|
||||
</script>
|
||||
|
||||
<time datetime={isoDate}>2006–{currentYear}</time>
|
||||
return <time dateTime={isoDate}>2006–{currentYear}</time>;
|
||||
};
|
||||
Reference in New Issue
Block a user