Skip to content

Commit

Permalink
insert baseurl
Browse files Browse the repository at this point in the history
  • Loading branch information
SallyMcGrath committed Mar 31, 2024
1 parent 42d6b37 commit e681151
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion website/config.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
baseURL = "/"
baseURL = "https://systems.codeyourfuture.io/"
languageCode = "en-us"
title = "CYF+"
languageLang = "en"
Expand Down
2 changes: 1 addition & 1 deletion website/layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h1 class="c-page-header__title e-heading e-heading__1">{{.Title}}</h1>
<ol>
{{ range .Pages }}
<li>
<a href="{{.Permalink}}">{{.Title}}</a>
<a href="{{.RelPermalink}}">{{.Title}}</a>
</li>
{{ end}}
</ol>
Expand Down
4 changes: 2 additions & 2 deletions website/layouts/partials/breadcrumbs.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<ol class="c-breadcrumbs__list">
{{- range after 1 .Ancestors.Reverse }}
<li class="c-breadcrumbs__item">
<a class="c-breadcrumbs__link" href="{{ .Permalink }}"
<a class="c-breadcrumbs__link" href="{{ .RelPermalink }}"
>{{ .Title }}
<svg
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -24,7 +24,7 @@
</li>
{{- end }}
<li class="c-breadcrumbs__item">
<a class="c-breadcrumbs__link" href="{{ .Permalink }}">{{ .Title }}</a>
<a class="c-breadcrumbs__link" href="{{ .RelPermalink }}">{{ .Title }}</a>
</li>
</ol>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion website/layouts/partials/card.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ $fallBack := readDir "static/pictures/svgs/neons" | shuffle |first 1 }} {{
$fallBackProjects := readDir "static/pictures/depths" | shuffle |first 1 }}

<a class="c-card" href="{{.Permalink}}">
<a class="c-card" href="{{.RelPermalink}}">
<h3 class="c-card__title">{{.Title}}</h3>
<!-- just random pictures -->
<img loading="lazy" class="c-card__image" src="{{ if eq .Section "projects"
Expand Down
2 changes: 1 addition & 1 deletion website/layouts/partials/foot.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
{{ $scripts := resources.Get "scripts/app.js" | resources.Minify }} {{ partial
"random-bg" .}}

<script src="{{$scripts.Permalink}}" defer></script>
<script src="{{$scripts.RelPermalink}}" defer></script>

{{ if .Page.Store.Get "hasMermaid" }}
<script
Expand Down
4 changes: 2 additions & 2 deletions website/layouts/partials/page-footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ <h4 class="c-page-footer__section">
<!-- we probably only want to navigate through primers which are subsections of one thing -->
{{ if (eq .Section "primers") }} {{if .NextInSection}}<a
class="c-page-footer__backwards"
href="{{.NextInSection.Permalink}}"
href="{{.NextInSection.RelPermalink}}"
>&larr; {{.NextInSection.Title}}</a
>{{ else }}
<span class="c-page-footer__backwards"></span>

{{ end}} {{if .PrevInSection}}
<a class="c-page-footer__forwards" href="{{.PrevInSection.Permalink}}"
<a class="c-page-footer__forwards" href="{{.PrevInSection.RelPermalink}}"
>{{.PrevInSection.Title}} &rarr;</a
>{{ end}} {{ end}}
</nav>
Expand Down
2 changes: 1 addition & 1 deletion website/layouts/partials/timeline.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a class="c-timeline__post" href="{{.Permalink}}">
<a class="c-timeline__post" href="{{.RelPermalink}}">
<h3 class="c-timeline__title">{{.Title}}</h3>
<time class="c-timeline__date" datetime="{{.Date}}"
>{{.Date.Format "January 2, 2006"}}</time
Expand Down
2 changes: 1 addition & 1 deletion website/layouts/versions/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h1 class="c-page-header__title e-heading e-heading__1">Run {{.Title}}</h1>
<ol>
{{ range .Pages }}
<li>
<a href="{{.Permalink}}">{{.Title}}</a>
<a href="{{.RelPermalink}}">{{.Title}}</a>
</li>
{{ end}}
</ol>
Expand Down

0 comments on commit e681151

Please sign in to comment.