First draft of a static website

This commit is contained in:
Thomas Schwery 2019-02-15 21:32:34 +00:00
parent 0bf90a17d9
commit 5bd35211b9
18 changed files with 248 additions and 0 deletions

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "site/themes/ananke"]
path = site/themes/ananke
url = https://github.com/budparr/gohugo-theme-ananke.git

View file

@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

33
site/config.toml Normal file
View file

@ -0,0 +1,33 @@
baseURL = "http://example.org/"
languageCode = "fr-fr"
title = "Les Archers du Bisse"
theme = "ananke"
MetaDataFormat = "yaml"
DefaultContentLanguage = "fr"
SectionPagesMenu = "main"
Paginate = 30
recent_posts_number = 2
googleAnalytics = ""
enableRobotsTXT = true
[sitemap]
changefreq = "monthly"
priority = 0.5
filename = "sitemap.xml"
[params]
favicon = ""
description = ""
facebook = ""
twitter = ""
instagram = ""
youtube = ""
github = ""
gitlab = ""
linkedin = ""
# choose a background color from any on this page: http://tachyons.io/docs/themes/skins/ and preface it with "bg-"
background_color_class = "bg-silver"
cover_dimming_class = "bg-black-30"
featured_image = "/images/banner.jpg"

22
site/content/_index.md Normal file
View file

@ -0,0 +1,22 @@
---
title: "Les Archers du Bisse"
featured_image: '/images/banner.jpg'
type: page
---
Basés à Flanthey sur les côteaux Valaisans, les Archers du Bisse sont …
Nous disposons dune salle pour les entraînements …. blablabla
## Le Tir à lArc
Blablabla … Cette activité, après avoir été un moyen de survie, de conquête, puis une activité de loisirs, continue de fasciner limaginaire. Preuve en est les nombreuses histoires et films y faisant référence.
> Le sport va chercher la peur pour la dominer, la fatigue pour en triompher, la difficulté pour la vaincre Courbertin
Les compétitions de tir à larc faisaient déjà partie des Jeux olympiques de 1900, 1904, 1908 et 1920 puis, après une longue interruption, le tir à larc y fut réintroduit en 1972.
## Accessible à tous
Le tir à larc est un sport accessible à tous, blablabla …

14
site/content/contact.md Normal file
View file

@ -0,0 +1,14 @@
---
title: Contact
featured_image: "images/banner2.jpg"
omit_header_text: true
type: news
menu:
main: {}
---
N'hésitez pas à nous contacter si vous souhaitez vous joindre à nous, que
ce soit pour essayer ce sport pour la première fois, pour rafraîchir votre
geste ou pour vous entraîner en bonne compagnie.
{{< form-contact action="https://example.com" >}}

View file

@ -0,0 +1,20 @@
---
title: "Entrainements"
featured_image: "images/banner3.jpg"
omit_header_text: true
type: page
menu:
main: {}
---
## Entraînements en salle
Nous vous accueillons volontiers tous les mercredis soirs dès 19h00 à la
salle des Abris de Flanthey.
> Salle des Abris <br/>
> Chemin Creux de Flanthey <br/>
> 3978 Flanthey (Lens)
## Entraînements en forêt
Y a des entraînements ?

View file

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

View file

@ -0,0 +1,7 @@
---
date: 2019-02-13 20:00:00
tags: ["ag"]
title: "Assemblée Générale 2019"
---
L'assemblée générale 2019 du club aura lieu le 13 février 2019 à 20h à
la salle d'entraînement.

View file

