Commit f0bda846 authored by Eric Poirier's avatar Eric Poirier
Browse files

#12 - Add twitter link to jumbotron


Signed-off-by: Eric Poirier's avatarEric Poirier <eric.poirier@eclipse-foundation.org>
parent e843a6e8
<!--
Copyright (c) 2018 Eclipse Foundation, Inc.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0.
Contributors:
Christopher Guindon <chris.guindon@eclipse-foundation.org>
SPDX-License-Identifier: EPL-2.0
-->
{{ if isset .Page.Params "headline" }}
<div class="jumbotron featured-jumbotron margin-bottom-0">
<div class="container">
<div class="row">
<div class="{{- .Params.jumbotron_class | default .Site.Params.jumbotron_class | default "col-md-20 col-md-offset-2 col-sm-18 col-sm-offset-3"}}">
<h1>{{ .Page.Params.headline | title | safeHTML }}</h1>
{{ if isset .Page.Params "subtitle" }}
<h2>{{ .Page.Params.subtitle | title }}</h2>
{{end}}
{{ if isset .Page.Params "tagline" }}
<div class="row">
<div class="{{- .Params.jumbotron_tagline_class | default .Site.Params.jumbotron_tagline_class | default "col-sm-18 col-sm-offset-3"}}">
<p>{{ .Page.Params.tagline | safeHTML }}</p>
</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">
{{range $key,$val := index .Page.Params.links}}
<li><a class="{{ $.Scratch.Get "jumbotron_btn" }}" href="{{ (index $val 0).href}}">{{ (index $val 1).text}}</a></li>
{{end}}
</ul>
{{end}}
</div>
</div>
<div class="col-sm-8 col-sm-offset-16 featured-twitter-share">
<a target="_blank" href="https://twitter.com/Oniro_Project"><i class="fa fa-twitter" aria-hidden="true"></i> Follow us @Oniro_Project</a>
</div>
</div>
</div>
{{ end }}
\ No newline at end of file
......@@ -247,4 +247,19 @@
}
}
}
}
.featured-twitter-share {
padding: 0px 0 15px;
text-align: right;
font-size: 12px;
.fa {
font-size: 30px;
color: #1DA1F2;
top: 4px;
position: relative;
}
a:hover {
color: darken(white, 15%);
}
}
\ No newline at end of file
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