From eeec83816e82748b1d1cc9ff37fdd3a2153379c8 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Thu, 15 Aug 2013 13:01:44 +0100 Subject: [PATCH] Add conditional processing for links at top of home page --- _includes/home.md | 4 +++- index-common.md | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/_includes/home.md b/_includes/home.md index 9e93b4b27b5..c35efcd85a7 100644 --- a/_includes/home.md +++ b/_includes/home.md @@ -4,7 +4,9 @@
- {{ include.links | markdownify }} +{% if include.links %} +{{ include.links | markdownify }} +{% endif %}
diff --git a/index-common.md b/index-common.md index 087e0b9ea9d..9c4811b4f92 100644 --- a/index-common.md +++ b/index-common.md @@ -4,7 +4,7 @@ title: Docs --- {% capture links %} -[Project]({{ page.main_site_url }}/projects/spring-framework) : [Another]({{ page.main_site_url }}/projects/spring-framework) +[Project]({{ page.main_site_url }}/projects/spring-framework) | [Another]({{ page.main_site_url }}/projects/spring-framework) {% endcapture %} {% capture description %}