Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.31 KB

landing-page-template.md

File metadata and controls

46 lines (30 loc) · 1.31 KB

Landing page template

Landing page templates live in lib/smart_answer_flows/<flow-name>/<flow-name-with-underscores>.govspeak.erb.

Content types

The templates can contain content for any of the following keys:

title(text)

  • text argument is a String
  • Used as the heading (currently "h1")

meta_description(text)

body(govspeak)

  • govspeak argument is a String in Govspeak format
  • Used to generate the main content (appearing above the start button)

post_body(govspeak)

  • govspeak argument is a String in Govspeak format
  • Used to generate supplementary content (appearing below the start button)

Example

<% content_for :title do %>
  Look up Meursing code
<% end %>

<% content_for :meta_description do %>
  Look up the additional code (Meursing code) required for import or export of goods containing certain types of milk and sugars
<% end %>

<% content_for :body do %>
  Use this tool to look up the additional code (Meursing code) for import or export of goods containing certain types of milk and sugars covered Regulation (EC) No. 1216/09.
<% end %>