5

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.

you are viewing a single comment's thread
view the rest of the comments
[-] smolgumball@lemmy.world 2 points 3 years ago

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.

[-] key@lemmy.keychat.org 1 points 3 years ago* (last edited 3 years 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.

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

Selfhosted

60831 readers
917 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:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

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

Questions? DM the mods!

founded 3 years ago
MODERATORS