Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/adityatelange/hugo-PaperMod.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2022-05-14 08:25:41 +0300
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2022-05-14 08:25:41 +0300
commitb7dbb0ea0ec6031d3cd1747e455aed73f2f96ff1 (patch)
tree0ccc99c11b0230d83c882ba3554944288ad51ea6
parentcf5b2d59b290a86a9390a685bfcfb584346f0282 (diff)
Use innerHTML instead of innerText in Code Copy strings
so that users willing to use a svg inplace of already existing text can update the i18n strings and get an svg in place
-rw-r--r--layouts/partials/footer.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index d76058f8..ae02d99a 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -91,12 +91,12 @@
const copybutton = document.createElement('button');
copybutton.classList.add('copy-code');
- copybutton.innerText = '{{- i18n "code_copy" | default "copy" }}';
+ copybutton.innerHTML = '{{- i18n "code_copy" | default "copy" }}';
function copyingDone() {
- copybutton.innerText = '{{- i18n "code_copied" | default "copied!" }}';
+ copybutton.innerHTML = '{{- i18n "code_copied" | default "copied!" }}';
setTimeout(() => {
- copybutton.innerText = '{{- i18n "code_copy" | default "copy" }}';
+ copybutton.innerHTML = '{{- i18n "code_copy" | default "copy" }}';
}, 2000);
}