💄 sorts blogposts by newest + colorchange of link
This commit is contained in:
		
							parent
							
								
									2e4f885f33
								
							
						
					
					
						commit
						185f93df73
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -7,7 +7,7 @@ import { getCollection } from 'astro:content';
 | 
				
			||||||
import FormattedDate from '../../components/FormattedDate.astro';
 | 
					import FormattedDate from '../../components/FormattedDate.astro';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const posts = (await getCollection('blog')).sort(
 | 
					const posts = (await getCollection('blog')).sort(
 | 
				
			||||||
	(a, b) => a.data.pubDate.valueOf() - b.data.pubDate.valueOf()
 | 
						(a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf()
 | 
				
			||||||
);
 | 
					);
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -28,8 +28,8 @@ const posts = (await getCollection('blog')).sort(
 | 
				
			||||||
				font-style: italic;
 | 
									font-style: italic;
 | 
				
			||||||
				color: #595959;
 | 
									color: #595959;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			ul li a:visited {
 | 
								ul li a {
 | 
				
			||||||
				color: #8e32dc;
 | 
									color: #815B5B;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		</style>
 | 
							</style>
 | 
				
			||||||
	</head>
 | 
						</head>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue