@Configuration public class WebConfig extends DelegatingWebMvcConfiguration {
@Override public void addInterceptors(InterceptorRegistry registry){ // ... }
@Override @Bean public RequestMappingHandlerAdapter requestMappingHandlerAdapter() { // Create or let "super" create the adapter // Then customize one of its properties }
# 菜单 menu: home:/||fafa-home #about: /about/ || fa fa-user tags:/tags/||fafa-tags categories:/categories/||fafa-th archives:/archives/||fafa-archive #schedule: /schedule/ || fa fa-calendar sitemap:/sitemap.xml||fafa-sitemap #commonweal: /404/ || fa fa-heartbeat RSS:/atom.xml||fafa-rss
# 代码 codeblock: # Code Highlight theme # Available values: normal | night | night eighties | night blue | night bright | solarized | solarized dark | galactic # See: https://github.com/chriskempson/tomorrow-theme highlight_theme:nighteighties # Add copy button on codeblock copy_button: enable:true # Show text copy result. show_result:default # Available values: default | flat | mac style:
# Local Search # Dependencies: https://github.com/theme-next/hexo-generator-searchdb local_search: enable:true
hexo 配置 Hexo目录下的config.yml配置文件中的theme属性,将其设置为 next 。
1
theme: next
Quick Start
下面是hexo init 时生成的操作命令,够用了。 Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.