From f6b1ab7d48a5e55575805d665a282c5af6cae29d Mon Sep 17 00:00:00 2001 From: Ava Gaiety Wroten Date: Sun, 9 Jan 2022 19:20:37 -0600 Subject: [PATCH] Progress on index --- .eleventy.js | 3 ++ _includes/indexlayout.njk | 55 +++++++++++-------------------- content/.obsidian/workspace | 2 +- content/images/default-thumb.png | Bin 0 -> 1042 bytes content/index.md | 6 ++-- package-lock.json | 13 ++++++++ package.json | 1 + 7 files changed, 40 insertions(+), 40 deletions(-) create mode 100644 content/images/default-thumb.png diff --git a/.eleventy.js b/.eleventy.js index 5d6db16..15b93d9 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -1,5 +1,8 @@ +const emojiReadTime = require("@11tyrocks/eleventy-plugin-emoji-readtime"); + module.exports = function(eleventyConfig) { eleventyConfig.addPassthroughCopy("./content/images"); + eleventyConfig.addPlugin(emojiReadTime); return { htmlTemplateEngine: "njk", diff --git a/_includes/indexlayout.njk b/_includes/indexlayout.njk index cd2fe51..9f83f3f 100644 --- a/_includes/indexlayout.njk +++ b/_includes/indexlayout.njk @@ -1,14 +1,9 @@ ----js -{ - pagination: { - data: "collections.all", - size: 5, - alias: "posts", - before: function(posts) { - return posts.sort((postA, postB) => new Date(postB.date) - new Date(postA.date)); - }, - }, -} +--- +pagination: + data: collections.all + size: 9 + alias: posts + reverse: true --- @@ -32,48 +27,36 @@ {%- for post in posts -%}
- +
-
-
- - Daniela Metz - - +
+
+
-
-

- - Daniela Metz - -

-
- - - - 11 min read - -
+
+ + {{ post.templateContent | emojiReadTime }} +
diff --git a/content/.obsidian/workspace b/content/.obsidian/workspace index 3e8b19f..2a4d43b 100644 --- a/content/.obsidian/workspace +++ b/content/.obsidian/workspace @@ -90,8 +90,8 @@ "active": "a8e90712c1fef449", "lastOpenFiles": [ "index.md", - "posts/austin-givecamp-2019.md", "posts/allovue.md", + "posts/austin-givecamp-2019.md", "posts/a_modern_terminal_workflow_3.md", "posts/deving_on_linux_is_fun.md", "posts/coming-out-again-nb.md", diff --git a/content/images/default-thumb.png b/content/images/default-thumb.png new file mode 100644 index 0000000000000000000000000000000000000000..34013287e34e51b779632a2e9c30bab7f4d050af GIT binary patch literal 1042 zcmeAS@N?(olHy`uVBq!ia0y~yU}|7sV9elP28w)mvnv@$F%}28J2BoosZ$T+a29w( z7Bet#3xhBt!>ld^OT7F`ef?f$=ANH1@8zzZmzBBaENw59S}uRS)pGh5kLyn-&Aa}LV}nb> zU6u%?19?n3f(hn~(>ONFX7FaY;oG3f^hWJ~5M!BeLMOv+PE=*5IaKvQ=Djwxy==O3 z-?HahZRZ_i%?H{wkxBit`~&Bnd~vmk&3wENAFVl+dxJ5*NIdJ$+&H6|C%@h`yU%pD zY|F%73lBW~=@V|KZazov+=RTOut0^4y|`-0>mtAN*~MkwR_~a< zDdaAG|Kkd#NH>j*Jr~Yeg>`bX-H!Co{lHSk!0MN#_)GB^_vDCnHi&~7Jj*`symsFC z*NUI)@@v#yDaRh2qccVCobKHtYu3Gd{OsPjI?;0P`R3(iVh<+R<-a2s1d4NytjRg7 zb3WXv%W~&~{K_1c$)^82%MB;L_N?bFl`cE*cNxUy1M7P3v#b61X7*E&4-^&!M_)0& z$x;8Ge(%!dTl22VzFqw9&Q-TWU~nvZ{RxyjDwwA4NZCb1iog;gn|lJlL3#|B){X|1 z><+G4mi?&hD!aw9<-6pLe_69FbBB%b!K3DK&}br;`q96CtEum+%oVJTAR|0o{an^L HB{Ts5U;TP1 literal 0 HcmV?d00001 diff --git a/content/index.md b/content/index.md index ae5e971..77a38a6 100644 --- a/content/index.md +++ b/content/index.md @@ -5,9 +5,9 @@ title: Gaiety's Life --- # Gaiety's Life -## __(She/Her)__ Programming, art, design, and other queer things. +## Programming, art, design, and other queer things. (_She\/Her_) -Web Engineer by day who pretends to be a dog. +Web Engineer by day who pretends to be a dog.\ Dog by night who pretends to be a programmer. -[Portfolio](https://gaiety.me/) [Gitlab](https://gitlab.com/gaiety) [Art](https://gaiety.gallery/) [Youtube](https://www.youtube.com/channel/UCvgaIxGXIsEh8mVVlS50XWQ) +[Portfolio](https://gaiety.me/) — [Gitlab](https://gitlab.com/gaiety) — [Art](https://gaiety.gallery/) — [Youtube](https://www.youtube.com/channel/UCvgaIxGXIsEh8mVVlS50XWQ) diff --git a/package-lock.json b/package-lock.json index 48be8fd..44d8ab2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "license": "The Unlicense", "devDependencies": { "@11ty/eleventy": "^1.0.0", + "@11tyrocks/eleventy-plugin-emoji-readtime": "^1.0.1", "@tailwindcss/typography": "^0.5.0", "concurrently": "^7.0.0", "tailwindcss": "^3.0.12" @@ -71,6 +72,12 @@ "url": "https://opencollective.com/11ty" } }, + "node_modules/@11tyrocks/eleventy-plugin-emoji-readtime": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@11tyrocks/eleventy-plugin-emoji-readtime/-/eleventy-plugin-emoji-readtime-1.0.1.tgz", + "integrity": "sha512-AYLOm3Bt5hskZeWkckOkLoGZyYcWVbfZrc+09BpOt4/VmAa+Sx3bH8LSKW/b3YMYq234Q5iuErnv3Cgb4zPL6w==", + "dev": true + }, "node_modules/@babel/code-frame": { "version": "7.16.7", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz", @@ -4693,6 +4700,12 @@ "slugify": "^1.6.5" } }, + "@11tyrocks/eleventy-plugin-emoji-readtime": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@11tyrocks/eleventy-plugin-emoji-readtime/-/eleventy-plugin-emoji-readtime-1.0.1.tgz", + "integrity": "sha512-AYLOm3Bt5hskZeWkckOkLoGZyYcWVbfZrc+09BpOt4/VmAa+Sx3bH8LSKW/b3YMYq234Q5iuErnv3Cgb4zPL6w==", + "dev": true + }, "@babel/code-frame": { "version": "7.16.7", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz", diff --git a/package.json b/package.json index 672383e..8f9bd69 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "homepage": "https://gitlab.com/gaiety/gaiety-life#readme", "devDependencies": { "@11ty/eleventy": "^1.0.0", + "@11tyrocks/eleventy-plugin-emoji-readtime": "^1.0.1", "@tailwindcss/typography": "^0.5.0", "concurrently": "^7.0.0", "tailwindcss": "^3.0.12"