Skip to content

Instantly share code, notes, and snippets.

@philipn
Last active December 15, 2015 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philipn/5241282 to your computer and use it in GitHub Desktop.
Save philipn/5241282 to your computer and use it in GitHub Desktop.
Custom CSS upgrade for LocalWiki platform v0.5

If you've customized your CSS or otherwise altered your site/base.html template you'll want to do the following:

Back up your old base.html template:

sudo cp /usr/share/localwiki/templates/site/base.html ~/base.html.bak

Now just remove the base.html template:

sudo rm /usr/share/localwiki/templates/site/base.html

You'll then want to follow the instructions for customizing the CSS:

https://localwiki.readthedocs.org/en/latest/customizing.html#example-2-adding-a-custom-css-file-on-every-page

The only difference now is that we make the CSS-specific changes in a new site/extra_media.html template rather than adding them directly into base.html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment