From 43e855a1f1977472d755fc07afc2f04294b76d50 Mon Sep 17 00:00:00 2001 From: Vedang Manerikar Date: Fri, 13 Sep 2013 13:08:55 +0530 Subject: [PATCH] Hyperlink the project name to it's URL. If :url is provided in the project-info, use it to create a hyperlink for the project-name --- src/marginalia/html.clj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/marginalia/html.clj b/src/marginalia/html.clj index b0cab71..b75c081 100644 --- a/src/marginalia/html.clj +++ b/src/marginalia/html.clj @@ -153,7 +153,9 @@ [:tr [:td {:class "docs"} [:div {:class "header"} - [:h1 {:class "project-name"} (:name project-info)] + [:h1 {:class "project-name"} (if (seq (:url project-info)) + [:a {:href (:url project-info)} (:name project-info)] + (:name project-info))] [:h2 {:class "project-version"} (:version project-info)] [:br] (md (:description project-info))]