Skip to content

Commit

Permalink
Adapt the article list header on pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
cr7pt0gr4ph7 committed Feb 22, 2024
1 parent a73d421 commit ae0d1b6
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions _layouts/articles.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,19 @@

<div class="layout--articles">

<h1 style="font-size: min(4rem, (100vw - 3rem) / 950 * 16 * 4);">{{ site.title }}</h1>
<h2 style="font-variant: small-caps; color: #888; font-weight: 300;">Most recent posts</h2>
{%- if site.title -%}
<h1 style="font-size: min(4rem, (100vw - 3rem) / 950 * 16 * 4);">
{%- include snippets/get-nav-url.html path=_paths_root -%}
<a href="{{ __return }}" style="color: inherit; text-decoration: none;">{{ site.title }}</a>
</h1>
{%- endif %}
<h2 style="font-variant: small-caps; color: #888; font-weight: 300;">
{%- if paginator.page > 1 -%}
Recent posts | Page {{ paginator.page }}
{%- else -%}
Most recent posts
{%- endif -%}
</h2>

{%- if _type == 'grid' -%}
{%- if page.articles.size == 'sm' -%}
Expand Down

0 comments on commit ae0d1b6

Please sign in to comment.