aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Wörner <git@simon-woerner.de>2017-09-11 15:55:26 +0200
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2017-09-11 21:55:26 +0800
commit10eacc006661779a5bea51ff011080d535e8c446 (patch)
tree4ed772f517a1036701137e7a064eb08f4fb2ada4 /src
parent21096bf13351218b3299f962f22fd1b2e9203f52 (diff)
fix: only enable fancybox on post content (#3)
This fixes problems when the license contains images. These are opened with fancybox instead of open the license link.
Diffstat (limited to 'src')
-rw-r--r--src/js/even.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/even.js b/src/js/even.js
index 6aef540..4ebe165 100644
--- a/src/js/even.js
+++ b/src/js/even.js
@@ -112,7 +112,7 @@ Even.toc = function () {
Even.fancybox = function () {
if ($.fancybox) {
- $('.post').each(function () {
+ $('.post-content').each(function () {
$(this).find('img').each(function () {
$(this).wrap(`<a class="fancybox" href="${this.src}" data-fancybox="gallery" data-caption="${this.title}"></a>`)
})