Skip to content

Commit

Permalink
feat(tale): update to 0.2.3
Browse files Browse the repository at this point in the history
Signed-off-by: Toni Tauro <[email protected]>
  • Loading branch information
eyenx committed Apr 23, 2022
1 parent 8656812 commit 7265c2b
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 15 deletions.
19 changes: 19 additions & 0 deletions src/_includes/catalogue_item.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<a href="{{ post.url | prepend: site.baseurl }}" class="catalogue-item">
<div>
{% if include.sticky == 'true' %}
<span class="catalogue-pinned">Pinned &middot;</span>
{% endif %}
<time datetime="{{ post.date }}" class="catalogue-time">{{ post.date | date: "%B %d, %Y" }}</time>
<h1 class="catalogue-title">{{ post.title }}</h1>
<div class="catalogue-line"></div>

<p>
{% if post.excerpt_separator %}
{{ post.excerpt | strip_html }}
{% else %}
{{ post.content | strip_html | truncatewords: 30 }}
{% endif %}
</p>

</div>
</a>
19 changes: 7 additions & 12 deletions src/_layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,14 @@
---

<div class="catalogue">
{% for post in paginator.posts %}
<a href="{{ post.url | prepend: site.baseurl }}" class="catalogue-item">
<div>
<time datetime="{{ post.date }}" class="catalogue-time">{{ post.date | date: "%B %d, %Y" }}</time>
<h1 class="catalogue-title">{{ post.title }}</h1>
<div class="catalogue-line"></div>

<p>
{{ post.content | strip_html | truncatewords: 30 }}
</p>
{% for post in site.posts %}
{% if post.sticky %}
{% include catalogue_item.html sticky='true' %}
{% endif %}
{% endfor %}

</div>
</a>
{% for post in paginator.posts %}
{% include catalogue_item.html %}
{% endfor %}
</div>

Expand Down
6 changes: 6 additions & 0 deletions src/_sass/tale/_catalogue.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
}
}

&-pinned {
color: $default-tint;
font-family: $serif-secondary;
letter-spacing: .5px;
}

&-time {
color: $default-tint;
font-family: $serif-secondary;
Expand Down
5 changes: 2 additions & 3 deletions src/tale.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |spec|
spec.name = "tale"
spec.version = "0.2.1"
spec.version = "0.2.3"
spec.authors = ["Chester How"]
spec.email = ["[email protected]"]

Expand All @@ -16,8 +16,7 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency "jekyll-paginate", "~> 1.1"
spec.add_runtime_dependency "jekyll-feed", "~> 0.10"
spec.add_runtime_dependency "jekyll-seo-tag", "~> 2.5"
spec.add_runtime_dependency "jekyll-sitemap", "~> 1.4"

spec.add_development_dependency "bundler", "~> 2.0"
spec.add_development_dependency "rake", "~> 13.0.3"
spec.add_development_dependency "rake", "~> 12.3.3"
end

0 comments on commit 7265c2b

Please sign in to comment.