aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/404.html15
-rw-r--r--src/about.html35
-rw-r--r--src/index.html42
-rw-r--r--src/posts.html25
-rw-r--r--src/posts/posts.11tydata.js13
-rw-r--r--src/public/_headers6
-rw-r--r--src/public/_redirects1
-rw-r--r--src/public/favicon.svg5
-rw-r--r--src/public/robots.txt3
-rw-r--r--src/sitemap.xml.njk16
10 files changed, 161 insertions, 0 deletions
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
+}
+---
+<style>
+h1 { color: red; }
+</style>
+
+<h1>ERROR: 404</h1>
+<p @text="title"></p>
+Go <a href="/">home</a>.
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
+}
+}
+---
+
+<div itemscope :itemtype="schema('ProfilePage')">
+ <section itemprop="mainEntity" itemscope :itemtype="schema('Person')">
+ <h2 itemprop="name" :id="slugify(metadata.author.name)" @content="metadata.author.name">Marc</h2>
+ <aside><img itemprop="image" alt="A Photo of me" :src="metadata.author.image"></aside>
+ <div itemprop="description">
+ Likes to create programs. Loves to be updated on the latest news and in General
+ Knowledge.
+ </div>
+ <div>
+ <h3>Personal Information</h3>
+ <p>Working: <span itemprop="memberof">Qburst</span></p>
+ <p>Lives in: <span itemprop="address">Bangalore</span></p>
+ </div>
+ <div>
+ <h3>Contact Details</h3>
+ <ul>
+ <li><a href="mailto:mboocha@sudomsg.com" itemprop="email">Email</a></li>
+ <li><a href="https://github.com/marcthe12" itemprop="sameas">Github</a></li>
+ <li><a href="https://www.linkedin.com/in/marc-pervaz-boocha-200706236/"
+ itemprop="sameas">LinkedIn</a></li>
+ </ul>
+ </div>
+</div>
+</div>
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
+}
+}
+---
+<style>
+ main {
+ font-size: 125%;
+ }
+</style>
+<p>Hello World!</p>
+<p>Welcome to my blog.</p>
+<p>I occassion leave my writings here. Hope you will enjoy them 😊.</p>
+<pre>
+ ...........................................................
+ .................................:::::.....................
+ ............................:::::::%+:::::.................
+ .........................:::::::::++%++:::::...............
+ .......................:::::::::++#####+::::::.............
+ .....................:::::::+%++++%###x+++::%::............
+ ..................:::::::::+x################+::...........
+ ...............::::::::::+##################++:::..........
+ .........:::::::+x++++++++####################+::..........
+ ......:::::::::+++######%x###################%::::.........
+ .....::::::::++xx############################+::::.........
+ .....######################################x+:::::.........
+ .....::::::::++xx############################+::::.........
+ ......:::::::::+++######%x###################%::::.........
+ .........:::::::+x++++++++####################+::..........
+ ...............::::::::::+##################++:::..........
+ ..................:::::::::+x################+::...........
+ .....................:::::::+%++++####x+++::%::............
+ .......................:::::::::++#####+::::::.............
+ .........................:::::::::++%++:::::...............
+ ............................:::::::%+:::::.................
+ .................................:::::.....................
+</pre>
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
+}
+}
+---
+<div itemscope :itemtype="schema('Blog')" role="feed" aria-busy="false" webc:for="(post, index) of collections.post">
+ <article itemprop="blogPost" itemscope :itemtype="schema('BlogPosting')" :aria-posinset="index"
+ :aria-setsize="collections.post.lenght">
+ <h3 itemprop="headline"><a :href="post.url" itemprop="sameAs" @text="post.data.title"></a></h3>
+ <small>
+ <time :datetime="htmlDateString(post.date)" itemprop="datePublished"
+ @text="readableDate(post.date)"></time> -
+ <span itemprop=" author" itemscope :itemtype="schema('Person')"></span>
+ <a :href="metadata.author.url" rel="author" itemprop="url">
+ <span itemprop="name" @text="metadata.author.name">
+ </a>
+ </small>
+ <p itemprop="abstract" @text="post.data.description"></p>
+ </article>
+</div>
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="1024" height="1024" version="2.0" xmlns="http://www.w3.org/2000/svg">
+ <path d="m537.73 236-39.053 155.84h92.002l39.43-155.84h60.082l-39.43 155.84h91.625v57.83h-105.52l-31.543 125.42h93.878v57.454h-108.52l-39.053 155.46h-60.082l39.43-155.46h-92.376l-39.43 155.46h-59.707l39.053-155.46h-96.883v-57.454h111.53l31.543-125.42h-99.888v-57.83h113.78l39.053-155.84zm39.053 213.67h-92.002l-31.543 125.42h92.376z" dominant-baseline="central" fill="#8b0000" stroke-width=".7512" style="fill:#501616" aria-label="#"/>
+</svg>
+
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
+}
+---
+<?xml version="1.0" encoding="utf-8"?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
+{%- for page in collections.all %}
+ {% set absoluteUrl %}{{ page.url | htmlBaseUrl(metadata.url) }}{% endset %}
+ <url>
+ <loc>{{ absoluteUrl }}</loc>
+ <lastmod>{{ page.date | htmlDateString }}</lastmod>
+ </url>
+{%- endfor %}
+</urlset>