diff options
author | Durand D'souza <durand1@gmail.com> | 2016-10-23 15:04:33 +0300 |
---|---|---|
committer | Durand D'souza <durand1@gmail.com> | 2016-10-23 15:04:33 +0300 |
commit | 1613134c30528e9979264039a3bcab9ecfc64bba (patch) | |
tree | 2ff141e4abfddf5d5ba66dd0829d0c3bdd2d9aab | |
parent | da68c4c76acafb2b755fe967cd59a92f484f1638 (diff) |
Added screenshot thumbnail and removed read-more template.
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | exampleSite/static/images/screenshot.png | bin | 569139 -> 0 bytes | |||
-rw-r--r-- | images/screenshot.png | bin | 0 -> 364269 bytes | |||
-rw-r--r-- | images/tn.png | bin | 0 -> 179232 bytes | |||
-rw-r--r-- | layouts/_default/single.html | 1 | ||||
-rw-r--r-- | layouts/partials/read-more.html | 19 |
6 files changed, 1 insertions, 21 deletions
@@ -1,5 +1,5 @@ # HPSTR -![Them screenshot](https://raw.githubusercontent.com/dldx/hpstr-hugo-theme/master/exampleSite/static/images/screenshot.png) +![Theme screenshot](https://raw.githubusercontent.com/dldx/hpstr-hugo-theme/master/images/screenshot.png) This is a port of the [HPSTR theme](http://github.com/mmistakes/hpstr-jekyll-theme) to [Hugo](https://gohugo.io). All the original features are intact and described below. Credit for the theme goes entirely to [Michael Rose](http://github.com/mmistakes). diff --git a/exampleSite/static/images/screenshot.png b/exampleSite/static/images/screenshot.png Binary files differdeleted file mode 100644 index a680285..0000000 --- a/exampleSite/static/images/screenshot.png +++ /dev/null diff --git a/images/screenshot.png b/images/screenshot.png Binary files differnew file mode 100644 index 0000000..797be89 --- /dev/null +++ b/images/screenshot.png diff --git a/images/tn.png b/images/tn.png Binary files differnew file mode 100644 index 0000000..654d0c6 --- /dev/null +++ b/images/tn.png diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 75442a9..b45d8a0 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -43,7 +43,6 @@ {{ if ne .Params.comments false }} <section id="disqus_thread">{{ partial "disqus.html" . }}</section><!-- /#disqus_thread --> {{ end }} - <!--{{ if ne .Type "page" }}{% if site.related_posts.size > 0 %}{% include read-more.html %}{% endif %}{{ end }} --> </article> </div><!-- /#main --> {{ partial "foot.html" . }} diff --git a/layouts/partials/read-more.html b/layouts/partials/read-more.html deleted file mode 100644 index 97afc0f..0000000 --- a/layouts/partials/read-more.html +++ /dev/null @@ -1,19 +0,0 @@ -<div class="read-more"> - {% for post in site.related_posts limit:1 %} - <div class="read-more-header"> - <a href="{{ site.url }}{{ page.previous.url }}" class="read-more-btn">Read More</a> - </div><!-- /.read-more-header --> - <div class="read-more-content"> - <h3><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h3> - <p>{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 140 }}…{% endif %} <a href="{{ site.url }}{{ post.url }}">Continue reading</a></p> - </div><!-- /.read-more-content --> - {% endfor %} - <div class="read-more-list"> - {% for post in site.related_posts limit:2 offset:1 %} - <div class="list-item"> - <h4><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h4> - <span>Published on {{ post.date | date: "%B %d, %Y" }}</span> - </div><!-- /.list-item --> - {% endfor %} - </div><!-- /.read-more-list --> -</div><!-- /.read-more -->
\ No newline at end of file |