diff options
Updated deps
Diffstat (limited to 'src')
-rw-r--r-- | src/about.11tydata.js | 10 | ||||
-rw-r--r-- | src/about.html | 14 | ||||
-rw-r--r-- | src/index.11tydata.js | 10 | ||||
-rw-r--r-- | src/index.html | 12 | ||||
-rw-r--r-- | src/posts.11tydata.js | 10 | ||||
-rw-r--r-- | src/posts.html | 16 | ||||
-rw-r--r-- | src/posts/posts.11tydata.js | 6 |
7 files changed, 40 insertions, 38 deletions
diff --git a/src/about.11tydata.js b/src/about.11tydata.js new file mode 100644 index 0000000..f065cd9 --- /dev/null +++ b/src/about.11tydata.js @@ -0,0 +1,10 @@ +export default function () { + return { + layout: "page", + title: "About Me", + eleventyNavigation: { + key: "About Me", + order: 3 + } + } +}
\ No newline at end of file diff --git a/src/about.html b/src/about.html index a940600..5a40cfc 100644 --- a/src/about.html +++ b/src/about.html @@ -1,14 +1,3 @@ ----json -{ -"layout": "page", -"title": "About Me", -"eleventyNavigation":{ -"key": "About Me", -"order": 3 -} -} ---- - <div itemscope :itemtype="schema('ProfilePage')"> <section itemprop="mainEntity" itemscope :itemtype="schema('Person')"> <aside><img itemprop="image" alt="A Photo of me" :src="metadata.author.image"></aside> @@ -28,7 +17,8 @@ <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> + itemprop="sameas">LinkedIn</a> + </li> </ul> </div> </div> diff --git a/src/index.11tydata.js b/src/index.11tydata.js new file mode 100644 index 0000000..8d236fc --- /dev/null +++ b/src/index.11tydata.js @@ -0,0 +1,10 @@ +export default function () { + return { + layout: "page.html", + title: "Welcome", + eleventyNavigation: { + key: "Home", + order: 1 + } + } +}
\ No newline at end of file diff --git a/src/index.html b/src/index.html index 866a6c5..2b4435d 100644 --- a/src/index.html +++ b/src/index.html @@ -1,13 +1,3 @@ ----json -{ -"layout": "page.html", -"title": "Welcome", -"eleventyNavigation": { -"key": "Home", -"order": 1 -} -} ---- <style> main { font-size: 125%; @@ -39,4 +29,4 @@ .........................:::::::::++%++:::::............... ............................:::::::%+:::::................. .................................:::::..................... -</pre> +</pre>
\ No newline at end of file diff --git a/src/posts.11tydata.js b/src/posts.11tydata.js new file mode 100644 index 0000000..0185d9c --- /dev/null +++ b/src/posts.11tydata.js @@ -0,0 +1,10 @@ +export default function () { + return { + layout: "page", + title: "Posts", + eleventyNavigation: { + key: "Posts", + order: 2 + } + } +}
\ No newline at end of file diff --git a/src/posts.html b/src/posts.html index fde3bfd..10ebe3b 100644 --- a/src/posts.html +++ b/src/posts.html @@ -1,20 +1,10 @@ ----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> - + <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"> @@ -22,4 +12,4 @@ </small> <p itemprop="abstract" @text="post.data.description"></p> </article> -</div> +</div>
\ No newline at end of file diff --git a/src/posts/posts.11tydata.js b/src/posts/posts.11tydata.js index f03d0cf..c9924d9 100644 --- a/src/posts/posts.11tydata.js +++ b/src/posts/posts.11tydata.js @@ -1,13 +1,15 @@ import slugify from '@sindresorhus/slugify'; -export default _ => { +export default function () { return { layout: "post", tags: [ "post" ], eleventyComputed: { - permalink: data => `posts/${slugify(data.title)}/` + permalink(data) { + return data.title ? `posts/${slugify(data.title)}/` : `posts/${data.page.fileSlug}/` + }, } } } |