diff options
-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 }} |