diff options
Diffstat (limited to 'layouts/partials/scripts.html')
-rw-r--r-- | layouts/partials/scripts.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 19b1fdf..93a33ef 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -269,7 +269,7 @@ create : function() { this.$title = $( '<h3></h3>' ); this.$description = $( '<p></p>' ); - this.$href = $( '<a href="#">{{ .Site.Params.buttontext }}</a>' ); + this.$href = $( '<a href="#" target="_blank">{{ .Site.Params.buttontext }}</a>' ); this.$details = $( '<div class="og-details"></div>' ).append( this.$title, this.$description, this.$href ); this.$loading = $( '<div class="og-loading"></div>' ); this.$fullimage = $( '<div class="og-fullimg"></div>' ).append( this.$loading ); @@ -301,11 +301,14 @@ href : $itemEl.attr( 'href' ), largesrc : $itemEl.data( 'largesrc' ), title : $itemEl.data( 'title' ), - description : $itemEl.data( 'description' ) + description : $itemEl.data( 'description' ), + buttontext : $itemEl.data( 'buttontext' ) }; this.$title.html( eldata.title ); this.$description.html( eldata.description ); + if(eldata.buttontext) this.$href.text(eldata.buttontext); + else this.$href.text("{{ .Site.Params.buttontext }}") if (eldata.href) { this.$href.attr( 'href', eldata.href ); |