Compare commits
10 Commits
84a05fb809
...
master
Author | SHA1 | Date | |
---|---|---|---|
a03f31e237
|
|||
65dce1b060
|
|||
5b2683b3a4
|
|||
43de32edd2
|
|||
263e1c5f20
|
|||
f1eba8b28a
|
|||
b9c070b6c8
|
|||
957c8e2ed1
|
|||
1eed4d7ca3
|
|||
ee6946373c
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,4 @@
|
|||||||
output
|
output
|
||||||
__pycache__
|
__pycache__
|
||||||
*.pid
|
*.pid
|
||||||
plugins
|
|
||||||
cache
|
cache
|
||||||
|
8
.gitmodules
vendored
8
.gitmodules
vendored
@ -1,3 +1,9 @@
|
|||||||
[submodule "themes/clean-blog"]
|
[submodule "themes/clean-blog"]
|
||||||
path = themes/clean-blog
|
path = themes/clean-blog
|
||||||
url = ssh://gitea@git.epheme.re:2222/fmouhart/pelican-clean-blog.git
|
url = https://git.epheme.re/fmouhart/pelican-clean-blog.git
|
||||||
|
[submodule "plugins/autopages"]
|
||||||
|
path = plugins/autopages
|
||||||
|
url = https://git.epheme.re/fmouhart/pelican-autopages.git
|
||||||
|
[submodule "plugins/i18n_subsites"]
|
||||||
|
path = plugins/i18n_subsites
|
||||||
|
url = https://git.epheme.re/fmouhart/pelican-i18n_subsites.git
|
||||||
|
5
Makefile
5
Makefile
@ -12,7 +12,10 @@ publish:
|
|||||||
clean:
|
clean:
|
||||||
uv run invoke clean
|
uv run invoke clean
|
||||||
|
|
||||||
init:
|
%.mo: %.po
|
||||||
|
msgfmt "$^" -o "$@"
|
||||||
|
|
||||||
|
init: themes/clean-blog/translations/fr/LC_MESSAGES/messages.mo
|
||||||
uv sync
|
uv sync
|
||||||
|
|
||||||
.PHONY: clean build publish dev init
|
.PHONY: clean build publish dev init
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Title: wget/curl
|
Title: wget/curl
|
||||||
Date: 2022-07-25 13:45 CEST
|
Date: 2022-07-25 13:45 CEST
|
||||||
Author: Fabrice
|
Author: Fabrice
|
||||||
Category: cheat sheets
|
Category: antisèches
|
||||||
Tags: wget, curl, cli
|
Tags: wget, curl, cli
|
||||||
Slug: wget-curl
|
Slug: wget-curl
|
||||||
Header_Cover: ../images/covers/speedboat.jpg
|
Header_Cover: ../images/covers/speedboat.jpg
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
Title: Setup Neovim with kickstart.nvim
|
Title: Setup Neovim with kickstart.nvim
|
||||||
Date: 2023-12-25 17:15
|
Date: 2023-12-25 17:15
|
||||||
Modified: 2025-02-12 10:00
|
Modified: 2025-02-12 13:00
|
||||||
Lang: en
|
Lang: en
|
||||||
Author: Fabrice
|
Author: Fabrice
|
||||||
Category: software
|
Category: software
|
||||||
@ -22,7 +22,7 @@ incrementally before it starts getting too big for me to find anything inside
|
|||||||
it and not using even half of the plugins I installed. That goes without saying,
|
it and not using even half of the plugins I installed. That goes without saying,
|
||||||
there were quite a bit on conflicting keymaps as well as I'm using
|
there were quite a bit on conflicting keymaps as well as I'm using
|
||||||
[bépo](http://bepo.fr/) as my keyboard layout with [partial remaps
|
[bépo](http://bepo.fr/) as my keyboard layout with [partial remaps
|
||||||
(fr)](https://cdn.bepo.fr/Vim-bepo-066.png).
|
(fr)](https://cdn.bepo.fr/images/Vim-bepo-066.png).
|
||||||
|
|
||||||
Obviously, it slowly became quite a mess. To address this issue, I decided to
|
Obviously, it slowly became quite a mess. To address this issue, I decided to
|
||||||
reorganise my `$HOME/.config/vim` directory using the [vim directory
|
reorganise my `$HOME/.config/vim` directory using the [vim directory
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
Title: Typesetting with Typst
|
Title: Typesetting with Typst
|
||||||
Date: 2024-10-19 18:00
|
Date: 2024-10-19 18:00
|
||||||
Modified: 2024-10-19 21:00
|
Modified: 2025-02-14 12:45
|
||||||
Lang: en
|
Lang: en
|
||||||
Author: Fabrice
|
Author: Fabrice
|
||||||
Category: software
|
Category: software
|
||||||
@ -126,7 +126,7 @@ at the outset of the file.
|
|||||||
```typst
|
```typst
|
||||||
#import "lettre.typ": *
|
#import "lettre.typ": *
|
||||||
|
|
||||||
#show: doc => lettre(
|
#show: doc => lettre.with(
|
||||||
de: [
|
de: [
|
||||||
Sender\
|
Sender\
|
||||||
Address
|
Address
|
||||||
@ -144,7 +144,6 @@ at the outset of the file.
|
|||||||
post: [
|
post: [
|
||||||
post-letter (e.g., post-scriptum)
|
post-letter (e.g., post-scriptum)
|
||||||
],
|
],
|
||||||
doc
|
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
1
plugins/autopages
Submodule
1
plugins/autopages
Submodule
Submodule plugins/autopages added at 7ebe350704
1
plugins/i18n_subsites
Submodule
1
plugins/i18n_subsites
Submodule
Submodule plugins/i18n_subsites added at 5903058c97
51
readme.md
51
readme.md
@ -1 +1,52 @@
|
|||||||
|
This repository contains the sources necessary to build the blog at:
|
||||||
<https://blog.epheme.re>
|
<https://blog.epheme.re>
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
|
|
||||||
|
To use this repository as intended, you need, to build the blog, the following
|
||||||
|
software:
|
||||||
|
|
||||||
|
- `git`
|
||||||
|
- `make`
|
||||||
|
- `uv`
|
||||||
|
- `gettext`
|
||||||
|
|
||||||
|
To synchronise the blog remotely with its intended target, the synchronisation
|
||||||
|
is done using `rsync` over `ssh`.
|
||||||
|
|
||||||
|
# Install
|
||||||
|
|
||||||
|
To install a local copy to work on this blog, you also need other components,
|
||||||
|
such as the [theme](https://git.epheme.re/fmouhart/pelican-clean-blog) and
|
||||||
|
[some](https://git.epheme.re/fmouhart/pelican-autopages)
|
||||||
|
[plugins](https://git.epheme.re/fmouhart/pelican-clean-blog). Those are embedded
|
||||||
|
in the repository as a git submodule. You can thus simply run git clone with the
|
||||||
|
`--recurse-submodule` option:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone --recurse-submodule https://git.epheme.re/fmouhart/blog.git fmouhart-blog
|
||||||
|
```
|
||||||
|
|
||||||
|
This blog relies on [pelican](https://getpelican.com) as a static site
|
||||||
|
generator. To manage the different python dependencies of this project, we are
|
||||||
|
using [`uv`](https://github.com/astral-sh/uv) as a python project manager.
|
||||||
|
|
||||||
|
Moreover, translations are managed with python `gettext` which requires
|
||||||
|
compiling the translation file.
|
||||||
|
|
||||||
|
Those two steps are performed with the following command:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
make init
|
||||||
|
```
|
||||||
|
|
||||||
|
# Development
|
||||||
|
|
||||||
|
When writing an article, you can run the blog with `livereload` enabled with the
|
||||||
|
command:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
make dev
|
||||||
|
```
|
||||||
|
|
||||||
|
It’ll span a local development server on port `8000`: <http://localhost:8000>
|
||||||
|
Reference in New Issue
Block a user