From c5c5639043420aa58bc0c48609f056271a9b7916 Mon Sep 17 00:00:00 2001 From: nikurasu Date: Sat, 15 Oct 2022 21:13:48 +0200 Subject: [PATCH] Links awakening --- config/config.yml | 5 ++++- src/index.js | 4 ++-- src/views/index.ejs | 4 +++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/config/config.yml b/config/config.yml index 7ffc603..465228a 100644 --- a/config/config.yml +++ b/config/config.yml @@ -4,4 +4,7 @@ links: - text: "YouTube" # text on the link hyperlink: "Test" # the actual hyperlink brandcolor: "youtube" # set this if you want to set the color of the link to the brand color of a platform... - color: "#0D0D0D" # or that if you want to set it to an exact color \ No newline at end of file + color: "#0D0D0D" # or that if you want to set it to an exact color + - text: "Twitter" + hyperlink: "test" + brandcolor: "twitter" \ No newline at end of file diff --git a/src/index.js b/src/index.js index aeb842c..83a64c8 100644 --- a/src/index.js +++ b/src/index.js @@ -15,10 +15,10 @@ app.use(express.static('src/assets')) app.get('/', (req, res) => { let config = yaml.load(fs.readFileSync('config/config.yml'), 'utf8') - console.log(JSON.stringify(config)) res.render('index', { name: config.name, - filenameProfilePic: config.profilePic ? config.profilePic : 'profilepic.jpg' + filenameProfilePic: config.profilePic ? config.profilePic : 'profilepic.jpg', + links: config.links }) }) diff --git a/src/views/index.ejs b/src/views/index.ejs index bbde93a..0918a79 100644 --- a/src/views/index.ejs +++ b/src/views/index.ejs @@ -8,7 +8,9 @@

<%= name %>

<%- include('partials/footer') %> \ No newline at end of file