2024年Hexo+NexT(三):Next主题配置详解_hexo next,dubbo原理面试

img
img

网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。

需要这份系统化的资料的朋友,可以戳这里获取

一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!

---------------------------------------------------------------

主题的主题设置

---------------------------------------------------------------

只能选择一套。

Schemes

scheme: Muse
#scheme: Mist
#scheme: Pisces
#scheme: Gemini

---------------------------------------------------------------

侧边栏设置

---------------------------------------------------------------

社交链接

用法: Key: permalink || icon

Key 是最终显示的标签,|| 前是永久链接,|| 后面是标签的FontAwesome图标,默认glob

#social:
#GitHub: https://github.com/yourname || github
#E-Mail: mailto:yourname@gmail.com || envelope
#Google: https://plus.google.com/yourname || google
#Twitter: https://twitter.com/yourname || twitter
#FB Page: https://www.facebook.com/yourname || facebook
#VK Group: https://vk.com/yourname || vk
#StackOverflow: https://stackoverflow.com/yourname || stack-overflow
#YouTube: https://youtube.com/yourname || youtube
#Instagram: https://instagram.com/yourname || instagram
#Skype: skype:yourname?call|chat || skype

social_icons:
enable: true # 是否在社交链接标签上显示图标
icons_only: false # 只显示图标
transition: false # 是否显示过渡效果

友情链接

links_icon: link # 链接图标
links_title: Links # 链接标签文字
links_layout: block # 链接样式
#links_layout: inline
#links: # 一个一个的友情链接。用法为标题: 链接
#Title: http://example.com/

Sidebar Avatar # 侧边栏上个人头像图片。也支持是动态gif。

#avatar: /images/avatar.gif

在侧边栏中是否显示文章标题目录。

toc:
enable: true # 是否
number: true # 是否自动编号
wrap: false # 标题目录是否自动换行

创作声明

http://creativecommons.org/

Available: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | zero

#creative_commons: by-nc-sa
#creative_commons:

sidebar:

侧边栏位置: left | right (只有Pisces、Gemini有效).

position: left
#position: right

侧边栏显示 (只对Muse、Mist有效)

display: post # 默认,在post文章扩展时显示。
#display: always # 对所有页面都显示
#display: hide # 只有点击按钮显示
#display: remove # 完全删除,不显示

侧边栏距离顶部菜单条的距离,单位像素(只对Pisces、Gemini有效).

offset: 12
b2t: false # 在侧边栏下方是否显示回到顶部(只对Pisces、Gemini有效).
scrollpercent: false # 是否显示滚动百分比
onmobile: false # 是否在窄屏设备上显示侧边栏 (只对 Muse | Mist有效).

---------------------------------------------------------------

文章设置(post类型)

---------------------------------------------------------------

scroll_to_more: true # 自动折叠 下面的正文部分
save_scroll: false # 自动为每篇文章保存滚动位置

Automatically excerpt description in homepage as preamble text.

excerpt_description: true

自动摘要,不建议。请使用 精确控制

auto_excerpt:
enable: false # 启动开关
length: 150 # 从开始往后选取的摘要文字数量。

摘要元数据

post_meta:
item_text: true # 是否显示“发表于”这几个文字
created_at: true # 文章创建日期
updated_at: false # 文章修改日期
categories: true # 文章所属分类

post_wordcount: # 字数统计。依赖https://github.com/willin/hexo-wordcount
item_text: true # 是否显示文字
wordcount: false # 显示字数
min2read: false # 显示阅读时间
totalcount: false # 显示总数
separated_meta: true # 是否分开

#wechat_subscriber: # 微信公众号订阅
#enabled: true # 是否启用
#qcode: # 二维码图片链接
#description: # 描述性文字,会放在二维码上方

打赏

#reward_comment: # 打赏文字
#wechatpay: /images/wechatpay.jpg # 微信打赏二维码
#alipay: /images/alipay.jpg # 支付宝打赏二维码
#bitcoin: /images/bitcoin.png # 比特币打赏二维码

post_copyright:
enable: false # 文档许可声明
license: CC BY-NC-SA 3.0 # 文档声明协议
license_url: https://creativecommons.org/licenses/by-nc-sa/3.0/

---------------------------------------------------------------

