commit 9a611bbf32b4255d93a3e42df183f9ecc3894caf Author: Simon C Date: Tue Feb 11 09:02:51 2020 +0100 first version diff --git a/.env b/.env new file mode 100644 index 0000000..8caa6f6 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +NAME=histoiredunpied diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..48b1cca --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +public +resources +node_modules diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..0fefb13 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +12.13.1 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..00e7447 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,2 @@ +FROM nginx +COPY public /usr/share/nginx/html diff --git a/README.md b/README.md new file mode 100644 index 0000000..80a233b --- /dev/null +++ b/README.md @@ -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 diff --git a/assets/css/main.sass b/assets/css/main.sass new file mode 100644 index 0000000..ff3cb9c --- /dev/null +++ b/assets/css/main.sass @@ -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 diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..a5a6928 --- /dev/null +++ b/config.toml @@ -0,0 +1,4 @@ +baseURL = "https://histoiredunpied.com/" +languageCode = "fr-fr" +title = "Histoire d'un Pied" +theme = "lowtech" diff --git a/content/about.md b/content/about.md new file mode 100644 index 0000000..4f51469 --- /dev/null +++ b/content/about.md @@ -0,0 +1,7 @@ +## À propos + +blablabla + +### Bienvenue !!! + +Je voulais vous montrer comment faire un site low tech diff --git a/content/contact.md b/content/contact.md new file mode 100644 index 0000000..d1cd6b6 --- /dev/null +++ b/content/contact.md @@ -0,0 +1,7 @@ +## Contact + +blablabla + +### Bienvenue !!! + +Je voulais vous montrer comment faire un site low tech diff --git a/data/mois.yaml b/data/mois.yaml new file mode 100644 index 0000000..21c9088 --- /dev/null +++ b/data/mois.yaml @@ -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" diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..b8cc067 --- /dev/null +++ b/docker-compose.yml @@ -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 diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..bb5085c --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,23 @@ +{{ define "main" }} +
+

+

+

Actualités

+

+ 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. +

+
+
+
+

+

+ {{ with .Site.GetPage "/about.md" }}{{ .Content }}{{ end }} +
+
+
+

+

+ {{ with .Site.GetPage "/contact.md" }}{{ .Content }}{{ end }} +
+
+{{ end }} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..153421b --- /dev/null +++ b/package-lock.json @@ -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==" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..b3d66b3 --- /dev/null +++ b/package.json @@ -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 ", + "license": "GPL-3.0" +} diff --git a/static/logo.jpg b/static/logo.jpg new file mode 100644 index 0000000..b736696 Binary files /dev/null and b/static/logo.jpg differ diff --git a/static/logo_histoiredunpied_site.svg b/static/logo_histoiredunpied_site.svg new file mode 100644 index 0000000..d1a9d8b --- /dev/null +++ b/static/logo_histoiredunpied_site.svg @@ -0,0 +1,60 @@ + + + + +logo_histoiredunpied_site + + + + + + + + + + + + + + + + + + + + diff --git a/static/original.jpg b/static/original.jpg new file mode 100644 index 0000000..a89290e Binary files /dev/null and b/static/original.jpg differ diff --git a/themes/lowtech/LICENSE b/themes/lowtech/LICENSE new file mode 100644 index 0000000..faff36e --- /dev/null +++ b/themes/lowtech/LICENSE @@ -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. diff --git a/themes/lowtech/archetypes/default.md b/themes/lowtech/archetypes/default.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/themes/lowtech/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/themes/lowtech/layouts/404.html b/themes/lowtech/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/lowtech/layouts/_default/baseof.html b/themes/lowtech/layouts/_default/baseof.html new file mode 100644 index 0000000..5f8e2ec --- /dev/null +++ b/themes/lowtech/layouts/_default/baseof.html @@ -0,0 +1,11 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} +
+ {{- block "main" . }}{{- end }} +
+ {{- partial "footer.html" . -}} + + diff --git a/themes/lowtech/layouts/_default/list.html b/themes/lowtech/layouts/_default/list.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/lowtech/layouts/_default/single.html b/themes/lowtech/layouts/_default/single.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/lowtech/layouts/index.html b/themes/lowtech/layouts/index.html new file mode 100644 index 0000000..e4e4a83 --- /dev/null +++ b/themes/lowtech/layouts/index.html @@ -0,0 +1,2 @@ +{{ define "main" }} +{{ end }} diff --git a/themes/lowtech/layouts/partials/footer.html b/themes/lowtech/layouts/partials/footer.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/lowtech/layouts/partials/head.html b/themes/lowtech/layouts/partials/head.html new file mode 100644 index 0000000..43ea100 --- /dev/null +++ b/themes/lowtech/layouts/partials/head.html @@ -0,0 +1,2 @@ +{{ $style := resources.Get "css/main.sass" | toCSS | minify | fingerprint }} + diff --git a/themes/lowtech/layouts/partials/header.html b/themes/lowtech/layouts/partials/header.html new file mode 100644 index 0000000..c8f8063 --- /dev/null +++ b/themes/lowtech/layouts/partials/header.html @@ -0,0 +1,20 @@ +
+
+ + + + +
+
diff --git a/themes/lowtech/theme.toml b/themes/lowtech/theme.toml new file mode 100644 index 0000000..0fec503 --- /dev/null +++ b/themes/lowtech/theme.toml @@ -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 = ""