First draft of a static website
This commit is contained in:
parent
0bf90a17d9
commit
5bd35211b9
18 changed files with 248 additions and 0 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[submodule "site/themes/ananke"]
|
||||
path = site/themes/ananke
|
||||
url = https://github.com/budparr/gohugo-theme-ananke.git
|
6
site/archetypes/default.md
Normal file
6
site/archetypes/default.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
date: {{ .Date }}
|
||||
draft: true
|
||||
---
|
||||
|
33
site/config.toml
Normal file
33
site/config.toml
Normal 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
22
site/content/_index.md
Normal 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 d’une salle pour les entraînements …. blablabla
|
||||
|
||||
## Le Tir à l’Arc
|
||||
|
||||
Blablabla … Cette activité, après avoir été un moyen de survie, de conquête, puis une activité de loisirs, continue de fasciner l’imaginaire. 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 à l’arc faisaient déjà partie des Jeux olympiques de 1900, 1904, 1908 et 1920 puis, après une longue interruption, le tir à l’arc y fut réintroduit en 1972.
|
||||
|
||||
|
||||
## Accessible à tous
|
||||
|
||||
Le tir à l’arc est un sport accessible à tous, blablabla …
|
14
site/content/contact.md
Normal file
14
site/content/contact.md
Normal 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" >}}
|
20
site/content/entrainements.md
Normal file
20
site/content/entrainements.md
Normal 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 ?
|
6
site/content/post/_index.md
Normal file
6
site/content/post/_index.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: "Nouvelles du Club"
|
||||
featured_image: "images/banner3.jpg"
|
||||
omit_header_text: true
|
||||
---
|
||||
|
7
site/content/post/ag2019.md
Normal file
7
site/content/post/ag2019.md
Normal 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.
|
50
site/layouts/_default/single.html
Executable file
50
site/layouts/_default/single.html
Executable 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 }}
|
16
site/layouts/_default/taxonomy.html
Normal file
16
site/layouts/_default/taxonomy.html
Normal 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
5
site/layouts/index.html
Normal 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 }}
|
26
site/layouts/partials/page-header.html
Normal file
26
site/layouts/partials/page-header.html
Normal 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 }}
|
24
site/layouts/post/list.html
Normal file
24
site/layouts/post/list.html
Normal 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 }}
|
15
site/layouts/post/summary.html
Normal file
15
site/layouts/post/summary.html
Normal 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>
|
BIN
site/static/images/banner.jpg
Normal file
BIN
site/static/images/banner.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 92 KiB |
BIN
site/static/images/banner2.jpg
Normal file
BIN
site/static/images/banner2.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 192 KiB |
BIN
site/static/images/banner3.jpg
Normal file
BIN
site/static/images/banner3.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 40 KiB |
1
site/themes/ananke
Submodule
1
site/themes/ananke
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit e418548683db5eb3eff98fc073789932f9a353b1
|
Loading…
Add table
Reference in a new issue