diff options
Rewrote Site in 11ty
Still need to Update the content
Diffstat (limited to '_includes')
-rw-r--r-- | _includes/base.html | 47 | ||||
-rw-r--r-- | _includes/page.html | 9 | ||||
-rw-r--r-- | _includes/post.html | 21 |
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> |