diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-09-27 14:56:52 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-09-27 14:56:52 +0100 |
commit | b3fea58c6f9a29ec5fb428d82c25e3a82ac962af (patch) | |
tree | f7b79502c8bcbc158451c205944ee8d337750f8e /docs/customising/static-pages.md | |
parent | 371927debffc6bb42d8d86a90afc715d1d837e74 (diff) |
Move docs from gh-pages branch.
Diffstat (limited to 'docs/customising/static-pages.md')
-rw-r--r-- | docs/customising/static-pages.md | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/docs/customising/static-pages.md b/docs/customising/static-pages.md new file mode 100644 index 000000000..38ab02d60 --- /dev/null +++ b/docs/customising/static-pages.md @@ -0,0 +1,35 @@ +--- +layout: page +title: Adding static pages +--- + +# Adding static pages + +<p class="lead">How to add your own static pages to your installation.</p> + +If you wish to add a new static page to your site, then you can place a +template file, say `team.html`, in the `templates/web/cobrand/about/` +directory, where `cobrand` should be replaced with your cobrand name (as +explained in [customising FixMyStreet templates](../templates/)). + +The page will then be available to view at `/about/team` on your site. + +Have a look at the existing files in `templates/web/base/about/` for an idea +of the contents of a file – you need a header and a footer include, but other +than that the contents are up to you. + +If you want the page to be available in multiple languages, then name your file +`team-LANG.html` for each language and it will automatically be used. For +example, if your site is available in Welsh and French, you could have +`team-cy.html` and `team-fr.html` + +<hr> + +As a special case, if you create an `about/homepage.html` template file, then +it will be used as the front page of your site, and the normal front page will +instead be available at `/report`. + +<hr> + +If you wish to do more complex pages, or wish to then we recommend setting up +e.g. a WordPress installation running at a subdomain of your site. |