change to relative links

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
master
Toshaan Bharvani 2 years ago
parent 966d86dffa
commit 2cc67a4542

@ -1,18 +1,13 @@
{{ partial "header.html" . }}

{{ partial "navbar.html" . }}

<main id="main">

<section id="list" class="section-bg">
<div class="container-fluid">

<div class="section-header">
<h3 class="section-title">{{ .Title }}</h3>
<span class="section-divider"></span>
<p class="section-description"></p>
</div>

{{ if .Content }}
<div class="row">
<div class="col-lg-2">&nbsp;</div>
@ -22,7 +17,6 @@
<div class="col-lg-2">&nbsp;</div>
</div>
{{ end }}

<div class="row">
<div class="col-lg-2">&nbsp;</div>
<div class="col-lg-8 text-lg-center content wow fadeInBottom">
@ -40,7 +34,7 @@
{{ end }}
{{ end }}
{{ range .Data.Pages }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
</div>
@ -48,11 +42,8 @@
</div>
</div>
</section>

</main>

{{ if .Param "calltoaction" }}
{{ partial "calltoaction.html" . }}
{{ end }}

{{ partial "footer.html" . }}

@ -14,7 +14,7 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<link>{{ .RelPermalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
@ -28,10 +28,10 @@
{{ range $pages }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<link>{{ .RelPermalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<guid>{{ .RelPermalink }}</guid>
<description>{{ .Content | html }}</description>
</item>
{{ end }}

@ -1,9 +1,7 @@
{{ partial "header.html" . }}

{{ partial "navbar.html" . }}

<main class="main">
<div class="container">
<main class="main">
<div class="container">
<div class="row">
<div class="col-md-6">
<h1 class="h2 section-header my-3 my-md-5 pb-2">{{ .Title }}</h1>
@ -24,7 +22,6 @@
</div>
{{ end }}
</div>
</div>
</main>

</div>
</main>
{{ partial "footer.html" . }}

@ -1,5 +1,5 @@
{
"title": "{{ .Title }}",
"permalink": "{{ .Permalink }}",
"permalink": "{{ .RelPermalink }}",
"content": "{{ .PlainWords }}"
}

@ -27,7 +27,7 @@
<img class="img-fluid" src="{{ $image.RelPermalink }}" width="50" height="50" alt="{{ .Title }}">
</div>
{{ end }}
<a class="post__title btn btn-outline-primary" href="{{ .Permalink }}">
<a class="post__title btn btn-outline-primary" href="{{ .RelPermalink }}">
{{ .Title }}
<br>
<i>Published on {{ .Date.Format "Monday 2 January 2006" }}</i>

@ -14,7 +14,7 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<link>{{ .RelPermalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
@ -23,15 +23,15 @@
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{- with .OutputFormats.Get "RSS" -}}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .RelPermalink .MediaType | safeHTML }}
{{- end -}}
{{ range $pages }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<link>{{ .RelPermalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<guid>{{ .RelPermalink }}</guid>
<description>{{ .Content | safeHTML }}</description>
</item>
{{ end }}

@ -26,7 +26,7 @@
{{ with $.Site.GetPage $personfile }}
{{ $memberfile := printf "%s/%s" "members" (.Param "member") }}
{{ with $.Site.GetPage $memberfile }}
<h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
{{ end }}
<p>{{ .Content }}</p>
{{ end }}

@ -45,7 +45,7 @@
<div class="row text-center">
{{ range (.Paginate .Data.Pages.ByTitle 30).Pages }}
<article class="post__article col-md-6">
<a class="post__title btn btn-outline-primary" href="{{ .Permalink }}">{{ .Title }}</a>
<a class="post__title btn btn-outline-primary" href="{{ .RelPermalink }}">{{ .Title }}</a>
</article>
{{ end }}
</div>

@ -1,5 +1,5 @@
{{- $.Scratch.Add "index" slice -}}
{{- range .Data.Pages -}}
{{- $.Scratch.Add "index" (dict "title" .Title "permalink" .Permalink "contents" .Plain "tags" .Params.tags) }}
{{- $.Scratch.Add "index" (dict "title" .Title "permalink" .RelPermalink "contents" .Plain "tags" .Params.tags) }}
{{- end -}}
{{- $.Scratch.Get "index" | jsonify -}}

@ -43,11 +43,11 @@
{{ if .Param "group" }}
{{ $group := printf "%s/%s" "groups" (.Param "group") }}
{{ with $.Site.GetPage $group }}
Owned by : <a href="{{ .Permalink }}">{{ .Title }}</a><br>
Owned by : <a href="{{ .RelPermalink }}">{{ .Title }}</a><br>
{{ end }}
{{ end }}
{{ with $.Site.GetPage $specificationfile }}
Specification File : <a href="{{ .Permalink }}">{{ $filename }}</a><br>
Specification File : <a href="{{ .RelPermalink }}">{{ $filename }}</a><br>
{{ end }}
{{ if $datafile.versions }}
<ul class="changelogtimeline">

@ -16,7 +16,7 @@
<div class="timeline-item">
<div class="timeline-img"></div>
<div class="timeline-content js--fadeInLeft">
<h2><a href="{{ .Permalink }}"><span class="post-title">{{ .Title }}</span></a></h2>
<h2><a href="{{ .RelPermalink }}"><span class="post-title">{{ .Title }}</span></a></h2>
{{ $eventdate := .Param "eventdates.from" }}
<div class="date">
{{ dateFormat "2 January 2006" $eventdate }} - {{ .Param "eventplace" }}

@ -30,7 +30,7 @@
<img class="img-fluid" src="{{ $image.RelPermalink }}" width="390" height="390" alt="">
</div>
{{ end }}
<a class="post__title btn btn-outline-primary" href="{{ .Permalink }}">{{ .Title }}</a>
<a class="post__title btn btn-outline-primary" href="{{ .RelPermalink }}">{{ .Title }}</a>
</article>
{{ end }}
</div>

@ -18,7 +18,7 @@
<div class="col-2"></div>
{{ range .Data.Pages }}
<div id="hubprovider" class="col-lg-2 text-center">
<a href="{{ .Permalink }}">
<a href="{{ .RelPermalink }}">
{{ if .Param "member" }}
{{ $member := .Param "member" }}
{{ range where .Site.RegularPages "Section" "members" }}

@ -19,7 +19,7 @@
{{ range where .Site.RegularPages "Section" "members" }}
{{ $membercompany := .File.BaseFileName }}
{{ if eq $member $membercompany }}
<a href="{{ .Permalink }}">
<a href="{{ .RelPermalink }}">
{{ if .Param "image" }}
{{ $imagename := .Param "image" }}
{{ $imagelocation := (printf "%s/%s" "images/members/" $imagename) }}

@ -14,7 +14,7 @@
{{- end -}}
{{- $.Scratch.Add "index" (dict
"title" .Title
"permalink" .Permalink
"permalink" .RelPermalink
"contents" .Plain
"level" .Params.level
"joined" .Params.joined

@ -2,7 +2,7 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<link>{{ .RelPermalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>
{{ with .Site.LanguageCode }}<language>{{.}}</language>{{end}}
@ -11,14 +11,14 @@
{{- with .Site.Copyright -}}<copyright>{{.}}</copyright>{{- end -}}
{{- if not .Date.IsZero }}<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML -}}</lastBuildDate>{{- end -}}
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .RelPermalink .MediaType | safeHTML }}
{{- end -}}
{{ range .Data.Pages.ByDate.Reverse }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<link>{{ .RelPermalink }}</link>
<pubDate>{{- .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML -}}</pubDate>
<guid>{{ .Permalink }}</guid>
<guid>{{ .RelPermalink }}</guid>
<joined>{{ .Params.joined }}</joined>
<country>{{ .Params.country }}</country>
<groups>

@ -1,6 +1,6 @@
{
"title": "{{ .Title }}",
"permalink": "{{ .Permalink }}",
"permalink": "{{ .RelPermalink }}",
"level": "{{ .Params.level }}",
"joined": "{{ .Params.joined }}",
"link": "{{ .Params.link }}",

@ -52,7 +52,7 @@ var goal = "{{ .Site.Params.forms.contact.goal }}";
</div>
<div class="form-row">
<div class="form-group col-lg-12 text-center">
<input type="hidden" name="url" value="{{ $.Page.Permalink | absURL }}" />
<input type="hidden" name="url" value="{{ $.Page.RelPermalink | absURL }}" />
<button class="btn btn-outline-primary mb-4 mt-4" type="submit" title="Send Message">Send Message</button>
</div>
</div>

@ -2,7 +2,7 @@
<script type="text/javascript">
DiscourseEmbed = {
discourseUrl: 'https://discuss.openpower.foundation/',
discourseEmbedUrl: "{{ .Permalink | absURL }}",
discourseEmbedUrl: "{{ .RelPermalink | relURL }}",
topicId: {{ .Param "discoursetopic" }},
};
(function() {

@ -27,7 +27,7 @@
{{ if eq $level "platinum" }}
<div class="col-lg-3">
<div class="box">
<a href="{{ .Permalink }}">
<a href="{{ .RelPermalink }}">
{{ if .Param "image" }}
{{ $imagename := .Param "image" }}
{{ $imagelocation := (printf "%s/%s" "images/members/" $imagename) }}

@ -35,13 +35,13 @@
{{ range $.Site.Pages.ByTitle }}
{{ $group := .Param "wgtype" }}
{{ if eq $group "twg" }}
<li class="header__menu-item"><a href="{{ .Permalink }}">{{ .Title }}</a></li>
<li class="header__menu-item"><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
{{ if eq $group "sig" }}
<li class="header__menu-item"><a href="{{ .Permalink }}">{{ .Title }}</a></li>
<li class="header__menu-item"><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
{{ if eq $group "bof" }}
<li class="header__menu-item"><a href="{{ .Permalink }}">{{ .Title }}</a></li>
<li class="header__menu-item"><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
{{ end }}
</ul>

@ -60,7 +60,7 @@
<img class="img-fluid" src="{{ $image.RelPermalink }}" width="50" height="50" alt="{{ .Title }}">
</div>
{{ end }}
<a class="post__title btn btn-outline-primary" href="{{ .Permalink }}">{{ .Title }}</a>
<a class="post__title btn btn-outline-primary" href="{{ .RelPermalink }}">{{ .Title }}</a>
</article>
{{ end }}
</div>

@ -1,5 +1,5 @@
{{- $.Scratch.Add "index" slice -}}
{{- range .Data.Pages -}}
{{- $.Scratch.Add "index" (dict "title" .Title "permalink" .Permalink "contents" .Plain "tags" .Params.tags) }}
{{- $.Scratch.Add "index" (dict "title" .Title "permalink" .RelPermalink "contents" .Plain "tags" .Params.tags) }}
{{- end -}}
{{- $.Scratch.Get "index" | jsonify -}}

@ -60,7 +60,7 @@
<img class="img-fluid" src="{{ $image.RelPermalink }}" width="50" height="50" alt="{{ .Title }}">
</div>
{{ end }}
<a class="post__title btn btn-outline-primary" href="{{ .Permalink }}">{{ .Title }}</a>
<a class="post__title btn btn-outline-primary" href="{{ .RelPermalink }}">{{ .Title }}</a>
</article>
{{ end }}
</div>

@ -1,5 +1,5 @@
{{- $.Scratch.Add "index" slice -}}
{{- range .Data.Pages -}}
{{- $.Scratch.Add "index" (dict "title" .Title "permalink" .Permalink "contents" .Plain "tags" .Params.tags) }}
{{- $.Scratch.Add "index" (dict "title" .Title "permalink" .RelPermalink "contents" .Plain "tags" .Params.tags) }}
{{- end -}}
{{- $.Scratch.Get "index" | jsonify -}}

@ -44,7 +44,7 @@
<div class="row text-center">
{{ range (.Paginate .Data.Pages.ByTitle 30).Pages }}
<article class="post__article col-md-6">
<a class="post__title btn btn-outline-primary" href="{{ .Permalink }}">{{ .Title }}</a>
<a class="post__title btn btn-outline-primary" href="{{ .RelPermalink }}">{{ .Title }}</a>
</article>
{{ end }}
</div>

@ -1,5 +1,5 @@
{{- $.Scratch.Add "index" slice -}}
{{- range .Data.Pages -}}
{{- $.Scratch.Add "index" (dict "title" .Title "permalink" .Permalink "contents" .Plain "tags" .Params.tags) }}
{{- $.Scratch.Add "index" (dict "title" .Title "permalink" .RelPermalink "contents" .Plain "tags" .Params.tags) }}
{{- end -}}
{{- $.Scratch.Get "index" | jsonify -}}

@ -43,11 +43,11 @@
{{ if .Param "group" }}
{{ $group := printf "%s/%s" "groups" (.Param "group") }}
{{ with $.Site.GetPage $group }}
Owned by : <a href="{{ .Permalink }}">{{ .Title }}</a><br>
Owned by : <a href="{{ .RelPermalink }}">{{ .Title }}</a><br>
{{ end }}
{{ end }}
{{ with $.Site.GetPage $compliancefile }}
Compliance : <a href="{{ .Permalink }}">Test Suite &amp; Harness</a>
Compliance : <a href="{{ .RelPermalink }}">Test Suite &amp; Harness</a>
{{ end }}
{{ if $datafile.versions }}
<ul class="changelogtimeline">

@ -26,7 +26,7 @@
{{ range where .Site.RegularPages "Section" "members" }}
{{ $membercompany := .File.BaseFileName }}
{{ if eq $member $membercompany }}
<a href="{{ .Permalink }}">
<a href="{{ .RelPermalink }}">
{{ if .Param "image" }}
{{ $imagename := .Param "image" }}
{{ $imagelocation := (printf "%s/%s" "/images/members/" $imagename) }}
@ -81,7 +81,7 @@
{{ range where .Site.RegularPages "Section" "members" }}
{{ $membercompany := .File.BaseFileName }}
{{ if eq $member $membercompany }}
<a href="{{ .Permalink }}">
<a href="{{ .RelPermalink }}">
{{ if .Param "image" }}
{{ $imagename := .Param "image" }}
{{ $imagelocation := (printf "%s/%s" "images/members/" $imagename) }}

Loading…
Cancel
Save