first version

This commit is contained in:
Simon 2020-02-11 09:02:51 +01:00
commit 9a611bbf32
28 changed files with 365 additions and 0 deletions

1
.env Normal file
View File

@ -0,0 +1 @@
NAME=histoiredunpied

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
public
resources
node_modules

1
.nvmrc Normal file
View File

@ -0,0 +1 @@
12.13.1

2
Dockerfile Normal file
View File

@ -0,0 +1,2 @@
FROM nginx
COPY public /usr/share/nginx/html

31
README.md Normal file
View File

@ -0,0 +1,31 @@
# Source du site web Histoire d'un Pied
Vous trouverez ici les sources du site web https://histoiredunpied.com
Pour information, il utilise plusieurs technologies :
- Hugo pour la génération du site static
- docker-compose pour publier le site
## Hugo
Pour construire le site :
```
hugo -D
```
## Exemple de site
Voici quelques sites pour s'inspirer :
- http://paradestud.io/
- https://lepontdesartistes.com/
- http://chloeromengas.com/
- https://www.rayuresetratures.fr/
- https://www.grapheine.com/regards-graphiques
Voici quelques template wordpress :
- https://wordpress.com/theme/candela
- https://wordpress.com/theme/rebalance
- https://wordpress.com/theme/gather

84
assets/css/main.sass Normal file
View File

@ -0,0 +1,84 @@
// $primary-color: #4CB58E
// $light-color: #34495E
// $dark-color: #fff
// $bg-color: #303742
// $base-font-family: "SF Mono", "Segoe UI Mono", "Roboto Mono", Menlo, Courier, monospace
//@import "node_modules/spectre.css/src/spectre"
//@import "node_modules/spectre.css/src/spectre-exp"
//@import "node_modules/spectre.css/src/spectre-icons"
@mixin container
max-width: 940px
width: 90%
margin: 0 auto
body
margin: 0
a
color: black
.header
position: fixed
z-index: 1
left: 0
right: 0
height: 90px
overflow: hidden
background-color: white
.container
display: flex
height: 100%
border-bottom: 1px dotted black
.accueil
padding: 15px
margin: 5px 5px 5px -15px
.logo
height: 50px
.menu
margin: auto
margin-right: -20px
a
color: black
text-decoration-color: black
text-decoration-thickness: 3px
text-underline-offset: 10px
padding: 15px
margin: 5px
ul
list-style: none
margin: 0
padding: 0
li
display: inline
.bg
position: relative
height: 1000px
&.colored
background-color: green
#content
padding-top: 90px
.container
@include container
.ancre
text-align: center
position: absolute
top: -106px
@media (max-width: 768px)
.menu
visibility: hidden

4
config.toml Normal file
View File

@ -0,0 +1,4 @@
baseURL = "https://histoiredunpied.com/"
languageCode = "fr-fr"
title = "Histoire d'un Pied"
theme = "lowtech"

7
content/about.md Normal file
View File

@ -0,0 +1,7 @@
## À propos
blablabla
### Bienvenue !!!
Je voulais vous montrer comment faire un site low tech

7
content/contact.md Normal file
View File

@ -0,0 +1,7 @@
## Contact
blablabla
### Bienvenue !!!
Je voulais vous montrer comment faire un site low tech

12
data/mois.yaml Normal file
View File

@ -0,0 +1,12 @@
1: "janvier"
2: "février"
3: "mars"
4: "avril"
5: "mai"
6: "juin"
7: "juillet"
8: "août"
9: "septembre"
10: "octobre"
11: "novembre"
12: "décembre"

23
docker-compose.yml Normal file
View File

@ -0,0 +1,23 @@
version: '3'
services:
histoiredunpied:
container_name: ${NAME}
build: .
image: ${NAME}
environment:
- TZ=Europe/Paris
labels:
traefik.enable: "true"
traefik.docker.network: "traefik"
traefik.http.routers.histoiredunpied.rule: "Host(`${NAME}.lamelio.fr`)"
traefik.http.routers.histoiredunpied.entrypoints: "web"
traefik.http.routers.histoiredunpied.middlewares: "redirect-https@docker"
traefik.http.routers.histoiredunpied-https.rule: "Host(`${NAME}.lamelio.fr`)"
traefik.http.routers.histoiredunpied-https.entrypoints: "websecure"
traefik.http.routers.histoiredunpied-https.tls.certResolver: "letsencrypt"
networks:
default:
external:
name: traefik

