From 9a611bbf32b4255d93a3e42df183f9ecc3894caf Mon Sep 17 00:00:00 2001 From: Simon C Date: Tue, 11 Feb 2020 09:02:51 +0100 Subject: [PATCH] first version --- .env | 1 + .gitignore | 3 + .nvmrc | 1 + Dockerfile | 2 + README.md | 31 ++++++++ assets/css/main.sass | 84 ++++++++++++++++++++ config.toml | 4 + content/about.md | 7 ++ content/contact.md | 7 ++ data/mois.yaml | 12 +++ docker-compose.yml | 23 ++++++ layouts/index.html | 23 ++++++ package-lock.json | 13 +++ package.json | 16 ++++ static/logo.jpg | Bin 0 -> 3882 bytes static/logo_histoiredunpied_site.svg | 60 ++++++++++++++ static/original.jpg | Bin 0 -> 1192 bytes themes/lowtech/LICENSE | 20 +++++ themes/lowtech/archetypes/default.md | 2 + themes/lowtech/layouts/404.html | 0 themes/lowtech/layouts/_default/baseof.html | 11 +++ themes/lowtech/layouts/_default/list.html | 0 themes/lowtech/layouts/_default/single.html | 0 themes/lowtech/layouts/index.html | 2 + themes/lowtech/layouts/partials/footer.html | 0 themes/lowtech/layouts/partials/head.html | 2 + themes/lowtech/layouts/partials/header.html | 20 +++++ themes/lowtech/theme.toml | 21 +++++ 28 files changed, 365 insertions(+) create mode 100644 .env create mode 100644 .gitignore create mode 100644 .nvmrc create mode 100644 Dockerfile create mode 100644 README.md create mode 100644 assets/css/main.sass create mode 100644 config.toml create mode 100644 content/about.md create mode 100644 content/contact.md create mode 100644 data/mois.yaml create mode 100644 docker-compose.yml create mode 100644 layouts/index.html create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 static/logo.jpg create mode 100644 static/logo_histoiredunpied_site.svg create mode 100644 static/original.jpg create mode 100644 themes/lowtech/LICENSE create mode 100644 themes/lowtech/archetypes/default.md create mode 100644 themes/lowtech/layouts/404.html create mode 100644 themes/lowtech/layouts/_default/baseof.html create mode 100644 themes/lowtech/layouts/_default/list.html create mode 100644 themes/lowtech/layouts/_default/single.html create mode 100644 themes/lowtech/layouts/index.html create mode 100644 themes/lowtech/layouts/partials/footer.html create mode 100644 themes/lowtech/layouts/partials/head.html create mode 100644 themes/lowtech/layouts/partials/header.html create mode 100644 themes/lowtech/theme.toml 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 0000000000000000000000000000000000000000..b736696e1755f1ab6a221c3ee66be6e32273c1d1 GIT binary patch literal 3882 zcmb7Hc{r47*nej=7`(#}Su*w|4nxJEELp}@W0yUl>^US!W#6(4m0e~eA+pPE>?-?G z_O;Mawh}qYH*>yD*Y*AR-S6|q^FH_Wyw~&m?%(~p@AqipXaNBAb@X%q2m}HUXb*5S z4V(vHP$+%S3{D#e6aoQcfAJ^+BiXs3k$ zzYPMVoe{}^qIr2~>vZ>T9{~LF9!&vg7|jX7K-$_59Rgg)34#Wa+0(NMpu$iW=U8+M z1Rvq&+QfgZtZe$jT+LMuc0Mbp#w6ojSl& zjm?*SNl;j8P?^2)WMOOiY6kz~Z$0GggG0MUfhQyGhmEtl%|68L&jUgPZRg%h8g@XZJV2!dqZ1GX0UDA}S~UK< z6qNQ3ATaDmAr2gF#RzgjqN9-TppYx?%jMr!w0F!z*Ouuv1ewH zy6@RNpT&9Eug^M2a>j+0PBu>k0;jbLWz&r>86LH@SgJ{C@ZAnQ8=yN!B?r4>P`bt3G$v zP5Xxr)+)6NORwg4cCU~dl}vT(JQ4W)ZeyaDyStaWO@z(Im2+y`?^m-QNooSUD*H3n z^->MIUbt36#V0kzKM}gL{08zINM5nd%ew#MtMt6C5aU|h>wR$q#A&68%F8QV62z|B z+dX$GE}7Xe3q?g@rjGn1_x4UfTKP>8S&Q zAQ3Pa;(y6N7Y8~O;2?*Fak3De#sP!^1)I_)tZq`V^(&2#YS6FWZ2ytHLwZpdZu^x! zOO52WJohHo>-!mjqV4#}B72;hE~0*=+@lehm8I*DbjI9zIj>+jg-Gc+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TDaW zc*K!)Ot$4Z@qz`*dKJf*2pJJ#a?nNlGcv7$9M0ep-aTbb*8Ro@k!mvjxiF(9tyV(5 zcD6~@XR<@0ewf4Wn|wY~R@zUeKS>+&>&zH;Ve{e}MLQW6!Z%(m5J&hBKfIBxCq~(* hq`y~>tqMw?-pkGn-}ejJSp7P{%6B43E$L|Te*kpeaaI5T literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..a89290ec4209a258b21c9968a668ec306f682d55 GIT binary patch literal 1192 zcmex=``2_j6xdp@o1cgOJMMZh|#U;coyG6VInuyV4pa*FVB^NNrR z{vToxU8BNNaA zZ2xaD@BlS22`~#VFfe|V+|ZG4F0gFXwkNgzYv0)JpKvrOJ7#6?(;}md%MQ99zjQk1 zX#^*)MnXN%OnCvIfs8CjR)UOV5D*e(WfM^V8q5K-l#!KbQJKQkO)i;Er?={ydO!J? zowc>yzYEtL7Z>m*pLweN=go>Q!f)nMKi2 zfK@@spb=~~Gb5ut<6AZ1nyF{4-AX=b2$Wk}_RpB3`JmHriD=7062OSk5oD?Xsr z`7ArIXfYafdChxeL5P& z9R2m*(!(suLw`urJZR%=!VM?4BC{nc8thK=`uz0uJW@2;%{)rW(A zne+=>_Xm0#oP@y1OF-bj^ba}@&74`}fzFl&1w1gKV2%bRF$O^aMMH&!@F)~Gs^^!{ z^y;7Q6K3aBvkd_|K2N_faSeZgtFOcC+{s>Ly4#+72AU)bOzEh}8<_SL1q>Ao90TDo zC~$mr!hDE(M??hYjObpU(j!ak=#ozxc>KUiBOqZ=UH)EmAk{t6AUl<*1)gZspME7Vx8P zpO2TNAa6&TE(>q + + {{- 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 = ""