Added image, description, site name metadata
This commit is contained in:
parent
ed3de776b0
commit
83e4003b15
4 changed files with 9 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
name: "Nikurasu" # The name on the linktree
|
name: "Nikurasu" # The name on the linktree
|
||||||
# summaryText: 'A simple sample text' # A short summary for what you do, will appear if uncommened
|
# 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
|
# 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
|
roundPB: false # Set true if you want a round profile picture
|
||||||
theme: '98' # Your theme
|
theme: '98' # Your theme
|
||||||
links: # the links to your social accounts
|
links: # the links to your social accounts
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
cd /app
|
cd /app
|
||||||
yarn
|
yarn
|
||||||
|
yarn build
|
||||||
yarn dev
|
yarn dev
|
|
@ -29,7 +29,9 @@ app.get('/', (req, res) => {
|
||||||
smallLinks: config.smallLinks,
|
smallLinks: config.smallLinks,
|
||||||
theme: config.theme,
|
theme: config.theme,
|
||||||
roundPB: config.roundPB,
|
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"
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -10,4 +10,8 @@
|
||||||
<% if(roundPB) { %>
|
<% if(roundPB) { %>
|
||||||
<link rel="stylesheet" href="style/round-pb.css">
|
<link rel="stylesheet" href="style/round-pb.css">
|
||||||
<% } %>
|
<% } %>
|
||||||
|
<title><%= name %> - SocialTree</title>
|
||||||
|
<meta property="og:image" content="img/<%= filenameProfilePic %>">
|
||||||
|
<meta property="description" content="<%= metaDescription %>">
|
||||||
|
<meta property="og:site_name" content="<%= siteName %>">
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue