Use relurl
rather than .GetPage
This commit is contained in:
parent
4db3239a22
commit
97af4e6d02
2 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue