From adf1493fb528d08e835cde0c6eb1af70a6d87b6d Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 28 Jun 2018 16:06:04 +0100 Subject: [PATCH] Add guidance about horizontal lines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We’ve supported this for a while but don’t tell anyone how to do it. This commit also alters the spacing of things so the description groups better with the example. --- .../templates/guidance-formatting.html | 26 ++++++++++++++----- .../partials/templates/guidance-links.html | 2 +- .../templates/guidance-optional-content.html | 2 +- .../templates/guidance-personalisation.html | 2 +- 4 files changed, 23 insertions(+), 9 deletions(-) diff --git a/app/templates/partials/templates/guidance-formatting.html b/app/templates/partials/templates/guidance-formatting.html index c17fbb452..1bfa35150 100644 --- a/app/templates/partials/templates/guidance-formatting.html +++ b/app/templates/partials/templates/guidance-formatting.html @@ -1,27 +1,41 @@

Formatting

-

+

To put a title in your template, use a hash:

-
+

# This is a title

-

+

To make bullet points, use asterisks:

-
+

* point 1
* point 2
* point 3

-

+

To add a callout, use a caret:

-
+

^ You must tell us if your circumstances change

+

+ To add a horizontal line, use three dashes: +

+
+

+ First paragraph +

+

+ --- +

+

+ Second paragraph +

+
diff --git a/app/templates/partials/templates/guidance-links.html b/app/templates/partials/templates/guidance-links.html index 34ff7cf82..70c78d852 100644 --- a/app/templates/partials/templates/guidance-links.html +++ b/app/templates/partials/templates/guidance-links.html @@ -1,5 +1,5 @@

Links and URLs

-

+

Always use full URLs, starting with https://

diff --git a/app/templates/partials/templates/guidance-optional-content.html b/app/templates/partials/templates/guidance-optional-content.html index 0d8b19ca6..7303ee7a9 100644 --- a/app/templates/partials/templates/guidance-optional-content.html +++ b/app/templates/partials/templates/guidance-optional-content.html @@ -4,7 +4,7 @@

Use double brackets and ‘??’ to define optional content.

-

+

For example if you only want to show something to people who are under 18:

diff --git a/app/templates/partials/templates/guidance-personalisation.html b/app/templates/partials/templates/guidance-personalisation.html index bc3c44d91..247792d22 100644 --- a/app/templates/partials/templates/guidance-personalisation.html +++ b/app/templates/partials/templates/guidance-personalisation.html @@ -1,7 +1,7 @@

Personalisation

-

+

Use double brackets to personalise your message: