mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
Update docs
This commit is contained in:
parent
a78d0ea2ff
commit
1bbe8f4101
1
.github/PULL_REQUEST_TEMPLATE.md
vendored
1
.github/PULL_REQUEST_TEMPLATE.md
vendored
@ -39,6 +39,7 @@ Issue resolved:
|
||||
- Screenshots with this changes:
|
||||
|
||||
### How to use?
|
||||
|
||||
In NexT `_config.yml`:
|
||||
```yml
|
||||
|
||||
|
||||
2
.github/workflows/labeler.yml
vendored
2
.github/workflows/labeler.yml
vendored
@ -1,7 +1,7 @@
|
||||
name: Pull Request Labeler
|
||||
|
||||
on:
|
||||
- pull_request
|
||||
- pull_request_target
|
||||
|
||||
jobs:
|
||||
triage:
|
||||
|
||||
@ -33,7 +33,6 @@ custom_file_path:
|
||||
|
||||
# ---------------------------------------------------------------
|
||||
# Site Information Settings
|
||||
# See: https://theme-next.js.org/docs/getting-started/
|
||||
# ---------------------------------------------------------------
|
||||
|
||||
favicon:
|
||||
@ -327,7 +326,7 @@ calendar:
|
||||
|
||||
# ---------------------------------------------------------------
|
||||
# Misc Theme Settings
|
||||
# See: https://theme-next.js.org/docs/theme-settings/
|
||||
# See: https://theme-next.js.org/docs/theme-settings/miscellaneous
|
||||
# ---------------------------------------------------------------
|
||||
|
||||
# Set the text alignment in posts / pages.
|
||||
@ -393,7 +392,6 @@ github_banner:
|
||||
|
||||
# ---------------------------------------------------------------
|
||||
# Font Settings
|
||||
# See: https://theme-next.js.org/docs/theme-settings/#Fonts-Customization
|
||||
# ---------------------------------------------------------------
|
||||
# Find fonts on Google Fonts (https://fonts.google.com)
|
||||
# All fonts set here will have the following styles:
|
||||
@ -845,7 +843,7 @@ canvas_ribbon:
|
||||
#! ==============================================================
|
||||
#! DO NOT EDIT THE FOLLOWING SETTINGS
|
||||
#! UNLESS YOU KNOW WHAT YOU ARE DOING
|
||||
#! See: https://theme-next.js.org/docs/advanced-settings
|
||||
#! See: https://theme-next.js.org/docs/advanced-settings/vendors
|
||||
#! ==============================================================
|
||||
|
||||
# It's recommended to use the same version as in `_vendors.yml` to avoid potential problems.
|
||||
|
||||
@ -80,7 +80,7 @@ NexT.utils = {
|
||||
});
|
||||
});
|
||||
if (!CONFIG.copycode) return;
|
||||
element.insertAdjacentHTML('beforeend', '<div class="copy-btn"><i class="fa fa-clipboard fa-fw"></i></div>');
|
||||
element.insertAdjacentHTML('beforeend', '<div class="copy-btn"><i class="fa fa-copy fa-fw"></i></div>');
|
||||
const button = element.querySelector('.copy-btn');
|
||||
button.addEventListener('click', () => {
|
||||
const lines = element.querySelector('.code') || element.querySelector('code');
|
||||
@ -103,7 +103,7 @@ NexT.utils = {
|
||||
});
|
||||
element.addEventListener('mouseleave', () => {
|
||||
setTimeout(() => {
|
||||
button.querySelector('i').className = 'fa fa-clipboard fa-fw';
|
||||
button.querySelector('i').className = 'fa fa-copy fa-fw';
|
||||
}, 300);
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user