From 7528f5bf5e71d32db26a629887799b0c98a7333b Mon Sep 17 00:00:00 2001
From: Salvatore Giordano <salvatoregiordanoo@gmail.com>
Date: Thu, 17 Jan 2019 13:50:14 +0000
Subject: [PATCH] Add external link feature for posts (#141)

---
 layouts/posts/li.html |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/layouts/posts/li.html b/layouts/posts/li.html
index 28bb0c3..7077125 100644
--- a/layouts/posts/li.html
+++ b/layouts/posts/li.html
@@ -1,4 +1,4 @@
 <li>
   <span class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
-  <a class="title" href="{{ .URL }}">{{ .Title }}</a>
+  <a class="title" href="{{ .Params.ExternalLink | default .URL }}">{{ .Title }}</a>
 </li>

--
Gitblit v1.10.0