diff options
author | Kishan B <bkishan@thoughtworks.com> | 2018-12-08 08:40:52 +0300 |
---|---|---|
committer | Kishan B <bkishan@thoughtworks.com> | 2018-12-08 08:40:52 +0300 |
commit | b048723598b885ae71f95f1a79c891c0baee41d8 (patch) | |
tree | 8590ff0a9a1e97dc70b19fcd999c9421564bfc70 | |
parent | 99d5f54fcf8547e33f89ce06f87493e42f7c17f2 (diff) |
Support image from network. Fixes #53
-rw-r--r-- | exampleSite/content/portfolio/work5.md | 2 | ||||
-rw-r--r-- | layouts/partials/portfolio.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/exampleSite/content/portfolio/work5.md b/exampleSite/content/portfolio/work5.md index 41e9d3b..493d642 100644 --- a/exampleSite/content/portfolio/work5.md +++ b/exampleSite/content/portfolio/work5.md @@ -1,5 +1,5 @@ +++ -image = "img/portfolio/business-card.jpg" +image = "https://github.com/kishaningithub/hugo-creative-portfolio-theme/raw/master/exampleSite/static/img/portfolio/business-card.jpg" showonlyimage = true draft = false date = "2016-11-05T19:53:42+05:30" diff --git a/layouts/partials/portfolio.html b/layouts/partials/portfolio.html index f53c8a0..2309b1d 100644 --- a/layouts/partials/portfolio.html +++ b/layouts/partials/portfolio.html @@ -11,7 +11,7 @@ {{ else }} <a href="{{ .Permalink }}" title="" class="box-masonry-image with-hover-overlay with-hover-icon"> {{ end }} - <img src="{{.Site.BaseURL}}{{ .Params.image }}" alt="" class="img-responsive"> + <img src="{{.Params.image | absURL}}" alt="" class="img-responsive"> </a> {{ end }} {{ if eq .Params.showonlyimage true }} |