@ -0,0 +1,50 @@
{{ define "header" }}
{{/* We can override any block in the baseof file be defining it in the template */}}
{{ partial "page-header.html" . }}
{{ end }}
{{ define "main" }}
{{ $section := .Site.GetPage "section" .Section }}
<article class="flex-l flex-wrap justify-between mw8 center ph3">
<header class="mt4 w-100">
<p class="f6 b helvetica tracked">
{{/*
CurrentSection allows us to use the section title instead of inferring from the folder.
https://gohugo.io/variables/page/#section-variables-and-methods
*/}}
{{with .CurrentSection.Title }}{{. | upper }}{{end}}
</p>
<h1 class="f1 athelas mb1">
{{- .Title -}}
</h1>
{{/* Hugo uses Go's date formatting is set by example. Here are two formats */}}
<time class="f6 mv4 dib tracked" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
{{- .Date.Format "02.01.2006" -}}
</time>
{{/*
Show "reading time" and "word count" but only if one of the following are true:
1) A global config `params` value is set `show_reading_time = true`
2) A section front matter value is set `show_reading_time = true`
3) A page front matter value is set `show_reading_time = true`
*/}}
{{ if (or (eq (.Param "show_reading_time") true) (eq $section.Params.show_reading_time true) )}}
<span class="f6 mv4 dib tracked"> - {{ .ReadingTime}} minutes read</span>
<span class="f6 mv4 dib tracked"> - {{ .WordCount}} words</span>
{{ end }}
</header>
<section class="nested-copy-line-height lh-copy serif f4 nested-links nested-img mid-gray pr4-l w-two-thirds-l">
{{- .Content -}}
{{- partial "tags.html" . -}}
<div class="mt6">
{{ template "_internal/disqus.html" . }}
</div>
</section>
<aside class="w-30-l mt6-l">
{{- partial "menu-contextual.html" . -}}
</aside>
</article>
{{ end }}

View file

@ -0,0 +1,16 @@
{{ define "main" }}
<article class="cf pa3 pa4-m pa4-l">
<div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links nested-img mid-gray">
<p>Cette page recense les articles partageant le tag “{{ .Title }}”</p>
</div>
</article>
<div class="mw8 center">
<section class="flex-ns flex-wrap justify-around mt5">
{{ range .Pages }}
<div class="relative w-100 mb4 bg-white">
{{ partial "summary.html" . }}
</div>
{{ end }}
</section>
</div>
{{ end }}

5
site/layouts/index.html Normal file
View file

@ -0,0 +1,5 @@
{{ define "main" }}
<article class="cf ph3 ph5-l pv3 pv4-l f4 center measure-wide lh-copy mid-gray">
{{ .Content }}
</article>
{{ end }}

View file

@ -0,0 +1,26 @@
{{ $featured_image := .Params.featured_image }}
{{ if $featured_image }}
{{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
{{ $featured_image := (trim $featured_image "/") | absURL }}
<header class="cover bg-top" style="background-image: url('{{ $featured_image }}');">
<div class="pb3-m pb6-l {{ .Site.Params.cover_dimming_class | default "bg-black-60" }}">
{{ partial "site-navigation.html" . }}
<div class="tc-l pv6 ph3 ph4-ns">
{{ if not .Params.omit_header_text }}
<h1 class="f2 f1-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 lh-copy mt3 mb4">
{{ . }}
</h2>
{{ end }}
{{ end }}
</div>
</div>
</header>
{{ else }}
<header>
<div class="{{ .Site.Params.background_color_class | default "bg-black" }}">
{{ partial "site-navigation.html" . }}
</div>
</header>
{{ end }}

View file

@ -0,0 +1,24 @@
{{ define "header" }}{{ partial "page-header.html" . }}{{ end }}
{{ define "main" }}
<article class="pa3 pa4-ns nested-copy-line-height nested-img">
<section class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy mid-gray">
<header>
<h1 class="f1">
{{ .Title }}
</h1>
</header>
{{ .Content }}
</section>
<aside class="flex-ns flex-wrap justify-around mt5">
{{ range .Paginator.Pages }}
<div class="relative w-100 w-30-l mb4 bg-white">
{{/*
Note we can use `.Render` here for items just in this section, instead of a partial to pull in items for the list page. https://gohugo.io/functions/render/
*/}}
{{ .Render "summary" }}
</div>
{{ end }}
</aside>
{{ template "_internal/pagination.html" . }}
</article>
{{ end }}

View file

@ -0,0 +1,15 @@
<div class="mb3 pa4 mid-gray overflow-hidden">
{{ if .Date }}
<div class="f6">
{{ .Date.Format "02.01.2006" }}
</div>
{{ end }}
<h1 class="f3 near-black">
<a href="{{ .URL }}" class="link black dim">
{{ .Title }}
</a>
</h1>
<div class="nested-links f5 lh-copy nested-copy-line-height">
{{ .Summary }}
</div>
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

1
site/themes/ananke Submodule

@ -0,0 +1 @@
Subproject commit e418548683db5eb3eff98fc073789932f9a353b1