diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..7e71deb --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "site/themes/ananke"] + path = site/themes/ananke + url = https://github.com/budparr/gohugo-theme-ananke.git diff --git a/site/archetypes/default.md b/site/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/site/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/site/config.toml b/site/config.toml new file mode 100644 index 0000000..7ef4851 --- /dev/null +++ b/site/config.toml @@ -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" diff --git a/site/content/_index.md b/site/content/_index.md new file mode 100644 index 0000000..c63635f --- /dev/null +++ b/site/content/_index.md @@ -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 … diff --git a/site/content/contact.md b/site/content/contact.md new file mode 100644 index 0000000..ea3eb07 --- /dev/null +++ b/site/content/contact.md @@ -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" >}} diff --git a/site/content/entrainements.md b/site/content/entrainements.md new file mode 100644 index 0000000..44924d5 --- /dev/null +++ b/site/content/entrainements.md @@ -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
+> Chemin Creux de Flanthey
+> 3978 Flanthey (Lens) + +## Entraînements en forêt + +Y a des entraînements ? diff --git a/site/content/post/_index.md b/site/content/post/_index.md new file mode 100644 index 0000000..4f7ff30 --- /dev/null +++ b/site/content/post/_index.md @@ -0,0 +1,6 @@ +--- +title: "Nouvelles du Club" +featured_image: "images/banner3.jpg" +omit_header_text: true +--- + diff --git a/site/content/post/ag2019.md b/site/content/post/ag2019.md new file mode 100644 index 0000000..c8e1753 --- /dev/null +++ b/site/content/post/ag2019.md @@ -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. diff --git a/site/layouts/_default/single.html b/site/layouts/_default/single.html new file mode 100755 index 0000000..48e456c --- /dev/null +++ b/site/layouts/_default/single.html @@ -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 }} +
+ +
+

+ {{/* + 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}} +

+

+ {{- .Title -}} +

+ {{/* Hugo uses Go's date formatting is set by example. Here are two formats */}} + + {{/* + 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) )}} + - {{ .ReadingTime}} minutes read + - {{ .WordCount}} words + {{ end }} +
+ + + + + +
+{{ end }} diff --git a/site/layouts/_default/taxonomy.html b/site/layouts/_default/taxonomy.html new file mode 100644 index 0000000..c8ab458 --- /dev/null +++ b/site/layouts/_default/taxonomy.html @@ -0,0 +1,16 @@ +{{ define "main" }} +
+ +
+
+
+ {{ range .Pages }} +
+ {{ partial "summary.html" . }} +
+ {{ end }} +
+
+{{ end }} diff --git a/site/layouts/index.html b/site/layouts/index.html new file mode 100644 index 0000000..aa8bce9 --- /dev/null +++ b/site/layouts/index.html @@ -0,0 +1,5 @@ +{{ define "main" }} +
+ {{ .Content }} +
+{{ end }} diff --git a/site/layouts/partials/page-header.html b/site/layouts/partials/page-header.html new file mode 100644 index 0000000..1e6dfc5 --- /dev/null +++ b/site/layouts/partials/page-header.html @@ -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 }} +
+
+ {{ partial "site-navigation.html" . }} +
+ {{ if not .Params.omit_header_text }} +

{{ .Title | default .Site.Title }}

+ {{ with .Params.description }} +

+ {{ . }} +

+ {{ end }} + {{ end }} +
+
+
+{{ else }} +
+
+ {{ partial "site-navigation.html" . }} +
+
+{{ end }} diff --git a/site/layouts/post/list.html b/site/layouts/post/list.html new file mode 100644 index 0000000..6fb60d0 --- /dev/null +++ b/site/layouts/post/list.html @@ -0,0 +1,24 @@ +{{ define "header" }}{{ partial "page-header.html" . }}{{ end }} +{{ define "main" }} +
+
+
+

+ {{ .Title }} +

+
+ {{ .Content }} +
+ + {{ template "_internal/pagination.html" . }} +
+{{ end }} diff --git a/site/layouts/post/summary.html b/site/layouts/post/summary.html new file mode 100644 index 0000000..937d1dd --- /dev/null +++ b/site/layouts/post/summary.html @@ -0,0 +1,15 @@ +
+ {{ if .Date }} +
+ {{ .Date.Format "02.01.2006" }} +
+ {{ end }} +

+ + {{ .Title }} + +

+ +
diff --git a/site/static/images/banner.jpg b/site/static/images/banner.jpg new file mode 100644 index 0000000..96c696e Binary files /dev/null and b/site/static/images/banner.jpg differ diff --git a/site/static/images/banner2.jpg b/site/static/images/banner2.jpg new file mode 100644 index 0000000..2b3d830 Binary files /dev/null and b/site/static/images/banner2.jpg differ diff --git a/site/static/images/banner3.jpg b/site/static/images/banner3.jpg new file mode 100644 index 0000000..a51091a Binary files /dev/null and b/site/static/images/banner3.jpg differ diff --git a/site/themes/ananke b/site/themes/ananke new file mode 160000 index 0000000..e418548 --- /dev/null +++ b/site/themes/ananke @@ -0,0 +1 @@ +Subproject commit e418548683db5eb3eff98fc073789932f9a353b1