-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update readme and template documentation
- Loading branch information
Showing
3 changed files
with
23 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,27 @@ | ||
# Slimmer Templates | ||
|
||
## `gem_layout` | ||
|
||
This template uses the [public layout component] from the GOV.UK Publishing Components gem. It supplies the header and footer only - this includes the cookie banner, skip to content link, header bar, emergency banner, survery banner, global bar, feedback, and footer. The content is constrained and centred. | ||
|
||
## `gem_layout_full_width` | ||
|
||
This is the same as the `gem_layout` template, except that this layout **doesn't** constrain and centre the content to the same width as the GOV.UK header. | ||
|
||
Use this layout if you want to have full width content - such as the blue welcome bar on the GOV.UK homepage. | ||
|
||
## `core_layout` (default) | ||
|
||
This template contains styles for the black header bar, the footer and core | ||
layout classes. By default it will center your content to the same width as the | ||
GOV.UK header. It provides classes for grid layouts using the column mixins | ||
from the frontend toolkit. | ||
This template contains styles for the black header bar, the footer and core layout classes. By default it will centre your content to the same width as the GOV.UK header. It provides classes for grid layouts using the column mixins from the frontend toolkit. | ||
|
||
It is recommended that new applications use this template so they behave in a | ||
consistent way. | ||
This layout uses deprecated dependencies. | ||
|
||
## `header_footer_only` | ||
|
||
This template only contains styles for the black header bar and the footer of | ||
GOV.UK. | ||
This template only contains styles for the black header bar and the footer of GOV.UK. | ||
|
||
Use this layout if you want to explicitly control the full layout of your page including centering all the content. | ||
|
||
This layout uses deprecated dependencies. | ||
|
||
Use this layout if you want to explicitly control the full layout of your page | ||
including centering all the content. | ||
[public layout component]: https://components.publishing.service.gov.uk/component-guide/layout_for_public |