1
Fork 0

Use relurl rather than .GetPage

This commit is contained in:
Jake Howard 2021-09-04 16:44:09 +01:00
parent 4db3239a22
commit 97af4e6d02
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@
{{ partial "content.html" . }}
<h3>Referrals</h3>
<p>Interested in the same <a href='{{ (.GetPage "posts").Permalink }}'>things</a> as me? Below are referral links for some of the services I use. By following them, you get something, I get something - win win!</p>
<p>Interested in the same <a href='{{ relURL "posts" }}'>things</a> as me? Below are referral links for some of the services I use. By following them, you get something, I get something - win win!</p>
<ul>
{{ range $i, $referral := sort .Site.Data.support.referral "name" }}
<li>

View file

@ -6,7 +6,7 @@
<h1 class="display-1">{{ .Site.Params.author_name }}</h1>
<h2 class="lead">{{ .Content }}</h2>
<form action='{{ (.Site.GetPage "search").RelPermalink }}' method="GET">
<form action='{{ relURL "search" }}' method="GET">
<div class="input-group mt-5">
<input name="q" type="text" class="form-control" id="search-input" placeholder="Search" title="Press enter to search">
</div>