Initialized website
This commit is contained in:
commit
1fe718741b
26 changed files with 399 additions and 0 deletions
15
.gitignore
vendored
Normal file
15
.gitignore
vendored
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
### Hugo template
|
||||||
|
# Generated files by hugo
|
||||||
|
/public/
|
||||||
|
/resources/_gen/
|
||||||
|
/assets/jsconfig.json
|
||||||
|
hugo_stats.json
|
||||||
|
|
||||||
|
# Executable may be added to repository
|
||||||
|
hugo.exe
|
||||||
|
hugo.darwin
|
||||||
|
hugo.linux
|
||||||
|
|
||||||
|
# Temporary lock file while building
|
||||||
|
/.hugo_build.lock
|
||||||
|
|
5
archetypes/default.md
Normal file
5
archetypes/default.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
+++
|
||||||
|
date = '{{ .Date }}'
|
||||||
|
draft = false
|
||||||
|
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
|
||||||
|
+++
|
13
content/_index.md
Normal file
13
content/_index.md
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
+++
|
||||||
|
date = 2024-09-30
|
||||||
|
draft = false
|
||||||
|
title = 'Accueil'
|
||||||
|
+++
|
||||||
|
|
||||||
|
# Bienvenue chez jouf
|
||||||
|
|
||||||
|
Ceci est censé être ma page d'accueil.
|
||||||
|
|
||||||
|
Voici un lien vers [le test de la mort][tst-mrt].
|
||||||
|
|
||||||
|
[tst-mrt]: /le-test-de-la-mort
|
8
content/a-propos/_index.md
Normal file
8
content/a-propos/_index.md
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
+++
|
||||||
|
date = '2024-10-26T19:06:23+02:00'
|
||||||
|
draft = false
|
||||||
|
title = 'A propos'
|
||||||
|
+++
|
||||||
|
|
||||||
|
Salut moi c'est Jouf du 31 ;)
|
||||||
|
|
9
content/blog/post1.md
Normal file
9
content/blog/post1.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
+++
|
||||||
|
date = '2024-10-26T19:21:39+02:00'
|
||||||
|
draft = false
|
||||||
|
title = "C'est beau"
|
||||||
|
published = '2024-09-26T10:21:39+02:00'
|
||||||
|
+++
|
||||||
|
|
||||||
|
Hello
|
||||||
|
|
9
content/le-test-de-la-mort.md
Normal file
9
content/le-test-de-la-mort.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
+++
|
||||||
|
date = '2024-10-26T18:58:45+02:00'
|
||||||
|
draft = false
|
||||||
|
title = 'Le Test De La Mort'
|
||||||
|
+++
|
||||||
|
|
||||||
|
hip hip hip
|
||||||
|
|
||||||
|
HOURA !!
|
6
hugo.toml
Normal file
6
hugo.toml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
baseURL = "https://jouf.fr/"
|
||||||
|
|
||||||
|
languageCode = "fr-fr"
|
||||||
|
defaultContentLanguage = "fr"
|
||||||
|
title = "Le site de Jouf"
|
||||||
|
theme = "prout"
|
21
themes/prout/LICENSE
Normal file
21
themes/prout/LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) [year] [fullname]
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
7
themes/prout/README.md
Normal file
7
themes/prout/README.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# Theme Name
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
## Configuration
|
5
themes/prout/archetypes/default.md
Normal file
5
themes/prout/archetypes/default.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
+++
|
||||||
|
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
|
||||||
|
date = {{ .Date }}
|
||||||
|
draft = true
|
||||||
|
+++
|
105
themes/prout/assets/css/main.css
Normal file
105
themes/prout/assets/css/main.css
Normal file
|
@ -0,0 +1,105 @@
|
||||||
|
:root {
|
||||||
|
--primary-background-color: #ccccff;
|
||||||
|
--secondary-background-color: #b3b3ff;
|
||||||
|
|
||||||
|
--primary-text-color: #060613;
|
||||||
|
--secondary-text-color: #000033;
|
||||||
|
|
||||||
|
--primary-title-color: #060613;
|
||||||
|
--secondary-title-color: #000033;
|
||||||
|
|
||||||
|
--primary-link-color: #2a0080;
|
||||||
|
--secondary-link-color: #000033;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (prefers-color-scheme: dark) {
|
||||||
|
:root {
|
||||||
|
--primary-background-color: #060613;
|
||||||
|
--primary-text-color: #ccccff;
|
||||||
|
--primary-title-color: #ccccff;
|
||||||
|
--primary-link-color: #4242ce;
|
||||||
|
|
||||||
|
--secondary-background-color: #131318;
|
||||||
|
--secondary-text-color: #b3b3ff;
|
||||||
|
--secondary-title-color: #b3b3ff;
|
||||||
|
--secondary-link-color: #252564;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--header-background-color: var(--secondary-background-color);
|
||||||
|
--header-text-color: var(--secondary-text-color);
|
||||||
|
|
||||||
|
--body-background-color: var(--primary-background-color);
|
||||||
|
--body-text-color: var(--primary-text-color);
|
||||||
|
|
||||||
|
--footer-background-color: var(--secondary-background-color);
|
||||||
|
--footer-text-color: var(--secondary-text-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
color: var(--body-text-color);
|
||||||
|
background: var(--body-background-color);
|
||||||
|
font-family: sans-serif;
|
||||||
|
line-height: 1.5;
|
||||||
|
margin-left: 1rem;
|
||||||
|
margin-right: 1rem;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
header {
|
||||||
|
color: var(--header-text-color);
|
||||||
|
background: var(--header-background-color);
|
||||||
|
border-bottom: 1px solid #222;
|
||||||
|
}
|
||||||
|
|
||||||
|
header h1 {
|
||||||
|
color: var(--primary-title-color);
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
header a {
|
||||||
|
color: #252564;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
header ul {
|
||||||
|
text-align: center;
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
header li {
|
||||||
|
display: inline;
|
||||||
|
padding: 5px 10px;
|
||||||
|
border: 1px solid;
|
||||||
|
margin: 4px;
|
||||||
|
background: cornflowerblue;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
color: var(--body-text-color);
|
||||||
|
background: var(--body-background-color);
|
||||||
|
font-family: sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: var(--primary-link-color);
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
color: var(--secondary-title-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
color: var(--footer-text-color);
|
||||||
|
background: var(--footer-background-color);
|
||||||
|
border-top: 1px solid #222;
|
||||||
|
padding: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer a {
|
||||||
|
color: var(--secondary-link-color);
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
1
themes/prout/assets/js/main.js
Normal file
1
themes/prout/assets/js/main.js
Normal file
|
@ -0,0 +1 @@
|
||||||
|
console.log('This site was generated by Hugo.');
|
23
themes/prout/hugo.toml
Normal file
23
themes/prout/hugo.toml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
baseURL = 'https://example.org/'
|
||||||
|
languageCode = 'en-US'
|
||||||
|
title = 'My New Hugo Site with Prout theme'
|
||||||
|
|
||||||
|
[[menus.main]]
|
||||||
|
name = 'Accueil'
|
||||||
|
pageRef = '/'
|
||||||
|
weight = 10
|
||||||
|
|
||||||
|
[[menus.main]]
|
||||||
|
name = 'Tags'
|
||||||
|
pageRef = '/tags'
|
||||||
|
weight = 30
|
||||||
|
|
||||||
|
[[menus.main]]
|
||||||
|
name = 'A propos'
|
||||||
|
pageRef = '/a-propos'
|
||||||
|
weight = 40
|
||||||
|
|
||||||
|
[module]
|
||||||
|
[module.hugoVersion]
|
||||||
|
extended = false
|
||||||
|
min = "0.116.0"
|
17
themes/prout/layouts/_default/baseof.html
Normal file
17
themes/prout/layouts/_default/baseof.html
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="{{ site.Language.LanguageCode }}" dir="{{ or site.Language.LanguageDirection `ltr` }}">
|
||||||
|
<head>
|
||||||
|
{{ partial "head.html" . }}
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<header>
|
||||||
|
{{ partial "header.html" . }}
|
||||||
|
</header>
|
||||||
|
<main>
|
||||||
|
{{ block "main" . }}{{ end }}
|
||||||
|
</main>
|
||||||
|
<footer>
|
||||||
|
{{ partial "footer.html" . }}
|
||||||
|
</footer>
|
||||||
|
</body>
|
||||||
|
</html>
|
3
themes/prout/layouts/_default/home.html
Normal file
3
themes/prout/layouts/_default/home.html
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{{ define "main" }}
|
||||||
|
{{ .Content }}
|
||||||
|
{{ end }}
|
8
themes/prout/layouts/_default/list.html
Normal file
8
themes/prout/layouts/_default/list.html
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{{ define "main" }}
|
||||||
|
<h1>{{ .Title }}</h1>
|
||||||
|
{{ .Content }}
|
||||||
|
{{ range .Pages }}
|
||||||
|
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
||||||
|
{{ .Summary }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
10
themes/prout/layouts/_default/single.html
Normal file
10
themes/prout/layouts/_default/single.html
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{{ define "main" }}
|
||||||
|
<h1>{{ .Title }}</h1>
|
||||||
|
|
||||||
|
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
|
||||||
|
{{ $dateHuman := .Date | time.Format ":date_long" }}
|
||||||
|
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
|
||||||
|
|
||||||
|
{{ .Content }}
|
||||||
|
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
|
||||||
|
{{ end }}
|
1
themes/prout/layouts/partials/footer.html
Normal file
1
themes/prout/layouts/partials/footer.html
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><a property="dct:title" rel="cc:attributionURL" href="https//prout.com">Prout</a> by <a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="https://jouf.fr">Jouf</a> is licensed under <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY-NC-SA 4.0<img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1" alt=""><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1" alt=""><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/nc.svg?ref=chooser-v1" alt=""><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/sa.svg?ref=chooser-v1" alt=""></a></p>
|
5
themes/prout/layouts/partials/head.html
Normal file
5
themes/prout/layouts/partials/head.html
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width">
|
||||||
|
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
|
||||||
|
{{ partialCached "head/css.html" . }}
|
||||||
|
{{ partialCached "head/js.html" . }}
|
9
themes/prout/layouts/partials/head/css.html
Normal file
9
themes/prout/layouts/partials/head/css.html
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{{- with resources.Get "css/main.css" }}
|
||||||
|
{{- if eq hugo.Environment "development" }}
|
||||||
|
<link rel="stylesheet" href="{{ .RelPermalink }}">
|
||||||
|
{{- else }}
|
||||||
|
{{- with . | minify | fingerprint }}
|
||||||
|
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
12
themes/prout/layouts/partials/head/js.html
Normal file
12
themes/prout/layouts/partials/head/js.html
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{{- with resources.Get "js/main.js" }}
|
||||||
|
{{- if eq hugo.Environment "development" }}
|
||||||
|
{{- with . | js.Build }}
|
||||||
|
<script src="{{ .RelPermalink }}"></script>
|
||||||
|
{{- end }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $opts := dict "minify" true }}
|
||||||
|
{{- with . | js.Build $opts | fingerprint }}
|
||||||
|
<script src="{{ .RelPermalink }}" integrity="{{- .Data.Integrity }}" crossorigin="anonymous"></script>
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
2
themes/prout/layouts/partials/header.html
Normal file
2
themes/prout/layouts/partials/header.html
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
<h1>{{ site.Title }}</h1>
|
||||||
|
{{ partial "menu.html" (dict "menuID" "main" "page" .) }}
|
51
themes/prout/layouts/partials/menu.html
Normal file
51
themes/prout/layouts/partials/menu.html
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
{{- /*
|
||||||
|
Renders a menu for the given menu ID.
|
||||||
|
|
||||||
|
@context {page} page The current page.
|
||||||
|
@context {string} menuID The menu ID.
|
||||||
|
|
||||||
|
@example: {{ partial "menu.html" (dict "menuID" "main" "page" .) }}
|
||||||
|
*/}}
|
||||||
|
|
||||||
|
{{- $page := .page }}
|
||||||
|
{{- $menuID := .menuID }}
|
||||||
|
|
||||||
|
{{- with index site.Menus $menuID }}
|
||||||
|
<nav>
|
||||||
|
<ul>
|
||||||
|
{{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }}
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- define "partials/inline/menu/walk.html" }}
|
||||||
|
{{- $page := .page }}
|
||||||
|
{{- range .menuEntries }}
|
||||||
|
{{- $attrs := dict "href" .URL }}
|
||||||
|
{{- if $page.IsMenuCurrent .Menu . }}
|
||||||
|
{{- $attrs = merge $attrs (dict "class" "active" "aria-current" "page") }}
|
||||||
|
{{- else if $page.HasMenuCurrent .Menu .}}
|
||||||
|
{{- $attrs = merge $attrs (dict "class" "ancestor" "aria-current" "true") }}
|
||||||
|
{{- end }}
|
||||||
|
{{- $name := .Name }}
|
||||||
|
{{- with .Identifier }}
|
||||||
|
{{- with T . }}
|
||||||
|
{{- $name = . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
<li>
|
||||||
|
<a
|
||||||
|
{{- range $k, $v := $attrs }}
|
||||||
|
{{- with $v }}
|
||||||
|
{{- printf " %s=%q" $k $v | safeHTMLAttr }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
||||||
|
>{{ $name }}</a>
|
||||||
|
{{- with .Children }}
|
||||||
|
<ul>
|
||||||
|
{{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }}
|
||||||
|
</ul>
|
||||||
|
{{- end }}
|
||||||
|
</li>
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
23
themes/prout/layouts/partials/terms.html
Normal file
23
themes/prout/layouts/partials/terms.html
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{{- /*
|
||||||
|
For a given taxonomy, renders a list of terms assigned to the page.
|
||||||
|
|
||||||
|
@context {page} page The current page.
|
||||||
|
@context {string} taxonomy The taxonomy.
|
||||||
|
|
||||||
|
@example: {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
|
||||||
|
*/}}
|
||||||
|
|
||||||
|
{{- $page := .page }}
|
||||||
|
{{- $taxonomy := .taxonomy }}
|
||||||
|
|
||||||
|
{{- with $page.GetTerms $taxonomy }}
|
||||||
|
{{- $label := (index . 0).Parent.LinkTitle }}
|
||||||
|
<div>
|
||||||
|
<div>{{ $label }}:</div>
|
||||||
|
<ul>
|
||||||
|
{{- range . }}
|
||||||
|
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
|
||||||
|
{{- end }}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
{{- end }}
|
BIN
themes/prout/static/favicon.ico
Normal file
BIN
themes/prout/static/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
31
themes/prout/theme.toml
Normal file
31
themes/prout/theme.toml
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
name = 'Theme name'
|
||||||
|
license = 'MIT'
|
||||||
|
licenselink = 'https://github.com/owner/repo/LICENSE'
|
||||||
|
description = 'Theme description'
|
||||||
|
|
||||||
|
# The home page of the theme, where the source can be found
|
||||||
|
homepage = 'https://github.com/owner/repo'
|
||||||
|
|
||||||
|
# If you have a running demo of the theme
|
||||||
|
demosite = 'https://owner.github.io/repo'
|
||||||
|
|
||||||
|
# Taxonomy terms
|
||||||
|
tags = ['blog', 'company']
|
||||||
|
features = ['some', 'awesome', 'features']
|
||||||
|
|
||||||
|
# If the theme has multiple authors
|
||||||
|
authors = [
|
||||||
|
{name = 'Name of author', homepage = 'Website of author'},
|
||||||
|
{name = 'Name of author', homepage = 'Website of author'}
|
||||||
|
]
|
||||||
|
|
||||||
|
# If the theme has a single author
|
||||||
|
[author]
|
||||||
|
name = 'Your name'
|
||||||
|
homepage = 'Your website'
|
||||||
|
|
||||||
|
# If porting an existing theme
|
||||||
|
[original]
|
||||||
|
author = 'Name of original author'
|
||||||
|
homepage = 'Website of original author'
|
||||||
|
repo = 'https://github.com/owner/repo'
|
Loading…
Add table
Add a link
Reference in a new issue