Misc 主题专用设置

---------------------------------------------------------------

Reduce padding / margin indents on devices with narrow width.

mobile_layout_economy: false

Android Chrome header panel color ($black-deep).

android_chrome_color: “#222”

定制Logo,只对默认Muse有效。

Options:

enabled: [true/false] - # 是否启用

image: url-of-image - # 图片url

custom_logo:
enabled: false
image:

代码高亮主题。可选值normal | night | night eighties | night blue | night bright

highlight_theme: normal

---------------------------------------------------------------

字体设置儿

- 请从谷歌查找字体

- 所有字体必须具有下列样式

light, light italic, normal, normal italic, bold, bold italic

font:
enable: false # 是否启用
host: # 字体host地址

Font options: # 字体选项

external: true # true,则会从上面的host地址装载

family: Times New Roman.

size: xx. 单位是px.

在元素中设置全局字体

global:
external: true
family: Lato
size:

标题(h1~h6字体,有global字体设置托底)

headings:
external: true
family:
size:

post文章字体,有global字体设置托底

posts:
external: true
family:

logo字体设置,有global字体设置托底

logo:
external: true
family:
size:

代码块字体

codes:
external: true
family:
size:

---------------------------------------------------------------

第三方服务设置

---------------------------------------------------------------

MathJax数学公式设置

mathjax:
enable: false
per_page: false
cdn: //cdn.bootcss.com/mathjax/2.7.1/latest.js?config=TeX-AMS-MML_HTMLorMML

Han Support docs: https://hanzi.pro/

han: false

Swiftype Search API Key

#swiftype_key:

#baidu_analytics: # 百度分析的id
#duoshuo_shortname: # 多说的shorname

Disqus Disqus评论支持

disqus:
enable: false
shortname:
count: true

Hypercomments

#hypercomments_id:

畅言

changyan:
enable: false
appid:
appkey:

韩国来必力网站评论系统.https://valine.js.org

valine:
enable: false
appid: # your leancloud application appid
appkey: # your leancloud application appkey
notify: false # mail notifier , https://github.com/xCss/Valine/wiki
verify: false # Verification code
placeholder: Just go go # comment box placeholder
avatar: mm # gravatar style
guest_info: nick,mail,link # custom comment header
pageSize: 10 # pagination size

友言评论

#youyan_uid: your uid

LiveRe评论系统。从https://livere.com/insight/myCode获取uid

#livere_uid: your uid

Gitment评论系统。https://imsun.net/posts/gitment-introduction/

You can get your Github ID from https://api.github.com/users/

gitment:
enable: false
mint: true # RECOMMEND, A mint on Gitment, to support count, language and proxy_gateway
count: true # Show comments count in post meta area
lazy: false # Comments lazy loading with a button
cleanly: false # Hide ‘Powered by …’ on footer, and more
language: # Force language, or auto switch by theme
github_user: # MUST HAVE, Your Github ID
github_repo: # MUST HAVE, The repo you use to store Gitment comments
client_id: # MUST HAVE, Github client id for the Gitment
client_secret: # EITHER this or proxy_gateway, Github access secret token for the Gitment
proxy_gateway: # Address of api proxy, See: https://github.com/aimingoo/intersect
redirect_protocol: # Protocol of redirect_uri with force_redirect_protocol when mint enabled

Baidu Share

Available value:

button | slide

Warning: Baidu Share does not support https.

#baidushare:

type: button

Share

This plugin is more useful in China, make sure you known how to use it.

And you can find the use guide at official webiste: http://www.jiathis.com/.

Warning: JiaThis does not support https.

#jiathis:
##uid: Get this uid from http://www.jiathis.com/
#add_this_id:

Share

#duoshuo_share: true

NeedMoreShare2

This plugin is a pure javascript sharing lib which is useful in China.

See: https://github.com/revir/need-more-share2

Also see: https://github.com/DzmVasileusky/needShareButton

iconStyle: default | box

boxForm: horizontal | vertical

position: top / middle / bottom + Left / Center / Right

networks: Weibo,Wechat,Douban,QQZone,Twitter,Linkedin,Mailto,Reddit,

Delicious,StumbleUpon,Pinterest,Facebook,GooglePlus,Slashdot,

