Skip to content

Commit

Permalink
remove tags from home and show longer excerpt 360 words
Browse files Browse the repository at this point in the history
  • Loading branch information
andregri committed Oct 14, 2023
1 parent d2d9ca1 commit 3eab0ab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 25 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ The main steps are:
- Install gems from `Gemfile.lock`: `bundle install`
- Install bundle webrick `bundle add webrick`
- Build jekyll site: `bundle exec jekyll build`
- Build and serve jekyll site [on port 4000](http://localhost:4000): `bundle exec jekyll serve`
- Build and serve jekyll site [on port 4000](http://localhost:4000): `bundle exec jekyll serve`

## Resources
- https://www.fabriziomusacchio.com/blog/2021-08-11-Minimal_Mistakes_Cheat_Sheet/
2 changes: 1 addition & 1 deletion _includes/archive-single.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ <h2 class="archive__item-title no_toc" itemprop="headline">
{% endif %}
</h2>
{% include page__meta.html type=include.type %}
{% if post.excerpt %}<p class="archive__item-excerpt" itemprop="description">{{ post.excerpt | markdownify | strip_html | truncate: 160 }}</p>{% endif %}
{% if post.excerpt %}<p class="archive__item-excerpt" itemprop="description">{{ post.excerpt | markdownify | strip_html | truncate: 360 }}</p>{% endif %}
</article>
</div>
23 changes: 0 additions & 23 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,6 @@

{{ content }}

<h3 class="archive__subtitle">{{ site.data.ui-text[site.locale].tags_label | default: "Tags" }}</h3>

{% assign tags_max = 0 %}
{% for tag in site.tags %}
{% if tag[1].size > tags_max %}
{% assign tags_max = tag[1].size %}
{% endif %}
{% endfor %}

<ul class="taxonomy__index">
{% for i in (1..tags_max) reversed %}
{% for tag in site.tags %}
{% if tag[1].size == i %}
<li>
<a href="tags/#{{ tag[0] | slugify }}">
<strong>{{ tag[0] }}</strong> <span class="taxonomy__count">{{ i }}</span>
</a>
</li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>

<h3 class="archive__subtitle">{{ site.data.ui-text[site.locale].recent_posts | default: "Recent Posts" }}</h3>

{% if paginator %}
Expand Down

0 comments on commit 3eab0ab

Please sign in to comment.