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"
featured_image = "/images/banner.jpg"
logo_image = "/images/logo.png"
custom_css = [ "css/custom.css" ]

View file

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

View file

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

View file

@ -1,7 +1,7 @@
{{ define "header" }}{{ partial "page-header.html" . }}{{ end }}
{{ define "main" }}
<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>
<p class="f6 b helvetica tracked">
{{ humanize .Section | upper }}

View file

@ -1,7 +1,7 @@
{{ $featured_image := .Params.featured_image }}
{{ if $featured_image }}
{{ $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" }}">
{{ partial "site-navigation.html" . }}
<div class="tc-l pv6 ph3 ph4-ns">

View file

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

View file

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