mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-20 19:02:33 +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:
|
- Screenshots with this changes:
|
||||||
|
|
||||||
### How to use?
|
### How to use?
|
||||||
|
|
||||||
In NexT `_config.yml`:
|
In NexT `_config.yml`:
|
||||||
```yml
|
```yml
|
||||||
|
|
||||||
|
|||||||
2
.github/workflows/labeler.yml
vendored
2
.github/workflows/labeler.yml
vendored
@ -1,7 +1,7 @@
|
|||||||
name: Pull Request Labeler
|
name: Pull Request Labeler
|
||||||
|
|
||||||
on:
|
on:
|
||||||
- pull_request
|
- pull_request_target
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
triage:
|
triage:
|
||||||
|
|||||||
@ -33,7 +33,6 @@ custom_file_path:
|
|||||||
|
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
# Site Information Settings
|
# Site Information Settings
|
||||||
# See: https://theme-next.js.org/docs/getting-started/
|
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
|
|
||||||
favicon:
|
favicon:
|
||||||
@ -327,7 +326,7 @@ calendar:
|
|||||||
|
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
# Misc Theme Settings
|
# 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.
|
# Set the text alignment in posts / pages.
|
||||||
@ -393,7 +392,6 @@ github_banner:
|
|||||||
|
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
# Font Settings
|
# Font Settings
|
||||||
# See: https://theme-next.js.org/docs/theme-settings/#Fonts-Customization
|
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
# Find fonts on Google Fonts (https://fonts.google.com)
|
# Find fonts on Google Fonts (https://fonts.google.com)
|
||||||
# All fonts set here will have the following styles:
|
# All fonts set here will have the following styles:
|
||||||
@ -845,7 +843,7 @@ canvas_ribbon:
|
|||||||
#! ==============================================================
|
#! ==============================================================
|
||||||
#! DO NOT EDIT THE FOLLOWING SETTINGS
|
#! DO NOT EDIT THE FOLLOWING SETTINGS
|
||||||
#! UNLESS YOU KNOW WHAT YOU ARE DOING
|
#! 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.
|
# 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;
|
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');
|
const button = element.querySelector('.copy-btn');
|
||||||
button.addEventListener('click', () => {
|
button.addEventListener('click', () => {
|
||||||
const lines = element.querySelector('.code') || element.querySelector('code');
|
const lines = element.querySelector('.code') || element.querySelector('code');
|
||||||
@ -103,7 +103,7 @@ NexT.utils = {
|
|||||||
});
|
});
|
||||||
element.addEventListener('mouseleave', () => {
|
element.addEventListener('mouseleave', () => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
button.querySelector('i').className = 'fa fa-clipboard fa-fw';
|
button.querySelector('i').className = 'fa fa-copy fa-fw';
|
||||||
}, 300);
|
}, 300);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user