Unverified Commit 9f09ca6b authored by Yi (Flora) Liu's avatar Yi (Flora) Liu Committed by GitHub
Browse files

Add custom jumbotron params (#206)



* Add custom jumbotron params
Signed-off-by: Yi Liu's avatarYi Liu <yi.liu@eclipse-foundation.org>

* Add param to the doc and add example page
Signed-off-by: Yi Liu's avatarYi Liu <yi.liu@eclipse-foundation.org>

* move the custom_jumbotron inside default jumbotron
Signed-off-by: Yi Liu's avatarYi Liu <yi.liu@eclipse-foundation.org>
parent 5dbbb587
......@@ -53,6 +53,12 @@
weight = 7
parent = "examples"
[[main]]
name = "Custom Jumbotron"
url = "/custom-jumbotron/"
weight = 8
parent = "examples"
[[main]]
name = "Exemples de FAQ"
url = "/faq/"
......
---
title: "Custom Jumbotron"
headline: "Custom Jumbotron 2021"
subtitle: "An Custom Jumbotron Summit Event"
custom_jumbotron: "<h2 class=\"margin-top-10\">Guiding the Future of IDE Development</h2><p class=\"margin-top-20\">May 19, 2021 8AM-11AM PST (5PM-8PM CET)</p>"
date: 2021-03-07T08:00:00-24:00
hide_breadcrumb: true
summary: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed imperdiet tortor id rhoncus pulvinar. Suspendisse nec aliquam ante. Sed vel convallis ex, ac elementum nisi."
links: [[href: "#",text: "Call for Papers"]]
layout: single
---
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed imperdiet tortor id rhoncus pulvinar. Suspendisse nec aliquam ante. Sed vel convallis ex, ac elementum nisi. Nam eros lectus, tempus sit amet lorem at, laoreet blandit enim. Vestibulum metus justo, venenatis mollis ex quis, pretium ultricies orci. Pellentesque accumsan nulla ac leo convallis ornare. Cras rhoncus sapien lacus, vel tincidunt nibh lacinia ac. Vivamus vel egestas mi. Morbi nulla ante, rutrum quis congue non, luctus vehicula dui. Sed et nisi eu est egestas rhoncus.
\ No newline at end of file
......@@ -106,4 +106,14 @@ items:
name: show_collapsible_menu
description: Show collapsible menu for mobile view on this page if set to true, otherwise is ignored.
values:
- "true"
\ No newline at end of file
- "true"
-
name: custom_jumbotron
description: Optional custom_jumbotron that will be inserted after taglines, can include html tags. We recommend to not use taglines and custom_jumbotron at the same time.
values:
- Any string value
-
name: custom_jumbotron_class
description: Optional custom_jumbotron_class that will be used for custom_jumbotron.
values:
- Any string value
\ No newline at end of file
......@@ -143,4 +143,9 @@ items:
name: show_collapsible_menu
description: Show collapsible menu for mobile view on all pages if set to true, otherwise is ignored.
values:
- "true"
\ No newline at end of file
- "true"
-
name: custom_jumbotron_class
description: Optional custom_jumbotron_class that will be used for custom_jumbotron.
values:
- Any string value
\ No newline at end of file
......@@ -10,6 +10,7 @@
SPDX-License-Identifier: EPL-2.0
-->
{{ if isset .Page.Params "headline" }}
<div class="jumbotron featured-jumbotron margin-bottom-0">
<div class="container">
......@@ -27,6 +28,15 @@
</div>
</div>
{{end}}
{{ if isset .Page.Params "custom_jumbotron" }}
<div class="row">
<div class="{{- .Params.custom_jumbotron_class | default .Site.Params.custom_jumbotron_class | default "col-sm-18 col-sm-offset-3"}}">
{{ .Page.Params.custom_jumbotron | safeHTML }}
</div>
</div>
{{end}}
{{ if isset .Page.Params "links" }}
{{- with .Params.jumbotron_btn_class | default .Site.Params.jumbotron_btn_class | default "btn btn-primary"}}{{ $.Scratch.Set "jumbotron_btn" . }}{{end}}
<ul class="list-inline">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment