mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-19 18:42:34 +00:00
Move custom text settings to language file
This commit is contained in:
parent
9a94710fd0
commit
de453da840
22
_config.yml
22
_config.yml
@ -157,7 +157,6 @@ social:
|
|||||||
#GitHub: https://github.com/yourname || fab fa-github
|
#GitHub: https://github.com/yourname || fab fa-github
|
||||||
#E-Mail: mailto:yourname@gmail.com || fa fa-envelope
|
#E-Mail: mailto:yourname@gmail.com || fa fa-envelope
|
||||||
#Weibo: https://weibo.com/yourname || fab fa-weibo
|
#Weibo: https://weibo.com/yourname || fab fa-weibo
|
||||||
#Google: https://plus.google.com/yourname || fab fa-google
|
|
||||||
#Twitter: https://twitter.com/yourname || fab fa-twitter
|
#Twitter: https://twitter.com/yourname || fab fa-twitter
|
||||||
#FB Page: https://www.facebook.com/yourname || fab fa-facebook
|
#FB Page: https://www.facebook.com/yourname || fab fa-facebook
|
||||||
#StackOverflow: https://stackoverflow.com/yourname || fab fa-stack-overflow
|
#StackOverflow: https://stackoverflow.com/yourname || fab fa-stack-overflow
|
||||||
@ -173,7 +172,6 @@ social_icons:
|
|||||||
# Blog rolls
|
# Blog rolls
|
||||||
links_settings:
|
links_settings:
|
||||||
icon: fa fa-globe
|
icon: fa fa-globe
|
||||||
title: Links
|
|
||||||
# Available values: block | inline
|
# Available values: block | inline
|
||||||
layout: block
|
layout: block
|
||||||
|
|
||||||
@ -269,7 +267,6 @@ reward_settings:
|
|||||||
# If true, a donate button will be displayed in every article by default.
|
# If true, a donate button will be displayed in every article by default.
|
||||||
enable: false
|
enable: false
|
||||||
animation: false
|
animation: false
|
||||||
#comment: Buy me a coffee
|
|
||||||
|
|
||||||
reward:
|
reward:
|
||||||
#wechatpay: /images/wechatpay.png
|
#wechatpay: /images/wechatpay.png
|
||||||
@ -289,7 +286,6 @@ follow_me:
|
|||||||
# Dependencies: https://github.com/sergeyzwezdin/hexo-related-posts
|
# Dependencies: https://github.com/sergeyzwezdin/hexo-related-posts
|
||||||
related_posts:
|
related_posts:
|
||||||
enable: false
|
enable: false
|
||||||
title: # Custom header, leave empty to use the default one
|
|
||||||
display_in_home: false
|
display_in_home: false
|
||||||
|
|
||||||
# Post edit
|
# Post edit
|
||||||
@ -407,7 +403,6 @@ bookmark:
|
|||||||
github_banner:
|
github_banner:
|
||||||
enable: false
|
enable: false
|
||||||
permalink: https://github.com/yourname
|
permalink: https://github.com/yourname
|
||||||
title: Follow me on GitHub
|
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
@ -467,7 +462,7 @@ font:
|
|||||||
# See: https://theme-next.js.org/docs/theme-settings/seo
|
# See: https://theme-next.js.org/docs/theme-settings/seo
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
|
|
||||||
# If true, site-subtitle will be added to index page.
|
# If true, site-subtitle will be added to the title of index page.
|
||||||
# Remember to set up your site-subtitle in Hexo `_config.yml` (e.g. subtitle: Subtitle)
|
# Remember to set up your site-subtitle in Hexo `_config.yml` (e.g. subtitle: Subtitle)
|
||||||
index_with_subtitle: false
|
index_with_subtitle: false
|
||||||
|
|
||||||
@ -528,7 +523,7 @@ pjax: false
|
|||||||
# For more information: https://fancyapps.com/fancybox/
|
# For more information: https://fancyapps.com/fancybox/
|
||||||
fancybox: false
|
fancybox: false
|
||||||
|
|
||||||
# A JavaScript library for zooming images like Medium.
|
# Medium Zoom is a JavaScript library for zooming images like Medium.
|
||||||
# Warning: Do not enable both `fancybox` and `mediumzoom`.
|
# Warning: Do not enable both `fancybox` and `mediumzoom`.
|
||||||
# For more information: https://medium-zoom.francoischalifour.com
|
# For more information: https://medium-zoom.francoischalifour.com
|
||||||
mediumzoom: false
|
mediumzoom: false
|
||||||
@ -537,12 +532,12 @@ mediumzoom: false
|
|||||||
# For more information: https://apoorv.pro/lozad.js/demo/
|
# For more information: https://apoorv.pro/lozad.js/demo/
|
||||||
lazyload: false
|
lazyload: false
|
||||||
|
|
||||||
# Pangu Support
|
# Automatically insert whitespace between CJK and half-width characters.
|
||||||
# For more information: https://github.com/vinta/pangu.js
|
# For more information: https://github.com/vinta/pangu.js
|
||||||
# Server-side plugin: https://github.com/next-theme/hexo-pangu
|
# Server-side plugin: https://github.com/next-theme/hexo-pangu
|
||||||
pangu: false
|
pangu: false
|
||||||
|
|
||||||
# Quicklink Support
|
# Prefetch links based on what is in the user's viewport.
|
||||||
# For more information: https://getquick.link
|
# For more information: https://getquick.link
|
||||||
# Front-matter variable (nonsupport home archive).
|
# Front-matter variable (nonsupport home archive).
|
||||||
quicklink:
|
quicklink:
|
||||||
@ -787,9 +782,8 @@ local_search:
|
|||||||
chat:
|
chat:
|
||||||
enable: false
|
enable: false
|
||||||
icon: fa fa-comment # Icon name in Font Awesome, set false to disable icon.
|
icon: fa fa-comment # Icon name in Font Awesome, set false to disable icon.
|
||||||
text: Chat # Button text, change it as you wish.
|
|
||||||
|
|
||||||
# Chatra Support
|
# Chatra is a functional, easy to use piece of chat software for websites.
|
||||||
# For more information: https://chatra.com
|
# For more information: https://chatra.com
|
||||||
# Dashboard: https://app.chatra.io/settings/general
|
# Dashboard: https://app.chatra.io/settings/general
|
||||||
chatra:
|
chatra:
|
||||||
@ -798,14 +792,14 @@ chatra:
|
|||||||
id: # Visit Dashboard to get your ChatraID
|
id: # Visit Dashboard to get your ChatraID
|
||||||
#embed: # Unfinished experimental feature for developers. See: https://chatra.com/help/api/#injectto
|
#embed: # Unfinished experimental feature for developers. See: https://chatra.com/help/api/#injectto
|
||||||
|
|
||||||
# Tidio Support
|
# Tidio is a powerful, all-in-one customer service tool.
|
||||||
# For more information: https://www.tidio.com
|
# For more information: https://www.tidio.com
|
||||||
# Dashboard: https://www.tidio.com/panel/dashboard
|
# Dashboard: https://www.tidio.com/panel/dashboard
|
||||||
tidio:
|
tidio:
|
||||||
enable: false
|
enable: false
|
||||||
key: # Public Key, get it from dashboard. See: https://www.tidio.com/panel/settings/developer
|
key: # Public Key, get it from dashboard. See: https://www.tidio.com/panel/settings/developer
|
||||||
|
|
||||||
# Gitter Support
|
# Gitter is a chat and networking platform.
|
||||||
# For more information: https://gitter.im
|
# For more information: https://gitter.im
|
||||||
gitter:
|
gitter:
|
||||||
enable: false
|
enable: false
|
||||||
@ -886,7 +880,7 @@ pace:
|
|||||||
# corner-indicator | fill-left | flat-top | flash | loading-bar | mac-osx | material | minimal
|
# corner-indicator | fill-left | flat-top | flash | loading-bar | mac-osx | material | minimal
|
||||||
theme: minimal
|
theme: minimal
|
||||||
|
|
||||||
# Canvas ribbon
|
# Generate a ribbon in your website with HTML5 canvas.
|
||||||
# For more information: https://github.com/hustcc/ribbon.js
|
# For more information: https://github.com/hustcc/ribbon.js
|
||||||
canvas_ribbon:
|
canvas_ribbon:
|
||||||
enable: false
|
enable: false
|
||||||
|
|||||||
@ -20,6 +20,7 @@ menu:
|
|||||||
sidebar:
|
sidebar:
|
||||||
overview: Overview
|
overview: Overview
|
||||||
toc: Table of Contents
|
toc: Table of Contents
|
||||||
|
links: Links
|
||||||
|
|
||||||
post:
|
post:
|
||||||
posted: Posted on
|
posted: Posted on
|
||||||
@ -46,6 +47,10 @@ footer:
|
|||||||
total_views: Total Views
|
total_views: Total Views
|
||||||
total_visitors: Total Visitors
|
total_visitors: Total Visitors
|
||||||
|
|
||||||
|
widget:
|
||||||
|
github: Follow me on GitHub
|
||||||
|
chat: Chat
|
||||||
|
|
||||||
counter:
|
counter:
|
||||||
tag_cloud:
|
tag_cloud:
|
||||||
zero: No tags
|
zero: No tags
|
||||||
@ -94,6 +99,7 @@ reward:
|
|||||||
alipay: Alipay
|
alipay: Alipay
|
||||||
paypal: PayPal
|
paypal: PayPal
|
||||||
bitcoin: Bitcoin
|
bitcoin: Bitcoin
|
||||||
|
comment: Buy me a coffee
|
||||||
|
|
||||||
follow_me:
|
follow_me:
|
||||||
welcome: Welcome to my other publishing channels
|
welcome: Welcome to my other publishing channels
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{%- if page.related_posts and page.related_posts.length > 0 %}
|
{%- if page.related_posts and page.related_posts.length > 0 %}
|
||||||
<div class="popular-posts-header">{{ theme.related_posts.title or __('post.related_posts') }}</div>
|
<div class="popular-posts-header">{{ __('post.related_posts') }}</div>
|
||||||
<ul class="popular-posts">
|
<ul class="popular-posts">
|
||||||
{%- for path in page.related_posts %}
|
{%- for path in page.related_posts %}
|
||||||
{%- set popular_post = site.posts.findOne({ path: path }) %}
|
{%- set popular_post = site.posts.findOne({ path: path }) %}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<div class="reward-container">
|
<div class="reward-container">
|
||||||
<div>{{ page.reward_settings.comment }}</div>
|
<div>{{ __('reward.comment') }}</div>
|
||||||
<button>
|
<button>
|
||||||
{{ __('reward.donate') }}
|
{{ __('reward.donate') }}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@ -55,7 +55,7 @@
|
|||||||
<div class="sidebar-button site-overview-item animated">
|
<div class="sidebar-button site-overview-item animated">
|
||||||
<button{% if theme.gitter.enable %} class="js-gitter-toggle-chat-button"{% endif %}>
|
<button{% if theme.gitter.enable %} class="js-gitter-toggle-chat-button"{% endif %}>
|
||||||
{%- if theme.chat.icon %}<i class="{{ theme.chat.icon }}"></i>{% endif %}
|
{%- if theme.chat.icon %}<i class="{{ theme.chat.icon }}"></i>{% endif %}
|
||||||
{{ theme.chat.text }}
|
{{ __('widget.chat') }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
@ -85,7 +85,7 @@
|
|||||||
<div class="links-of-blogroll site-overview-item animated">
|
<div class="links-of-blogroll site-overview-item animated">
|
||||||
<div class="links-of-blogroll-title">
|
<div class="links-of-blogroll-title">
|
||||||
{%- if theme.links_settings.icon %}<i class="{{ theme.links_settings.icon }} fa-fw"></i>{% endif %}
|
{%- if theme.links_settings.icon %}<i class="{{ theme.links_settings.icon }} fa-fw"></i>{% endif %}
|
||||||
{{ theme.links_settings.title }}
|
{{ __('sidebar.links') }}
|
||||||
</div>
|
</div>
|
||||||
<ul class="links-of-blogroll-list">
|
<ul class="links-of-blogroll-list">
|
||||||
{%- for blogrollText, blogrollURL in theme.links %}
|
{%- for blogrollText, blogrollURL in theme.links %}
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
{%- if theme.github_banner.enable %}
|
{%- if theme.github_banner.enable %}
|
||||||
{%- set github_URL = theme.github_banner.permalink %}
|
{%- set github_URL = theme.github_banner.permalink %}
|
||||||
{%- set github_title = theme.github_banner.title %}
|
{%- set github_title = __('widget.github') %}
|
||||||
|
|
||||||
{%- set github_image = '<svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg>' %}
|
{%- set github_image = '<svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg>' %}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user