feature: option to disallow text selecting
This commit is contained in:
parent
9bcd2650ae
commit
458b7c3904
4 changed files with 8 additions and 2 deletions
|
@ -1,2 +1,3 @@
|
|||
import "./theme";
|
||||
import "./style";
|
||||
import "./selectable";
|
4
assets/js/selectable.js
Normal file
4
assets/js/selectable.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
const selectable = '{{ .Site.Params.selectable }}'
|
||||
if (selectable === 'false') {
|
||||
document.documentElement.style = 'user-select:none'
|
||||
}
|
|
@ -1,7 +1,6 @@
|
|||
* {
|
||||
line-height: 1;
|
||||
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
||||
user-select: none;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
|
|
|
@ -32,8 +32,10 @@ comment = "disqus"
|
|||
timeformat = "Jan 2, 2006"
|
||||
# switch for turning on/off lights.
|
||||
switch = ["🌚", "🌝"]
|
||||
# if true, date of posts will be displayed in the homepage
|
||||
# if true, date of posts will be displayed in the homepage.
|
||||
displayDate = true
|
||||
# if true, users can select text from your post.
|
||||
selectable = false
|
||||
|
||||
|
||||
# OvO is a comment plugin written by the author of Minima.
|
||||
|
|
Loading…
Reference in a new issue