Franck Valot

Theme + first pages

1 +---
2 +title: "{{ replace .Name "-" " " | title }}"
3 +date: {{ .Date }}
4 +draft: true
5 +---
6 +
1 +baseURL = "http://example.org/"
2 +languageCode = "en-us"
3 +title = "My New Hugo Site"
4 +theme = "ga-hugo-theme"
...\ No newline at end of file ...\ No newline at end of file
1 +---
2 +title: "Test"
3 +date: 2018-12-12T16:08:23+07:00
4 +draft: true
5 +---
6 +
7 +Test
...\ No newline at end of file ...\ No newline at end of file
1 +---
2 +title: "B"
3 +date: 2018-12-12T18:29:09+07:00
4 +draft: true
5 +---
6 +
1 +---
2 +title: "B"
3 +date: 2018-12-12T16:10:08+07:00
4 +draft: true
5 +---
6 +
7 +This is dir1/b.md
...\ No newline at end of file ...\ No newline at end of file
1 +[build]
2 +publish = "public"
3 +command = "hugo --gc --minify"
4 +
5 +[context.production.environment]
6 +HUGO_VERSION = "0.52"
7 +HUGO_ENV = "production"
8 +HUGO_ENABLEGITINFO = "true"
9 +
10 +[context.split1]
11 +command = "hugo --gc --minify --enableGitInfo"
12 +
13 +[context.split1.environment]
14 +HUGO_VERSION = "0.52"
15 +HUGO_ENV = "production"
16 +
17 +[context.deploy-preview]
18 +command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
19 +
20 +[context.deploy-preview.environment]
21 +HUGO_VERSION = "0.52"
22 +
23 +[context.branch-deploy]
24 +command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
25 +
26 +[context.branch-deploy.environment]
27 +HUGO_VERSION = "0.52"
28 +
29 +[context.next.environment]
30 +HUGO_ENABLEGITINFO = "true"
1 +The MIT License (MIT)
2 +
3 +Copyright (c) 2017 YOUR_NAME_HERE
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.
1 +# Giraffe Academy - Hugo Theme
2 +A "Hugo - Static Site Generator" theme used in Giraffe Academy's Hugo course
3 +
4 +## Usage
5 +Clone this repository into the themes/ folder. If you want you can rename it to something of your choosing, then modify the config.toml file with the following line:
6 +
7 +theme = "ga-hugo-theme"
1 +<h1>404 - Page Not Found</h1>
...\ No newline at end of file ...\ No newline at end of file
1 +<html>
2 +<head>
3 + <meta charset="UTF-8">
4 + <meta name="viewport" content="width=device-width, initial-scale=1.0">
5 + <meta http-equiv="X-UA-Compatible" content="ie=edge">
6 + <title>Document</title>
7 +</head>
8 +<body>
9 + {{ partial "header" (dict "Kind" .Kind "Template" "List") }}
10 + {{.Content}}
11 + {{ range .Pages }}
12 + <div style="border: 1px solid black; margin:10px; padding:10px; ">
13 + <div style="font-size:20px;">
14 + <a href="{{.URL}}">{{.Title}}</a>
15 + </div>
16 + <div style="color:grey; font-size:16px;">{{ dateFormat "Monday, Jan 2, 2006" .Date }}</div>
17 + <div style="color:grey; font-size:16px;">{{ if .Params.tags }}<strong>Tags:</strong> {{range .Params.tags}}<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a> {{end}}{{end}}</div>
18 + <div style="color:grey; font-size:16px;">{{ if .Params.categories }}<strong>Categories:</strong> {{range .Params.categories}}<a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}">{{ . }}</a> {{end}}{{end}}</div>
19 + <div style="color:grey; font-size:16px;">{{ if .Params.moods }}<strong>Moods:</strong> {{range .Params.moods}}<a href="{{ "/moods/" | relLangURL }}{{ . | urlize }}">{{ . }}</a> {{end}}{{end}}</div>
20 +
21 + <p style="font-size:18px;">{{.Summary}}</p>
22 + </div>
23 + {{ end }}
24 + {{ partial "footer" . }}
25 +</body>
26 +</html>
1 +<html>
2 +<head>
3 + <meta charset="UTF-8">
4 + <meta name="viewport" content="width=device-width, initial-scale=1.0">
5 + <meta http-equiv="X-UA-Compatible" content="ie=edge">
6 + <title>Document</title>
7 +</head>
8 +<body>
9 + {{ partial "header" (dict "Kind" .Kind "Template" "Single") }}
10 +
11 + <div style="margin:25px;">
12 + <h1>{{.Title}}</h1>
13 + <div style="color:grey; font-size:16px;">{{ dateFormat "Monday, Jan 2, 2006" .Date }}</div>
14 + <div style="color:grey; font-size:16px;">{{if .Params.author}}Author: {{.Params.Author}}{{end}}</div>
15 + <div style="font-size:18px;">{{.Content}}</div>
16 + </div>
17 + {{ partial "footer" . }}
18 +</body>
19 +</html>
...\ No newline at end of file ...\ No newline at end of file
1 +<div style="height:35px;"></div>
2 +<div style=" position:fixed; color: white; height:35px; background-color:#757575; bottom:0px; text-align:center; width:99%">
3 + <p style="margin:10px; "><a style="color: white; " target="_blank" href="http://www.giraffeacademy.com/">Giraffe Academy</a> - Hugo Theme</p>
4 +</div>
1 +<div style="text-align: center; height: 75px; padding:1px; text-transform:capitalize; background-color:#42a5f5; color:white">
2 + <h1 style="margin-bottom:-10px; "><a style="text-decoration: none; color:white;"href="/">{{.Template}} Template - {{.Kind}}</a></h1>
3 +</div>
...\ No newline at end of file ...\ No newline at end of file
1 +# theme.toml template for a Hugo theme
2 +# See https://github.com/gohugoio/hugoThemes#themetoml for an example
3 +
4 +name = "GiraffeAcademy Theme"
5 +license = "MIT"
6 +description = "A theme used in the Giraffe Academy Hugo course"
7 +tags = []
8 +features = []
9 +min_version = "0.25.1"
10 +
11 +[author]
12 + name = "Mike Dane"
13 + homepage = "http://www.giraffeacademy.com"