1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Server: Added links to social networks

This commit is contained in:
Laurent Cozic
2025-03-18 16:09:52 +00:00
parent d40c9d3ff9
commit 04fc634092
2 changed files with 55 additions and 0 deletions

View File

@@ -22,6 +22,44 @@ function setupMessageHtml() {
}
}
// Note: Take the list from `packages/doc-builder/docusaurus.config.js`
const socialFeeds = () => {
return [
{
label: 'Bluesky',
href: 'https://bsky.app/profile/joplinapp.bsky.social',
},
{
label: 'Patreon',
href: 'https://www.patreon.com/joplin',
},
{
label: 'YouTube',
href: 'https://www.youtube.com/@joplinapp',
},
{
label: 'LinkedIn',
href: 'https://www.linkedin.com/company/joplin',
},
{
label: 'Discord',
href: 'https://discord.gg/VSj7AFHvpq',
},
{
label: 'Mastodon',
href: 'https://mastodon.social/@joplinapp',
},
{
label: 'Lemmy',
href: 'https://sopuli.xyz/c/joplinapp',
},
{
label: 'GitHub',
href: 'https://github.com/laurent22/joplin/',
},
];
};
router.get('home', async (_path: SubPath, ctx: AppContext) => {
contextSessionId(ctx);
@@ -79,6 +117,7 @@ router.get('home', async (_path: SubPath, ctx: AppContext) => {
betaExpiredDays: betaUserTrialPeriodDays(user.created_time, 0, 0),
betaStartSubUrl: betaStartSubUrl(user.email, user.account_type),
setupMessageHtml: setupMessageHtml(),
socialFeeds: socialFeeds(),
};
view.cssFiles = ['index/home'];

View File

@@ -38,3 +38,19 @@
<a href="{{{global.baseUrl}}}/upgrade" class="upgrade-button">Upgrade to a Pro account</a> to collaborate on notebooks with other people, to increase the max note size, or the max total size.
</p>
{{/showUpgradeProButton}}
<h2 class="title">Follow us on social media</h2>
<p class="block">Get the latest updates about {{global.appName}} on our social feeds!</p>
<table class="table is-hoverable user-props-table">
<tbody>
{{#socialFeeds}}
<tr>
<td>
<strong><a target="_blank" href="{{href}}">{{label}}</a></strong>
</td>
</tr>
{{/socialFeeds}}
</tbody>
</table>