mirror of
https://github.com/welpo/tabi.git
synced 2026-04-26 09:57:20 +02:00
rename to code_block_name_links
This commit is contained in:
parent
52158d8349
commit
d728fadfb7
14 changed files with 17 additions and 17 deletions
|
|
@ -63,11 +63,11 @@
|
|||
{%- endif -%}
|
||||
|
||||
{# JavaScript to make code block names clickable when they are URLs: https://welpo.github.io/tabi/blog/shortcodes/#show-source-or-path #}
|
||||
{# Note: "add_src_to_code_block" is deprecated in favor of "clickable_code_block_names". It will be removed in a future release. #}
|
||||
{# Note: "add_src_to_code_block" is deprecated in favor of "code_block_name_links". It will be removed in a future release. #}
|
||||
{# See https://github.com/welpo/tabi/pull/489 #}
|
||||
{%- if macros_settings::evaluate_setting_priority(setting="clickable_code_block_names", page=page_s, section=section_s, default_global_value=false) == "true"
|
||||
{%- if macros_settings::evaluate_setting_priority(setting="code_block_name_links", page=page_s, section=section_s, default_global_value=false) == "true"
|
||||
or macros_settings::evaluate_setting_priority(setting="add_src_to_code_block", page=page_s, section=section_s, default_global_value=false) == "true" -%}
|
||||
<script defer src="{{ get_url(path='js/clickableCodeBlockNames.min.js', trailing_slash=false) | safe }}"></script>
|
||||
<script defer src="{{ get_url(path='js/codeBlockNameLinks.min.js', trailing_slash=false) | safe }}"></script>
|
||||
{%- endif -%}
|
||||
|
||||
{# Add backlinks to footnotes #}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue