Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ZGQ-inc authored Dec 23, 2024
1 parent 3d24bfe commit 5b64507
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
8 changes: 8 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
markdown: kramdown
kramdown:
auto_ids: true
parse_block_html: true
auto_link: true
# markdown: redcarpet
# redcarpet:
# extensions:
# - autolink
highlighter: rouge
theme: null
title: 好软分享
Expand Down
3 changes: 2 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ <h2><a href="https://github.com/yoyodadada/haoruanfenxiang">项目地址</a></h2
</header>
<section>

{{ content | link }}
<!-- {{ content | link }} -->
{{ content }}

</section>
<footer>
Expand Down
16 changes: 8 additions & 8 deletions _plugins/link.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module Jekyll
module AutoLinkFilter
def auto_link(input)
# module Jekyll
# module AutoLinkFilter
# def auto_link(input)

input.gsub(/(https?:\/\/[\S]+)/, '<a href="\1" target="_blank">\1</a>')
end
end
end
# input.gsub(/(https?:\/\/[\S]+)/, '<a href="\1" target="_blank">\1</a>')
# end
# end
# end

Liquid::Template.register_filter(Jekyll::AutoLinkFilter)
# Liquid::Template.register_filter(Jekyll::AutoLinkFilter)

0 comments on commit 5b64507

Please sign in to comment.