From 83e4003b1549d8bbd1ffc066ad74b76be693ec1d Mon Sep 17 00:00:00 2001 From: nikurasu Date: Fri, 5 May 2023 12:29:28 +0200 Subject: [PATCH] Added image, description, site name metadata --- assets/config/config.yml.example | 1 + dev/docker/stacks/dev/docker-entrypoint.sh | 1 + src/index.js | 4 +++- src/views/partials/head.ejs | 4 ++++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/assets/config/config.yml.example b/assets/config/config.yml.example index 8b64954..87c3e88 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 +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 links: # the links to your social accounts diff --git a/dev/docker/stacks/dev/docker-entrypoint.sh b/dev/docker/stacks/dev/docker-entrypoint.sh index 1e7532a..9e48d2a 100644 --- a/dev/docker/stacks/dev/docker-entrypoint.sh +++ b/dev/docker/stacks/dev/docker-entrypoint.sh @@ -1,3 +1,4 @@ cd /app yarn +yarn build yarn dev \ No newline at end of file diff --git a/src/index.js b/src/index.js index aec9fa5..6df10c7 100644 --- a/src/index.js +++ b/src/index.js @@ -29,7 +29,9 @@ app.get('/', (req, res) => { smallLinks: config.smallLinks, theme: config.theme, roundPB: config.roundPB, - customMainPartialThemes: customMainPartialThemes + customMainPartialThemes: customMainPartialThemes, + metaDescription: config.summaryText ? config.summaryText: config.links.map(link => link.text).join(' | '), + siteName: config.siteName ? config.siteName : "SocialTree" }) }) diff --git a/src/views/partials/head.ejs b/src/views/partials/head.ejs index bebef90..deef4f5 100644 --- a/src/views/partials/head.ejs +++ b/src/views/partials/head.ejs @@ -10,4 +10,8 @@ <% if(roundPB) { %> <% } %> + <%= name %> - SocialTree + + +