Technorati,Posterous,Tumblr,GoogleBookmarks,Newsvine,

Evernote,Friendfeed,Vkontakte,Odnoklassniki,Mailru

needmoreshare2:
enable: false
postbottom:
enable: false
options:
iconStyle: box
boxForm: horizontal
position: bottomCenter
networks: Weibo,Wechat,Douban,QQZone,Twitter,Facebook
float:
enable: false
options:
iconStyle: box
boxForm: horizontal
position: middleRight
networks: Weibo,Wechat,Douban,QQZone,Twitter,Facebook

Google Webmaster tools verification setting

See: https://www.google.com/webmasters/

#google_site_verification:

Google Analytics

#google_analytics:

Bing Webmaster tools verification setting

See: https://www.bing.com/webmaster/

#bing_site_verification:

Yandex Webmaster tools verification setting

See: https://webmaster.yandex.ru/

#yandex_site_verification:

CNZZ count

#cnzz_siteid:

Application Insights

See https://azure.microsoft.com/en-us/services/application-insights/

application_insights:

Make duoshuo show UA

user_id must NOT be null when admin_enable is true!

you can visit http://dev.duoshuo.com get duoshuo user id.

duoshuo_info:
ua_enable: true
admin_enable: false
user_id: 0
#admin_nickname: Author

Post widgets & FB/VK comments settings.

---------------------------------------------------------------

Facebook SDK Support.

https://github.com/iissnan/hexo-theme-next/pull/410

facebook_sdk:
enable: false
app_id: #<app_id>
fb_admin: #<user_id>
like_button: #true
webmaster: #true

Facebook comments plugin

This plugin depends on Facebook SDK.

If facebook_sdk.enable is false, Facebook comments plugin is unavailable.

facebook_comments_plugin:
enable: false
num_of_posts: 10 # min posts num is 1
width: 100% # default width is 550px
scheme: light # default scheme is light (light or dark)

VKontakte API Support.

To get your AppID visit https://vk.com/editapp?act=create

vkontakte_api:
enable: false
app_id: #<app_id>
like: true
comments: true
num_of_posts: 10

Star rating support to each article.

To get your ID visit https://widgetpack.com

rating:
enable: false
id: #<app_id>
color: fc6423

---------------------------------------------------------------

Show number of visitors to each article.

You can visit https://leancloud.cn get AppID and AppKey.

leancloud_visitors:
enable: false
app_id: #<app_id>
app_key: #<app_key>

Another tool to show number of visitors to each article.

visit https://console.firebase.google.com/u/0/ to get apiKey and projectId

visit https://firebase.google.com/docs/firestore/ to get more information about firestore

firestore:
enable: false
collection: articles #required, a string collection name to access firestore database
apiKey: #required
projectId: #required
bluebird: false #enable this if you want to include bluebird 3.5.1(core version) Promise polyfill

Show PV/UV of the website/page with busuanzi.

Get more information on http://ibruce.info/2015/04/04/busuanzi/

busuanzi_count:

count values only if the other configs are false

enable: false

custom uv span for the whole site

site_uv: true
site_uv_header:
site_uv_footer:

custom pv span for the whole site

site_pv: true
site_pv_header:
site_pv_footer:

custom pv span for one page only

page_pv: true
page_pv_header:
page_pv_footer:

Tencent analytics ID

tencent_analytics:

Tencent MTA ID

tencent_mta:

Enable baidu push so that the blog will push the url to baidu automatically which is very helpful for SEO

baidu_push: false

Google Calendar

Share your recent schedule to others via calendar page

API Documentation:

https://developers.google.com/google-apps/calendar/v3/reference/events/list

深知大多数程序员,想要提升技能,往往是自己摸索成长,但自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!


img
img

既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上鸿蒙开发知识点,真正体系化!

由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新

需要这份系统化的资料的朋友,可以戳这里获取

深知大多数程序员,想要提升技能,往往是自己摸索成长,但自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!


[外链图片转存中…(img-eUfp9E3x-1715642253181)]
[外链图片转存中…(img-wj0DpWs9-1715642253181)]

既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上鸿蒙开发知识点,真正体系化!

由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新

需要这份系统化的资料的朋友,可以戳这里获取

  • 18
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值