Selaa lähdekoodia

Site Set-up + empty draft

Gogs 8 vuotta sitten
commit
e01b563de1

+ 4 - 0
config.toml

@@ -0,0 +1,4 @@
1
+baseurl = "http://infecte.fr/"
2
+languageCode = "fr"
3
+title = "Les papiers de la fermentation"
4
+theme = "infecte"

+ 6 - 0
content/trend/les-boissons-fermentees.md

@@ -0,0 +1,6 @@
1
++++
2
+date = "2017-04-23T17:20:20+02:00"
3
+title = "Le Kombucha et les boissons fermentées aux États-Unis"
4
+draft = true
5
++++
6
+

+ 20 - 0
themes/infecte/LICENSE.md

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

+ 2 - 0
themes/infecte/archetypes/default.md

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

+ 1 - 0
themes/infecte/infecte

@@ -0,0 +1 @@
1
+infecte

+ 0 - 0
themes/infecte/layouts/404.html


+ 10 - 0
themes/infecte/layouts/_default/grid.html

@@ -0,0 +1,10 @@
1
+<article>
2
+    <div class="image" style="background-image: url({{ $.Site.BaseURL }}images/{{ with .Params.image }}{{ . }}{{ else }}default.jpg{{ end }});"></div>
3
+      <time>{{ with .Site.Params.DateForm }}{{ $.Date.Format . }}{{ else }}{{ $.Date.Format "Mon, Jan 2, 2006" }}{{ end }}</time>
4
+      <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
5
+    <p class="summary">
6
+      {{ .Content }}<br />
7
+      <em>{{ .Params.categories }}, {{ .Params.tags }}</em>
8
+    </p>
9
+    <a href="{{ .Permalink }}">Go to post</a>
10
+</article>

+ 11 - 0
themes/infecte/layouts/_default/list.html

@@ -0,0 +1,11 @@
1
+{{ partial "header.html" . }}
2
+
3
+<div id='content'>
4
+  <h1 class="p-page-title">Posts dans {{ .Title }}</h1>
5
+
6
+  {{ range (.Paginate .Data.Pages).Pages }}
7
+  {{ .Render "grid" }}
8
+  {{ end }}
9
+</div>
10
+
11
+{{ partial "footer.html" . }}

+ 8 - 0
themes/infecte/layouts/_default/single.html

@@ -0,0 +1,8 @@
1
+{{ partial "header.html" . }}
2
+
3
+<div id='content'>
4
+  <h2>{{ .Title }}</h2>
5
+  {{ .Content }}
6
+</div>
7
+
8
+{{ partial "footer.html" . }}

+ 11 - 0
themes/infecte/layouts/index.html

@@ -0,0 +1,11 @@
1
+{{ partial "header.html" . }}
2
+
3
+<div id='content'>
4
+  <div class="row">
5
+    {{ range $key, $value := .Paginator.Pages }}
6
+    {{ .Render "grid" }}
7
+    {{ end }}
8
+  </div>
9
+</div>
10
+
11
+{{ partial "footer.html" . }}

+ 3 - 0
themes/infecte/layouts/partials/footer.html

@@ -0,0 +1,3 @@
1
+      <div id='footer'>Équipe Infecté @ 2017</div>
2
+    </body>
3
+</html>

+ 9 - 0
themes/infecte/layouts/partials/header.html

@@ -0,0 +1,9 @@
1
+<!DOCTYPE HTML>
2
+<html>
3
+	<head>
4
+		<title>{{ .Title }}</title>
5
+		<meta charset="utf-8" />
6
+        <link rel="stylesheet" href="/css/main.css" />
7
+	</head>
8
+	<body>
9
+      <h1>{{ .Title }}</h1>

+ 75 - 0
themes/infecte/static/css/main.css

@@ -0,0 +1,75 @@
1
+@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:300');
2
+
3
+body {
4
+  font-family: 'Roboto Slab', serif;
5
+  background-color:white;
6
+  color:black;
7
+  font-size:18px;
8
+  max-width:1000px;
9
+  margin:auto;
10
+}
11
+
12
+img {
13
+    max-width:1000px;
14
+}
15
+
16
+h1 {
17
+    border-top:2px solid black;
18
+    border-bottom:2px solid black;
19
+    text-align:center;
20
+    padding:10px;
21
+}
22
+
23
+#footer {
24
+    padding:10px;
25
+    border-top:2px solid black;
26
+    margin-top:50px;
27
+    text-align:center;
28
+}
29
+
30
+h2, h3, h4 {
31
+    margin-bottom:5px;
32
+}
33
+
34
+h2, h2 a, h2 a:hover {
35
+    background-color:transparent;
36
+}
37
+
38
+h3 {
39
+}
40
+
41
+h4 {
42
+}
43
+
44
+img {
45
+    display:block;
46
+    margin:auto;
47
+    margin-top:10px;
48
+    margin-bottom:10px;
49
+}
50
+
51
+em {
52
+}
53
+
54
+strong {
55
+    font-weight:normal;
56
+}
57
+
58
+
59
+blockquote {
60
+    padding:2px;
61
+    border-left:3px solid white;
62
+    margin-left:20px;
63
+    padding-left:20px;
64
+}
65
+
66
+time {
67
+    font-style:italic;
68
+    float:right;
69
+    margin-right:5px;
70
+}
71
+
72
+p {
73
+    margin-top:5px;
74
+    text-align:justify;
75
+}

+ 21 - 0
themes/infecte/theme.toml

@@ -0,0 +1,21 @@
1
+# theme.toml template for a Hugo theme
2
+# See https://github.com/spf13/hugoThemes#themetoml for an example
3
+
4
+name = "Gildasch"
5
+license = "MIT"
6
+licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE.md"
7
+description = ""
8
+homepage = "http://siteforthistheme.com/"
9
+tags = ["", ""]
10
+features = ["", ""]
11
+min_version = 0.15
12
+
13
+[author]
14
+  name = ""
15
+  homepage = ""
16
+
17
+# If porting an existing theme
18
+[original]
19
+  name = ""
20
+  homepage = ""
21
+  repo = ""