Skip to content

Commit c3ceef5

Browse files
authored
refactor: removes absURL for now (#45)
1 parent 57cef35 commit c3ceef5

File tree

13 files changed

+30
-30
lines changed

13 files changed

+30
-30
lines changed

layouts/_default/baseof.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
<head>
77
{{- partial "head.html" . }}
88
</head>
9-
<body id="body" class="@container flex flex-col w-full overflow-x-hidden relative">
9+
<body id="body" class="@container min-h-screen flex flex-col w-full overflow-x-hidden relative">
1010
<header class="flex flex-row items-baseline m-0 p-0 px-2 md:pb-2 lg:mx-32 bg-neutral-100 dark:bg-neutral-900">
1111
{{- partial "header.html" . }}
1212
</header>
13-
<main class="main flex flex-col m-0 p-2 md:px-8 md:pt-4 lg:mx-32 bg-white dark:bg-zinc-800 border-1">
13+
<main class="main flex flex-col flex-1 m-0 p-2 md:px-8 md:pt-4 lg:mx-32 bg-white dark:bg-zinc-800 border-1">
1414
{{- block "main" . }}{{ end -}}
1515
</main>
16-
<footer class="m-0 p-0 mb-2 md:pt-4 flex flex-col items-center">
16+
<footer class="m-0 p-0 mb-2 md:pt-4 flex flex-col items-center mt-auto">
1717
{{ partial "footer.html" . -}}
1818
</footer>
1919
</body>

layouts/_default/home.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
{{- range $paginator.Pages }}
66
<div class="post-preview flex-col home-ls">
77
<h3>
8-
<a class="no-underline" href="{{ .RelPermalink | absURL }}">{{ .LinkTitle }}</a>
8+
<a class="no-underline" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
99
</h3>
1010
{{- if eq .Truncated false }}
1111
<p>There is no summary. Someone got lazy.</p>
1212
<span class="read-more p-0 m-0 px-1 md:mt-8 flex flex-row">
13-
<a href="{{ .RelPermalink | absURL }}">Read Anyway &rarr;</a>
13+
<a href="{{ .RelPermalink }}">Read Anyway &rarr;</a>
1414
</span>
1515
{{- else }}
1616
<span class="summary">
@@ -19,7 +19,7 @@ <h3>
1919
{{- end }}
2020
{{- if .Truncated }}
2121
<span class="read-more p-0 m-0 px-1 md:mt-8 flex flex-row">
22-
<a href="{{ .RelPermalink | absURL }}">Read More &rarr;</a>
22+
<a href="{{ .RelPermalink }}">Read More &rarr;</a>
2323
</span>
2424
{{- end }}
2525
<hr/>

layouts/_default/taxonomy.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<li class="list-none">
66
#<a
77
class="no-underline hover:underline"
8-
href="{{ .Page.RelPermalink | absURL }}">
8+
href="{{ .Page.RelPermalink }}">
99
{{ lower .Page.Title }}
1010
</a>
1111
&middot; {{ .Count }}

layouts/_default/term.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{ .Content | emojify }}
33
<ul>
44
{{ range .Pages.ByDate }}
5-
<li class="list-none"><a href="{{ .RelPermalink | absURL }}">{{ .LinkTitle }}</a></li>
5+
<li class="list-none"><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
66
{{ end }}
77
</ul>
88
<!-- "_default/term.html" -->

layouts/partials/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{{ if $.Site.Params.rss }}
1919
{{- with $.OutputFormats.Get "RSS" }}
2020
<li>
21-
<a href="{{ .RelPermalink | absURL }}" title="RSS">
21+
<a href="{{ .RelPermalink }}" title="RSS">
2222
<span class="fa-stack md:fa-lg">
2323
<i class="fas fa-square fa-stack-2x"></i>
2424
<i class="fas fa-rss fa-stack-1x fa-inverse"></i>

layouts/partials/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
{{- with .Params.robots -}}
2626
<meta name="robots" content="{{ . }}" />
2727
{{ end -}}
28-
<link rel="canonical" href="{{ .Permalink | absURL }}" />
28+
<link rel="canonical" href="{{ .Permalink }}" />
2929
{{- range .AlternativeOutputFormats }}
3030
{{- printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink $.Site.Title | emojify | safeHTML -}}
3131
{{- end }}

