Depending on your server, you might need to run the following commands with elevated permissions.
In each of the following commands, replace PICO_DIR with your Pico installation directory, e.g.
/var/www/localhost/htdocs/pico
.
Skip ahead for instructions pertaining to the Nextcloud integration.
-
Run this command from this directory:
$ cp -r themes/noir PICO_DIR/themes
-
Change the theme in your
config.yml
tonoir
.
-
Run the following commands from this directory:
$ rm -r PICO_DIR/themes/noir $ cp -r themes/noir PICO_DIR/themes
-
Run this command from this directory:
$ rm -r PICO_DIR/themes/noir
-
Change the theme in your
config.yml
.
If you want to add a list of blog posts to your page, use the blog-index
template. For blog posts,
use the blog-post
template. Check out the included sample content for an example.
Various aspects of the theme can be configured via a file named _theme.md
in your content
directory. See here for a complete example.
These instructions pertain only to the Nextcloud integration.
In each of the following commands, replace PICO_DIR with your Pico installation directory, e.g.
/var/nextcloud/data/appdata_asdf1234/cms_pico
.
-
Run this command from this directory:
$ cp -r themes/noir PICO_DIR/themes
-
In Nextcloud settings, go to Administration > Pico CMS and scroll down to the section labeled "Custom themes". Select "noir" from the dropdown menu and press the plus sign.
-
Still in Nextcloud settings, go to Personal > Pico CMS and select "noir" from the dropdown menu next to the name of your site.
-
Run this command from this directory:
$ rm -r PICO_DIR/themes/noir $ cp -r themes/noir PICO_DIR/themes
-
In Nextcloud settings, go to Administration > Pico CMS and scroll down to the section labeled "Custom themes". Press the "Reload custom theme" button next to "noir".
-
Run this command from this directory:
$ rm -r PICO_DIR/themes/noir
-
In Nextcloud settings, go to Administration > Pico CMS and scroll down to the section labeled "Custom themes". Press the "Delete custom theme" button next to "noir".
-
Still in Nextcloud settings, go to Personal > Pico CMS and select another theme from the dropdown menu next to the name of your site.