My personal website
Find a file
2025-07-02 17:34:00 +02:00
_includes Moved matomo JS in footer to improve loading perfs 2025-05-04 12:26:29 +02:00
_layouts Remove tags and archive pages from sitemap 2025-03-29 18:25:43 +01:00
_posts Add a new post about hardware sustainability 2025-05-15 01:00:38 +02:00
_sass Move CSS customization to the right place 2024-07-27 15:56:09 +02:00
bin Script formatting 2025-03-29 18:00:55 +01:00
css Update style of inline code 2025-02-06 09:08:25 +01:00
evol-osm-escosse-2024 Add missing resources 2024-08-15 10:54:36 +02:00
fonts Replace TTF fonts by WOFF2 fonts 2022-09-05 23:20:52 +02:00
images Add a new post about hardware sustainability 2025-05-15 01:00:38 +02:00
js Initial commit 2018-03-11 15:41:06 +01:00
.gitignore Ignore files and directories generated by Jekyll 2021-10-24 19:06:02 +02:00
.gitlab-ci.yml Update minify version 2025-03-29 18:01:49 +01:00
.mailmap Add mailmap file 2023-03-23 16:57:37 +01:00
_config.yml keep accented letters in tags 2025-05-04 15:36:22 +02:00
ai.md Rewording a sentence to avoid repetition 2025-07-02 17:34:00 +02:00
apropos.md Minor rewording 2025-03-22 22:40:57 +01:00
atom.xml Fix mistake in URL build 2024-07-28 19:07:04 +02:00
blog.html Dates formatting and conformity with reformed French spelling 2025-03-22 22:38:20 +01:00
conferences.md Added link to the recording of my talk at JDLL 2025 2025-06-09 16:04:45 +02:00
cv_sebastien_dinot.html Change picture format JPEG => WEBP 2025-05-04 10:52:37 +02:00
Gemfile Bump jekyll version and dependencies 2022-04-03 18:16:10 +02:00
index.html Dates formatting and conformity with reformed French spelling 2025-03-22 22:38:20 +01:00
LICENSE Add copy of Creative Commons Attribution license 4.0 International 2020-10-25 14:44:26 +01:00
livres.md Dates formatting and conformity with reformed French spelling 2025-03-22 22:38:20 +01:00
mentions-legales.md Update GDPR check 2025-03-22 22:54:25 +01:00
presentation-informelle.md Dates formatting and conformity with reformed French spelling 2025-03-22 22:38:20 +01:00
README.md Updated information provided in the README file 2025-03-29 17:59:59 +01:00
ressources.html Update GDPR check 2025-03-22 22:54:25 +01:00
robots.txt Avoid useless indexing of /tag/ and /archives/ pages 2024-07-28 14:40:43 +02:00
rss.xml Fix mistake in URL build 2024-07-28 19:07:04 +02:00

Build of my personal website

Here is some notes about the build of my personal website.

Deployment

The changesets are deployed on two different virtual hosts, depending on the branch:

.gitlab-ci.yml tricks

The content of the SSH_KNOWN_HOSTS variable was provided by the ssh-keyscan command:

$ ssh-keyscan -H wombat.palabritudes.net > /tmp/SSH_KNOWN_HOSTS

In the following instruction:

- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -

According to Gitlab CI documentattion, the tr command is used to fix line endings which makes ed25519 keys work without extra base64 encoding:

https://gitlab.com/gitlab-examples/ssh-private-key/issues/1#note_48526556

Local build and test

$ export JEKYLL_UID=$(id -u)
$ export JEKYLL_GID=$(id -g)
$ export JEKYLL_VERSION=4.2.2
$ export JEKYLL_ENV=development
$ docker run --rm -it \
         -e JEKYLL_UID -e JEKYLL_GID -e JEKYLL_ENV \
         --volume "$PWD:/srv/jekyll:Z" \
         --publish 127.0.0.1:4000:4000 \
         jekyll/builder:$JEKYLL_VERSION jekyll serve

Tips and tricks

Block indexing of some pages

  <head>

    {% assign urlroot = page.url | split: '/' | slice: 1 %}
    {%- if jekyll.environment != "production" or urlroot.first == "tag" or urlroot.first == "archives" -%}
    <!-- Only the production site needs to be indexed by search engines -->
    <!-- In addition, there's no need to index tag or archive pages. -->
    <meta name="robots" content="noindex"/>
    {%- endif %}

  </head>