From 828b9b153804a0f590522d1f0df0db4eb00e3ed0 Mon Sep 17 00:00:00 2001 From: Marc Pervaz Boocha Date: Mon, 24 Jun 2024 13:36:19 +0530 Subject: Rearranged the project layout --- src/404.html | 15 +++++++++++++++ src/about.html | 35 +++++++++++++++++++++++++++++++++++ src/index.html | 42 ++++++++++++++++++++++++++++++++++++++++++ src/posts.html | 25 +++++++++++++++++++++++++ src/posts/posts.11tydata.js | 13 +++++++++++++ src/public/_headers | 6 ++++++ src/public/_redirects | 1 + src/public/favicon.svg | 5 +++++ src/public/robots.txt | 3 +++ src/sitemap.xml.njk | 16 ++++++++++++++++ 10 files changed, 161 insertions(+) create mode 100644 src/404.html create mode 100644 src/about.html create mode 100644 src/index.html create mode 100644 src/posts.html create mode 100644 src/posts/posts.11tydata.js create mode 100644 src/public/_headers create mode 100644 src/public/_redirects create mode 100644 src/public/favicon.svg create mode 100644 src/public/robots.txt create mode 100644 src/sitemap.xml.njk (limited to 'src') diff --git a/src/404.html b/src/404.html new file mode 100644 index 0000000..f6f9c15 --- /dev/null +++ b/src/404.html @@ -0,0 +1,15 @@ +---json +{ +"layout": "base", +"title": "File Not Found", +"permalink": "404.html", +"eleventyExcludeFromCollections": true +} +--- + + +

ERROR: 404

+

+Go home. diff --git a/src/about.html b/src/about.html new file mode 100644 index 0000000..264d8a6 --- /dev/null +++ b/src/about.html @@ -0,0 +1,35 @@ +---json +{ +"layout": "page", +"title": "About Me", +"eleventyNavigation":{ +"key": "About Me", +"order": 3 +} +} +--- + +
+
+

Marc

+ +
+ Likes to create programs. Loves to be updated on the latest news and in General + Knowledge. +
+
+

Personal Information

+

Working: Qburst

+

Lives in: Bangalore

+
+
+

Contact Details

+ +
+
+ diff --git a/src/index.html b/src/index.html new file mode 100644 index 0000000..866a6c5 --- /dev/null +++ b/src/index.html @@ -0,0 +1,42 @@ +---json +{ +"layout": "page.html", +"title": "Welcome", +"eleventyNavigation": { +"key": "Home", +"order": 1 +} +} +--- + +

Hello World!

+

Welcome to my blog.

+

I occassion leave my writings here. Hope you will enjoy them 😊.

+
+	...........................................................
+	.................................:::::.....................
+	............................:::::::%+:::::.................
+	.........................:::::::::++%++:::::...............
+	.......................:::::::::++#####+::::::.............
+	.....................:::::::+%++++%###x+++::%::............
+	..................:::::::::+x################+::...........
+	...............::::::::::+##################++:::..........
+	.........:::::::+x++++++++####################+::..........
+	......:::::::::+++######%x###################%::::.........
+	.....::::::::++xx############################+::::.........
+	.....######################################x+:::::.........
+	.....::::::::++xx############################+::::.........
+	......:::::::::+++######%x###################%::::.........
+	.........:::::::+x++++++++####################+::..........
+	...............::::::::::+##################++:::..........
+	..................:::::::::+x################+::...........
+	.....................:::::::+%++++####x+++::%::............
+	.......................:::::::::++#####+::::::.............
+	.........................:::::::::++%++:::::...............
+	............................:::::::%+:::::.................
+	.................................:::::.....................
+
diff --git a/src/posts.html b/src/posts.html new file mode 100644 index 0000000..fde3bfd --- /dev/null +++ b/src/posts.html @@ -0,0 +1,25 @@ +---json +{ +"layout": "page", +"title": "Posts", +"eleventyNavigation": { +"key": "Posts", +"order": 2 +} +} +--- +
+ +
diff --git a/src/posts/posts.11tydata.js b/src/posts/posts.11tydata.js new file mode 100644 index 0000000..f03d0cf --- /dev/null +++ b/src/posts/posts.11tydata.js @@ -0,0 +1,13 @@ +import slugify from '@sindresorhus/slugify'; + +export default _ => { + return { + layout: "post", + tags: [ + "post" + ], + eleventyComputed: { + permalink: data => `posts/${slugify(data.title)}/` + } + } +} diff --git a/src/public/_headers b/src/public/_headers new file mode 100644 index 0000000..5139dee --- /dev/null +++ b/src/public/_headers @@ -0,0 +1,6 @@ +/* + X-Frame-Options: DENY + X-Content-Type-Options: nosniff + Referrer-Policy: no-referrer + Content-Security-Policy: default-src 'self'; script-src static.cloudflareinsights.com; connect-src cloudflareinsights.com; object-src 'none'; require-trusted-types-for 'script'; + Strict-Transport-Security: max-age=63072000; includeSubDomains; preload diff --git a/src/public/_redirects b/src/public/_redirects new file mode 100644 index 0000000..dc42aa9 --- /dev/null +++ b/src/public/_redirects @@ -0,0 +1 @@ +/blog/ /posts/ 301 diff --git a/src/public/favicon.svg b/src/public/favicon.svg new file mode 100644 index 0000000..c10bfd4 --- /dev/null +++ b/src/public/favicon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/public/robots.txt b/src/public/robots.txt new file mode 100644 index 0000000..b5f1e36 --- /dev/null +++ b/src/public/robots.txt @@ -0,0 +1,3 @@ +User-agent: * +Disallow: +Sitemap: https://sudomsg.com/sitemap.xml diff --git a/src/sitemap.xml.njk b/src/sitemap.xml.njk new file mode 100644 index 0000000..5448d77 --- /dev/null +++ b/src/sitemap.xml.njk @@ -0,0 +1,16 @@ +---json +{ + "permalink": "/sitemap.xml", + "eleventyExcludeFromCollections": true +} +--- + + +{%- for page in collections.all %} + {% set absoluteUrl %}{{ page.url | htmlBaseUrl(metadata.url) }}{% endset %} + + {{ absoluteUrl }} + {{ page.date | htmlDateString }} + +{%- endfor %} + -- cgit v1.2.3-70-g09d2