Commit 272a7398 authored by Baptiste MOINE's avatar Baptiste MOINE 🐼

Add social links + image on homepage

parent 6446b2c3
Pipeline #54880330 (#3) passed with stages
in 34 seconds
......@@ -18,6 +18,7 @@ enableGitInfo = false
# Logo
logo = "logo.png"
home_image = "cyberpilots.png"
subtitle = "Europ'Raid 2019"
......@@ -37,24 +38,42 @@ enableGitInfo = false
# How many posts to show on the sidebar (Default: 5)
num_recent_posts = 5
[params.social]
# twitter handle for the site (ideally not a person, eg: nytimes, flickr, etc)
twitter = "Cyber_Pilots"
facebook = "Cyber_Pilots"
instagram = "Cyber_Pilots"
email = "cyberpilots.europraid@gmail.com"
[[menu.sidebar_social]]
name = "Twitter"
url = "https://twitter.com/Cyber_Pilots"
weight = 1
[[menu.sidebar_social]]
name = "Instagram"
url = "https://www.instagram.com/Cyber_Pilots"
weight = 2
[[menu.sidebar_social]]
name = "Facebook"
url = "https://www.facebook.com/CyberPilots.EuropRaid"
weight = 3
[[menu.sidebar_social]]
name = "Cagnotte Leetchi"
url = "https://www.leetchi.com/c/cyberpilots-europraid-2019"
weight = 4
[[menu.sidebar_social]]
name = "Mail"
url = "mailto:cyberpilots.europraid@gmail.com"
weight = 5
[[menu.sidebar]]
[[menu.sidebar_link]]
name = "Marianne MILLOUR"
url = "https://twitter.com/mariannemillour"
weight = 1
[[menu.sidebar]]
[[menu.sidebar_link]]
name = "Baptiste MOINE"
url = "https://twitter.com/Creased_"
weight = 2
[[menu.sidebar]]
[[menu.sidebar_link]]
name = "Florian CHARBONNEAU"
url = "https://twitter.com/DrStache_"
weight = 3
......
......@@ -52,7 +52,7 @@
<div class="container">
<h1 class="blog-title">
<a href="{{ .Site.BaseURL }}" rel="home">
<img class="blog-logo" src="{{ .Site.BaseURL }}img/{{ .Site.Params.logo }}"> - {{ .Site.Params.subtitle | safeHTML }}
<img class="blog-logo" alt="{{ .Site.Title }}" src="{{ .Site.BaseURL }}img/{{ .Site.Params.logo }}"> - {{ .Site.Params.subtitle | safeHTML }}
</a>
</h1>
{{ if .Site.Params.description }}<p class="lead blog-description">{{ .Site.Params.description | markdownify }}</p>{{ end }}
......
{{ define "schema-dot-org" }}
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Blog",
{{- /* Google recommends the headline be no more than 110 characters */}}
"headline": "{{ substr .Site.Title 0 110 }}",
"url" : "{{ printf "%s" .Permalink }}",
"author": {
"@type": "Person",
"name": "{{ .Site.Params.author }}"
},
{{- $ISO8601 := "2006-01-02T15:04:05-07:00" }}
{{- if not .Date.IsZero }}
"dateModified": "{{ .Date.Format $ISO8601 }}",
{{- end }}
{{- with .Site.Social.GooglePlus }}
"publisher": "{{ printf "%s" . }}",
{{- end }}
{{- /* all of the site's categories/tags, from Hugo's tpl/template_embedded.go */}}
"keywords": "{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}{{ printf "%s," $term }}{{ end }}{{ end }}"
{{- with .Site.Params.description -}}
,
"description": "{{- . -}}"
{{- end }}
}
</script>
{{ end }}
{{ define "main" }}
<img width="100%" class="home-image" alt="home image" src="{{ .Site.BaseURL }}img/{{ .Site.Params.home_image }}">
{{ $truncate := default true .Site.Params.truncate }}
{{ $paginator := .Paginate (where .Site.RegularPages "Section" "in" .Site.Params.mainSections) }}
{{ range $paginator.Pages }}
{{ if $truncate }}
{{ .Render "summary" }}
{{ else }}
{{ .Render "content" }}
{{ end }}
{{ end }}
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
{{ partial "pagination.html" . }}
{{ end }}
{{ end }}
{{- /* vim: set ts=2 sw=2 et: */}}
<aside class="col-sm-3 ml-auto blog-sidebar">
{{ if and (.Site.Params.sidebar) (isset .Site.Params.sidebar "about") }}
<section class="sidebar-module sidebar-module-inset">
<h4>{{ i18n "about" }}</h4>
<p>{{ .Site.Params.sidebar.about | markdownify }}</p>
</section>
{{ end }}
{{ if .Site.Params.sidebar }}
{{ partialCached "recent.html" .}}
{{ end }}
{{ with .Site.Menus.sidebar_social }}
<section class="sidebar-module">
<h4>Réseaux sociaux</h4>
<ol class="list-unstyled">
{{ range . }}
<li><a href="{{ .URL | absURL }}">{{ .Name }}</a></li>
{{ end }}
</ol>
</section>
{{ end }}
{{ with .Site.Menus.sidebar_link }}
<section class="sidebar-module">
<h4>{{ i18n "links" }}</h4>
<ol class="list-unstyled">
{{ range . }}
<li><a href="{{ .URL | absURL }}">{{ .Name }}</a></li>
{{ end }}
</ol>
</section>
{{ end }}
</aside><!-- /.blog-sidebar -->
{{- /* vim: set ts=2 sw=2 et: */}}
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