Skip to content

Commit 7cb8a09

Browse files
committed
fetch remote markdown, links page
1 parent ac33b5c commit 7cb8a09

File tree

14 files changed

+86
-11
lines changed

14 files changed

+86
-11
lines changed

docs/working-notes/todo2.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,12 @@ https://github.com/wanoo21/tailwind-astro-starting-blog
203203
// good blog design
204204
https://www.builder.io/blog/react-intersection-observer
205205

206+
// excellent resume page
207+
https://github.com/tjklint/tjklint.github.io
208+
209+
// next.js, good gradients and framer motion
210+
https://github.com/kristianka/kristiankahkonen.com
211+
206212
-----------
207213
za local state mora react ili solid
208214
for state between pages nanostore with localStorage

docs/working-notes/todo3.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,9 @@ ovo puca
491491
'/src/assets/images/all-images/*.{jpg}',
492492
ovo radi
493493
'/src/assets/images/all-images/*.jpg',
494-
495-
494+
----
495+
remote markdown
496+
not generating id="..." links href="#..."
497+
custom my-prose-links
496498
------------
497499
```

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"astro-embed": "^0.7.2",
3535
"astro-expressive-code": "^0.35.6",
3636
"astro-icon": "^1.1.0",
37+
"astro-remote": "^0.3.3",
3738
"astro-social-share": "^2.0.2",
3839
"class-variance-authority": "^0.7.0",
3940
"clsx": "^2.1.1",

src/components/PostCard.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { getPublishedOrUpdatedDate } from '@/modules/common';
66
import { getCategoryProps } from '@/modules/post/category';
77
import Link from '@/components/Link.astro';
88
import TagList from '@/components/TagList.astro';
9-
import { draftText } from '@/constants/data';
9+
import { DRAFT_TEXT } from '@/constants/data';
1010
import { IMAGE_SIZES } from '@/constants/image';
1111
import { ROUTES } from '@/constants/routes';
1212
import { setTransitionSlug, TRANSITION_ELEMENT_IDS } from '@/constants/transitions';
@@ -105,7 +105,7 @@ const getTransitionNameFromElementId = setTransitionSlug({ pageSlug: slug });
105105
>
106106
<Link href={`${ROUTES.BLOG}${slug}`} variant="link-heading">
107107
{title}
108-
{draft && <sup class="text-sm text-red-500 ml-1">{draftText}</sup>}
108+
{draft && <sup class="text-sm text-red-500 ml-1">{DRAFT_TEXT}</sup>}
109109
</Link>
110110
</h2>
111111

src/components/PostCardMore.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { Image } from 'astro:assets';
33
44
import Link from '@/components/Link.astro';
5-
import { draftText } from '@/constants/data';
5+
import { DRAFT_TEXT } from '@/constants/data';
66
import { IMAGE_SIZES } from '@/constants/image';
77
import { ROUTES } from '@/constants/routes';
88
@@ -27,7 +27,7 @@ const { title, heroImage, heroAlt, description, draft } = data;
2727
<h4 class="b-h4 break-words line-clamp-2 mt-3 mb-2">
2828
<Link variant="link-heading" href={`${ROUTES.BLOG}${slug}`}>
2929
{title}
30-
{draft && <sup class="text-sm text-red-500 ml-1">{draftText}</sup>}
30+
{draft && <sup class="text-sm text-red-500 ml-1">{DRAFT_TEXT}</sup>}
3131
</Link>
3232
</h4>
3333
{description && <p class="text-base text-captions line-clamp-2">{description}</p>}

src/components/PostCardSmall.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Image } from 'astro:assets';
44
55
import { getPublishedOrUpdatedDate } from '@/modules/common';
66
import Link from '@/components/Link.astro';
7-
import { draftText } from '@/constants/data';
7+
import { DRAFT_TEXT } from '@/constants/data';
88
import { IMAGE_SIZES } from '@/constants/image';
99
import { ROUTES } from '@/constants/routes';
1010
import { setTransitionSlug, TRANSITION_ELEMENT_IDS } from '@/constants/transitions';
@@ -55,7 +55,7 @@ const getTransitionNameFromElementId = setTransitionSlug({ pageSlug: slug });
5555
})}
5656
>
5757
<Link variant="link-heading" href={`${ROUTES.BLOG}${slug}`}>
58-
{draft && <sup class="text-sm text-red-500 mr-1">{draftText}</sup>}
58+
{draft && <sup class="text-sm text-red-500 mr-1">{DRAFT_TEXT}</sup>}
5959
{title}
6060
</Link>
6161
</h4>

src/constants/data.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
export const draftText = '(draft)';
1+
export const DRAFT_TEXT = '(draft)';
2+
3+
export const BOOKMARKS_README_URL =
4+
'https://raw.githubusercontent.com/nemanjam/bookmarks/main/README.md';

src/constants/metadata.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ export const PAGE_METADATA = {
5454
title: 'Projects',
5555
description: 'Ad duis incididunt reprehenderit elit in enim amet dolor.',
5656
},
57+
'lists/links': {
58+
title: 'Links',
59+
},
5760
} as const;
5861

5962
export type PageMetadataKey = keyof typeof PAGE_METADATA;

src/constants/navigation.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ export const NAVIGATION_ITEMS = [
3131
path: ROUTES.GALLERY,
3232
},
3333
// {
34+
// title: 'Links',
35+
// path: ROUTES.LINKS,
36+
// },
37+
// {
3438
// title: 'Resume',
3539
// path: ROUTES.RESUME,
3640
// },

src/constants/routes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const ROUTES = {
1616
EXPLORE_CATEGORIES: '/blog/explore/categories/',
1717
DESIGN: '/design/',
1818
GALLERY: '/gallery/',
19+
LINKS: '/links/',
1920
/** maybe in future */
2021
DRAFTS: '/drafts/',
2122
_404: '/404/',

0 commit comments

Comments
 (0)