Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 1.11 KB

tips-and-tricks.md

File metadata and controls

44 lines (26 loc) · 1.11 KB

Tips and tricks

A few useful things to help you get started.

Update the Service name

You can change the service name by editing the file '/app/config.js'.

module.exports = {

  // Service name used in header. Eg: 'Renew your passport'
  serviceName: "Service name goes here",

};

Show navigation in the header

Remove the comments surrounding the unordered list with an ID of proposition links.

<nav id="proposition-menu">
  <a href="/" id="proposition-name">Service name</a>
  <!--
  <ul id="proposition-links">
    <li><a href="url-to-page-1" class="active">Navigation item #1</a></li>
    <li><a href="url-to-page-2">Navigation item #2</a></li>
  </ul>
  -->
</nav>

An example of this can be seen in the question-page.html template.

## Add a phase banner

Include either the alpha or beta phase banner from the app/views/includes/ folder.

How to include an Alpha banner

{% include "includes/phase_banner_alpha.html" %}

How to include a Beta banner

{% include "includes/phase_banner_beta.html" %}