Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make a own template? #820

Open
GustelDE opened this issue Sep 26, 2024 · 2 comments
Open

How to make a own template? #820

GustelDE opened this issue Sep 26, 2024 · 2 comments

Comments

@GustelDE
Copy link

GustelDE commented Sep 26, 2024

LinkStack version

4.8.0

Description

I wanted to ask: I want to make a own, modified version of the "Sublime" theme. I downloaded the theme (zip-file from Github), renamed the folders and the name inside the read.me file and uploaded it under, lets say "newname-v1.0.zip".

But it shows up incorrectly, the version is displayed wrong, the preview-image is missing (but present in the zip) and all changes I made do not reflect...

How can I create a own theme? I dont want to edit the original Sublime-files, because I assume with the next update, all work is gone. Simply just locally, nothing on Github etc...

Details about your system

Docker-Version

How to reproduce

Downloaded a theme, edited and uploaded under new name.

Possible Solution

No response

Additional Context

No response

@lastsamurai26
Copy link
Member

can you share us your readme.md file ?
because linkstack is reading this file

@GustelDE
Copy link
Author

GustelDE commented Sep 28, 2024

Hi, I did it so, I searched for the volume of the Docker-Container and stopped the container. Then copied:
sudo cp -r /var/lib/docker/volumes/[name-of-contianer_data]/_data/themes/sublime/ /var/lib/docker/volumes/[name-of-contianer_data]/_data/themes/newtheme/

I edited then the readme.md in the newtheme-folder, changed Name, Author, Version, Date and removed the lines Theme Author URI and Source code. Then I started the container and it showed up correctly with the label "Update manually" in the theme-updater. Then I copied the preview-png from linux directly into the folder of the new theme.

I saw the owner/group was wrong and I executed:
sudo chown -R _apt:systemd-journal /var/lib/docker/volumes/[name-of-contianer_data]/_data/themes/newtheme/

_apt:systemd-journal was the default owner/group of all other folders of the Linkstack-volume. Not sure if this is just for my Ubuntu/Docker-version so or always. I would check it.

Now I was able to edit the files and make my changes as desired. An update of the original sublime-theme should not affect my newtheme (at least I hope so).

It seems the information from the readme.md are read only once? Or it was beacause some caching with my reverse-proxy?

Maybe you could describe in the documentation how to create a locally/offline-theme? It's not difficult, if you know how to. A empty "dummy-readme.md" would have saved me a few hours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants