From b8984694e3c9bbaf0f3f9bb564027642fbd3d598 Mon Sep 17 00:00:00 2001 From: Dan Jones Date: Sun, 1 Jan 2023 16:46:05 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AC=20Add=20more=20links?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compile.js | 5 +++++ config.toml | 46 +++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 50 insertions(+), 1 deletion(-) diff --git a/compile.js b/compile.js index 2f1d073..e72e665 100644 --- a/compile.js +++ b/compile.js @@ -8,6 +8,11 @@ async function compile() { const confToml = await readFile(confPath, { encoding: 'utf8' }); const config = parse(confToml); + config.text = function () { + const string = this.icon; + return string.charAt(0).toUpperCase() + string.slice(1); + }; + const tempPath = resolve('./index.html'); const template = await readFile(tempPath, { encoding: 'utf8' }); diff --git a/config.toml b/config.toml index e1729cd..27e9475 100644 --- a/config.toml +++ b/config.toml @@ -8,6 +8,50 @@ url = "https://fosstodon.org/@danjones000" [[links]] icon = "blog" +la = "las" text = "Dan's Musings" url = "https://goodevilgenius.org" -la = "las" \ No newline at end of file + +[[links]] +icon = "swatchbook" +la = "las" +text = "Résumé" +url = "https://danielrayjones.com/" + +[[links]] +icon = "code-branch" +la = "las" +text = "Codeberg" +url = "https://codeberg.org/danjones000/" + +[[links]] +icon = "gitlab" +url = "https://gitlab.com/danjones000" + +[[links]] +icon = "github" +url = "https://github.com/goodevilgenius" + +[[links]] +icon = "linkedin" +text = "LinkedIn" +url = "https://www.linkedin.com/in/DanJones000/" + +[[links]] +icon = "goodreads" +url = "https://www.goodreads.com/user/show/2404213-dan-jones" + +[[links]] +icon = "lastfm" +text = "Last.FM" +url = "https://www.last.fm/user/dan000" + +[[links]] +icon = "telegram" +url = "https://t.me/danjones" + +[[links]] +icon = "at" +la = "las" +text = "Email" +url = "mailto:danjones@goodevilgenius.org"