Make partials adapted to site config
This commit is contained in:
parent
3d068a4adf
commit
f23ca2df4a
5 changed files with 70 additions and 51 deletions
|
@ -1,8 +1,8 @@
|
||||||
# Etoile de bethleem - site web
|
# WeRobot - site web
|
||||||
|
|
||||||
## Comment installer
|
## Comment installer
|
||||||
|
|
||||||
- git clone etoiledebethleem/website website
|
- git clone https://forge.gzod01.fr/werobot/website.git website
|
||||||
- cd website
|
- cd website
|
||||||
|
|
||||||
## Comment développer
|
## Comment développer
|
||||||
|
@ -13,8 +13,3 @@
|
||||||
|
|
||||||
- hugo
|
- hugo
|
||||||
|
|
||||||
## Idées
|
|
||||||
|
|
||||||
- gallerie avec un scroll : https://staticbattery.com/ (on sera toujours obligé de faire de la navigation)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
49
config.toml
49
config.toml
|
@ -1,6 +1,7 @@
|
||||||
baseURL = '/'
|
baseURL = '/'
|
||||||
languageCode = 'fr'
|
languageCode = 'fr'
|
||||||
defaultContentLanguage = 'fr'
|
defaultContentLanguage = 'fr'
|
||||||
|
defaultContentLanguageInSubdir = false
|
||||||
title = "We Robot"
|
title = "We Robot"
|
||||||
|
|
||||||
summaryLength = 50
|
summaryLength = 50
|
||||||
|
@ -8,11 +9,25 @@ summaryLength = 50
|
||||||
# THIS IS UNACCEPTALBE, I REALLY THOUGH THIS WAS THE DEFAULT IN HUGO!!
|
# THIS IS UNACCEPTALBE, I REALLY THOUGH THIS WAS THE DEFAULT IN HUGO!!
|
||||||
assetDir = "assets"
|
assetDir = "assets"
|
||||||
|
|
||||||
|
|
||||||
|
[languages]
|
||||||
|
[languages.fr]
|
||||||
|
languageCode='fr'
|
||||||
|
languageName="Français"
|
||||||
|
[languages.en]
|
||||||
|
languageCode='en'
|
||||||
|
languageName="English"
|
||||||
|
|
||||||
[sitemap]
|
[sitemap]
|
||||||
changefreq = 'weekly'
|
changefreq = 'weekly'
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
dateFmt = "02.01.2006 15:04"
|
dateFmt = "02.01.2006 15:04"
|
||||||
|
slogan = "La Robotique, ensemble"
|
||||||
|
favicon = "/images/logo.png"
|
||||||
|
footer_description = """
|
||||||
|
Créée en 2017, association locale de robotique pour les jeunes, basée à Gaillon en France. Nous participons à des concours nationaux ou internationaux, gagnant d'un prix au First Global Contest à Washington DC en 2017 et du World Adolescent Robotic Contest à Guyiang, Chine en 2018
|
||||||
|
"""
|
||||||
|
|
||||||
[params.defaultImage]
|
[params.defaultImage]
|
||||||
local = true
|
local = true
|
||||||
|
@ -21,6 +36,40 @@ src = "cover/cover.jpg"
|
||||||
[taxonomies]
|
[taxonomies]
|
||||||
imtag = 'imtags'
|
imtag = 'imtags'
|
||||||
|
|
||||||
|
[menus]
|
||||||
|
|
||||||
|
[[menus.footer_left]]
|
||||||
|
name="Accueil"
|
||||||
|
url="/"
|
||||||
|
|
||||||
|
[[menus.footer_left]]
|
||||||
|
name="Blog"
|
||||||
|
url="/blog"
|
||||||
|
|
||||||
|
[[menus.footer_left]]
|
||||||
|
name="Photos"
|
||||||
|
url="/photos"
|
||||||
|
|
||||||
|
[[menus.footer_left]]
|
||||||
|
name="Donner"
|
||||||
|
url="/donate"
|
||||||
|
|
||||||
|
[[menus.footer_right]]
|
||||||
|
name="À Propos"
|
||||||
|
url="/about"
|
||||||
|
|
||||||
|
[[menus.footer_right]]
|
||||||
|
name="Où sommes nous"
|
||||||
|
url="/about#place"
|
||||||
|
|
||||||
|
[[menus.footer_right]]
|
||||||
|
name="Nous contacter"
|
||||||
|
url="/contact"
|
||||||
|
|
||||||
|
[[menus.footer_right]]
|
||||||
|
name="Mentions Légales"
|
||||||
|
url="/legals"
|
||||||
|
|
||||||
# theme = "custom"
|
# theme = "custom"
|
||||||
|
|
||||||
# [markup]
|
# [markup]
|
||||||
|
|
|
@ -28,57 +28,31 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="footer-description">
|
<div class="footer-description">
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
{{ .Site.Params.footer_description }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="w-full md:w-1/4">
|
<div class="w-full md:w-1/4">
|
||||||
<div class="footer-links">
|
<div class="footer-links">
|
||||||
<a
|
{{ range .Site.Menus.footer_left }}
|
||||||
href="/"
|
<a
|
||||||
class="link">
|
href="{{ .URL }}"
|
||||||
Home
|
class="link">
|
||||||
</a>
|
{{ .Name}}
|
||||||
<a
|
</a>
|
||||||
href="/blog"
|
{{ end }}
|
||||||
class="link">
|
|
||||||
Blog
|
|
||||||
</a>
|
|
||||||
<a
|
|
||||||
href="/photos"
|
|
||||||
class="link">
|
|
||||||
Photos
|
|
||||||
</a>
|
|
||||||
<a
|
|
||||||
href="/donate"
|
|
||||||
class="link">
|
|
||||||
Donate
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="w-full md:w-1/4">
|
<div class="w-full md:w-1/4">
|
||||||
<div class="footer-links">
|
<div class="footer-links">
|
||||||
|
{{ range .Site.Menus.footer_right }}
|
||||||
<a
|
<a
|
||||||
href="/about"
|
href="{{ .URL }}"
|
||||||
class="link">
|
class="link">
|
||||||
About
|
{{ .Name }}
|
||||||
</a>
|
|
||||||
<a
|
|
||||||
href="/about#place"
|
|
||||||
class="link">
|
|
||||||
Où sommes nous
|
|
||||||
</a>
|
|
||||||
<a
|
|
||||||
href="/contact"
|
|
||||||
class="link">
|
|
||||||
Contact us
|
|
||||||
</a>
|
|
||||||
<a
|
|
||||||
href="/legals"
|
|
||||||
class="link">
|
|
||||||
Legals
|
|
||||||
</a>
|
</a>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -124,8 +98,8 @@
|
||||||
<div
|
<div
|
||||||
class="link button-text">
|
class="link button-text">
|
||||||
<span>
|
<span>
|
||||||
Français
|
Français
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -8,7 +8,8 @@
|
||||||
<meta name="author" content="{{ . }}">
|
<meta name="author" content="{{ . }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{- $title := partialCached "data/title" . .RelPermalink -}}
|
{{/*- $title := partialCached "data/title" . .RelPermalink -*/}}
|
||||||
|
{{ $title := (printf "%s - %s" .Title .Site.Title) }}
|
||||||
<title>{{ $title }}</title>
|
<title>{{ $title }}</title>
|
||||||
|
|
||||||
<link rel="canonical" href="{{ .Permalink }}">
|
<link rel="canonical" href="{{ .Permalink }}">
|
||||||
|
@ -20,7 +21,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ with .Site.Params.favicon }}
|
{{ with .Site.Params.favicon }}
|
||||||
<link rel="shortcut icon" href="{{ . }}" />
|
<link rel="shortcut icon" href="{{ . }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<!-- Note: j'ai galérer à rajouter du scss car en fait y'avait déja une variable $style de définit plus haut... -->
|
<!-- Note: j'ai galérer à rajouter du scss car en fait y'avait déja une variable $style de définit plus haut... -->
|
||||||
|
|
|
@ -15,8 +15,8 @@
|
||||||
class="logo">
|
class="logo">
|
||||||
</div>
|
</div>
|
||||||
<div class="header-title">
|
<div class="header-title">
|
||||||
<div class="header-title-title">header title</div>
|
<div class="header-title-title">{{ .Site.Title }}</div>
|
||||||
<div class="header-sub-title">header sub title</div>
|
<div class="header-sub-title">{{ .Site.Params.slogan }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue