hugosoucycc

[ARCHIVED] Another old source code of <hugo.soucy.cc>.
Log | Files | Refs | Submodules

commit e6501d6c027e3ceac98b2db25dd3affe5a431a27
parent 291a82c53185375e7f8af9a5d30376986d73893c
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Thu, 17 Nov 2016 20:35:28 -0500

Add symlink command for image in list pages

Diffstat:
Mfunctions/create-html-sections | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/functions/create-html-sections b/functions/create-html-sections @@ -40,6 +40,11 @@ create_html_sections () { -o "$tmp_folder/$markdown_date-${outputname%.*}".inc.html done + for img in $(find "$indexsubdir/" -type f \( -name "*.jpg" -or -name "*.png" \)); do + rel_img_path=$(realpath --relative-to=$indexsubdir $img) + $(ln -s "$rel_img_path" "$indexsubdir") + done + if test "$(ls -A "$tmp_folder/")"; then # Sort all the includes files # Create an HTML file with all the includes in descending order