diff options
author | Brandon Mathis <brandon@imathis.com> | 2011-08-20 16:02:37 -0400 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2011-08-20 16:02:50 -0400 |
commit | 596ec87c37d4f848e478abbbd0690e52eeb37db1 (patch) | |
tree | 0edffecab3ff19fe8f84d7cd0389c28c8bbf72f6 /.themes/classic/source | |
parent | 178a198ea7f932307bbe2affeba10240a3168ff3 (diff) | |
download | my_new_personal_website-596ec87c37d4f848e478abbbd0690e52eeb37db1.tar.xz my_new_personal_website-596ec87c37d4f848e478abbbd0690e52eeb37db1.zip |
now only excerpted articles show the "read on" link. Also the text for that link can be set in the _config.yml
Diffstat (limited to '.themes/classic/source')
-rw-r--r-- | .themes/classic/source/_includes/article.html | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/.themes/classic/source/_includes/article.html b/.themes/classic/source/_includes/article.html index 6b3fb045..fe4e9570 100644 --- a/.themes/classic/source/_includes/article.html +++ b/.themes/classic/source/_includes/article.html @@ -12,9 +12,12 @@ {% endunless %} {% if index %} <div class="entry-content">{{ content | excerpt }}</div> - <footer> - <a rel="full-article" href="{{ root_url }}{{ post.url }}">Read on →</a> - </footer> + {% capture excerpted %}{{ content | has_excerpt }}{% endcapture %} + {% if excerpted == 'true' %} + <footer> + <a rel="full-article" href="{{ root_url }}{{ post.url }}">Read on →</a> + </footer> + {% endif %} {% else %} <div class="entry-content">{{ content }}</div> {% endif %} |