Skip to content

Commit

Permalink
Always fetch cover image from base path
Browse files Browse the repository at this point in the history
fixes #236
  • Loading branch information
kakawait committed Jul 3, 2019
1 parent dc2d3f5 commit f1e01c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/post/header-cover.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="post-header-cover
{{ if .Params.metaalignment }}text-{{ .Params.metaalignment }}{{ else }}text-left{{ end }}
{{ with .Params.coversize }}post-header-cover--{{ . }}{{ end }}"
style="background-image:url('{{ .Params.coverimage }}')"
style="background-image:url('/{{ strings.TrimPrefix "/" .Params.coverimage }}')"
data-behavior="{{ $.Scratch.Get "sidebarBehavior" }}">
{{ if or (eq .Params.covermeta "in") (not .Params.covermeta) }}
{{ partial "post/header.html" . }}
Expand Down

0 comments on commit f1e01c4

Please sign in to comment.