Use proper link concatenation

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
Danila Fedorin 2024-06-23 14:17:15 -07:00
parent 7e8a89ccd2
commit 1a9d9f33cf
3 changed files with 9 additions and 9 deletions

View File

@ -2,8 +2,8 @@
<h2>{{ .Title }}</h2> <h2>{{ .Title }}</h2>
<div class="post-subscript"> <div class="post-subscript">
<p> <p>
{{- range .Params.tags }} {{- range (.GetTerms "tags") -}}
<a class="button" href="{{ $.Site.BaseURL }}/tags/{{ . | urlize }}">{{ . }}</a> <a class="button" href="{{ .Permalink }}">{{ .Title }}</a>
{{ end -}} {{ end -}}
</p> </p>
<p>{{ i18n "postedOn" (.Date.Format "January 2, 2006") }}.</p> <p>{{ i18n "postedOn" (.Date.Format "January 2, 2006") }}.</p>

View File

@ -1,7 +1,7 @@
{{ define "main" }} {{ define "main" }}
<h2>{{ .Title }} </h2> <h2>{{ .Title }} </h2>
<script src="{{ .Site.Params.visNetworkJsUrl }}"></script> <script src="{{ .Site.Params.visNetworkJsUrl }}"></script>
<script type="module" src="{{ .Site.BaseURL }}/graph/graph.js"></script> <script type="module" src="{{ absLangURL "graph/graph.js" }}"></script>
<style> <style>
#graph-container { #graph-container {
width: 100%; width: 100%;

View File

@ -3,18 +3,18 @@
</div> </div>
<nav> <nav>
<div class="container"> <div class="container">
<a href="{{ .Site.BaseURL }}">{{ i18n "home" }}</a> <a href="{{ .Site.Home.Permalink }}">{{ i18n "home" }}</a>
<a href="{{ relref . "about" }}">{{ i18n "about" }}</a> <a href="{{ relref . "about" }}">{{ i18n "about" }}</a>
{{ with .Site.Params.githubUsername }} {{ with .Site.Params.githubUsername }}
<a href="https://github.com/{{ . }}">GitHub</a> <a href="https://github.com/{{ . }}">GitHub</a>
{{ end }} {{ end }}
{{ if .Site.Params.resumeStaticFile }} {{ if .Site.Params.resumeStaticFile }}
<a href="{{ .Site.BaseURL }}/{{ .Site.Params.resumeStaticFile }}">{{ i18n "resume" }}</a> <a href="{{ absLangURL .Site.Params.resumeStaticFile }}">{{ i18n "resume" }}</a>
{{ end }} {{ end }}
<a href="{{ .Site.BaseURL }}/tags">{{ i18n "tags" }}</a> <a href="{{ site.Taxonomies.tags.Page.Permalink }}">{{ i18n "tags" }}</a>
<a href="{{ .Site.BaseURL }}/series">{{ i18n "series" }}</a> <a href="{{ site.Taxonomies.series.Page.Permalink }}">{{ i18n "series" }}</a>
<a href="{{ .Site.BaseURL }}/favorites">{{ i18n "favorites" }}</a> <a href="{{ relref . "favorites" }}">{{ i18n "favorites" }}</a>
<a href="{{ .Site.BaseURL }}/search">{{ i18n "search" }}</a> <a href="{{ relref . "search" }}">{{ i18n "search" }}</a>
<a href="{{ relref . "blog" }}">{{ i18n "allPosts" }}</a> <a href="{{ relref . "blog" }}">{{ i18n "allPosts" }}</a>
</div> </div>
</nav> </nav>