1
0
Fork 0

Progress on index

This commit is contained in:
Ava Gaiety Wroten 2022-01-09 19:20:37 -06:00
parent 06850a655f
commit f6b1ab7d48
7 changed files with 40 additions and 40 deletions

View file

@ -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",

View file

@ -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
---
<!doctype html>
<html lang="en">
@ -32,48 +27,36 @@
{%- for post in posts -%}
<div class="flex flex-col rounded-lg shadow-lg overflow-hidden">
<div class="flex-shrink-0">
<img class="h-48 w-full object-cover" src="https://images.unsplash.com/photo-1492724441997-5dc865305da7?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1679&q=80" alt="">
<img class="h-48 w-full object-cover" src="{{ post.data.coverImage if post.data.coverImage else '/images/default-thumb.png'}}" alt="">
</div>
<div class="flex-1 bg-white p-6 flex flex-col justify-between">
<div class="flex-1">
<!--
<p class="text-sm font-medium text-indigo-600">
<a href="#" class="hover:underline">
Case Study
</a>
</p>
-->
<a href="#" class="block mt-2">
<h3 class="text-xl font-semibold text-gray-900">
{{ post.data.title }}
</h3>
<p class="mt-3 text-base text-gray-500">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Sint harum rerum voluptatem quo recusandae magni placeat saepe molestiae, sed excepturi cumque corporis perferendis hic.
{{ post.data.description }}
</p>
</a>
</div>
<div class="mt-6 flex items-center">
<div class="flex-shrink-0">
<a href="#">
<span class="sr-only">Daniela Metz</span>
<img class="h-10 w-10 rounded-full" src="https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
</a>
<div class="mt-6 flex justify-between">
<div class="text-sm text-gray-500">
<time datetime="{{ post.data.date.toISOString() }}">
{{ post.data.date.toDateString() }}
</time>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">
<a href="#" class="hover:underline">
Daniela Metz
</a>
</p>
<div class="flex space-x-1 text-sm text-gray-500">
<time datetime="2020-02-12">
Feb 12, 2020
</time>
<span aria-hidden="true">
&middot;
</span>
<span>
11 min read
</span>
</div>
<div class="text-sm text-gray-500">
<span>
{{ post.templateContent | emojiReadTime }}
</span>
</div>
</div>
</div>

View file

@ -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",

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

View file

@ -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)

13
package-lock.json generated
View file

@ -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",

View file

@ -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"