Refonte légère
Suppression des références à Twitter et Google Analytics Corrections mineures
This commit is contained in:
parent
14849534f9
commit
c5eed405c4
4 changed files with 60 additions and 19 deletions
31
README.md
Normal file
31
README.md
Normal file
|
@ -0,0 +1,31 @@
|
|||
# Le site de stan
|
||||
|
||||
Ici se trouve mon site fait avec Hugo.
|
||||
Encore en construction, je teste plusieurs thèmes et configurations.
|
||||
|
||||
## Publication
|
||||
|
||||
Pour publier le site, je le fais avec [rclone][rclone]
|
||||
|
||||
[rclone]: https://rclone.org/
|
||||
|
||||
Je l'ai configuré pour pouvoir pousser en SFTP.
|
||||
On considérera que la configuration est sauvegardée sous le nom `accueil` pour la suite.
|
||||
|
||||
Il faut tout d'abord construire (`build`) le site avec la commande
|
||||
|
||||
```shell
|
||||
hugo
|
||||
```
|
||||
|
||||
ce qui crée
|
||||
un répertoire `public` et un autre `resources` qui transforment tous les fichiers en
|
||||
HTML intelligible par un navigateur.
|
||||
|
||||
Ensuite je lance
|
||||
|
||||
```shell
|
||||
rclone sync public/ accueil:www/
|
||||
```
|
||||
|
||||
On attend quelques secondes et hop c'est disponible à l'adresse https://jouf.fr/accueil/
|
|
@ -12,14 +12,3 @@ Ici c'est chez moi, je fais ce que je veux, na !
|
|||
|
||||
Pour l'instant ce site est en construction, mais on espère qu'il sera très vite en place
|
||||
et utilisable.
|
||||
|
||||
L'objectif premier est de me familiariser avec la création de contenu sur le web.
|
||||
Je commence avec ce site fait avec [Hugo][hugo-url].
|
||||
|
||||
Ce site contiendra sûrement aussi des trucs et astuces qui m'ont servis et que je
|
||||
pourrai retrouver plus tard si besoin, mais que d'autres personnes aussi pourront
|
||||
consulter si nécessaire !
|
||||
|
||||
|
||||
|
||||
[hugo-url]: https://gohugo.io/
|
||||
|
|
10
hugo.toml
10
hugo.toml
|
@ -23,16 +23,10 @@ enableMissingTranslationPlaceholders = false
|
|||
github_doc_repository_branch = "master"
|
||||
github_doc_repository_path = ""
|
||||
|
||||
# Analytic section
|
||||
google_analytics_id = "" # Your Google Analytics tracking id
|
||||
tag_manager_container_id = "" # Your Google Tag Manager container id
|
||||
google_site_verification = "" # Your Google Site Verification for Search Console
|
||||
|
||||
# Open Graph and Twitter Cards settings section
|
||||
# Open Graph settings for each page are set on the front matter.
|
||||
# See https://gohugo.io/templates/internal/#open-graph
|
||||
# See https://gohugo.io/templates/internal/#twitter-cards
|
||||
title = "Hugo Techdoc Theme"
|
||||
title = "Le site de stan"
|
||||
|
||||
# Theme settings section
|
||||
# Theme color
|
||||
|
@ -61,7 +55,7 @@ enableMissingTranslationPlaceholders = false
|
|||
# Algolia site search section
|
||||
# See https://www.algolia.com/doc/
|
||||
algolia_search_enable = true
|
||||
algolia_indexName = "hugo-demo-techdoc"
|
||||
algolia_indexName = "stan-site"
|
||||
algolia_appId = "7W4SAN4PLK"
|
||||
algolia_apiKey = "cbf12a63ff72d9c5dc0c10c195cf9128" # Search-Only API Key
|
||||
|
||||
|
|
27
layouts/partials/head.html
Normal file
27
layouts/partials/head.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
{{- if eq .Title "" }}
|
||||
<title>{{ .Site.Title }}</title>
|
||||
{{- else }}
|
||||
<title>{{ .Title }} - {{ .Site.Title }}</title>
|
||||
{{- end }}
|
||||
{{- if ne .Description "" }}
|
||||
<meta name="description" content="{{ .Description }}">
|
||||
{{- else if isset .Site.Params "description" }}
|
||||
<meta name="description" content="{{ .Site.Params.description }}">
|
||||
{{- end }}
|
||||
{{ hugo.Generator }}
|
||||
<link href="{{ .Site.BaseURL }}/index.xml" rel="alternate" type="application/rss+xml">
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
<link rel="stylesheet" href="{{"css/theme.min.css" | absURL}}">
|
||||
{{ partial "meta/chroma.html" . -}}
|
||||
<script defer src="{{ .Site.BaseURL }}/js/fontawesome6/all.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery.easing@1.4.1/jquery.easing.min.js" integrity="sha256-H3cjtrm/ztDeuhCN9I4yh4iN2Ybx/y1RM7rMmAesA0k=" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.11/dist/clipboard.min.js" integrity="sha256-4XodgW4TwIJuDtf+v6vDJ39FVxI0veC/kSCCmnFp7ck=" crossorigin="anonymous"></script>
|
||||
<script src="{{ "js/bundle.js" | absURL }}"></script>
|
||||
{{- partial "meta/tag-manager.html" . -}}
|
||||
{{- partial "custom-css.html" . -}}
|
||||
{{- template "_internal/opengraph.html" . -}}
|
||||
{{- template "_internal/schema.html" . -}}
|
Loading…
Add table
Add a link
Reference in a new issue