Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

static_dir.md 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Static Directory
  2. Static frontend files are shipped in `priv/static/` and tracked by version control in this repository. If you want to overwrite or update these without the possibility of merge conflicts, you can write your custom versions to `instance/static/`.
  3. ```
  4. config :pleroma, :instance,
  5. static_dir: "instance/static/",
  6. ```
  7. For example, edit `instance/static/instance/panel.html` .
  8. Alternatively, you can overwrite this value in your configuration to use a different static instance directory.
  9. This document is written assuming `instance/static/`.
  10. Or, if you want to manage your custom file in git repository, basically remove the `instance/` entry from `.gitignore`.
  11. ## robots.txt
  12. By default, the `robots.txt` that ships in `priv/static/` is permissive. It allows well-behaved search engines to index all of your instance's URIs.
  13. If you want to generate a restrictive `robots.txt`, you can run the following mix task. The generated `robots.txt` will be written in your instance static directory.
  14. ```
  15. mix pleroma.robots_txt disallow_all
  16. ```
  17. ## Thumbnail
  18. Put on `instance/static/instance/thumbnail.jpeg` with your selfie or other neat picture. It will appear in [Pleroma Instances](http://distsn.org/pleroma-instances.html).
  19. ## Instance-specific panel
  20. ![instance-specific panel demo](/uploads/296b19ec806b130e0b49b16bfe29ce8a/image.png)
  21. Create and Edit your file on `instance/static/instance/panel.html`.
  22. ## Background
  23. You can change the background of your Pleroma instance by uploading it to `instance/static/`, and then changing `background` in `config/prod.secret.exs` accordingly.
  24. If you put `instance/static/images/background.jpg`
  25. ```
  26. config :pleroma, :frontend_configurations,
  27. pleroma_fe: %{
  28. background: "/images/background.jpg"
  29. }
  30. ```
  31. ## Logo
  32. ![logo modification demo](/uploads/c70b14de60fa74245e7f0dcfa695ebff/image.png)
  33. If you want to give a brand to your instance, You can change the logo of your instance by uploading it to `instance/static/`.
  34. Alternatively, you can specify the path with config.
  35. If you put `instance/static/static/mylogo-file.png`
  36. ```
  37. config :pleroma, :frontend_configurations,
  38. pleroma_fe: %{
  39. logo: "/static/mylogo-file.png"
  40. }
  41. ```
  42. ## Terms of Service
  43. Terms of Service will be shown to all users on the registration page. It's the best place where to write down the rules for your instance. You can modify the rules by changing `instance/static/static/terms-of-service.html`.