Skip to content

Commit

Permalink
# News
Browse files Browse the repository at this point in the history
## Version 2.0.7

* Changes so that all glightbox images have a gallery data property, defaulting to Hugo's unique filename. This should reduce strange gallery collisions on list pages.
* Adds NEWS.md for release notes.
  • Loading branch information
jsonbecker committed Jan 8, 2022
1 parent 313a2e2 commit 9284ddb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Jason Becker
Copyright (c) 2021 Jason Becker

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
@@ -0,0 +1,6 @@
# News

## Version 2.0.7

* Changes so that all glightbox images have a gallery data property, defaulting to Hugo's unique filename. This should reduce strange gallery collisions on list pages.
* Adds NEWS.md for release notes.
6 changes: 4 additions & 2 deletions layouts/shortcodes/glightbox.html
@@ -1,7 +1,9 @@
<a href="{{ .Get "src" }}"
class="glightbox"
{{ if .Get "gallery"}}
data-gallery="{{ .Get "gallery" }}"
{{ with .Get "gallery" }}
data-gallery="{{ . }}"
{{ else }}
data-gallery="{{ .File.UniqueID }}"
{{ end }}
{{ if or (.Get "title") (.Get "description") }}
data-glightbox="title:{{ .Get "title" | default "" }};description:{{ .Get "description" | default "" }}"
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
@@ -1,5 +1,5 @@
{
"version": "2.0.6",
"version": "2.0.7",
"title": "GLightbox",
"description": "Adds the ability to have simple, attractive lightbox and gallery for photos using a shortcode.",
"includes": [
Expand Down

0 comments on commit 9284ddb

Please sign in to comment.