Verified Commit 18b767dc authored by Tharyrok's avatar Tharyrok

Finish config themes

parent ccc4feb2
.PHONY: build compress jpg_optimise png_optimise webp_create
.DEFAULT_GOAL= help
CURRENT_DIR=$(shell pwd)
COM_COLOR = \033[0;34m
OBJ_COLOR = \033[0;36m
OK_COLOR = \033[0;32m
ERROR_COLOR = \033[0;31m
WARN_COLOR = \033[0;33m
NO_COLOR = \033[m
help:
@grep -E '(^[a-zA-Z_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-10s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/'
build:
echo "Rebuild du blog"
rm -rf "$(CURRENT_DIR)/public/"
hugo
compress: build
echo "Compress des fichier static"
find "$(CURRENT_DIR)/public/" -type f -a \( -name '*.html' -o -name '*.css' -o -name '*.js' -o -name '*.json' -o -name '*.xml' -o -name '*.svg' -o -name '*.txt' \) -exec gzip -f --best -k {} \+
jpg_optimise:
echo "Optimisation des images jpg"
find "$(CURRENT_DIR)/static/" -type f \( -iname "*.jpg" -o -iname "*.jpeg" \) -print0 | xargs -0 jpegoptim --all-progressive --preserve --strip-all -m82
png_optimise:
echo "Optimisation des images png"
find "$(CURRENT_DIR)/static/" -type f -iname '*.png' -print0 | xargs -0 optipng -o7 -strip all
webp_create:
echo "Creation des images webp"
find "$(CURRENT_DIR)/static/" -type f -iname "*.png" -print0 | xargs -0 -I {} bash -c '[ ! -f "{}.webp" ] && { cwebp -z 9 -mt {} -o {}.webp; }'
find "$(CURRENT_DIR)/static/" -type f \( -iname "*.jpg" -o -iname "*.jpeg" \) -print0 | xargs -0 -I {} bash -c '[ ! -f "{}.webp" ] && { cwebp -q 82 -mt {} -o {}.webp; }'
publish: build compress
echo "publication vers le serveur"
rsync --delete -av -e "ssh -l tharyrok-eu" "$(CURRENT_DIR)/public/" libris.htz.tha-adm.eu:/var/www/tharyrok-eu/public/
\ No newline at end of file
......@@ -63,9 +63,9 @@ enableEmoji = true
weight = 4
[languages.fr.params]
# site description
description = "À propos du thème LoveIt"
description = "Le grand même de Tharyrok"
# site keywords
keywords = ["Thème", "Hugo"]
keywords = []
# App icon config
[languages.fr.params.app]
# optional site title override for the app when added to an iOS home screen or Android launcher
......@@ -113,15 +113,15 @@ enableEmoji = true
# URL of avatar shown in home page
avatarURL = "/images/tharyrok.png"
# title shown in home page (HTML format is supported)
title = "test"
title = "Tharyrok"
# subtitle shown in home page
subtitle = "Un thème Hugo simple, élégant et efficace"
subtitle = "Tout ce qui a de l’electricité et un cable reseau me passionne."
# whether to use typeit animation for subtitle
typeit = false
# whether to show social links
social = false
# disclaimer (HTML format is supported)
disclaimer = "xxx"
disclaimer = "Memebre de <a href='https://neutrinet.be'>Neutrinet</a>, je parle parfois dans le micro de <a href='https://src.brussels'>Source</a>'"
# Home page posts
[languages.fr.params.home.posts]
enable = true
......@@ -203,7 +203,7 @@ enableEmoji = true
defaultTheme = "dark"
# public git repo url only then enableGitInfo is true
# 公共 git 仓库路径,仅在 enableGitInfo 设为 true 时有效
gitRepo = "https://gitlab.domainepublic.net/Tharyrok/tharyrok-eu/-"
gitRepo = "https://gitlab.domainepublic.net/Tharyrok/tharyrok-eu"
# which hash function used for SRI, when empty, no SRI is used ("sha256", "sha384", "sha512", "md5")
# 哪种哈希函数用来 SRI, 为空时表示不使用 SRI ("sha256", "sha384", "sha512", "md5")
fingerprint = ""
......@@ -600,7 +600,7 @@ enableEmoji = true
# 位于 "themes/LoveIt/assets/data/cdn/" 目录
# 可以在你的项目下相同路径存放你自己的数据文件:
# "assets/data/cdn/"
data = "jsdelivr.yml"
# data = "jsdelivr.yml"
# Compatibility config
# 兼容性设置
......
......@@ -4,6 +4,7 @@ date: 2020-05-09
categories:
- Vie personnel
featuredImage: /images/posts/2020/may/wallhaven-2kr6z9.jpg
draft: true
---
## L'introduction
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment