diff --git a/.eleventy.js b/.eleventy.js index 9b5836c..90cee04 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -12,7 +12,7 @@ module.exports = function (eleventyConfig) { if (lang && hljs.getLanguage(lang)) try { return hljs.highlight(str, { language: lang }).value - } catch (__) {} + } catch (__) { } return '' }, @@ -79,6 +79,10 @@ module.exports = function (eleventyConfig) { return markdownIt.render(text) }) + eleventyConfig.addFilter('renderMarkdownInline', (text) => { + return markdownIt.renderInline(text) + }) + eleventyConfig.addFilter('featuredDate', (string) => { let date = new Date(string) return date.toLocaleDateString('en-us', { diff --git a/src/_data/contact.json b/src/_data/contact.json new file mode 100644 index 0000000..0048137 --- /dev/null +++ b/src/_data/contact.json @@ -0,0 +1,54 @@ +{ + "title": "Contacts", + "desc": "Get in touch with me", + "summary": "**Hi There! how is your day?** I hope you have ==a fantastic=={.highlight} one. **If you are a recruiter**, please check my resume [in here](/assets/Curriculum%20Vitae.pdf){lang=en target=_blank}[EN] / [or here](/assets/Curriculum%20Vitae%20-%20ID.pdf){lang=id target=_blank}[ID] otherwise you can contact me via these methods", + "mainSocials": [ + { + "name": "via. e-mail", + "desc": "mailto:contact@emptywork.my.id", + "action": "mailto:contact@emptywork.my.id", + "target": "_blank", + "svg": "email.njk" + }, + { + "name": "via. chat", + "target": "_blank", + "svg": "chat.njk" + } + ], + "socials": [ + { + "name": "x / twitter", + "action": "", + "target": "" + }, + { + "name": "linkedin", + "action": "https://linkedin.com/in/stevarth-hoke/", + "target": "_blank" + }, + { + "name": "youtube", + "action": "", + "target": "", + "hidden": true + }, + { + "name": "odysee", + "action": "", + "target": "", + "hidden": true + }, + { + "name": "reddit", + "action": "", + "target": "", + "hidden": true + }, + { + "name": "discord", + "action": "", + "target": "" + } + ] +} diff --git a/src/_includes/components/snippets/social-items.njk b/src/_includes/components/snippets/social-items.njk new file mode 100644 index 0000000..2f05d1e --- /dev/null +++ b/src/_includes/components/snippets/social-items.njk @@ -0,0 +1,14 @@ + +
+

+ {{ social.name }} +

+ {% if social.desc %} + {{ social.desc }} + {% endif %} +
+ {% if social.svg %} + {% include 'components/svg/' + social.svg %} + {% endif %} +
\ No newline at end of file diff --git a/src/_includes/components/svg/chat.njk b/src/_includes/components/svg/chat.njk new file mode 100644 index 0000000..bb90807 --- /dev/null +++ b/src/_includes/components/svg/chat.njk @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/src/_includes/components/svg/email.njk b/src/_includes/components/svg/email.njk new file mode 100644 index 0000000..67b0d56 --- /dev/null +++ b/src/_includes/components/svg/email.njk @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/src/_includes/sections/about.njk b/src/_includes/sections/about.njk index 0d2c8e7..28eee87 100644 --- a/src/_includes/sections/about.njk +++ b/src/_includes/sections/about.njk @@ -49,11 +49,11 @@

- {{ about.bioHeader | renderMarkdown | safe }} + {{ about.bioHeader | renderMarkdownInline | safe }}

{% for bio in about.bio %} - {{ bio | renderMarkdown | safe }} + {{ bio | renderMarkdownInline | safe }} {% endfor %}
@@ -70,24 +70,23 @@
{% for proficient in about.languagesProficient %} - + {% endfor %}
diff --git a/src/_includes/sections/footer.njk b/src/_includes/sections/footer.njk index 52f7f9e..35785d7 100644 --- a/src/_includes/sections/footer.njk +++ b/src/_includes/sections/footer.njk @@ -1,7 +1,7 @@