# 网站打开的url url:https://www.haoran.co install_url:https://www.haoran.co permalink::year/:month/:title/# 网站中文章的url规则 permalink_defaults: pretty_urls: trailing_index:false# Set to false to remove trailing 'index.html' from permalinks trailing_html:true# Set to false to remove trailing '.html' from permalinks
# Writing,可以按照默认配置来即可,我在这里修改了new_post_name,这样让我的文章可以按照日期排列,比较好管理 new_post_name::year-:month-:day_:title.md# File name of new posts default_layout:post titlecase:false# Transform title into titlecase external_link: enable:true# Open external links in new tab field:site# Apply to the whole site exclude:'' filename_case:0 render_drafts:false post_asset_folder:false relative_link:false future:true highlight: enable:true line_number:true auto_detect:false tab_replace:' ' wrap:true hljs:false prismjs: enable:false preprocess:true line_number:true tab_replace:''
# Date / Time format, 按照喜欢的时间格式修改 ## Hexo uses Moment.js to parse and display date ## You can customize the date format as defined in ## http://momentjs.com/docs/#/displaying/format/ date_format:YYYY-MM-DD time_format:HH:mm:ss ## updated_option supports 'mtime', 'date', 'empty' updated_option:'date'# 官方文档有解说,可根据官方解说修改
# Pagination,默认即可 ## Set per_page to 0 to disable pagination per_page:10 pagination_dir:page
# Include / Exclude file(s),默认即可 ## include:/exclude: options only apply to the 'source/' folder include: exclude: ignore:
# 内容如下: # Sidebar configurations. # Please be noted that a sidebar is only visible when it has at least one widget sidebar: # Right sidebar configurations right: # Whether the sidebar sticks to the top when page scrolls sticky:true widgets: - # Where should the widget be placed, left sidebar or right sidebar position:right type:toc # Whether to show the index of each heading index:true # Whether to collapse sub-headings when they are out-of-view collapsed:true # Maximum level of headings to show (1-6) depth:3 # Recent posts widget configurations - # Where should the widget be placed, left sidebar or right sidebar position:right type:recent_posts # Categories widget configurations - # Where should the widget be placed, left sidebar or right sidebar position:right type:categories