From fb108b8cf711d87da59aaf29a22b5340e2cd342f Mon Sep 17 00:00:00 2001 From: rick Date: Sat, 5 Mar 2022 22:24:31 +0100 Subject: [PATCH] feat: generate the footer in pages --- autres.html | 16 ---------------- copaings.html | 16 ---------------- footer.html | 23 +++++++++++++++++++++++ generate.sh | 34 ++++++++++++++++++++++++++++++++++ index.html | 17 ----------------- ou.html | 16 ---------------- projets.html | 16 ---------------- rss.html | 16 ---------------- 8 files changed, 57 insertions(+), 97 deletions(-) create mode 100644 footer.html create mode 100755 generate.sh diff --git a/autres.html b/autres.html index 51436ca..1b5b7b4 100644 --- a/autres.html +++ b/autres.html @@ -27,19 +27,3 @@ - - - - diff --git a/copaings.html b/copaings.html index 34691f6..9d90144 100644 --- a/copaings.html +++ b/copaings.html @@ -49,19 +49,3 @@ --> - - - - diff --git a/footer.html b/footer.html new file mode 100644 index 0000000..c554dc1 --- /dev/null +++ b/footer.html @@ -0,0 +1,23 @@ + + + + diff --git a/generate.sh b/generate.sh new file mode 100755 index 0000000..0bf8454 --- /dev/null +++ b/generate.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +# Génère les fichiers HTML de mon site +# +# Copyright (C) 2022 rick G. +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with +# this program. If not, see . + +# liste des fichiers html à générer +files="autres.html copaings.html index.html ou.html projets.html rss.html" + +target="www" +header="header.html" +footer="footer.html" + +for i in ${files} +do + echo "Generate $i..." + file="$target/$i" + #cat $header > $file + cat $i > $file + cat $footer >> $file + sed -i s/%file%/$i/ $file +done diff --git a/index.html b/index.html index 8e71fe1..5668550 100644 --- a/index.html +++ b/index.html @@ -29,20 +29,3 @@

- - -
- -
-
-
- - diff --git a/ou.html b/ou.html index 0953b93..bb1d410 100644 --- a/ou.html +++ b/ou.html @@ -73,19 +73,3 @@
  • @GnousRick
  • - -
    - -
    -
    -
    - - diff --git a/projets.html b/projets.html index 898dca3..12846b0 100644 --- a/projets.html +++ b/projets.html @@ -141,19 +141,3 @@

    source-integration

    Le commit suivant est aussi de mon ressort mais dregad semble avoir remodifié en plus la REGEX. Je préfère mettre du coup uniquement les commits que j'ai écrit. - -
    - -
    -
    -
    - - diff --git a/rss.html b/rss.html index 378c14d..ac8c915 100644 --- a/rss.html +++ b/rss.html @@ -33,19 +33,3 @@
  • liens en vrac: https://rss.gnous.eu/i/?a=rss&get=c_8&rid=61c7ae7cda839&user=rick&token=share&hours=1000
  • - - - -