diff --git a/LICENSE b/LICENSE index acb051e..8fb0293 100644 --- a/LICENSE +++ b/LICENSE @@ -1,3 +1,9 @@ +The MIT License applies to the code in this repository. + +Post content in the Markdown files is separately licensed under CC BY-NC-SA 4.0. + +* * * + MIT License Copyright (c) 2023 John Bowdre diff --git a/assets/js/kudos.js b/assets/js/kudos.js new file mode 100644 index 0000000..7bf55c7 --- /dev/null +++ b/assets/js/kudos.js @@ -0,0 +1,24 @@ +// disables kudos button after click + +document.addEventListener('DOMContentLoaded', () => { + const kudosButton = document.querySelector('.kudos-button'); + const kudosText = document.querySelector('.kudos-text'); + const emojiSpan = kudosButton.querySelector('.emoji'); + + kudosButton.addEventListener('click', () => { + cabin.event('kudos') + kudosButton.disabled = true; + kudosButton.classList.add('clicked'); + + kudosText.textContent = 'Thanks!'; + kudosText.classList.add('thanks'); + + // Rotate the emoji + emojiSpan.style.transform = 'rotate(360deg)'; + + // Change the emoji after rotation + setTimeout(() => { + emojiSpan.textContent = '🎉'; + }, 150); // Half of the transition time for a smooth mid-rotation change + }); +}); \ No newline at end of file diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml index 603ce6f..fd7e7f1 100644 --- a/config/_default/hugo.toml +++ b/config/_default/hugo.toml @@ -1,7 +1,6 @@ baseURL = "https://runtimeterror.dev" theme = "risotto" title = "runtimeterror" -copyright = "© 2024 John Bowdre" paginate = 10 languageCode = "en" DefaultContentLanguage = "en" diff --git a/config/_default/params.toml b/config/_default/params.toml index c5db7e6..3833dba 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -108,6 +108,7 @@ taglines = [ "long division took too long", "may the code be with you", "mess with the test, fail like the rest", + "miscellaneous bug fixes and improvements", "need input", "no such file or directory", "now where did i leave my null pointer...", diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 802737d..1d7b9fb 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -40,10 +40,16 @@ {{- $reply = false }} {{- end }} {{- if eq $reply true }} -
{{ .Site.Copyright | markdownify }}
- + +