Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grav-plugin-prism-highlight copy button labels translation added #202

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Plugin name with hyphen properly quoted
Related: https://learn.getgrav.org/16/plugins/plugin-basics#accessing-plugin-configuration-values-via-twig
Fixes: efbbe1e
Author-Change-Id: IB#1139768
Signed-off-by: Pawel Boguslawski <pawel.boguslawski@ib.pl>
  • Loading branch information
pboguslawski committed Nov 8, 2023
commit 262d0cd327f9d666ba7a696afeb1c3d262ef64ab
2 changes: 1 addition & 1 deletion templates/partials/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
{{ assets.js()|raw }}
{% endblock %}
</head>
<body id="top" class="{% block body_classes %}{{ body_classes }}{% endblock %}"{% if config.plugins.prism-highlight.enabled %} data-prismjs-copy="{{ 'PLUGIN_PRISM_HIGHLIGHT.COPY'|t }}" data-prismjs-copy-error="{{ 'PLUGIN_PRISM_HIGHLIGHT.COPY_ERROR'|t }}" data-prismjs-copy-success="{{ 'PLUGIN_PRISM_HIGHLIGHT.COPY_SUCCESS'|t }}"{% endif %}>
<body id="top" class="{% block body_classes %}{{ body_classes }}{% endblock %}"{% if config.plugins['prism-highlight'].enabled %} data-prismjs-copy="{{ 'PLUGIN_PRISM_HIGHLIGHT.COPY'|t }}" data-prismjs-copy-error="{{ 'PLUGIN_PRISM_HIGHLIGHT.COPY_ERROR'|t }}" data-prismjs-copy-success="{{ 'PLUGIN_PRISM_HIGHLIGHT.COPY_SUCCESS'|t }}"{% endif %}>
<div id="page-wrapper">
{% block header %}
<section id="header" class="section">
Expand Down