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