Links awakening
This commit is contained in:
parent
2c826970e3
commit
c5c5639043
3 changed files with 9 additions and 4 deletions
|
@ -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
|
||||
color: "#0D0D0D" # or that if you want to set it to an exact color
|
||||
- text: "Twitter"
|
||||
hyperlink: "test"
|
||||
brandcolor: "twitter"
|
|
@ -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
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
@ -8,7 +8,9 @@
|
|||
<h1><%= name %></h1>
|
||||
</div>
|
||||
<div class="linkbox">
|
||||
|
||||
<% links.forEach(link => { %>
|
||||
<p>Hello World</p>
|
||||
<% }) %>
|
||||
</div>
|
||||
</div>
|
||||
<%- include('partials/footer') %>
|
Loading…
Reference in a new issue