I have a series of posts in Jekyll for which I want to have a banner at the bottom with a link to an internal page.
Here's the beginning of my MD post:
---
layout: post
title: "Title"
date: 2022-12-06 18:26:05 +0100
categories: category
author: Author name
author-pic: author.jpg
banner-bottom: Some test some test some test [Link to a page]({{ site.baseurl | }}{% link page.html %}).
---
In the post layout I'm calling the variable {{page.banner-bottom}}
inside a <div>
:
{% include header.html %}
<article>
<h1>{{ page.title }}</h1>
<div class="author-name">
<img src="{{ site.baseurl }}/{{ page.author-pic }}" alt=""><span>{{ page.author }}</span>
</div>
{{content}}
<div class="banner-bottom">{{page.banner-bottom}}</div>
</article>
{% include footer.html %}
Unfortunately [Link to a page]({{ site.baseurl }}{% link alumni.html %})
is rendered as text and not converted to a link. Any idea why? I also tried escaping site.baseurl like {{ site.baseurl | escape }}
with no luck.