Progress on index
This commit is contained in:
		
							parent
							
								
									06850a655f
								
							
						
					
					
						commit
						f6b1ab7d48
					
				
					 7 changed files with 40 additions and 40 deletions
				
			
		|  | @ -1,5 +1,8 @@ | ||||||
|  | const emojiReadTime = require("@11tyrocks/eleventy-plugin-emoji-readtime"); | ||||||
|  | 
 | ||||||
| module.exports = function(eleventyConfig) { | module.exports = function(eleventyConfig) { | ||||||
|   eleventyConfig.addPassthroughCopy("./content/images"); |   eleventyConfig.addPassthroughCopy("./content/images"); | ||||||
|  |   eleventyConfig.addPlugin(emojiReadTime); | ||||||
| 
 | 
 | ||||||
|   return { |   return { | ||||||
|     htmlTemplateEngine: "njk", |     htmlTemplateEngine: "njk", | ||||||
|  |  | ||||||
|  | @ -1,14 +1,9 @@ | ||||||
| ---js | --- | ||||||
| { | pagination: | ||||||
|   pagination: { |   data: collections.all | ||||||
|     data: "collections.all", |   size: 9 | ||||||
|     size: 5, |   alias: posts | ||||||
|     alias: "posts", |   reverse: true | ||||||
|     before: function(posts) { |  | ||||||
|       return posts.sort((postA, postB) => new Date(postB.date) - new Date(postA.date)); |  | ||||||
|     }, |  | ||||||
|   }, |  | ||||||
| } |  | ||||||
| --- | --- | ||||||
| <!doctype html> | <!doctype html> | ||||||
| <html lang="en"> | <html lang="en"> | ||||||
|  | @ -32,48 +27,36 @@ | ||||||
|           {%- for post in posts -%} |           {%- for post in posts -%} | ||||||
|             <div class="flex flex-col rounded-lg shadow-lg overflow-hidden"> |             <div class="flex flex-col rounded-lg shadow-lg overflow-hidden"> | ||||||
|               <div class="flex-shrink-0"> |               <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> | ||||||
|               <div class="flex-1 bg-white p-6 flex flex-col justify-between"> |               <div class="flex-1 bg-white p-6 flex flex-col justify-between"> | ||||||
|                 <div class="flex-1"> |                 <div class="flex-1"> | ||||||
|  |                   <!-- | ||||||
|                   <p class="text-sm font-medium text-indigo-600"> |                   <p class="text-sm font-medium text-indigo-600"> | ||||||
|                     <a href="#" class="hover:underline"> |                     <a href="#" class="hover:underline"> | ||||||
|                       Case Study |                       Case Study | ||||||
|                     </a> |                     </a> | ||||||
|                   </p> |                   </p> | ||||||
|  |                   --> | ||||||
|                   <a href="#" class="block mt-2"> |                   <a href="#" class="block mt-2"> | ||||||
|                     <h3 class="text-xl font-semibold text-gray-900"> |                     <h3 class="text-xl font-semibold text-gray-900"> | ||||||
|                       {{ post.data.title }} |                       {{ post.data.title }} | ||||||
|                     </h3> |                     </h3> | ||||||
|                     <p class="mt-3 text-base text-gray-500"> |                     <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> |                     </p> | ||||||
|                   </a> |                   </a> | ||||||
|                 </div> |                 </div> | ||||||
|                 <div class="mt-6 flex items-center"> |                 <div class="mt-6 flex justify-between"> | ||||||
|                   <div class="flex-shrink-0"> |                   <div class="text-sm text-gray-500"> | ||||||
|                     <a href="#"> |                     <time datetime="{{ post.data.date.toISOString() }}"> | ||||||
|                       <span class="sr-only">Daniela Metz</span> |                       {{ post.data.date.toDateString() }} | ||||||
|                       <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> |  | ||||||
|                   <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> |                     </time> | ||||||
|                       <span aria-hidden="true"> |  | ||||||
|                         · |  | ||||||
|                       </span> |  | ||||||
|                       <span> |  | ||||||
|                         11 min read |  | ||||||
|                       </span> |  | ||||||
|                   </div> |                   </div> | ||||||
|  |                   <div class="text-sm text-gray-500"> | ||||||
|  |                     <span> | ||||||
|  |                       {{ post.templateContent | emojiReadTime }} | ||||||
|  |                     </span> | ||||||
|                   </div> |                   </div> | ||||||
|                 </div> |                 </div> | ||||||
|               </div> |               </div> | ||||||
|  |  | ||||||
							
								
								
									
										2
									
								
								content/.obsidian/workspace
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								content/.obsidian/workspace
									
										
									
									
										vendored
									
									
								
							|  | @ -90,8 +90,8 @@ | ||||||
|   "active": "a8e90712c1fef449", |   "active": "a8e90712c1fef449", | ||||||
|   "lastOpenFiles": [ |   "lastOpenFiles": [ | ||||||
|     "index.md", |     "index.md", | ||||||
|     "posts/austin-givecamp-2019.md", |  | ||||||
|     "posts/allovue.md", |     "posts/allovue.md", | ||||||
|  |     "posts/austin-givecamp-2019.md", | ||||||
|     "posts/a_modern_terminal_workflow_3.md", |     "posts/a_modern_terminal_workflow_3.md", | ||||||
|     "posts/deving_on_linux_is_fun.md", |     "posts/deving_on_linux_is_fun.md", | ||||||
|     "posts/coming-out-again-nb.md", |     "posts/coming-out-again-nb.md", | ||||||
|  |  | ||||||
							
								
								
									
										
											BIN
										
									
								
								content/images/default-thumb.png
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								content/images/default-thumb.png
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 1 KiB | 
|  | @ -5,9 +5,9 @@ title: Gaiety's Life | ||||||
| --- | --- | ||||||
| 
 | 
 | ||||||
| # 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. | 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
									
									
									
								
							
							
						
						
									
										13
									
								
								package-lock.json
									
										
									
										generated
									
									
									
								
							|  | @ -10,6 +10,7 @@ | ||||||
|       "license": "The Unlicense", |       "license": "The Unlicense", | ||||||
|       "devDependencies": { |       "devDependencies": { | ||||||
|         "@11ty/eleventy": "^1.0.0", |         "@11ty/eleventy": "^1.0.0", | ||||||
|  |         "@11tyrocks/eleventy-plugin-emoji-readtime": "^1.0.1", | ||||||
|         "@tailwindcss/typography": "^0.5.0", |         "@tailwindcss/typography": "^0.5.0", | ||||||
|         "concurrently": "^7.0.0", |         "concurrently": "^7.0.0", | ||||||
|         "tailwindcss": "^3.0.12" |         "tailwindcss": "^3.0.12" | ||||||
|  | @ -71,6 +72,12 @@ | ||||||
|         "url": "https://opencollective.com/11ty" |         "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": { |     "node_modules/@babel/code-frame": { | ||||||
|       "version": "7.16.7", |       "version": "7.16.7", | ||||||
|       "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz", |       "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz", | ||||||
|  | @ -4693,6 +4700,12 @@ | ||||||
|         "slugify": "^1.6.5" |         "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": { |     "@babel/code-frame": { | ||||||
|       "version": "7.16.7", |       "version": "7.16.7", | ||||||
|       "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz", |       "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz", | ||||||
|  |  | ||||||
|  | @ -27,6 +27,7 @@ | ||||||
|   "homepage": "https://gitlab.com/gaiety/gaiety-life#readme", |   "homepage": "https://gitlab.com/gaiety/gaiety-life#readme", | ||||||
|   "devDependencies": { |   "devDependencies": { | ||||||
|     "@11ty/eleventy": "^1.0.0", |     "@11ty/eleventy": "^1.0.0", | ||||||
|  |     "@11tyrocks/eleventy-plugin-emoji-readtime": "^1.0.1", | ||||||
|     "@tailwindcss/typography": "^0.5.0", |     "@tailwindcss/typography": "^0.5.0", | ||||||
|     "concurrently": "^7.0.0", |     "concurrently": "^7.0.0", | ||||||
|     "tailwindcss": "^3.0.12" |     "tailwindcss": "^3.0.12" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Ava Gaiety Wroten
						Ava Gaiety Wroten