個人サイトをAstroJSで書き直した
個人サイトをAstroJSで作り直した
また
コンテンツ本体のastro:content
を
CSS
Astroはデータ属性と.astro
ファイル内に:hover
の
ただしMarkdownだけはglobal.css
で
デザインはreset.css
を
CSS変数を0.5 rem
単位で
Markdownのレンダリング
reamrk-sectionize
だけ<section />
タグがastro.config.js
を
;
;
;
;
;
// https://astro.build/config
;
ブログページのjsdom
で.window.document.body.textContet
を
OG画像
satori
とsharp
でgetStaticPaths
をpackage.json
には
エンドポイントのogImage
はsatori
をsatori
にsharp(Buffer.from(svg)).webp().toBuffer()
と
;
RSS
@astrojs/rss
をastro:content
の
;
;
;
;
;
動的なページ変化
Reactは<template />
タグでdocument.querySelector
するのでも
展望
Pagefindを
ページネーションも