diff --git a/_data/cssCacheBust.yml b/_data/cacheBust.yml similarity index 100% rename from _data/cssCacheBust.yml rename to _data/cacheBust.yml diff --git a/_includes/Background.tsx b/_includes/Background.tsx index daba45b..59b9f0a 100644 --- a/_includes/Background.tsx +++ b/_includes/Background.tsx @@ -1,17 +1,18 @@ import Logo from './Logo.tsx'; const x1312 = (new Array(400)).fill("0x1312").join(" "); + export default () =>
-
{x1312}
+
; diff --git a/_includes/HakkenDates.tsx b/_includes/HakkenDates.tsx new file mode 100644 index 0000000..e316cef --- /dev/null +++ b/_includes/HakkenDates.tsx @@ -0,0 +1 @@ +export default ({ lang }) =>
; diff --git a/_includes/Head.tsx b/_includes/Head.tsx index c79bcb3..b339223 100644 --- a/_includes/Head.tsx +++ b/_includes/Head.tsx @@ -1,6 +1,12 @@ import { title as titleFilter } from '../filters.ts'; -export default ({ title, theme, extraStylesheets }) => +export default ({ + title, + theme, + extraStylesheets, + extraScripts, + cacheBust, +}) => { titleFilter(title) } @@ -11,10 +17,14 @@ export default ({ title, theme, extraStylesheets }) => - + <> {(extraStylesheets || []) - .map(extraStylesheet => )} + .map(extraStylesheet => )} + + <> + {(extraScripts || []) + .map(extraScript => )} ; diff --git a/_includes/layouts/default.tsx b/_includes/layouts/default.tsx index 15ab51b..c00c888 100644 --- a/_includes/layouts/default.tsx +++ b/_includes/layouts/default.tsx @@ -1,28 +1,31 @@ -import { - title as titleFilter, - en, - de, - md, -} from '../../filters.ts'; +import { md } from '../../filters.ts'; import Head from '../Head.tsx'; import Background from '../Background.tsx'; +import HakkenDates from '../HakkenDates.tsx'; export default ({ title, + content, + theme, extraStylesheets, - content, - cssCacheBust, + extraScripts, + cacheBust, + + showHakkenDates, }) => <> + +
+ + {showHakkenDates ? : null}
+ + {showHakkenDates ? : null}
diff --git a/_includes/layouts/homepage.tsx b/_includes/layouts/homepage.tsx index c92230e..4ec6d99 100644 --- a/_includes/layouts/homepage.tsx +++ b/_includes/layouts/homepage.tsx @@ -1,31 +1,31 @@ -import { - title as titleFilter, - en, - de, - md, -} from '../../filters.ts'; import Head from '../Head.tsx'; import Background from '../Background.tsx'; export default ({ title, + content, + links, + theme, extraStylesheets, - links, - cssCacheBust, + extraScripts, + cacheBust, + + showHakkenDates, }) => <>
- {links.map(({ href, title }) => - {title} + {links.map(({ href, title, openInNewTab }) => + {title} )}