summaryrefslogtreecommitdiffstats
path: root/_includes
diff options
context:
space:
mode:
author2024-04-07 19:43:04 +0530
committer2024-04-07 19:43:04 +0530
commit900a707fdcb04e5739126ec2509fdc39fee7491c (patch)
tree427c9155bcbcca013f4c352888d8d88984e4e027 /_includes
parent0.5.1 (diff)
downloadsudomsg-900a707fdcb04e5739126ec2509fdc39fee7491c.tar
sudomsg-900a707fdcb04e5739126ec2509fdc39fee7491c.tar.gz
sudomsg-900a707fdcb04e5739126ec2509fdc39fee7491c.tar.bz2
sudomsg-900a707fdcb04e5739126ec2509fdc39fee7491c.tar.lz
sudomsg-900a707fdcb04e5739126ec2509fdc39fee7491c.tar.xz
sudomsg-900a707fdcb04e5739126ec2509fdc39fee7491c.tar.zst
sudomsg-900a707fdcb04e5739126ec2509fdc39fee7491c.zip
Rewrote Site in 11ty
Still need to Update the content
Diffstat (limited to '_includes')
-rw-r--r--_includes/base.html47
-rw-r--r--_includes/page.html9
-rw-r--r--_includes/post.html21
3 files changed, 77 insertions, 0 deletions
diff --git a/_includes/base.html b/_includes/base.html
new file mode 100644
index 0000000..36d9821
--- /dev/null
+++ b/_includes/base.html
@@ -0,0 +1,47 @@
+---json
+{
+"date": "git Created"
+}
+---
+<!doctype html>
+<html lang="{{ metadata.language }}">
+
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta name="color-scheme" content="light dark">
+ <meta name="generator" content="{{ eleventy.generator }}">
+ <title property="og:title">{{ title or metadata.title }}</title>
+ <meta property="og:locale" content="{{ metadata.language }}">
+ <meta name="theme-color" content="{{ metadata.theme }}">
+ <meta name="description" property="og:description" content="{{ description or metadata.description }}">
+ <meta property="og:url" content="{{ page.url | htmlBaseUrl(metadata.url) }}">
+ <link rel="canonical" href="{{ page.url | htmlBaseUrl(metadata.url) }}">
+ <meta property="og:site_name" content="{{ metadata.title }}">
+ <meta name="author" content="{{ metadata.author.name }}">
+ <meta property="og:type" content="website">
+ <meta name="twitter:card" content="summary">
+ <link rel="alternate" href="{{ metadata.feed.atom }}" type="application/atom+xml" title="{{ metadata.title }}">
+ <link rel="icon" href="/favicon.svg" type="image/svg+xml">
+ {%- css %}{% include "assets/main.css" %}{% endcss %}
+ <link rel="stylesheet" href="{% getBundleFileUrl 'css' %}">
+</head>
+
+<body>
+ <header>
+ <nav>
+ <a href="#">Sudomsg</a>
+ {%- for entry in collections.all | eleventyNavigation %}
+ <a href="{{ entry.url }}">{{ entry.title }}</a>
+ {%- endfor %}
+ </nav>
+ </header>
+ <main>
+ {{ content |safe }}
+ </main>
+ <footer>
+ Subscribe - <a href="/atom.xml">Atom</a>
+ </footer>
+</body>
+
+</html>
diff --git a/_includes/page.html b/_includes/page.html
new file mode 100644
index 0000000..77f888b
--- /dev/null
+++ b/_includes/page.html
@@ -0,0 +1,9 @@
+---json
+{
+"layout": "base.html"
+}
+---
+<article>
+ <h1>{{ title }}</h1>
+ {{ content | safe }}
+</article>
diff --git a/_includes/post.html b/_includes/post.html
new file mode 100644
index 0000000..bbe28d9
--- /dev/null
+++ b/_includes/post.html
@@ -0,0 +1,21 @@
+---json
+{
+"layout": "base.html",
+"tags": [
+"post"
+]
+}
+---
+<article itemscope itemtype={% schema "BlogPosting" %}>
+ <h1>{{ title }}</h1>
+ <small>
+ <time datetime="{{ page.date | htmlDateString }}" itemprop="datePublished">{{ page.date | readableDate
+ }}</time>
+ - <span itemprop="author" itemscope itemtype="{% schema " Person" %}>
+ <a href="{{metadata.author.url}}" rel="author" itemprop="url">
+ <span itemprop="name">{{metadata.author.name}}</span>
+ </a>
+ </span>
+ </small>
+ <div temprop: "articleBody">{{ content | safe }}</div>
+</article>