Browse Source

Update templates to use RelPermalink

ApisNecros 1 year ago
parent
commit
cedce3819a
3 changed files with 3 additions and 3 deletions
  1. 1 1
      layouts/_default/single.html
  2. 1 1
      layouts/blog/single.html
  3. 1 1
      layouts/projects/bare.html

+ 1 - 1
layouts/_default/single.html

@@ -1,7 +1,7 @@
 
 {{ define "main" }}
 <div class="panel flex-1 blog-post h-entry">
-	<h1 class="blog-post--title p-name"><a href="{{ .Permalink }}" class="u-url text-black no-underline">{{ .Title }}</a></h1>
+	<h1 class="blog-post--title p-name"><a href="{{ .RelPermalink }}" class="u-url text-black no-underline">{{ .Title }}</a></h1>
 	<div class="blog-post--body e-content">
 		{{ .Content }}
 	</div>

+ 1 - 1
layouts/blog/single.html

@@ -1,7 +1,7 @@
 
 {{ define "main" }}
 <article class="panel flex-1 blog-post h-entry">
-	<h1 class="blog-post--title p-name"><a href="{{ .Permalink }}" class="u-url text-black no-underline">{{ .Title }}</a></h1>
+	<h1 class="blog-post--title p-name"><a href="{{ .RelPermalink }}" class="u-url text-black no-underline">{{ .Title }}</a></h1>
 	<div class="blog-post--body e-content">
 		{{ .Content }}
 	</div>

+ 1 - 1
layouts/projects/bare.html

@@ -8,7 +8,7 @@
             </div>
         </div>
         {{- range sort (.Resources.Match "**.js") ".Params.SortOrder" "asc" }}
-        <script src="{{ .Permalink }}" data-sort-param="{{ .Params.SortOrder }}"></script>
+        <script src="{{ .RelPermalink }}" data-sort-param="{{ .Params.SortOrder }}"></script>
         {{- end }}
     </body>
 </html>