From e8a04b4f35b4d568c2f1588395cd68817ea39234 Mon Sep 17 00:00:00 2001 From: nikurasu Date: Fri, 5 May 2023 15:27:09 +0200 Subject: [PATCH] Add twitter card --- assets/config/config.yml.example | 1 + src/index.js | 1 + src/views/partials/head.ejs | 7 +++++++ 3 files changed, 9 insertions(+) diff --git a/assets/config/config.yml.example b/assets/config/config.yml.example index 87c3e88..507d93a 100644 --- a/assets/config/config.yml.example +++ b/assets/config/config.yml.example @@ -1,6 +1,7 @@ name: "Nikurasu" # The name on the linktree # summaryText: 'A simple sample text' # A short summary for what you do, will appear if uncommened # profilePic: # uncomment and set this if your profile pic has a custom name +url: "https://links.nikurasu.gay" # URL of your SocialTree siteName: 'NikuHost' # Name of the site visible in embeds, used for Link previews roundPB: false # Set true if you want a round profile picture theme: '98' # Your theme diff --git a/src/index.js b/src/index.js index 6df10c7..afe75f0 100644 --- a/src/index.js +++ b/src/index.js @@ -23,6 +23,7 @@ app.get('/', (req, res) => { let config = yaml.load(fs.readFileSync('assets/config/config.yml'), 'utf8') res.render('index', { name: config.name, + url: config.url, filenameProfilePic: config.profilePic ? config.profilePic : 'profilepic.jpg', summaryText: config.summaryText ? config.summaryText: '', links: config.links, diff --git a/src/views/partials/head.ejs b/src/views/partials/head.ejs index deef4f5..1a70fc7 100644 --- a/src/views/partials/head.ejs +++ b/src/views/partials/head.ejs @@ -11,7 +11,14 @@ <% } %> <%= name %> - SocialTree + + + + + + +