diff --git a/.prettierrc.cjs b/.prettierrc.cjs
new file mode 100644
index 0000000..4a49707
--- /dev/null
+++ b/.prettierrc.cjs
@@ -0,0 +1,11 @@
+module.exports = {
+ plugins: [require.resolve("prettier-plugin-astro")],
+ overrides: [
+ {
+ files: "*.astro",
+ options: {
+ parser: "astro",
+ },
+ },
+ ],
+};
diff --git a/package.json b/package.json
index 83c1212..27c04bf 100644
--- a/package.json
+++ b/package.json
@@ -27,7 +27,7 @@
"devDependencies": {
"@types/html-minifier": "^4.0.2",
"prettier": "2.8.1",
- "prettier-plugin-astro": "^0.7.1",
+ "prettier-plugin-astro": "^0.7.2",
"prettier-plugin-tailwindcss": "^0.2.1"
}
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index fa64f42..35d89d6 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -13,7 +13,7 @@ specifiers:
fireworks-js: ^2.10.0
html-minifier: ^4.0.0
prettier: 2.8.1
- prettier-plugin-astro: ^0.7.1
+ prettier-plugin-astro: ^0.7.2
prettier-plugin-tailwindcss: ^0.2.1
tailwind: ^4.0.0
tailwindcss: ^3.2.4
diff --git a/src/components/widgets/Head.astro b/src/components/widgets/Head.astro
index e5a28f1..e79b7ff 100644
--- a/src/components/widgets/Head.astro
+++ b/src/components/widgets/Head.astro
@@ -1,13 +1,17 @@
+---
+const { schemaOrg } = Astro.props;
+---
+
xHyroM
-
+
-
+
@@ -25,6 +29,12 @@
\ No newline at end of file
+ http-equiv="Content-Security-Policy"
+ content="img-src 'self'; font-src *; style-src 'self' 'unsafe-inline' fonts.googleapis.com; script-src 'self' 'unsafe-inline'; object-src 'none'"
+/>
+
+{
+ schemaOrg && (
+
+ )
+}
diff --git a/src/components/widgets/blog/PostHead.astro b/src/components/widgets/blog/PostHead.astro
index 82bd09c..53fda9b 100644
--- a/src/components/widgets/blog/PostHead.astro
+++ b/src/components/widgets/blog/PostHead.astro
@@ -1,6 +1,6 @@
---
const url = Astro.url.pathname;
-const { title } = Astro.props;
+const { title, date } = Astro.props;
---
@@ -9,10 +9,10 @@ const { title } = Astro.props;
xHyroM
-
+
-
+
@@ -30,6 +30,36 @@ const { title } = Astro.props;
\ No newline at end of file
+ http-equiv="Content-Security-Policy"
+ content="img-src 'self'; font-src *; style-src 'self' 'unsafe-inline' fonts.googleapis.com; script-src 'self' 'unsafe-inline'; object-src 'none'"
+/>
+
+
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro
index 6d6c0bf..c988450 100644
--- a/src/layouts/Layout.astro
+++ b/src/layouts/Layout.astro
@@ -6,11 +6,11 @@ import DefaultHead from "../components/widgets/Head.astro";
const date = new Date();
const fireworks =
- (date.getMonth() === 11 && date.getDate() === 31) ||
- (date.getMonth() === 0 && date.getDate() <= 3);
+ (date.getMonth() === 11 && date.getDate() === 31) ||
+ (date.getMonth() === 0 && date.getDate() <= 3);
const snow =
- (date.getMonth() === 11 && date.getDate() === 10) ||
- (date.getMonth() === 0 && date.getDate() <= 3);
+ (date.getMonth() === 11 && date.getDate() === 10) ||
+ (date.getMonth() === 0 && date.getDate() <= 3);
const { head } = Astro.props;
const Head = head || DefaultHead;
@@ -18,30 +18,28 @@ const Head = head || DefaultHead;
-
-
-
-
-
-
-
-
-
-
+
+