aboutsummaryrefslogtreecommitdiffstats
path: root/posts
diff options
context:
space:
mode:
author2024-06-21 21:59:53 +0530
committer2024-06-21 21:59:53 +0530
commita190ecdc3f0e06c35b0bfb3ba825a1b29b162f37 (patch)
tree8fef59a521ef25442d0c99c0e24c2e5bb97827d0 /posts
parentHot fix (diff)
downloadsudomsg-a190ecdc3f0e06c35b0bfb3ba825a1b29b162f37.tar
sudomsg-a190ecdc3f0e06c35b0bfb3ba825a1b29b162f37.tar.gz
sudomsg-a190ecdc3f0e06c35b0bfb3ba825a1b29b162f37.tar.bz2
sudomsg-a190ecdc3f0e06c35b0bfb3ba825a1b29b162f37.tar.lz
sudomsg-a190ecdc3f0e06c35b0bfb3ba825a1b29b162f37.tar.xz
sudomsg-a190ecdc3f0e06c35b0bfb3ba825a1b29b162f37.tar.zst
sudomsg-a190ecdc3f0e06c35b0bfb3ba825a1b29b162f37.zip
Update deps and updated the about page.
On branch main Your branch is up to date with 'origin/main'. Changes to be committed: modified: 404.html modified: _includes/base.html new file: _includes/main.css modified: _includes/page.html modified: _includes/post.html modified: about.html deleted: assets/main.css deleted: atom.xml.njk modified: eleventy.config.js modified: index.html modified: package-lock.json modified: package.json modified: posts.html modified: posts/posts.11tydata.js
Diffstat (limited to '')
-rw-r--r--posts.html27
-rw-r--r--posts/posts.11tydata.js5
2 files changed, 16 insertions, 16 deletions
diff --git a/posts.html b/posts.html
index ccb45b3..fde3bfd 100644
--- a/posts.html
+++ b/posts.html
@@ -1,6 +1,6 @@
---json
{
-"layout": "page.html",
+"layout": "page",
"title": "Posts",
"eleventyNavigation": {
"key": "Posts",
@@ -8,21 +8,18 @@
}
}
---
-<div itemscope itemtype={% schema "Blog" %} role="feed" aria-busy="false">
- {% for post in collections.post %}
- <article itemprop="blogPost" itemscope itemtype="{% schema 'BlogPosting' %}" aria-posinset="loop.index"
- aria-setsize="loop.lenght">
- <h3 itemprop="headline"><a href="{{ post.url }}" itemprop="sameAs">{{post.title or "p"}}</a></h3>
+<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="{{ post.date | htmlDateString }}" itemprop="datePublished">{{ post.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>
+ <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">{{description}}
+ <p itemprop="abstract" @text="post.data.description"></p>
</article>
- {% endfor %}
</div>
diff --git a/posts/posts.11tydata.js b/posts/posts.11tydata.js
index e22d809..f03d0cf 100644
--- a/posts/posts.11tydata.js
+++ b/posts/posts.11tydata.js
@@ -2,7 +2,10 @@ import slugify from '@sindresorhus/slugify';
export default _ => {
return {
- layout: "post.html",
+ layout: "post",
+ tags: [
+ "post"
+ ],
eleventyComputed: {
permalink: data => `posts/${slugify(data.title)}/`
}