layouts/partials/head/css.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
{{- $opts := dict "inlineImports" true "minify" true "optimize" (not hugo.IsDevelopment) -}}
55
{{- with . | css.TailwindCSS $opts }}
66
{{- if hugo.IsDevelopment -}}
7-
<link rel="stylesheet" href="{{ .RelPermalink | absURL }}" />
7+
<link rel="stylesheet" href="{{ .RelPermalink }}" />
88
{{- else -}}
99
{{- with . | fingerprint }}
10-
<link rel="stylesheet" href="{{ .RelPermalink | absURL }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" />
10+
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" />
1111
{{- end -}}
1212
{{- end -}}
1313
{{- end -}}
@@ -20,10 +20,10 @@
2020
{{- $opts := dict "inlineImports" true "minify" true "optimize" (not hugo.IsDevelopment) -}}
2121
{{- with . | css.TailwindCSS $opts -}}
2222
{{- if hugo.IsDevelopment -}}
23-
<link rel="stylesheet" href="{{ .RelPermalink | absURL }}" />
23+
<link rel="stylesheet" href="{{ .RelPermalink }}" />
2424
{{- else -}}
2525
{{- with . | fingerprint }}
26-
<link rel="stylesheet" href="{{ .RelPermalink | absURL }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" />
26+
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" />
2727
{{- end -}}
2828
{{- end -}}
2929
{{- end -}}
@@ -32,10 +32,10 @@
3232
{{- end }}
3333
{{- with resources.Get "fontawesome/css/all.css" }}
3434
{{- if hugo.IsDevelopment -}}
35-
<link rel="stylesheet" href="{{ .RelPermalink | absURL }}" />
35+
<link rel="stylesheet" href="{{ .RelPermalink }}" />
3636
{{- else -}}
3737
{{- with . | postCSS | minify | fingerprint }}
38-
<link rel="stylesheet" href="{{ .RelPermalink | absURL }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" />
38+
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" />
3939
{{- end -}}
4040
{{- end -}}
4141
{{- end }}
@@ -47,10 +47,10 @@
4747
{{- $opts := dict "inlineImports" true "minify" true "optimize" (not hugo.IsDevelopment) -}}
4848
{{- with . | css.TailwindCSS $opts }}
4949
{{- if hugo.IsDevelopment -}}
50-
<link rel="stylesheet" href="{{ .RelPermalink | absURL }}" />
50+
<link rel="stylesheet" href="{{ .RelPermalink }}" />
5151
{{- else -}}
5252
{{- with . | fingerprint }}
53-
<link rel="stylesheet" href="{{ .RelPermalink | absURL }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" />
53+
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" />
5454
{{- end -}}
5555
{{- end -}}
5656
{{- end -}}

layouts/partials/head/js.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{{- with resources.Get "js/main.js" -}}
22
{{- if eq hugo.Environment "development" -}}
33
{{- with . | js.Build }}
4-
<script src="{{ .RelPermalink | absURL }}"></script>
4+
<script src="{{ .RelPermalink }}"></script>
55
{{- end -}}
66
{{- else -}}
77
{{ $opts := dict "minify" true }}
88
{{- with . | js.Build $opts | fingerprint }}
9-
<script src="{{ .RelPermalink | absURL }}" integrity="{{ .Data.Integrity }}"
9+
<script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}"
1010
crossorigin="anonymous"></script>
1111
{{- end -}}
1212
{{- end }}

layouts/partials/header.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ <h1>
44
<a
55
class="header-title no-underline md:pl-4 mt-2 max-sm:mb-0 md:font-extrabold"
66
title="{{ .Title }}"
7-
href="{{ .Site.BaseURL | absURL }}">
7+
href="{{ .Site.BaseURL }}">
88
{{ site.Title }} <span class="tight title_cursor"></span>
99
</a>
1010
</h1>
@@ -13,7 +13,7 @@ <h1>
1313
<a
1414
class="header-title no-underline md:pl-4 mt-2 max-sm:mb-0 md:font-extrabold"
1515
title="{{ .Title }}"
16-
href="{{ .Site.BaseURL | absURL }}">
16+
href="{{ .Site.BaseURL }}">
1717
{{ site.Title }}
1818
</a>
1919
</h1>

layouts/partials/pager.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<li class="mr-auto">
44
{{ with $.PrevInSection }}
55
<a
6-
href="{{ .RelPermalink | absURL }}"
6+
href="{{ .RelPermalink }}"
77
aria-label="Previous"
88
class="page-link"
99
role="button">
@@ -14,7 +14,7 @@
1414
<li class="ml-auto">
1515
{{ with $.NextInSection }}
1616
<a
17-
href="{{ .RelPermalink | absURL }}"
17+
href="{{ .RelPermalink }}"
1818
aria-label="Next"
1919
class="page-link"
2020
role="button">

0 commit comments

Comments
 (0)