diff --git a/src/markdown/renderer-extension.ts b/src/markdown/renderer-extension.ts index 945d5b7..48a94e2 100644 --- a/src/markdown/renderer-extension.ts +++ b/src/markdown/renderer-extension.ts @@ -1,5 +1,3 @@ -import path from 'path' - export const renderer = { heading(text: string, level: string) { const escapedText = text.toLowerCase().replace(/[^\w]+/g, '-') @@ -14,15 +12,16 @@ export const renderer = { ` }, image(href: string, title: string, text: string) { - const file = path.parse(href) const figcaption = title ? `
${title}
` : '' + const isLocal = !href.startsWith('http') + const src = isLocal ? `${href}?nf_resize=fit&h=640&w=640` : href return `
- - - ${text} - + ${text} ${figcaption}
` diff --git a/src/routes/index.svelte b/src/routes/index.svelte index be77862..fd1cc18 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -4,6 +4,36 @@ // } + + Introduction @michalvankodev + + +
+
+ + + My profile + +
+ +

+ “Let your ambition carry you.” + - La Flame +

+
+ +

+ Hey, welcome to my personal website. My name is + Michal Vanko + and I'm a + programmer + . I'll try to share some stories and opinions about things that I'm interested + in. +

+ - - - Introduction @michalvankodev - - -
-
- - - My profile picture - -
- -

- “Let your ambition carry you.” - - La Flame -

-
- -

- Hey, welcome to my personal website. My name is - Michal Vanko - and I'm a - programmer - . I'll try to share some stories and opinions about things that I'm interested - in. -

diff --git a/static/images/profile-picture-portrait.jpg b/static/images/profile-picture-portrait.jpg new file mode 100644 index 0000000..8d54e28 --- /dev/null +++ b/static/images/profile-picture-portrait.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5cef9fdd821dcef26da2732168fbe2208e7fb408b14a09c593b76a0fe992ce2e +size 172102 diff --git a/static/images/profile-picture2.jpg b/static/images/profile-picture2.jpg new file mode 100644 index 0000000..7ae45df --- /dev/null +++ b/static/images/profile-picture2.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:47e06f9670a69a5796a4593c121cd85efa3ec7c9d3b2943e1d7202bba0fc1bd0 +size 131882