Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kishaningithub/hugo-creative-portfolio-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKishan B <bkishan@thoughtworks.com>2018-12-08 08:40:52 +0300
committerKishan B <bkishan@thoughtworks.com>2018-12-08 08:40:52 +0300
commitb048723598b885ae71f95f1a79c891c0baee41d8 (patch)
tree8590ff0a9a1e97dc70b19fcd999c9421564bfc70
parent99d5f54fcf8547e33f89ce06f87493e42f7c17f2 (diff)
Support image from network. Fixes #53
-rw-r--r--exampleSite/content/portfolio/work5.md2
-rw-r--r--layouts/partials/portfolio.html2
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 }}