Browse Source

Add conditional processing for links at top of home page

pull/33/merge
Dave Syer 13 years ago
parent
commit
eeec83816e
  1. 4
      _includes/home.md
  2. 2
      index-common.md

4
_includes/home.md

@ -4,7 +4,9 @@ @@ -4,7 +4,9 @@
<div class="content--title">
<!-- TODO: when in <p/> style of this text is wrong (font too large) -->
<!-- TODO: why do we have to markdownify? -->
{{ include.links | markdownify }}
{% if include.links %}
{{ include.links | markdownify }}
{% endif %}
</div>
<div class="row-fluid">
<div class="span8">

2
index-common.md

@ -4,7 +4,7 @@ title: Docs @@ -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 %}

Loading…
Cancel
Save