aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-10-24 12:49:57 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-10-25 11:41:35 +0200
commit37c72b707a73637ea0948de0c4956d263128c78b (patch)
treec0536844b13878c502c3023db2d219169af127ec /_includes
parentREADME: update (diff)
downloadjekyll-theme-37c72b707a73637ea0948de0c4956d263128c78b.tar.gz
jekyll-theme-37c72b707a73637ea0948de0c4956d263128c78b.zip
posts: redesign feed
* No more lame post excerpts. * Smaller and cooler title font.
Diffstat (limited to '')
-rw-r--r--_includes/jekyll-theme/posts/feed.html1
-rw-r--r--_includes/jekyll-theme/posts/header.html7
2 files changed, 3 insertions, 5 deletions
diff --git a/_includes/jekyll-theme/posts/feed.html b/_includes/jekyll-theme/posts/feed.html
index 629e4ee..7f5c0c6 100644
--- a/_includes/jekyll-theme/posts/feed.html
+++ b/_includes/jekyll-theme/posts/feed.html
@@ -4,7 +4,6 @@
{% for post in paginator.posts %}
<a href="{{ post.url | relative_url }}" class="feed-entry">
{% include jekyll-theme/posts/header.html feed=true %}
- <div class="text-muted">{{ post.excerpt | markdownify }}</div>
</a>
{% endfor %}
{% include jekyll-theme/posts/paginator.html %}
diff --git a/_includes/jekyll-theme/posts/header.html b/_includes/jekyll-theme/posts/header.html
index c59f12c..eabb22c 100644
--- a/_includes/jekyll-theme/posts/header.html
+++ b/_includes/jekyll-theme/posts/header.html
@@ -1,11 +1,10 @@
<div class="post-header">
- {% assign h = 'h1' %}
{% if include.feed %}
- {% assign h = 'h3' %}
+ <h5 class="text-monospace">{{ include.title }}</h5>
{% else %}
{% assign post = page %}
+ <h1><span class="font-size-90">{{ post.title }}</span></h1>
{% endif %}
- <{{ h }}><span class="font-size-90">{{ post.title }}</span></{{ h }}>
<div class="post-date">
<p class="text-muted font-size-90">
{%- comment -%}
@@ -26,7 +25,7 @@
</a>
{%- endif -%}
{%- endif -%}
- <span class="glyphicon glyphicon-time"></span>&nbsp;<span class="text-monospace">{{ post.date | date: '%-d-%b-%Y' }}</span>
+ <span class="glyphicon glyphicon-time"></span>&nbsp;<span class="text-monospace">{{ post.date | date: '%d-%b-%Y' }}</span>
</p>
</div>
</div>