hugo-theme-minima/assets/js/selectable.js

4 lines
136 B
JavaScript
Raw Permalink Normal View History

const selectable = '{{ .Site.Params.selectable }}'
if (selectable === 'false') {
document.documentElement.style = 'user-select:none'
}