Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add trailing slashes #282

Merged
merged 1 commit into from
Aug 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions layouts/episode/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ <h2>Guests</h2>
{{- end -}}
</div>
<div class="col-md-8">
<h2><a href = "{{(printf "guest/%s" .File.BaseFileName) | absURL }}">{{ .Title }}</a></h2>
<h2><a href = "{{(printf "guest/%s/" .File.BaseFileName) | absURL }}">{{ .Title }}</a></h2>
{{ .Content }}
{{- with .Params.Website -}}
<a href="{{ . }}">
Expand All @@ -130,7 +130,7 @@ <h2><a href = "{{(printf "guest/%s" .File.BaseFileName) | absURL }}">{{ .Title }
</a>
{{- end -}}
{{- with .Params.LinkedIn -}}
<a href="https://www.linkedin.com/in/{{ . }}">
<a href="https://www.linkedin.com/in/{{ . }}/">
<i class="fab fa-linkedin fa-2x"></i>
</a>
{{- end -}}
Expand Down Expand Up @@ -194,7 +194,7 @@ <h2>{{ $p.full_name }}</h2>
<a href = "https://github.com/{{ $p.GitHub}}"><i class="fab fa-github-square fa-2x"></i></a>
{{ end }}
{{ if isset $p "linkedin" }}
<a href = "https://www.linkedin.com/in/{{ $p.LinkedIn}}"><i class="fab fa-linkedin-square fa-2x"></i></a>
<a href = "https://www.linkedin.com/in/{{ $p.LinkedIn}}/"><i class="fab fa-linkedin-square fa-2x"></i></a>
{{ end }}
{{ if isset $p "facebook" }}
<a href = "{{ $p.Facebook}}"><i class="fab fa-facebook-square fa-2x"></i></a>
Expand Down Expand Up @@ -231,7 +231,7 @@ <h2>Hosts</h2>
{{- end -}}
</div>
<div class="col-md-8">
<h2><a href = "{{(printf "host/%s" .File.BaseFileName) | absURL }}">{{ .Title }}</a></h2>
<h2><a href = "{{(printf "host/%s/" .File.BaseFileName) | absURL }}">{{ .Title }}</a></h2>
{{ .Content }}
{{- with .Params.Website -}}
<a href="{{ . }}">
Expand All @@ -249,7 +249,7 @@ <h2><a href = "{{(printf "host/%s" .File.BaseFileName) | absURL }}">{{ .Title }}
</a>
{{- end -}}
{{- with .Params.LinkedIn -}}
<a href="https://www.linkedin.com/in/{{ . }}">
<a href="https://www.linkedin.com/in/{{ . }}/">
<i class="fab fa-linkedin fa-2x"></i>
</a>
{{- end -}}
Expand Down
10 changes: 5 additions & 5 deletions layouts/guest/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ <h1>Guests of {{ .Site.Title }}</h1>
<div class="col-md-3">
{{- if and (isset .Params "thumbnail") (ne .Params.thumbnail "") -}}
{{- if (eq (slicestr .Params.thumbnail 0 4) "http") -}}
<a href = "{{(printf "guest/%s" .File.BaseFileName) | absURL }}"><img alt="{{ .Title }}" src="{{ .Params.thumbnail }}" class="img-fluid" width="250px"></a>
<a href = "{{(printf "guest/%s/" .File.BaseFileName) | absURL }}"><img alt="{{ .Title }}" src="{{ .Params.thumbnail }}" class="img-fluid" width="250px"></a>
{{- else -}}
<a href = "{{(printf "guest/%s" .File.BaseFileName) | absURL }}"><img alt="{{ .Title }}" src="{{ .Params.thumbnail | absURL}}" class="img-fluid" width="250px"></a>
<a href = "{{(printf "guest/%s/" .File.BaseFileName) | absURL }}"><img alt="{{ .Title }}" src="{{ .Params.thumbnail | absURL}}" class="img-fluid" width="250px"></a>
{{- end -}}
{{- else -}}
<a href = "{{(printf "guest/%s" .File.BaseFileName) | absURL }}"><img alt="{{ .Title }}" src="{{ "img/guest/default-guest.png" | absURL }}" class="img-fluid" width="250px"/></a>
<a href = "{{(printf "guest/%s/" .File.BaseFileName) | absURL }}"><img alt="{{ .Title }}" src="{{ "img/guest/default-guest.png" | absURL }}" class="img-fluid" width="250px"/></a>
{{- end -}}
</div>
<div class= "col-md-6">
<h3><a href = "{{(printf "guest/%s" .File.BaseFileName) | absURL }}">{{ .Title }}</a></h3>
<h3><a href = "{{(printf "guest/%s/" .File.BaseFileName) | absURL }}">{{ .Title }}</a></h3>
<p>{{ .Content }}</p>
{{ with .Params.Website }}
<a href = "{{ . }}"><i class="fas fa-home fa-2x"></i></a>
Expand All @@ -52,7 +52,7 @@ <h3><a href = "{{(printf "guest/%s" .File.BaseFileName) | absURL }}">{{ .Title }
<a href = "https://github.com/{{ . }}"><i class="fab fa-github-square fa-2x"></i></a>
{{ end }}
{{ with .Params.LinkedIn }}
<a href = "https://www.linkedin.com/in/{{ . }}"><i class="fab fa-linkedin fa-2x"></i></a>
<a href = "https://www.linkedin.com/in/{{ . }}/"><i class="fab fa-linkedin fa-2x"></i></a>
{{ end }}
{{ with .Params.Facebook }}
<a href = "https://www.facebook.com/{{ . }}"><i class="fab fa-facebook-square fa-2x"></i></a>
Expand Down
2 changes: 1 addition & 1 deletion layouts/guest/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h1>{{ title .Title }}</h1>
</a>
{{ end }}
{{ if .Params.LinkedIn }}
<a href="https://www.linkedin.com/in/{{ .Params.LinkedIn}}">
<a href="https://www.linkedin.com/in/{{ .Params.LinkedIn}}/">
<i class="fab fa-linkedin fa-2x"></i>
</a>
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/host/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h1>{{ title .Title }}</h1>
</a>
{{ end }}
{{ if .Params.LinkedIn }}
<a href="https://www.linkedin.com/in/{{ .Params.LinkedIn}}">
<a href="https://www.linkedin.com/in/{{ .Params.LinkedIn}}/">
<i class="fab fa-linkedin fa-2x"></i>
</a>
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
{{ end }}
{{ if (isset .Site.Params.social "linkedin" ) }}
<li>
<a class = "social-links" href="https://www.linkedin.com/in{{ .Site.Params.social.linkedin }}"><i class="fab fa-linkedin fa-2x"></i></a>
<a class = "social-links" href="https://www.linkedin.com/in{{ .Site.Params.social.linkedin }}/"><i class="fab fa-linkedin fa-2x"></i></a>
</li>
{{ end }}
{{ if (isset .Site.Params.social "github" ) }}
Expand Down
10 changes: 5 additions & 5 deletions layouts/partials/hosts.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ <h2>Hosts</h2>
<div class="col-md-3">
{{- if and (isset .Params "thumbnail") (ne .Params.thumbnail "") -}}
{{- if (eq (slicestr .Params.thumbnail 0 4) "http") -}}
<a href = "{{(printf "host/%s" .File.BaseFileName) | absURL }}"><img alt="{{ .Title }}" src="{{ .Params.thumbnail }}" class="img-fluid" width="250px"></a>
<a href = "{{(printf "host/%s/" .File.BaseFileName) | absURL }}"><img alt="{{ .Title }}" src="{{ .Params.thumbnail }}" class="img-fluid" width="250px"></a>
{{- else -}}
<a href = "{{(printf "host/%s" .File.BaseFileName) | absURL }}"><img alt="{{ .Title }}" src="{{ .Params.thumbnail | absURL}}" class="img-fluid" width="250px"></a>
<a href = "{{(printf "host/%s/" .File.BaseFileName) | absURL }}"><img alt="{{ .Title }}" src="{{ .Params.thumbnail | absURL}}" class="img-fluid" width="250px"></a>
{{- end -}}
{{- else -}}
<a href = "{{(printf "host/%s" .File.BaseFileName) | absURL }}"><img alt="{{ .Title }}" src="{{ "img/host/default-host.png" | absURL }}" class="img-fluid" width="250px"/></a>
<a href = "{{(printf "host/%s/" .File.BaseFileName) | absURL }}"><img alt="{{ .Title }}" src="{{ "img/host/default-host.png" | absURL }}" class="img-fluid" width="250px"/></a>
{{- end -}}
</div>
<div class= "col-md-6">
<h3><a href = "{{(printf "host/%s" .File.BaseFileName) | absURL }}">{{ .Title }}</a></h3>
<h3><a href = "{{(printf "host/%s/" .File.BaseFileName) | absURL }}">{{ .Title }}</a></h3>
<p>{{ .Content }}</p>
{{ with .Params.Website }}
<a href = "{{ . }}"><i class="fas fa-home fa-2x"></i></a>
Expand All @@ -33,7 +33,7 @@ <h3><a href = "{{(printf "host/%s" .File.BaseFileName) | absURL }}">{{ .Title }}
<a href = "https://github.com/{{ . }}"><i class="fab fa-github-square fa-2x"></i></a>
{{ end }}
{{ with .Params.LinkedIn }}
<a href = "https://www.linkedin.com/in/{{ . }}"><i class="fab fa-linkedin fa-2x"></i></a>
<a href = "https://www.linkedin.com/in/{{ . }}/"><i class="fab fa-linkedin fa-2x"></i></a>
{{ end }}
{{ with .Params.Facebook }}
<a href = "https://www.facebook.com/{{ . }}"><i class="fab fa-facebook-square fa-2x"></i></a>
Expand Down