23
layouts/index.html Normal file
View File

@ -0,0 +1,23 @@
{{ define "main" }}
<div class="bg">
<p id="actu" class="ancre" />
<div class="container">
<h2>Actualités</h2>
<p>
orem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</p>
</div>
</div>
<div class="bg colored">
<p id="about" class="ancre" />
<div class="container">
{{ with .Site.GetPage "/about.md" }}{{ .Content }}{{ end }}
</div>
</div>
<div class="bg">
<p id="contact" class="ancre" />
<div class="container">
{{ with .Site.GetPage "/contact.md" }}{{ .Content }}{{ end }}
</div>
</div>
{{ end }}

13
package-lock.json generated Normal file
View File

@ -0,0 +1,13 @@
{
"name": "histoiredunpied",
"version": "0.1.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"spectre.css": {
"version": "0.5.8",
"resolved": "https://registry.npmjs.org/spectre.css/-/spectre.css-0.5.8.tgz",
"integrity": "sha512-3N4WocWY+Dl6b3e5v3nsZYyp+VSDcBfGDzyyHw/H78ie9BoAhHkxmrhLxo9y8RadxYzVrPjfPdlev3hXEUzR2w=="
}
}
}

16
package.json Normal file
View File

@ -0,0 +1,16 @@
{
"name": "histoiredunpied",
"version": "0.1.0",
"description": "Source code of histoiredunpied.com",
"main": "index.js",
"dependencies": {
"spectre.css": "0.5.8"
},
"scripts": {
"start": "hugo server -D",
"build": "hugo -D --minify",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Simon <simon@lamelio.fr>",
"license": "GPL-3.0"
}

BIN
static/logo.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 24.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 256.9 53.8" style="enable-background:new 0 0 256.9 53.8;" xml:space="preserve">
<style type="text/css">
.st0{fill:#1D1D1B;}
</style>
<title>logo_histoiredunpied_site</title>
<g>
<path class="st0" d="M65.1,27.9v10.2c0,1.6-2,1-2.1,0.5c0-1.3,0.1-7.3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-1.6,7.2-5.2,7.2c-6.4,0-6.7-10.9-6.7-15.1
C102.1,18.6,102.4,10.2,108.8,10.2z M104.1,23c0,10.5,1.9,13.4,4.5,13.4c3.5,0,3.6-9.1,3.6-11.4v-0.1c0-2.8-0.8-12.9-4.2-12.9
c-2.7,0-3.9,6-3.9,7.8C104.1,21,104.1,22,104.1,23z"/>
<path class="st0" d="M118.8,11.9c0.3-0.7,0.4-0.8,1.2-0.8c1,0,1,0.5,1,1.5c0,0.1,0,0.6,0,0.6l-1.1,24.7c-0.1,1.6-2.1,1.7-2.1,0.7
L118.8,11.9z"/>
<path class="st0" d="M124.6,36.1c0-8.1,0.3-16.3,0.5-24.4c0.1-1.7,0.7-1.7,2.1-1.7h0.4c3.3,0,5.4,2.2,5.4,5.3v0.4
c0,2.6-0.7,5.7-3.1,7.3c0.2,0.2,1,1.2,1.2,1.4c1.6,2.1,1.2,7.3,1.4,9.8c0,0.2,0.2,1.9,0.2,2.1v0.3c0,0.6-0.6,0.7-1,0.7l0,0
c-0.4,0-0.9,0-1-0.5c0-1.2-0.4-6.7-0.4-7.9c-0.1-1.8-0.5-4.2-2.7-4.2H127c-0.1,0.3-0.2,1.8-0.2,2.1s-0.2,8.3-0.3,11.4
c0,0.7,0.1,1.4-0.8,1.4c-0.4,0-0.8-0.1-1.1-0.5L124.6,36.1L124.6,36.1z M127.4,22.2c2.6,0,3.5-4.7,3.5-6.4c0-1.7-0.8-3.9-2.8-3.9
c-0.5,0-0.9,0.3-0.9,0.9c0,3.1-0.3,5.8-0.3,9C126.9,22.1,127.2,22.2,127.4,22.2z"/>
<path class="st0" d="M136.6,13c0-0.6,0.6-1.3,1.3-1.3h5.7c0.2,0,0.9,0.5,1,0.7c0,0.1,0,0.1,0,0.2c0,0.7-1,1-1.5,1h-4.3l0.2,12
l3.9-0.6h0.2c1.7,0,1,1.7-0.4,1.9l-3.6,0.5l-0.1,9.4c0.3,0,1.5,0,1.9,0c2.4,0,4.2-0.8,4.3,0.8c0.1,1.2-8,1.1-8,0.4L136.6,13z"/>
<path class="st0" d="M159.5,32c0-3.1,0-17.5,0-20.6v-0.1c0-0.8,0.3-1.6,1-1.9h0.3c1.4,0,3,0.3,4,1.3c3.9,3.5,4.6,9.6,4.4,14.5
c-0.3,6.9-1.9,13.6-7.8,14.3c-1.2,0.1-1.9,0-1.9-1.4V32z M161.5,25.1c0,3.2-0.1,8.7,0,12.3c4.5-0.7,5.7-7.8,5.7-11.8
c0-2.8-0.2-14-5.2-14h-0.3C161.7,13.7,161.5,23.1,161.5,25.1z"/>
<path class="st0" d="M172.8,11.3c0-0.6,0.3-0.8,0.9-0.8c0.3,0,1.3,0.2,1.3,0.7v12.2c0,0.4-0.4,1.1-0.9,1.1c-0.4,0-0.6-0.1-0.9-0.5
C173,19.9,172.8,15.5,172.8,11.3z"/>
<path class="st0" d="M184.7,37.1c-0.3,0-0.5,0-0.9-0.1c-4.4-0.5-4.8-11.5-5.1-24.1l-0.1-1.8v-0.2c0-0.8,1.9-0.8,2.2,0
c0.6,1-1,24.5,4,24.5c1.3,0,1.7-2.1,1.7-3c0.1-4.5,0-14.5-0.1-21.5c0.2-0.6,0.4-0.6,1-0.6s1.1,0.1,1.1,0.7
c0.2,6.3-0.1,12.7,0.1,19.4C188.5,33.6,188.5,37.1,184.7,37.1z"/>
<path class="st0" d="M192.6,12.8c-0.1-1.4,1.9-2.3,2.7-0.2l7.3,19.9c0-1.6,0.3-10.4,0.5-14c0.1-2.2,0-4.4,0.4-6.4
c0-0.4,0.4-0.4,0.9-0.4c0.9,0,0.9,0.1,0.9,0.9c-0.1,3.7-0.6,7.5-0.8,11.2c-0.1,2.1-0.4,12.1-0.4,14.1c-0.3,0.8-1.4,0.3-1.7-0.3
c-0.4-0.8-0.6-1.5-8.3-21.9L194,37.9c0,1.1-1.8,1-1.8,0.2L192.6,12.8z"/>
<path class="st0" d="M219.9,30.4c0-2.9,0.2-16.3,0.3-19.2c0.2-0.5,1.1-0.4,1.5-0.4c3.7,0,6.4,3.3,6.4,6.9c0,3.9-2.7,8.2-6.2,9.9
c0,0.6-0.2,3.4-0.2,4c0,1.2,0,6.8,0,8c-0.2,0.4-0.8,0.5-1.1,0.5s-0.4,0-0.7-0.2V30.4z M221.8,25.2c0.3,0,0.6-0.1,0.8-0.3
c2.1-1.9,3.3-4.1,3.3-7c0-1.9-1.3-5.3-3.8-5.3L221.8,25.2z"/>
<path class="st0" d="M230.7,11.9c0.3-0.7,0.4-0.8,1.2-0.8c1,0,1,0.5,1,1.5c0,0.1,0,0.6,0,0.6l-1.1,24.7c-0.1,1.6-2.1,1.7-2.1,0.7
L230.7,11.9z"/>
<path class="st0" d="M236.5,13c0-0.6,0.6-1.3,1.3-1.3h5.7c0.2,0,0.9,0.5,1,0.7c0,0.1,0,0.1,0,0.2c0,0.7-1,1-1.5,1h-4.4l0.2,12
l3.9-0.6h0.2c1.7,0,1,1.7-0.4,1.9l-3.6,0.5l-0.1,9.4c0.3,0,1.5,0,1.9,0c2.4,0,4.2-0.8,4.3,0.8c0.1,1.2-8,1.1-8,0.4L236.5,13z"/>
<path class="st0" d="M247.2,32c0-3.1,0-17.5,0-20.6v-0.1c0-0.8,0.3-1.6,1-1.9h0.3c1.4,0,3,0.3,4,1.3c3.9,3.5,4.6,9.6,4.4,14.5
c-0.3,6.9-1.9,13.6-7.8,14.3c-1.2,0.1-1.9,0-1.9-1.4L247.2,32L247.2,32z M249.2,25.1c0,3.2-0.1,8.7,0,12.3
c4.5-0.7,5.7-7.8,5.7-11.8c0-2.8-0.2-14-5.2-14h-0.3C249.4,13.7,249.2,23.1,249.2,25.1z"/>
</g>
<path class="st0" d="M26.9,0c-0.5,0-1,0-1.4,0c-0.1,0.8-0.1,1.5-0.2,2.2c-0.5,5.2-0.2,10.6-0.1,15.8c0.1,3.6-0.8,10,4.5,10
c2,0,2.6,0.2,3.9-0.4c1.4-0.6,2.5-1.9,3.9-2.1c2.4-0.2,1.1,2.2,0.3,3.1c0.8,0.1,1.8-0.6,2.5,0c0.8,1.2-2,3.2,0,2.4
c1.9-1.2,3.9-0.4,1.5,1.6c0.6-0.1,2.3-0.3,1.7,0.7c-0.3,0.5-1.7,1.4,0,0.9c1.4-0.4,0.5,1,0.4,1.1c-2.4,3.2-11.6,4.4-15.6,3.6
c-2.7-0.4-5.3-1.3-7.6-2.7c-1.4-0.8-1.5-1.6-2.7-1.8c-4.6,0.7-5.2-0.7-3.2-4.5c0.6-3.3,1.8-6.6,2.2-9.9c0.1-7.5,0.4-10.2-0.4-17.6
c0-0.1,0-0.2,0-0.4C6.9,6.1,0,15.7,0,26.9c0,14.9,12,26.9,26.9,26.9s26.9-12,26.9-26.9S41.8,0,26.9,0z"/>
</svg>

After

Width:  |  Height:  |  Size: 5.4 KiB

BIN
static/original.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

20
themes/lowtech/LICENSE Normal file
View File

@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2020 YOUR_NAME_HERE
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -0,0 +1,2 @@
+++
+++

View File

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<div id="content">
{{- block "main" . }}{{- end }}
</div>
{{- partial "footer.html" . -}}
</body>
</html>

View File

@ -0,0 +1,2 @@
{{ define "main" }}
{{ end }}

View File

@ -0,0 +1,2 @@
{{ $style := resources.Get "css/main.sass" | toCSS | minify | fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}">

View File

@ -0,0 +1,20 @@
<header class="header">
<div class="container">
<a href="/" class="accueil">
<img src="/logo_histoiredunpied_site.svg" alt="logo" class="logo" />
</a>
<nav class="menu">
<ul>
<li>
<a class="navigation-lien" href="#actu" title="Actualités">Actualités</a>
</li>
<li>
<a class="navigation-lien" href="#about" title="À propos">À propos</a>
</li>
<li>
<a class="navigation-lien" href="#contact" title="Contact">Contact</a>
</li>
</ul>
</nav>
</div>
</header>

21
themes/lowtech/theme.toml Normal file
View File

@ -0,0 +1,21 @@
# theme.toml template for a Hugo theme
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
name = "Lowtech"
license = "MIT"
licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE"
description = ""
homepage = "http://example.com/"
tags = []
features = []
min_version = "0.41"
[author]
name = ""
homepage = ""
# If porting an existing theme
[original]
name = ""
homepage = ""
repo = ""