aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFélix Sipma <felix.sipma@no-log.org>2018-02-06 13:44:32 +0100
committerFélix Sipma <felix.sipma@no-log.org>2018-02-06 13:44:32 +0100
commit8a6ea04afd9a0946842474adb2ff2bf73c60cf6f (patch)
treeae4eb1d65ddf5b4b3c7640ca9cea9bd82bd57818
parentbe4a55d15211ebc578dba123e742515387474767 (diff)
use hugo
-rw-r--r--Makefile19
-rw-r--r--archetypes/default.md6
-rw-r--r--config.toml5
-rw-r--r--deploy.sh4
-rw-r--r--dist/index.html21
-rw-r--r--layouts/index.html14
-rw-r--r--layouts/partials/footer.html2
-rw-r--r--layouts/partials/header.html10
-rw-r--r--static/css/fournil.css (renamed from dist/css/fournil.css)0
-rw-r--r--static/img/travaux.jpg (renamed from dist/img/travaux.jpg)bin1010343 -> 1010343 bytes
10 files changed, 54 insertions, 27 deletions
diff --git a/Makefile b/Makefile
index 896a3f2..bafb01d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,25 @@
PATH := node_modules/.bin:$(PATH)
-DIST=./dist
-build: npm css fonts
+STATIC=./static
+DIST_STATIC=./dist/static
+
+build: npm css fonts img site
npm:
npm install
css:
- mkdir -p $(DIST)/css && cp node_modules/bootstrap/dist/css/bootstrap.min.css $(DIST)/css/
+ mkdir -p $(DIST_STATIC)/css && cp node_modules/bootstrap/dist/css/bootstrap.min.css $(DIST_STATIC)/css/
+ cp $(STATIC)/css/* $(DIST_STATIC)/css
fonts:
- mkdir -p $(DIST)/fonts && cp -R node_modules/font-awesome/fonts/* $(DIST)/fonts/
- mkdir -p $(DIST)/css && cp -R node_modules/font-awesome/css/font-awesome.min.css $(DIST)/css/
+ mkdir -p $(DIST_STATIC)/fonts && cp -R node_modules/font-awesome/fonts/* $(DIST_STATIC)/fonts/
+ mkdir -p $(DIST_STATIC)/css && cp -R node_modules/font-awesome/css/font-awesome.min.css $(DIST_STATIC)/css/
+
+img:
+ mkdir -p $(DIST_STATIC)/img && cp $(STATIC)/img/* $(DIST_STATIC)/img
+
+site:
+ hugo
.PHONY: build
diff --git a/archetypes/default.md b/archetypes/default.md
new file mode 100644
index 0000000..f5a9e45
--- /dev/null
+++ b/archetypes/default.md
@@ -0,0 +1,6 @@
+---
+title: "{{ replace .TranslationBaseName "-" " " | title }}"
+date: {{ .Date }}
+draft: true
+---
+
diff --git a/config.toml b/config.toml
new file mode 100644
index 0000000..5984e90
--- /dev/null
+++ b/config.toml
@@ -0,0 +1,5 @@
+baseURL = "http://fournilsipma.fr/"
+languageCode = "fr-fr"
+title = "Fournil Sipma"
+staticDir = "dist/static"
+publishDir = "dist/public"
diff --git a/deploy.sh b/deploy.sh
index 31a8e8d..ed0aa30 100644
--- a/deploy.sh
+++ b/deploy.sh
@@ -1,5 +1,7 @@
#!/bin/bash
+DIST="dist/public"
+
set -o errexit -o nounset
if [ "$TRAVIS_BRANCH" != "master" ]
@@ -10,7 +12,7 @@ fi
rev=$(git rev-parse --short HEAD)
-cd dist
+cd "$DIST"
git init
git config user.name "fournilsipma bot"
diff --git a/dist/index.html b/dist/index.html
deleted file mode 100644
index 8ad6977..0000000
--- a/dist/index.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<!doctype html>
-<html xmlns="http://www.w3.org/1999/xhtml" xmlns:foo="http://www.w3.org/2000/svg" lang="fr">
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <title>Fournil Sipma</title>
- <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
- <link href="css/fournil.css" rel="stylesheet" type="text/css">
- </head>
- <body>
- <div class="container-fluid">
- <div class="vertical-align">
- <div class="banner">
- <h1>Site en construction...</h1>
- <h2>Date d'inauguration du fournil: mardi 13 février</h2>
- <h2>Horaires d'ouverture: 16h30-19h30 du mardi au samedi</h2>
- </div>
- </div>
- </div>
- </body>
-</html>
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..f0ee5b0
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,14 @@
+{{ partial "header.html" . }}
+
+ <div class="container-fluid">
+ <div class="vertical-align">
+ <div class="banner">
+ <h1>Site en construction...</h1>
+ <h2>Date d'inauguration du fournil: mardi 13 février</h2>
+ <h2>Horaires d'ouverture: 16h30-19h30 du mardi au samedi</h2>
+ </div>
+ </div>
+ </div>
+
+
+{{ partial "footer.html" }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100644
index 0000000..b605728
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -0,0 +1,2 @@
+ </body>
+</html>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100644
index 0000000..1dd19bc
--- /dev/null
+++ b/layouts/partials/header.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr-fr">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
+ <title>Fournil Sipma</title>
+ <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
+ <link href="css/fournil.css" rel="stylesheet" type="text/css">
+ </head>
+ <body>
diff --git a/dist/css/fournil.css b/static/css/fournil.css
index c9f8db5..c9f8db5 100644
--- a/dist/css/fournil.css
+++ b/static/css/fournil.css
diff --git a/dist/img/travaux.jpg b/static/img/travaux.jpg
index 79da33a..79da33a 100644
--- a/dist/img/travaux.jpg
+++ b/static/img/travaux.jpg
Binary files differ