this post was submitted on 18 Jun 2023
5 points (77.8% liked)

Selfhosted

40220 readers
1259 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

I just used the tool linked here in the documentation to create a Bootstrap theme, but I can't find the folder they're referencing. I've used Ansible to install Lemmy, which is working fine, but I'm not really sure how to handle themes as a result. Do I place them somewhere in my Ansible stuff, or is there that directory somewhere on the server? I found the Docker /volumes/ folder, but the directory names were random strings and not labeled like they supposedly are at the link above.

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 year ago (1 children)

According to the docs, there should be a lemmy-ui folder that was created by the Ansible install. Within that folder, the app is set up to search for an extra_themes folder by default.

For native installation (without Docker), themes are loaded by lemmy-ui from ./extra_themes folder. A different path can be specified with LEMMY_UI_EXTRA_THEMES_FOLDER environment variable.

Digging into the docker-compose.yml file used by the Ansible playbook, it looks like this is where extra themes directory is mapped into the lemmy-ui service.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

That /app/ prefix was an annoyance to figure out when I was trying to get this working the other day. It's not super clear without digging into the docker. I didn't think to check ansible repo.

That env variable isn't really useful currently as there's a bug with where they build the full path differently in two spots. If you use it you'll probably experience themes showing up in the list but giving you the default theme when you try using it.

[–] [email protected] 1 points 1 year ago

It should be within /volumes (a few level deeper down) That's where it was for me. Try /srv/lemmy/your.domain/volumes

[–] [email protected] 1 points 1 year ago (1 children)

If you followed the guide to use Ansible, there should be a 'extra_themes' folder where you put the css file.

For example, my install is in: /srv/lemmy/feddiverse.org/volumes/lemmy-ui/extra_themes

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

This worked. Thanks! Turns out my bootstrap style looked like shit, but at least I know where to put things!

load more comments
view more: next ›