Skip to content

Commit

Permalink
a couple of fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jan 6, 2023
1 parent a88ee2a commit 9e7a8fa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this
project adheres to [Semantic Versioning](http://semver.org/).

## [0.5.2] - 2023-01-06
### Fixed
- Hide *Tags* section in the Archive page when no tags are found.
- Margin issue in the pagefind widget.

## [0.5.1] - 2022-12-15
### Changed
- Use light and dark Prism themes for the code.
Expand Down Expand Up @@ -85,6 +90,7 @@ First version
[#1]: https://github.com/lumeland/theme-simple-blog/issues/1
[#5]: https://github.com/lumeland/theme-simple-blog/issues/5

[0.5.2]: https://github.com/lumeland/theme-simple-blog/compare/v0.5.1...v0.5.2
[0.5.1]: https://github.com/lumeland/theme-simple-blog/compare/v0.5.0...v0.5.1
[0.5.0]: https://github.com/lumeland/theme-simple-blog/compare/v0.4.0...v0.5.0
[0.4.0]: https://github.com/lumeland/theme-simple-blog/compare/v0.3.1...v0.4.0
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/css/page.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.page-header {
margin-bottom: var(--row-gap-medium);

& p:first-child {
& > p:first-child {
margin-top: 0;
margin-bottom: var(--row-gap-medium);
}
Expand Down
7 changes: 5 additions & 2 deletions src/_includes/layouts/archive.njk
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,19 @@ bodyClass: body-tag
</header>

{% if pagination.page == 1 %}
{% set pageTags = search.pages("type=tag", "tag") %}
{% if pageTags.length %}
<nav class="page-navigation">
<h2>Tags:</h2>

<ul class="page-navigation-tags">
{% for page in search.pages("type=tag", "tag") %}
<li><a href="{{ page.data.url }}" class="tag">{{ page.data.tag }}</a></li>
{% for page in pageTags %}
<li><a href="{{ page.data.url }}" class="badge">{{ page.data.tag }}</a></li>
{% endfor %}
</ul>
</nav>
{% endif %}
{% endif %}

{% set postslist = results %}
{% include "templates/post-list.njk" %}
Expand Down

0 comments on commit 9e7a8fa

Please sign in to comment.