Browse Source

First commit: theme and first drafts

Gogs 8 years ago
commit
86385e6bd1

+ 3 - 0
.gitignore

@@ -0,0 +1,3 @@
1
+public/
2
+.tramp_history
3
+*~

+ 9 - 0
config.toml

@@ -0,0 +1,9 @@
1
+baseurl = "http://gildas.ch/"
2
+languageCode = "en-us"
3
+title = "GildasCh"
4
+theme = "gildasch"
5
+canonifyurls = true
6
+
7
+[params]
8
+  description = "GildasCh's Site"
9
+  author = "GildasCh"

+ 6 - 0
content/post

@@ -0,0 +1,6 @@
1
++++
2
+date = "2016-11-10T16:48:55+01:00"
3
+title = "post"
4
+
5
++++
6
+

+ 45 - 0
content/tech/backup-and-distributed-file-system.md

@@ -0,0 +1,45 @@
1
++++
2
+title = "Draft: Backup & Distributed File System"
3
+description = "An exploration on the solution for backing up all sorts of data and distributing them onto various storage devices"
4
+tags = [ "tech", "dev", "backup", "tools" ]
5
+date = "2016-08-09"
6
+categories = [ "tech" ]
7
+draft = true
8
++++
9
+
10
+## The Existing
11
+
12
+A great summary of existing tools and libraries for backup:
13
+https://github.com/restic/others
14
+
15
+
16
+### Restic
17
+Go. Great (CLI) UI but really specialized in backup. This does not
18
+provide any global file indexing or distribution of storage amongst
19
+several devices.
20
+
21
+- Website: https://restic.github.io/
22
+- Github: https://github.com/restic/restic/
23
+
24
+### Bup
25
+Python, with error correction
26
+
27
+- Website: https://bup.github.io/
28
+- Github: https://github.com/bup/bup
29
+
30
+### Camlistore
31
+Complete solution for file organization, written in Go, heavily
32
+followed (1,700+ stars)
33
+
34
+Seems a bit more complicated than it should, also, the Web UI is not
35
+bug-proof and the command line does not seem to be designed the best
36
+way.
37
+
38
+- Website: https://camlistore.org/
39
+- Github: https://github.com/camlistore/camlistore
40
+
41
+### go-sync
42
+Library for rsync-style synchro. Might be interesting if writting my
43
+own project in Go.
44
+
45
+- Github: https://github.com/Redundancy/go-sync

+ 29 - 0
content/tech/data-graphs-and-plotting.md

