Changes from Christophe feedback

This commit is contained in:
Thomas Schwery 2019-02-24 19:53:56 +01:00
parent c18a5d6dc4
commit 6f3c932891
7 changed files with 24 additions and 18 deletions

View file

@ -32,3 +32,4 @@ enableRobotsTXT = true
cover_dimming_class = "bg-black-30" cover_dimming_class = "bg-black-30"
featured_image = "/images/banner.jpg" featured_image = "/images/banner.jpg"
logo_image = "/images/logo.png" logo_image = "/images/logo.png"
custom_css = [ "css/custom.css" ]

View file

@ -1,5 +1,6 @@
--- ---
title: "Entrainements" title: "Entrainements"
featured_image: "images/banner4.jpg"
omit_header_text: true omit_header_text: true
type: page type: page
menu: menu:

View file

@ -1,5 +1,6 @@
--- ---
title: "Nouvelles du Club" title: "Nouvelles du Club"
featured_image: "images/banner3.jpg"
omit_header_text: true omit_header_text: true
--- ---

View file

@ -1,7 +1,7 @@
{{ define "header" }}{{ partial "page-header.html" . }}{{ end }} {{ define "header" }}{{ partial "page-header.html" . }}{{ end }}
{{ define "main" }} {{ define "main" }}
<div class="flex-l mt2 mw8 center"> <div class="flex-l mt2 mw8 center">
<article class="center cf ph3 ph4-ns mw7"> <article class="center cf ph3 ph4-ns mw7 mid-gray">
<header> <header>
<p class="f6 b helvetica tracked"> <p class="f6 b helvetica tracked">
{{ humanize .Section | upper }} {{ humanize .Section | upper }}

View file

@ -1,7 +1,7 @@
{{ $featured_image := .Params.featured_image }} {{ $featured_image := .Params.featured_image }}
{{ if $featured_image }} {{ if $featured_image }}
{{ $featured_image := (trim $featured_image "/") | absURL }} {{ $featured_image := (trim $featured_image "/") | absURL }}
<header class="cover bg-top" style="background-image: url('{{ $featured_image }}');"> <header class="cover bg-center" style="background-image: url('{{ $featured_image }}');">
<div class="pb3-m {{ .Site.Params.cover_dimming_class | default "bg-black-60" }}"> <div class="pb3-m {{ .Site.Params.cover_dimming_class | default "bg-black-60" }}">
{{ partial "site-navigation.html" . }} {{ partial "site-navigation.html" . }}
<div class="tc-l pv6 ph3 ph4-ns"> <div class="tc-l pv6 ph3 ph4-ns">

View file

@ -4,24 +4,22 @@
{{ $featured_image := (trim $featured_image "/") | absURL }} {{ $featured_image := (trim $featured_image "/") | absURL }}
{{ $logo_image := (trim $logo_image "/") }} {{ $logo_image := (trim $logo_image "/") }}
<header class="cover bg-top" style="background-image: url('{{ $featured_image }}');"> <header class="cover bg-top" style="background-image: url('{{ $featured_image }}');">
{{ if $logo_image }}
<div class="{{ .Site.Params.cover_dimming_class | default "bg-black-60" }} main-logo" style="background-image: url('{{ $logo_image }}');">
{{ else }}
<div class="{{ .Site.Params.cover_dimming_class | default "bg-black-60" }}"> <div class="{{ .Site.Params.cover_dimming_class | default "bg-black-60" }}">
{{ end }}
{{ partial "site-navigation.html" .}} {{ partial "site-navigation.html" .}}
{{ with $logo_image }} <div class="pv6 ph3 ph4-ns"></div>
<div class="tc-l pv4 ph3 ph4-ns"> <h1 class="tc-l f2 f-subheadline-l fw2 pl2 white-90 mb0 lh-title">
<h2 class="fw1 f5 f3-l white-80 measure-wide-l center mt3"> {{ .Title | default .Site.Title }}
<img src="{{ $logo_image }}" /> </h1>
</h2> {{ with .Params.description }}
{{ else }} <h2 class="fw1 f5 f3-l white-80 measure-wide-l center mt3">
<div class="tc-l pv4 pv6-l ph3 ph4-ns"> {{ . }}
</h2>
{{ end }} {{ end }}
<h1 class="f2 f-subheadline-l fw2 white-90 mb0 lh-title"> <div class="pv3 ph3 ph4-ns"></div>
{{ .Title | default .Site.Title }}
</h1>
{{ with .Params.description }}
<h2 class="fw1 f5 f3-l white-80 measure-wide-l center mt3">
{{ . }}
</h2>
{{ end }}
</div> </div>
</div> </div>
</header> </header>
@ -29,7 +27,7 @@
<header> <header>
<div class="pb3-m pb6-l {{ .Site.Params.background_color_class | default "bg-black" }}"> <div class="pb3-m pb6-l {{ .Site.Params.background_color_class | default "bg-black" }}">
{{ partial "site-navigation.html" . }} {{ partial "site-navigation.html" . }}
<div class="tc-l pv3 ph3 ph4-ns"> <div class="pv3 ph3 ph4-ns">
<h1 class="f2 f-subheadline-l fw2 light-silver mb0 lh-title"> <h1 class="f2 f-subheadline-l fw2 light-silver mb0 lh-title">
{{ .Title | default .Site.Title }} {{ .Title | default .Site.Title }}
</h1> </h1>

View file

@ -0,0 +1,5 @@
.main-logo {
background-repeat: no-repeat;
background-position: 95% 95%;
background-size: 200px;
}