diff options
author | Mike DeCrescenzo <decrescenzo@wisc.edu> | 2018-07-26 23:29:52 +0300 |
---|---|---|
committer | Vicky Lai <vicky@vickylai.com> | 2018-07-26 23:29:52 +0300 |
commit | db3bdd9512f7fc0dd3bd2ee1541e82ce92487f4f (patch) | |
tree | 7b51c631b0b4c95b569352a13a13593890b6c18d | |
parent | 997c707d5b0180a125fe97c106e6997c73dcd5bb (diff) |
image relURL on single pages (address #69) (#70)
Images in static directory were not displaying on single pages within the /projects/ folder. Including of relURL makes them appear.
-rw-r--r-- | layouts/_default/single.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 0371fcc..55910d6 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -23,7 +23,7 @@ <!-- Begin content --> {{ if .Params.image }} <div class="has-text-centered"> - <img src="{{ .Params.image }}" class="img-responsive"> + <img src="{{ .Params.image | relURL }}" class="img-responsive"> </div> {{ end }} {{ .Content }} </div> @@ -59,4 +59,4 @@ }) </script> -</body>
\ No newline at end of file +</body> |