Skip to content

Commit

Permalink
modified instafeed
Browse files Browse the repository at this point in the history
  • Loading branch information
somratpro committed Sep 22, 2020
1 parent 866a46c commit 24a4b41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
get: 'user',
resolution: 'low_resolution',
accessToken: accessToken,
template: '<div class="instagram-post"><img class="img-fluid w-100" src="{{image}}" alt="instagram-image"><ul class="list-inline text-center"><li class="list-inline-item"><a href="{{link}}" target="_blank" class="text-white"><i class="ti-heart mr-2"></i>{{likes}}</a></li><li class="list-inline-item"><a href="{{link}}" target="_blank" class="text-white"><i class="ti-comments mr-2"></i>{{comments}}</a></li></ul></div>'
template: '<div class="instagram-post"><a href="{{link}}" target="_blank"><img class="img-fluid w-100" src="{{image}}" alt="instagram-image"></a></div>'
});
userFeed.run();
}
Expand Down
8 changes: 4 additions & 4 deletions layouts/partials/instafeed.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{{ if .Site.Params.instafeed.enable }}
{{ if site.Params.instafeed.enable }}
{{ with site.Params.instafeed }}
<!-- instagram -->
<section>
<div class="container-fluid px-0">
<div class="row no-gutters instagram-slider" id="instafeed" data-accessToken="{{.Site.Params.instafeed.access_token}}"></div>
</div>
<div class="instagram-slider" id="instafeed" data-accessToken="{{.access_token}}"></div>
</section>
<!-- /instagram -->
{{ end }}
{{ end }}

0 comments on commit 24a4b41

Please sign in to comment.