change to relative links

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

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

{{ partial "navbar.html" . }} {{ partial "navbar.html" . }}

<main id="main"> <main id="main">

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

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

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

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

</main> </main>

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

{{ partial "footer.html" . }} {{ partial "footer.html" . }}

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

@ -1,30 +1,27 @@
{{ partial "header.html" . }} {{ partial "header.html" . }}

{{ partial "navbar.html" . }} {{ partial "navbar.html" . }}

<main class="main">
<main class="main"> <div class="container">
<div class="container"> <div class="row">
<div class="row"> <div class="col-md-6">
<div class="col-md-6"> <h1 class="h2 section-header my-3 my-md-5 pb-2">{{ .Title }}</h1>
<h1 class="h2 section-header my-3 my-md-5 pb-2">{{ .Title }}</h1> {{ .Content }}
{{ .Content }}
</div>
{{ if .Param "image" }}
<div class="col-md-6 pt-5 pl-3 pr-0">
{{ $imagefilename := .Param "image.file" }}
{{ $imagesize := .Param "image.size" }}
{{ $imagelocation := printf "%s/%s" "images" $imagefilename }}
{{ $imageresource := resources.Get $imagelocation }}
{{ if $imageresource }}
{{ $imagefile := $imageresource.Fit "600x600" }}
<figure class="figure d-flex pt-3">
<img src="{{ $imagefile.RelPermalink }}">
</figure>
{{ end }}
</div>
{{ end }}
</div>
</div> </div>
</main> {{ if .Param "image" }}

<div class="col-md-6 pt-5 pl-3 pr-0">
{{ $imagefilename := .Param "image.file" }}
{{ $imagesize := .Param "image.size" }}
{{ $imagelocation := printf "%s/%s" "images" $imagefilename }}
{{ $imageresource := resources.Get $imagelocation }}
{{ if $imageresource }}
{{ $imagefile := $imageresource.Fit "600x600" }}
<figure class="figure d-flex pt-3">
<img src="{{ $imagefile.RelPermalink }}">
</figure>
{{ end }}
</div>
{{ end }}
</div>
</div>
</main>
{{ partial "footer.html" . }} {{ partial "footer.html" . }}

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