@@ -0,0 +1,29 @@
1
++++
2
+date = "2016-11-10T16:49:45+01:00"
3
+title = "Data Graphs and Plotting"
4
+tags = [ "tech", "plot", "data", "visualization" ]
5
+categories = [ "tech" ]
6
+
7
++++
8
+
9
+## Plots
10
+
11
+### ggplot2
12
+
13
+- Language: R
14
+- Doc: http://docs.ggplot2.org/current/
15
+
16
+## Datamaps
17
+
18
+### datamaps.js
19
+
20
+- Language: Javascript
21
+- Produces SVG
22
+- Built-in maps (world, USA only, USA + world)
23
+- Can use custom maps
24
+- Github: https://github.com/markmarkoh/datamaps
25
+- Webpage: http://datamaps.github.io/
26
+- County level discussion: https://github.com/markmarkoh/datamaps/issues/239
27
+  - [Example](https://www.aphis.usda.gov/aphis/ourfocus/animalhealth/SA_Animal_Disease_Information/SA_Avian_Health/sa_detections_by_states/ct_by_state?filters=Indiana)
28
+
29
+![Example](https://camo.githubusercontent.com/91630a98f719d2c4d9a1c2f9ea232678303039fe/687474703a2f2f646174616d6170732e6769746875622e696f2f696d616765732f63686f726f706c6574682e706e67)

+ 7 - 0
content/tech/gnagna.md

@@ -0,0 +1,7 @@
1
++++
2
+title = "Mon titre"
3
+date = "2016-10-09"
4
+categories = [ "tech" ]
5
++++
6
+
7
+efnfnsfsoif soifjs eosiejf os ijg soigj soigj soeig jseoigjs eoigj soeigj

+ 60 - 0
content/test/styles.html

@@ -0,0 +1,60 @@
1
++++
2
+title = "Styling"
3
+description = "Test for styling"
4
+tags = [ "hugotests" ]
5
+date = "2016-08-06"
6
+categories = [
7
+  "hugotests"
8
+]
9
++++
10
+
11
+<h1>Titre 1</h1>
12
+<h2>TItre 2</h2>
13
+<p>f fo ijifwifj wi <em>wif wfj wj jfijij</em> wfijwjfhf sf fiafoi ajfifjffsfh fuhfusfnjnosvnsiofirgnak ef aoeif nsvjnrsv nsvosr viosrj ifjsrn vsro <strong>nsvnnsr</strong> oisvr vsorv oiijr isijrvoij<br />
14
+  fefiesfisf  fise fsef <quote>"ffsff fsgh wofepkd dodpofef edefå"</quote></p>
15
+
16
+<h3>Titre 3</h3>
17
+<h4>Titre 4</h4>
18
+<ul>
19
+
20
+  <li>
21
+    <a href="/2016/07/20/grgrrr-grhgeegg.html">Grgrrr Grhgeegg</a>
22
+  </li>
23
+
24
+</ul>
25
+
26
+<blockquote>
27
+  title: Gildas Chabot
28
+  legend: Gnagna
29
+  url: //gildasch.github.io
30
+  encoding: UTF-8
31
+  defaults:
32
+  -
33
+  scope:
34
+  path: "" # an empty string here means all files in the project
35
+  values:
36
+  layout: "default"
37
+</blockquote>
38
+
39
+<p>/* Colors:</p>
40
+<p style='color:#263238'>background: #263238</p>
41
+<p style='color:#37474f'>current-line #37474f</p>
42
+<p style='color:#1c1f26'>far-background #1c1f26</p>
43
+<p style='color:#78909c'>inactive-gray #78909c</p>
44
+<p style='color:#455A64'>header-color #455A64</p>
45
+<p style='color:#a7adba'>subtle #a7adba</p>
46
+<p style='color:#555555'>selection #555555</p>
47
+<p style='color:#bf616a'>secondary-selection #bf616a</p>
48
+<p style='color:#ffffff'>foreground #ffffff</p>
49
+<p style='color:#b0bec5'>comment #b0bec5</p>
50
+<p style='color:#f36c60'>red #f36c60</p>
51
+<p style='color:#ff9800'>orange #ff9800</p>
52
+<p style='color:#fff59d'>yellow #fff59d</p>
53
+<p style='color:#8bc34a'>green #8bc34a</p>
54
+<p style='color:#81d4fa'>aqua #81d4fa</p>
55
+<p style='color:#4dd0e1'>blue #4dd0e1</p>
56
+<p style='color:#b39ddb'>purple #b39ddb</p>
57
+*/
58
+</p>
59
+
60
+</div>

+ 11 - 0
content/test/test.md

@@ -0,0 +1,11 @@
1
++++
2
+title = "Test page"
3
+description = "Just a random page for hugo test"
4
+tags = [ "hugotests" ]
5
+date = "2016-08-06"
6
+categories = [
7
+  "hugotests"
8
+]
9
++++
10
+
11
+Prout

+ 20 - 0
themes/gildasch/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/gildasch/archetypes/default.md

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

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


+ 10 - 0
themes/gildasch/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/gildasch/layouts/_default/list.html

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

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

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

+ 12 - 0
themes/gildasch/layouts/index.html

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

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

@@ -0,0 +1,3 @@
1
+      <div id='footer'>GildasCh @ 2016</div>
2
+    </body>
3
+</html>

+ 10 - 0
themes/gildasch/layouts/partials/header.html

@@ -0,0 +1,10 @@
1
+<!DOCTYPE HTML>
2
+<html>
3
+	<head>
4
+		<title>{{ .Title }}</title>
5
+		<meta charset="utf-8" />
6
+        <link rel="stylesheet" href="{{ .Site.BaseURL }}css/main.css" />
7
+	</head>
8
+	<body>
9
+      <h1 id='header'><a href='/' class='noDec'>Gildas:</a> <a href='/'>Dev</a> - <a href='/beer/'>Bière</a></h1>
10
+

BIN
themes/gildasch/static/FantasqueSansMono-Regular.ttf


+ 127 - 0
themes/gildasch/static/css/main.css

@@ -0,0 +1,127 @@
1
+@font-face {
2
+  font-family: 'Fantasque Sans Mono';
3
+  font-weight:200;
4
+  src: local('Fantasque Sans Mono'), local('Fantasque Sans Mono'), url('//gildasch.github.io/assets/FantasqueSansMono-Regular.ttf') format('truetype');
5
+}
6
+
7
+body {
8
+  font-family: 'Fantasque Sans Mono';
9
+  background-color:#263238;
10
+  color:white;
11
+  font-size:18px;
12
+  box-shadow: rgba(0, 0, 0, 0.05) 13px 0px 10px 2px;
13
+  max-width:1000px;
14
+  margin:auto;
15
+}
16
+
17
+/* Colors:
18
+background: #263238
19
+current-line #37474f
20
+far-background #1c1f26
21
+inactive-gray #78909c
22
+header-color #455A64
23
+subtle #a7adba
24
+selection #555555
25
+secondary-selection #bf616a
26
+foreground #ffffff
27
+comment #b0bec5
28
+red #f36c60
29
+orange #ff9800
30
+yellow #fff59d
31
+green #8bc34a
32
+aqua #81d4fa
33
+blue #4dd0e1
34
+purple #b39ddb
35
+*/
36
+
37
+#header {
38
+    font-size:4em;
39
+    margin:0;
40
+    // color:#81d4fa;
41
+    color:#78909c;
42
+    font-weight:200;
43
+    text-align:center;
44
+}
45
+
46
+#header a.noDec {
47
+    color:#78909c;
48
+    background-color:transparent;
49
+}
50
+
51
+#content {
52
+    padding-right:5px;
53
+}
54
+
55
+#footer {
56
+    margin-top:30px;
57
+    padding-bottom:10px;
58
+    color:#78909c;
59
+    text-align:center;
60
+    background-image:url('../images/gildas2.jpg');
61
+    background-position:top center;
62
+    background-repeat:no-repeat;
63
+    padding-top:170px;
64
+    border-top:1px solid #78909c;
65
+}
66
+
67
+h1 {
68
+    color:#f36c60;
69
+}
70
+
71
+h2, h3, h4 {
72
+    margin-bottom:5px;
73
+}
74
+
75
+h2, h2 a, h2 a:hover {
76
+    color:#8bc34a;
77
+    background-color:transparent;
78
+}
79
+
80
+h3 {
81
+    // orange color:#ff9800;
82
+    color:#fff59d;
83
+}
84
+
85
+h4 {
86
+    // color:#b0bec5;
87
+    color:#81d4fa;
88
+}
89
+
90
+em {
91
+}
92
+
93
+strong {
94
+    color:#b0bec5;
95
+    font-weight:normal;
96
+}
97
+
98
+a {
99
+    color:#4dd0e1;
100
+    background-color:#555555;
101
+}
102
+
103
+a:hover {
104
+    color:#81d4fa;
105
+    background-color:#bf616a;
106
+}
107
+
108
+quote, blockquote {
109
+    background-color:#37474f;
110
+}
111
+
112
+blockquote {
113
+    padding:2px;
114
+    border-left:3px solid white;
115
+    margin-left:20px;
116
+    padding-left:20px;
117
+}
118
+
119
+time {
120
+    font-style:italic;
121
+    float:right;
122
+    margin-right:5px;
123
+}
124
+
125
+p {
126
+    margin-top:5px;
127
+}

BIN
themes/gildasch/static/images/gildas2.jpg


+ 21 - 0
themes/gildasch/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 = ""