A simple(ish) in-depth(ish) guide to creating Template Themes for linkpen!
To begin, make sure you have cloned the repository. This guide assumes you have already done so.
Create a new folder in /public/templates
. Name it something in line with your theme name, but make sure you use no spaces.
Example: dark mocha
folder name becomes dark_mocha
or dark-mocha
(we prefer snake case, though).
Inside this folder you need an index.ejs
file, for your themes layout, and a style.css
file for your CSS styling.
Your folder should have the following layout:
my-template/
├── template.ejs
└── style.css
After you’ve created your template’s folder, you will need to modify the config
file at public/templates/config.json
to refister it.
{
"default": {
"name": "Catppuccin Frappé (Default)",
"author": "Linkpen Dev team",
"description": "😸 Soothing pastel theme for the high-spirited!"
},
"your_theme": {
"name": "yourTheme",
"author": "You :)",
"description": "Wow, a description."
}
}
*replace your_theme
with your template’s folder name and fill in the details according to your theme.
Image for reference, using the Default template shown above: