mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-12-18 13:44:15 +00:00
Added caption sytle for hyperlinked images (#144).
This commit is contained in:
16
assets/js/_utils/img-hyperlink.js
Normal file
16
assets/js/_utils/img-hyperlink.js
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Find out the <a> tag contains an image and mark it.
|
||||
*
|
||||
* v2.5.1
|
||||
* https://github.com/cotes2020/jekyll-theme-chirpy
|
||||
* © 2020 Cotes Chung
|
||||
* MIT Licensed
|
||||
*/
|
||||
|
||||
$(function() {
|
||||
|
||||
var MARK="img-hyperlink";
|
||||
|
||||
$("a:has(img)").addClass(MARK);
|
||||
|
||||
});
|
||||
2
assets/js/post.min.js
vendored
2
assets/js/post.min.js
vendored
@@ -13,3 +13,5 @@ layout: compress
|
||||
{% include_relative lib/_bootstrap-toc.min.js %}
|
||||
|
||||
{% include_relative _utils/toc-filter.js %}
|
||||
|
||||
{% include_relative _utils/img-hyperlink.js %}
|
||||
|
||||
Reference in New Issue
Block a user