From 9acab09028c1b05a56e4f0ae770eb0758cb34047 Mon Sep 17 00:00:00 2001 From: crwdzr Date: Sat, 13 Jan 2024 17:23:38 -0600 Subject: [PATCH] refactor view more+rss+json into component --- src/components/Homepage/BlogLinks.astro | 10 ++---- .../Homepage/EmploymentStatus.astro | 5 ++- .../LayoutHelpers/SidebarChangelog.astro | 9 ++++-- .../LayoutHelpers/SidebarNews.astro | 13 +++++--- src/components/ViewMore.astro | 32 +++++++++++++++++++ src/styles/globals.css | 2 +- 6 files changed, 52 insertions(+), 19 deletions(-) create mode 100644 src/components/ViewMore.astro diff --git a/src/components/Homepage/BlogLinks.astro b/src/components/Homepage/BlogLinks.astro index 9ac3afd..f0bd9d7 100644 --- a/src/components/Homepage/BlogLinks.astro +++ b/src/components/Homepage/BlogLinks.astro @@ -1,5 +1,6 @@ --- import EmojiList from '../EmojiList.astro' +import ViewMore from '../ViewMore.astro' const links: [string, string, Date][] = [ ['Lorem ipsum dolor sit', '/blog/lorem', new Date()], @@ -34,12 +35,5 @@ const links: [string, string, Date][] = [ } -
- view more - - rss - {' • '} - json - -
+ diff --git a/src/components/Homepage/EmploymentStatus.astro b/src/components/Homepage/EmploymentStatus.astro index 9ddba3a..4fe027d 100644 --- a/src/components/Homepage/EmploymentStatus.astro +++ b/src/components/Homepage/EmploymentStatus.astro @@ -21,9 +21,8 @@ const lfw = 0 ) } - + +contact anyway