File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,13 @@ p The footer provides copyright, licensing and other information about your
51
51
code: footer_with_custom_copyright_and_licence,
52
52
data: footer_copyright_and_licence_arguments)
53
53
54
+ == render('/partials/example.*',
55
+ caption: "Footer with custom licence HTML",
56
+ code: footer_with_custom_licence_html) do
57
+
58
+ markdown :
59
+ The `meta_licence_html` slot allows replacing the licence information with any custom HTML.
60
+
54
61
== render('/partials/example.*',
55
62
caption: "Footer with navigation",
56
63
code: footer_with_navigation)
Original file line number Diff line number Diff line change @@ -66,6 +66,16 @@ def footer_copyright_and_licence_arguments
66
66
FOOTER_COPYRIGHT_AND_LICENCE
67
67
end
68
68
69
+ def footer_with_custom_licence_html
70
+ <<~FOOTER
71
+ = govuk_footer do |footer|
72
+ - footer.with_meta_licence_html do
73
+ |> Some custom HTML for the licence,
74
+ perhaps with a
75
+ = govuk_footer_link_to("link", "https://x-govuk.github.io/")
76
+ FOOTER
77
+ end
78
+
69
79
def footer_with_navigation
70
80
<<~FOOTER_WITH_NAVIGATION
71
81
= govuk_footer do |footer|
You can’t perform that action at this time.
0 commit comments