@ -27,7 +27,7 @@
<img class="img-fluid" src="{{ $image.RelPermalink }}" width="50" height="50" alt="{{ .Title }}"> <img class="img-fluid" src="{{ $image.RelPermalink }}" width="50" height="50" alt="{{ .Title }}">
</div> </div>
{{ end }} {{ end }}
<a class="post__title btn btn-outline-primary" href="{{ .Permalink }}"> <a class="post__title btn btn-outline-primary" href="{{ .RelPermalink }}">
{{ .Title }} {{ .Title }}
<br> <br>
<i>Published on {{ .Date.Format "Monday 2 January 2006" }}</i> <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"> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel> <channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title> <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> <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 }} <generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }} <language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
@ -23,15 +23,15 @@
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }} <copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }} <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{- with .OutputFormats.Get "RSS" -}} {{- 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 -}} {{- end -}}
{{ range $pages }} {{ range $pages }}
<item> <item>
<title>{{ .Title }}</title> <title>{{ .Title }}</title>
<link>{{ .Permalink }}</link> <link>{{ .RelPermalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> <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}} {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid> <guid>{{ .RelPermalink }}</guid>
<description>{{ .Content | safeHTML }}</description> <description>{{ .Content | safeHTML }}</description>
</item> </item>
{{ end }} {{ end }}

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

@ -45,7 +45,7 @@
<div class="row text-center"> <div class="row text-center">
{{ range (.Paginate .Data.Pages.ByTitle 30).Pages }} {{ range (.Paginate .Data.Pages.ByTitle 30).Pages }}
<article class="post__article col-md-6"> <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> </article>
{{ end }} {{ end }}
</div> </div>

@ -1,5 +1,5 @@
{{- $.Scratch.Add "index" slice -}} {{- $.Scratch.Add "index" slice -}}
{{- range .Data.Pages -}} {{- 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 -}} {{- end -}}
{{- $.Scratch.Get "index" | jsonify -}} {{- $.Scratch.Get "index" | jsonify -}}

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

@ -16,7 +16,7 @@
<div class="timeline-item"> <div class="timeline-item">
<div class="timeline-img"></div> <div class="timeline-img"></div>
<div class="timeline-content js--fadeInLeft"> <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" }} {{ $eventdate := .Param "eventdates.from" }}
<div class="date"> <div class="date">
{{ dateFormat "2 January 2006" $eventdate }} - {{ .Param "eventplace" }} {{ dateFormat "2 January 2006" $eventdate }} - {{ .Param "eventplace" }}

@ -30,7 +30,7 @@
<img class="img-fluid" src="{{ $image.RelPermalink }}" width="390" height="390" alt=""> <img class="img-fluid" src="{{ $image.RelPermalink }}" width="390" height="390" alt="">
</div> </div>
{{ end }} {{ 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> </article>
{{ end }} {{ end }}
</div> </div>

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

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

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

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

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

@ -52,7 +52,7 @@ var goal = "{{ .Site.Params.forms.contact.goal }}";
</div> </div>
<div class="form-row"> <div class="form-row">
<div class="form-group col-lg-12 text-center"> <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> <button class="btn btn-outline-primary mb-4 mt-4" type="submit" title="Send Message">Send Message</button>
</div> </div>
</div> </div>

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

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

@ -35,13 +35,13 @@
{{ range $.Site.Pages.ByTitle }} {{ range $.Site.Pages.ByTitle }}
{{ $group := .Param "wgtype" }} {{ $group := .Param "wgtype" }}
{{ if eq $group "twg" }} {{ 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 }} {{ end }}
{{ if eq $group "sig" }} {{ 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 }} {{ end }}
{{ if eq $group "bof" }} {{ 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 }}
{{ end }} {{ end }}
</ul> </ul>

@ -60,7 +60,7 @@
<img class="img-fluid" src="{{ $image.RelPermalink }}" width="50" height="50" alt="{{ .Title }}"> <img class="img-fluid" src="{{ $image.RelPermalink }}" width="50" height="50" alt="{{ .Title }}">
</div> </div>
{{ end }} {{ 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> </article>
{{ end }} {{ end }}
</div> </div>

@ -1,5 +1,5 @@
{{- $.Scratch.Add "index" slice -}} {{- $.Scratch.Add "index" slice -}}
{{- range .Data.Pages -}} {{- 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 -}} {{- end -}}
{{- $.Scratch.Get "index" | jsonify -}} {{- $.Scratch.Get "index" | jsonify -}}

@ -60,7 +60,7 @@
<img class="img-fluid" src="{{ $image.RelPermalink }}" width="50" height="50" alt="{{ .Title }}"> <img class="img-fluid" src="{{ $image.RelPermalink }}" width="50" height="50" alt="{{ .Title }}">
</div> </div>
{{ end }} {{ 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> </article>
{{ end }} {{ end }}
</div> </div>

@ -1,5 +1,5 @@
{{- $.Scratch.Add "index" slice -}} {{- $.Scratch.Add "index" slice -}}
{{- range .Data.Pages -}} {{- 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 -}} {{- end -}}
{{- $.Scratch.Get "index" | jsonify -}} {{- $.Scratch.Get "index" | jsonify -}}

@ -44,7 +44,7 @@
<div class="row text-center"> <div class="row text-center">
{{ range (.Paginate .Data.Pages.ByTitle 30).Pages }} {{ range (.Paginate .Data.Pages.ByTitle 30).Pages }}
<article class="post__article col-md-6"> <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> </article>
{{ end }} {{ end }}
</div> </div>

@ -1,5 +1,5 @@
{{- $.Scratch.Add "index" slice -}} {{- $.Scratch.Add "index" slice -}}
{{- range .Data.Pages -}} {{- 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 -}} {{- end -}}
{{- $.Scratch.Get "index" | jsonify -}} {{- $.Scratch.Get "index" | jsonify -}}

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

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

Loading…
Cancel
Save