Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
Fix baseurl with subdir (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
pacollins committed Jul 5, 2019
1 parent e26d9f3 commit 8099910
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layouts/post/featured.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ if .Params.featured }}
<a href="{{ .RelPermalink }}" class="image featured">
<img src="/img/{{ if eq .Params.featuredpath "date" }}{{ .Page.Date.Format "2006/01" }}/{{ else }}{{ .Params.featuredpath }}{{ end }}{{ .Params.featured }}" alt="{{ .Params.featuredalt }}">
<img src="{{ (path.Join "img" (cond (eq .Params.featuredpath "date") (.Page.Date.Format "2006/01") (.Params.featuredpath)) .Params.featured) | relURL }}" alt="{{ .Params.featuredalt }}">
</a>
{{ end }}
Loading

0 comments on commit 8099910

Please sign in to comment.