Skip to content

Commit

Permalink
Add UTM to pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
csswizardry committed Sep 1, 2023
1 parent 2d075d4 commit 15d926c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ <h1 itemprop="name headline" elementtiming=page-title style="view-transition-na
<nav class=c-pagination>
{% if page.previous.url %}
<link rel=prerender href="{{page.previous.url}}" />
<a href="{{page.previous.url}}" class="c-pagination__item c-pagination__prev" style="view-transition-name: x-{{ page.previous.date | date: '%Y-%m-%d' }}">{{page.previous.title}}</a>
<a href="{{page.previous.url}}?utm_source=pagination&utm_medium=internal" class="c-pagination__item c-pagination__prev" style="view-transition-name: x-{{ page.previous.date | date: '%Y-%m-%d' }}">{{page.previous.title}}</a>
{% endif %}
{% if page.next.url %}
<link rel=prerender href="{{page.next.url}}" />
<a href="{{page.next.url}}" class="c-pagination__item c-pagination__next" style="view-transition-name: x-{{ page.next.date | date: '%Y-%m-%d' }}">{{page.next.title}}</a>
<a href="{{page.next.url}}?utm_source=pagination&utm_medium=internal" class="c-pagination__item c-pagination__next" style="view-transition-name: x-{{ page.next.date | date: '%Y-%m-%d' }}">{{page.next.title}}</a>
{% endif %}
</nav>

Expand Down

0 comments on commit 15d926c

Please sign in to comment.