From 75256cc756f157b37d0d87bda64f3b83996bea25 Mon Sep 17 00:00:00 2001 From: Phyks Date: Mon, 22 Jul 2013 11:25:28 +0200 Subject: [PATCH] Correction of links problem thanks to param BLOG_URL --- TODO | 1 - pre-commit.py | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index 64fde97..5aba81b 100644 --- a/TODO +++ b/TODO @@ -6,5 +6,4 @@ Flake8 the whole thing ! :) Known bugs : =========== -On article / tag pages : links are relative and don't work @titre not remplaced diff --git a/pre-commit.py b/pre-commit.py index bd9a6e9..11d58ad 100755 --- a/pre-commit.py +++ b/pre-commit.py @@ -316,10 +316,12 @@ try: header = header_fh.read() tags_header = "" header = header.replace("@categories", tags_header, 1) + header = header.replace("@blog_url", params["BLOG_URL"], 1) + #Articles latest_articles_list = latest_articles("gen/", 5) articles_header = ""