##################################################################################################################### URL信息 # URL ## If your site is put in a subdirectory, set url as 'http://example.com/child' and root as '/child/' # 网址 url:http://example.com #网址根目录 root:/ # 文章的永久链接格式 permalink::year/:month/:day/:title/ # 永久链接中各部分的默认值 permalink_defaults: pretty_urls: trailing_index:true# 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::title.md# File name of new posts # 预设布局 default_layout:post # 把标题转换为 title case titlecase:false# Transform title into titlecase # 在新标签中打开链接 external_link: enable:true# Open external links in new tab field:site# Apply to the whole site exclude:'' # 把文件名称转换为 (1) 小写或 (2) 大写 filename_case:0 # 显示草稿 render_drafts:false # 启动 Asset 文件夹,asset是md文件链接图片时存放图片的默认文件夹 # 需要 npm install hexo-asset-image --save post_asset_folder:true # 把链接改为与根目录的相对位址 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:''
##################################################################################################################### 主页分页设置 # Home page setting # path: Root path for your blogs index page. (default = '') # per_page: Posts displayed per page. (0 = disable pagination) # order_by: Posts order. (Order by date descending by default) index_generator: path:'' per_page:8 order_by:-date
##################################################################################################################### # Category & Tag default_category:uncategorized category_map: tag_map:
##################################################################################################################### # Metadata elements ## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta meta_generator:true
##################################################################################################################### 时间与日期格式 # 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:'mtime'
##################################################################################################################### 分页设置 # Pagination ## Set per_page to 0 to disable pagination # 每页显示的文章量 (0 = 关闭分页功能) per_page:8 # 分页目录 pagination_dir:page
##################################################################################################################### # Include / Exclude file(s) ## include:/exclude: options only apply to the 'source/' folder include: exclude: ignore:
##################################################################################################################### 主题变体 # Icarus theme variant, can be "default" or "cyberpunk" # 主题变体 ###### 通过此设置为Icarus更换”皮肤“。 此设置目前支持”default“和”cyberpunk“两种值。 variant:default
##################################################################################################################### 站点logo # Path or URL to the website's logo # Logo图标 ###### 设置你站点的logo。 此logo会显示在导航栏和页脚。 ###### logo配置的值既可以是你的logo图片的路径或URL地址: ###### 示例1 logo: /img/logo.svg ###### 示例2 logo: ###### ----------text: My Beautiful Site logo:/img/logo.svg
##################################################################################################################### 站点Head # Page metadata configurations # Favicon ###### 你可以在head配置中指定你的网站favicon的路径或URL地址。 head: # URL or path to the website's icon favicon:/img/favicon.svg # Web application manifests configuration # https://developer.mozilla.org/en-US/docs/Web/Manifest # Web App Manifest # Icarus支持基本的PWAmanifest.json的生成与Meta标签。 ###### 要开启web app manifest,请再主题配置中使用如下的配置。 你也可以参考MDN来了解每个配置项的详情。 manifest: # Name of the web application (default to the site title) # Web应用的名称 (默认为站点标题) name: Icaurs - Hexo Theme name:Zhang'sBlog
# The displayed name of the web application # when there is not enough space to display full name # Web的显示名称 # 当没有空间显示全名时显示 short_name: Icarus short_name:Blog
# The start URL of the web application # Web应用的初始URL start_url: https://ppoffice.github.io/ start_url:
# The default theme color for the application # 应用的默认主题颜色 theme_color: "#3273dc" theme_color:
# A placeholder background color for the application page to display # before its stylesheet is loaded # 在应用的样式表加载之前显示的应用页默认占位背景颜色 background_color: "#3273dc" background_color:
# The preferred display mode for the website # 网站首选的展示模式 display: standalone display:standalone
# Image files that can serve as application icons for different contexts # 在不同上下文下用作应用图标的图片文件 icons: - # The path to the image file # 图片文件的路径 src: icons/touch-icon-iphone.png src:''
# Page title (og:title) (optional) # You should leave this blank for most of the time # 页面标题 (og:title) (可选) # 大部分情况下请留空 title:
# Page type (og:type) (optional) # You should leave this blank for most of the time # 页面类型 (og:type) (可选) # 大部分情况下请留空 type:blog
# Page URL (og:url) (optional) # You should leave this blank for most of the time # 页面URL地址 (og:url) (可选) # 大部分情况下请留空 url:
# Page cover (og:image) (optional) # You should leave this blank for most of the time # 页面封面图 (og:image) (可选) # 大部分情况下请留空 image:
# Site name (og:site_name) (optional) # You should leave this blank for most of the time # 站点名称 (og:site_name) (可选) # 大部分情况下请留空 site_name:
# Page author (article:author) (optional) # You should leave this blank for most of the time # 页面作者 (article:author) (可选) # 大部分情况下请留空 author:
# Page description (og:description) (optional) # You should leave this blank for most of the time # 页面描述 (og:description) (可选) # 大部分情况下请留空 description:
# Twitter card type (twitter:card) # Twitter卡片类型 (twitter:card) twitter_card:
# Twitter ID (twitter:creator) twitter_id:
# Twitter Site (twitter:site) twitter_site:
# Google+ profile link (deprecated) # Google+个人主页链接 (已弃用) google_plus:
# Facebook admin ID fb_admins:
# Facebook App ID fb_app_id:
# Structured data of the page # https://developers.google.com/search/docs/guides/intro-structured-data # 你应该在配置文件中将绝大部分配置留空。 仅在需要的时候在文章的front-matter中为这些设置赋值。 structured_data:
# Page title (optional) # You should leave this blank for most of the time # 页面标题 (可选) # 大部分情况下请留空 title:
# Page description (optional) # You should leave this blank for most of the time # 页面描述 (可选) # 大部分情况下请留空 description:
# Page URL (optional) # You should leave this blank for most of the time # 页面URL地址 (可选) # 大部分情况下请留空 url:
# Page author (article:author) (optional) # You should leave this blank for most of the time # 页面作者 (article:author) (可选) # 大部分情况下请留空 author:
# Page images (optional) # You should leave this blank for most of the time # 页面图片 (可选) # 大部分情况下请留空 image:
# Additional HTML meta tags in an array # 页面元信息 ###### 你可以通过head部分的meta设置来向生成的HTML中添加自定义<meta>标签。 ###### 每一个meta标签应作为meta数组中的一个元素出现。 ###### meta设置每一个元素的值应为<属性名>=<属性值>的格式,其中属性名和属性值分别代表着<meta>标签的属性和值。 ###### 如果<meta>标签有多个属性和值,请使用;来分隔<属性名>=<属性值>。 meta: # Meta tag specified in <attribute>=<value> style # E.g., name=theme-color;content=#123456 => <meta name="theme-color" content="#123456"> -''
# URL or path to the website's RSS atom.xml # 你可以通过head部分的rss设置来添加RSS链接信息。rss: /path/to/atom.xml rss:
# Links to be shown on the right of the navigation bar # 导航栏右侧的链接 ###### 你也可以使用FontAwesome图标来作为纯文字链接的替换,格式如下: ###### <链接名>: ###### icon: <FontAwesome图标的class名> ###### url: <链接URL> links: # 问题反馈: 'https://github.com/local-host-8080/' RSS: icon:fasfa-rss url:'/atom.xml'
##################################################################################################################### 页脚 # Page footer configurations # 页脚 footer: # Links to be shown on the right of the footer section # footer部分定义了页脚右侧的链接。 链接的配置格式与navbar中links的配置格式完全一致。 links: CC BY-NC-SA 4.0: icon: -fabfa-creative-commons -fabfa-creative-commons-by -fabfa-creative-commons-nc -fabfa-creative-commons-sa url:'https://creativecommons.org/licenses/by-nc-sa/4.0/' GitHub: icon:fabfa-github url:'https://github.com/local-host-8080/'
# "Afdian.net" donate button configurations # 爱发电 # - # type: afdian # # URL to the "Afdian.net" personal page # url: ''
# "Buy me a coffee" donate button configurations # - # type: buymeacoffee # # URL to the "Buy me a coffee" page # url: ''
# Patreon donate button configurations # - # type: patreon # # URL to the Patreon page # url: ''
# Paypal donate button configurations # - # type: paypal # # Paypal business ID or email address # business: '' # # Currency code # currency_code: USD</code></pre> <p>#####################################################################################################################分享</p> <h1id="Share-plugin-configurations"><ahref="#Share-plugin-configurations"class="headerlink"title="Sharepluginconfigurations"></a>Sharepluginconfigurations</h1><h1id="https-ppoffice-github-io-hexo-theme-icarus-categories-Plugins-Share"><ahref="#https-ppoffice-github-io-hexo-theme-icarus-categories-Plugins-Share"class="headerlink"title="https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Share/"></a><ahref="https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Share/">https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Share/</a></h1><h1id="share"><ahref="#share"class="headerlink"title="share:"></a>share:</h1><h1id="type-sharethis"><ahref="#type-sharethis"class="headerlink"title="type:sharethis"></a>type:sharethis</h1><h1id="URL-to-the-ShareThis-share-plugin-script"><ahref="#URL-to-the-ShareThis-share-plugin-script"class="headerlink"title="#URLtotheShareThissharepluginscript"></a>#URLtotheShareThissharepluginscript</h1><h1id="install-url-‘’"><ahref="#install-url-‘’"class="headerlink"title="install_url:‘’"></a>install_url:‘’</h1><p>#####################################################################################################################侧边栏滚动</p> <h1id="Sidebar-configurations"><ahref="#Sidebar-configurations"class="headerlink"title="Sidebarconfigurations."></a>Sidebarconfigurations.</h1><h1id="Please-be-noted-that-a-sidebar-is-only-visible-when-it-has-at-least-one-widget"><ahref="#Please-be-noted-that-a-sidebar-is-only-visible-when-it-has-at-least-one-widget"class="headerlink"title="Pleasebenotedthatasidebarisonlyvisiblewhenithasatleastonewidget"></a>Pleasebenotedthatasidebarisonlyvisiblewhenithasatleastonewidget</h1><h1id="侧边栏"><ahref="#侧边栏"class="headerlink"title="侧边栏"></a>侧边栏</h1><h6id="设置sidebar中某个侧边栏的sticky为true来让它的位置固定而不跟随页面滚动。"><ahref="#设置sidebar中某个侧边栏的sticky为true来让它的位置固定而不跟随页面滚动。"class="headerlink"title="设置sidebar中某个侧边栏的sticky为true来让它的位置固定而不跟随页面滚动。"></a>设置sidebar中某个侧边栏的sticky为true来让它的位置固定而不跟随页面滚动。</h6><p>sidebar:<br># Left sidebar configurations<br> # 左侧边栏设置<br> left:<br> # Whether the sidebar sticks to the top when page scrolls<br> # 是否不随页面滚动<br> sticky: false<br> # Right sidebar configurations<br> # 右侧边栏设置<br> right:<br> # Whether the sidebar sticks to the top when page scrolls<br> # 是否不随页面滚动<br> sticky: false</p> <p>#####################################################################################################################布局配置|边栏小部件设置</p> <h1id="Sidebar-widget-configurations"><ahref="#Sidebar-widget-configurations"class="headerlink"title="Sidebarwidgetconfigurations"></a>Sidebarwidgetconfigurations</h1><h1id="http-ppoffice-github-io-hexo-theme-icarus-categories-Widgets"><ahref="#http-ppoffice-github-io-hexo-theme-icarus-categories-Widgets"class="headerlink"title="http://ppoffice.github.io/hexo-theme-icarus/categories/Widgets/"></a><ahref="http://ppoffice.github.io/hexo-theme-icarus/categories/Widgets/">http://ppoffice.github.io/hexo-theme-icarus/categories/Widgets/</a></h1><h1id="布局配置文件"><ahref="#布局配置文件"class="headerlink"title="布局配置文件"></a>布局配置文件</h1><h6id="布局配置文件遵循着与主题配置文件相同的格式和定义。"><ahref="#布局配置文件遵循着与主题配置文件相同的格式和定义。"class="headerlink"title="布局配置文件遵循着与主题配置文件相同的格式和定义。"></a>布局配置文件遵循着与主题配置文件相同的格式和定义。</h6><h6id="config-post-yml中的配置对所有文章生效,而-config-page-yml中的配置对所有自定义页面生效。"><ahref="#config-post-yml中的配置对所有文章生效,而-config-page-yml中的配置对所有自定义页面生效。"class="headerlink"title="_config.post.yml中的配置对所有文章生效,而_config.page.yml中的配置对所有自定义页面生效。"></a>_config.post.yml中的配置对所有文章生效,而_config.page.yml中的配置对所有自定义页面生效。</h6><h6id="这两个文件将覆盖主题配置文件中的配置。"><ahref="#这两个文件将覆盖主题配置文件中的配置。"class="headerlink"title="这两个文件将覆盖主题配置文件中的配置。"></a>这两个文件将覆盖主题配置文件中的配置。</h6><p>#############例如,你可以在_config.post.yml中把所有文章变为两栏布局:<br>#############在_config.post.yml文件<br>#############widgets:<br>#############-<br>#############type:recent_posts<br>#############position:left<br>#############-<br>#############type:categories<br>#############position:left<br>#############-<br>#############type:tags<br>#############position:left<br>#############同时所有其他页面仍保持三栏布局:<br>#############<br>#############在_config.icarus.yml文件<br>#############widgets:<br>#############-<br>#############type:recent_posts<br>#############position:left<br>#############-<br>#############type:categories<br>#############position:right<br>#############-<br>#############type:tags<br>#############position:right<br>widgets:<br># Profile widget configurations<br> -<br> # Where should the widget be placed, left sidebar or right sidebar<br> # 个人信息面板部件位置<br> position: left<br> type: profile</p> <pre><code># Author name # 作者名称 author:Zhang'sBlog
# Author title # 作者签名 author_title:长路漫漫,未来可期
# Author's current location # 作者所在地 location:中国·深圳
# URL or path to the avatar image # 头像图片地址 avatar:/img/avatar.png
# Whether show the rounded avatar image # 是否显示圆形头像 avatar_rounded:true
# Email address for the Gravatar # Gravatar邮箱(如不设置`avatar`项) gravatar:# mooneyzw@foxmail.com
# URL or path for the follow button # 关注按钮链接地址 follow_link:'https://github.com/local-host-8080'
# Links to be shown on the bottom of the profile widget # 社交媒体链接 social_links: Github: icon:fabfa-github url:'https://github.com/local-host-8080' Bilibili: icon:fabfa-youtube url:'https://space.bilibili.com/32683063' QQ_Group: icon:fabfa-qq url:'https://jq.qq.com/?_wv=1027&k=YyEBTYat' Email: icon:fasfa-envelope url:'mailto:mooneyzw@foxmail.com' # RSS: # icon: fas fa-rss # url: / # Table of contents widget configurations # 目录组件-右侧固定 - # 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 # Archives widget configurations # 分类组件 - # Where should the widget be placed, left sidebar or right sidebar # 小部件应该放在哪里,左边栏还是右边栏 # 文章归档 position:right type:archives # Categories widget configurations # 分类组件 - # Where should the widget be placed, left sidebar or right sidebar # 小部件应该放在哪里,左边栏还是右边栏 # 文章分类 position:left type:categories # Tags widget configurations # 标签组件 - # Where should the widget be placed, left sidebar or right sidebar # 小部件应该放在哪里,左边栏还是右边栏 # 文章标签 position:left type:tags # Recommendation links widget configurations # 链接组件 - # Where should the widget be placed, left sidebar or right sidebar # 小部件应该放在哪里,左边栏还是右边栏 position:left type:links # Names and URLs of the sites # 友站名称与链接 links: Hexo:'https://hexo.io' 哔哩哔哩:'https://www.bilibili.com/' # Google FeedBurner email subscription widget configurations # 订阅更新组件 # - # # Where should the widget be placed, left sidebar or right sidebar # # 小部件应该放在哪里,左边栏还是右边栏 # position: left # type: subscribe_email # # Hint text under the email input # description: # # Feedburner ID # feedburner_id: '' # Google AdSense unit configurations # 广告组件 # - # # Where should the widget be placed, left sidebar or right sidebar # # 小部件应该放在哪里,左边栏还是右边栏 # position: left # type: adsense # # AdSense client ID # client_id: '' # # AdSense AD unit ID # slot_id: ''</code></pre> <p>#####################################################################################################################插件</p> <h1id="Plugin-configurations"><ahref="#Plugin-configurations"class="headerlink"title="Pluginconfigurations"></a>Pluginconfigurations</h1><h1id="https-ppoffice-github-io-hexo-theme-icarus-categories-Plugins"><ahref="#https-ppoffice-github-io-hexo-theme-icarus-categories-Plugins"class="headerlink"title="https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/"></a><ahref="https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/">https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/</a></h1><p>plugins:<br># Enable page startup animations<br> # 网页载入动画,Icarus默认启用网页载入动画<br> animejs: true<br> # Show the “back to top” button<br> back_to_top: true<br> # Baidu Analytics plugin settings<br> # <a href="https://tongji.baidu.com/">https://tongji.baidu.com</a><br> baidu_analytics:<br> # Baidu Analytics tracking ID<br> tracking_id:<br> # Bing Webmaster Tools plugin settings<br> # <a href="https://www.bing.com/toolbox/webmaster/">https://www.bing.com/toolbox/webmaster/</a><br> bing_webmaster:<br> # Bing Webmaster Tools tracking ID in the <meta> tag<br> tracking_id:<br> # BuSuanZi site/page view counter<br> # <a href="https://busuanzi.ibruce.info/">https://busuanzi.ibruce.info</a><br> busuanzi: true<br> # CNZZ statistics<br> # <a href="https://www.umeng.com/web">https://www.umeng.com/web</a><br> cnzz:<br> # CNZZ tracker id<br> id:<br> # CNZZ website id<br> web_id:<br> # Alerting users about the use of cookies<br> # <a href="https://www.osano.com/cookieconsent/">https://www.osano.com/cookieconsent/</a><br> cookie_consent:<br> # The compliance type. Can be “info”, “opt-in”, or “opt-out”<br> # 同意对话框类型。可以为”info”,”opt-in”,或”opt-out”<br> type: info<br> # Theme of the popup. Can be “block”, “edgeless”, or “classic”<br> # 弹出框主题。可以为”block”,”edgeless”,或”classic”<br> theme: edgeless<br> # Whether the popup should stay static regardless of the page scrolls<br> # 是否使弹出框固定,不随页面滚动而滚动<br> static: false<br> # Where on the screen the consent popup should display<br> # 弹出框在屏幕上的位置<br> position: bottom-left<br> # URL to your site’s cookie policy<br> # 你网站的Cookie协议的URL<br> policyLink: ‘<a href="https://www.cookiesandyou.com/'">https://www.cookiesandyou.com/'</a><br> # Enable the lightGallery and Justified Gallery plugins<br> # 画廊插件<br> ###### Icarus的画廊插件同时包含了lightGallery与 Justified Gallery两种插件。<br> ###### 若要启用画廊插件,请将主题配置中plugins > gallery的值设置为true。<br> ###### 参考<a href="https://blog.zhangruipeng.me/hexo-theme-icarus/Plugins/Other/icarus%E7%94%A8%E6%88%B7%E6%8C%87%E5%8D%97-%E5%85%B6%E4%BB%96%E6%8F%92%E4%BB%B6/">https://blog.zhangruipeng.me/hexo-theme-icarus/Plugins/Other/icarus%E7%94%A8%E6%88%B7%E6%8C%87%E5%8D%97-%E5%85%B6%E4%BB%96%E6%8F%92%E4%BB%B6/</a><br> gallery: true<br> # Google Analytics plugin settings<br> # <a href="https://analytics.google.com/">https://analytics.google.com</a><br> google_analytics:<br> # Google Analytics tracking ID<br> tracking_id:<br> # Hotjar user feedback plugin<br> # <a href="https://www.hotjar.com/">https://www.hotjar.com/</a><br> hotjar:<br> # Hotjar site id<br> site_id:<br> # Enable the KaTeX math typesetting support<br> # <a href="https://katex.org/">https://katex.org/</a><br> # 数学公式渲染<br> ###### 你可以使用KaTeX插件来渲染TEX数学公式。 若要启用KaTeX插件,请将主题配置中plugins > katex的值设置为true。<br> katex: false<br> # Enable the MathJax math typesetting support<br> # <a href="https://www.mathjax.org/">https://www.mathjax.org/</a><br> mathjax: false<br> # Enable the Outdated Browser plugin<br> # <a href="http://outdatedbrowser.com/">http://outdatedbrowser.com/</a><br> # 浏览器升级提醒<br> # 你可以使用浏览器升级提醒(Outdated Browser)插件来检测你的网站访客使用的老旧浏览器,并提醒他们升级浏览器。<br> # 若要启用此插件,请将主题配置中plugins > outdated_browser的值设置为true。<br> outdated_browser: false<br> # Show a progress bar at top of the page on page loading<br> # 网页载入进度条<br> progressbar: true<br> # Statcounter statistics<br> # <a href="https://statcounter.com/">https://statcounter.com/</a><br> statcounter:<br> # Statcounter project id<br> project:<br> # Statcounter project security code<br> security:<br> # Twitter conversion tracking plugin settings<br> # <a href="https://business.twitter.com/en/help/campaign-measurement-and-analytics/conversion-tracking-for-websites.html">https://business.twitter.com/en/help/campaign-measurement-and-analytics/conversion-tracking-for-websites.html</a><br> twitter_conversion_tracking:<br> # Twitter Pixel ID<br> pixel_id: </p> <p>#####################################################################################################################CDN加速</p> <h1id="CDN-provider-settings"><ahref="#CDN-provider-settings"class="headerlink"title="CDNprovidersettings"></a>CDNprovidersettings</h1><h1id="https-ppoffice-github-io-hexo-theme-icarus-Configuration-Theme-speed-up-your-site-with-custom-cdn"><ahref="#https-ppoffice-github-io-hexo-theme-icarus-Configuration-Theme-speed-up-your-site-with-custom-cdn"class="headerlink"title="https://ppoffice.github.io/hexo-theme-icarus/Configuration/Theme/speed-up-your-site-with-custom-cdn/"></a><ahref="https://ppoffice.github.io/hexo-theme-icarus/Configuration/Theme/speed-up-your-site-with-custom-cdn/">https://ppoffice.github.io/hexo-theme-icarus/Configuration/Theme/speed-up-your-site-with-custom-cdn/</a></h1><p>providers:<br># Name or URL template of the JavaScript and/or stylesheet CDN provider<br> cdn: jsdelivr<br> # Name or URL template of the webfont CDN provider<br> fontcdn: google<br> # Name or URL of the fontawesome icon font CDN provider<br> # iconcdn: fontawesome<br> iconcdn: <a href="https://cdn.bootcdn.net/ajax/libs/font-awesome/5.12.0/css/all.css">https://cdn.bootcdn.net/ajax/libs/font-awesome/5.12.0/css/all.css</a></p> <p>#####################################################################################################################</p> <h1id="文章-页面的Front-matter"><ahref="#文章-页面的Front-matter"class="headerlink"title="文章/页面的Front-matter"></a>文章/页面的Front-matter</h1><h3id="如果你只想要在某个文章-页面中覆盖主题配置,你可以在那个文章-页面的front-matter中写下配置。"><ahref="#如果你只想要在某个文章-页面中覆盖主题配置,你可以在那个文章-页面的front-matter中写下配置。"class="headerlink"title="如果你只想要在某个文章/页面中覆盖主题配置,你可以在那个文章/页面的front-matter中写下配置。"></a>如果你只想要在某个文章/页面中覆盖主题配置,你可以在那个文章/页面的front-matter中写下配置。</h3><h3id="例如,你可以像下面这样在一篇文章的front-matter中更改某篇文章的代码高亮主题:"><ahref="#例如,你可以像下面这样在一篇文章的front-matter中更改某篇文章的代码高亮主题:"class="headerlink"title="例如,你可以像下面这样在一篇文章的front-matter中更改某篇文章的代码高亮主题:"></a>例如,你可以像下面这样在一篇文章的front-matter中更改某篇文章的代码高亮主题:</h3><h3id="在source-post-some-post-md文件"><ahref="#在source-post-some-post-md文件"class="headerlink"title="在source/_post/some-post.md文件"></a>在source/_post/some-post.md文件</h3><h3id="title-我的第一篇文章"><ahref="#title-我的第一篇文章"class="headerlink"title="title:我的第一篇文章"></a>title:我的第一篇文章</h3><h3id="date-‘2015-01-01-00-00-01’"><ahref="#date-‘2015-01-01-00-00-01’"class="headerlink"title="date:‘2015-01-0100:00:01’"></a>date:‘2015-01-0100:00:01’</h3><h3id="article"><ahref="#article"class="headerlink"title="article:"></a>article:</h3><h3id="highlight"><ahref="#highlight"class="headerlink"title="highlight:"></a>highlight:</h3><h3id="theme-atom-one-dark"><ahref="#theme-atom-one-dark"class="headerlink"title="theme:atom-one-dark"></a>theme:atom-one-dark</h3><h3id="—"><ahref="#—"class="headerlink"title="—"></a>—</h3><h3id="文章标题"><ahref="#文章标题"class="headerlink"title="#文章标题"></a>#文章标题</h3><p>#####################################################################################################################</p> <h3id="上面的配置会为那篇文章覆盖掉-config-post-yml和-config-icarus-yml中的article-highlight。"><ahref="#上面的配置会为那篇文章覆盖掉-config-post-yml和-config-icarus-yml中的article-highlight。"class="headerlink"title="上面的配置会为那篇文章覆盖掉_config.post.yml和_config.icarus.yml中的article.highlight。"></a>上面的配置会为那篇文章覆盖掉_config.post.yml和_config.icarus.yml中的article.highlight。</h3><h3id="这种层次化的配置系统对于页面个性化和不同访客间的差异化优化十分有效。"><ahref="#这种层次化的配置系统对于页面个性化和不同访客间的差异化优化十分有效。"class="headerlink"title="这种层次化的配置系统对于页面个性化和不同访客间的差异化优化十分有效。"></a>这种层次化的配置系统对于页面个性化和不同访客间的差异化优化十分有效。</h3><h3id="比如,你可以为根据你页面目标访客的国家和语言来开启更快的CDN或本地化的评论服务。"><ahref="#比如,你可以为根据你页面目标访客的国家和语言来开启更快的CDN或本地化的评论服务。"class="headerlink"title="比如,你可以为根据你页面目标访客的国家和语言来开启更快的CDN或本地化的评论服务。"></a>比如,你可以为根据你页面目标访客的国家和语言来开启更快的CDN或本地化的评论服务。</h3><h3id="然而需要注意的是,一些Hexo定义的文章或页面属性不会覆盖掉其他配置源中的同名配置,"><ahref="#然而需要注意的是,一些Hexo定义的文章或页面属性不会覆盖掉其他配置源中的同名配置,"class="headerlink"title="然而需要注意的是,一些Hexo定义的文章或页面属性不会覆盖掉其他配置源中的同名配置,"></a>然而需要注意的是,一些Hexo定义的文章或页面属性不会覆盖掉其他配置源中的同名配置,</h3><h3id="如-title-date-updated-comments-not-comment-layout-source-photos-和excerpt。"><ahref="#如-title-date-updated-comments-not-comment-layout-source-photos-和excerpt。"class="headerlink"title="如title,date,updated,comments(notcomment),layout,source,photos,和excerpt。"></a>如title,date,updated,comments(notcomment),layout,source,photos,和excerpt。</h3><p>#####################################################################################################################</p> <h1id="站点配置文件"><ahref="#站点配置文件"class="headerlink"title="站点配置文件"></a>站点配置文件</h1><h3id="上面列出的所有配置源,包括主题配置文件,布局配置文件,和文章-页面的front-matter,"><ahref="#上面列出的所有配置源,包括主题配置文件,布局配置文件,和文章-页面的front-matter,"class="headerlink"title="上面列出的所有配置源,包括主题配置文件,布局配置文件,和文章/页面的front-matter,"></a>上面列出的所有配置源,包括主题配置文件,布局配置文件,和文章/页面的front-matter,</h3><h3id="会覆盖掉站点配置文件中Icarus使用到的配置。"><ahref="#会覆盖掉站点配置文件中Icarus使用到的配置。"class="headerlink"title="会覆盖掉站点配置文件中Icarus使用到的配置。"></a>会覆盖掉站点配置文件中Icarus使用到的配置。</h3><h3id="例如,-config-icarus-yml中的title设置会覆盖掉-config-yml中的title,"><ahref="#例如,-config-icarus-yml中的title设置会覆盖掉-config-yml中的title,"class="headerlink"title="例如,_config.icarus.yml中的title设置会覆盖掉_config.yml中的title,"></a>例如,_config.icarus.yml中的title设置会覆盖掉_config.yml中的title,</h3><h3id="但new-post-name却不会,因为-Icarus-没有用到这个配置项。"><ahref="#但new-post-name却不会,因为-Icarus-没有用到这个配置项。"class="headerlink"title="但new_post_name却不会,因为Icarus没有用到这个配置项。"></a>但new_post_name却不会,因为Icarus没有用到这个配置项。</h3><h3id="另外,主题配置文件中的theme-config选项会与主题配置文件中的主题配置合并并覆盖掉同名配置。"><ahref="#另外,主题配置文件中的theme-config选项会与主题配置文件中的主题配置合并并覆盖掉同名配置。"class="headerlink"title="另外,主题配置文件中的theme_config选项会与主题配置文件中的主题配置合并并覆盖掉同名配置。"></a>另外,主题配置文件中的theme_config选项会与主题配置文件中的主题配置合并并覆盖掉同名配置。</h3><h3id="然而,我们非常不推荐使用这个配置选项。"><ahref="#然而,我们非常不推荐使用这个配置选项。"class="headerlink"title="然而,我们非常不推荐使用这个配置选项。"></a>然而,我们非常不推荐使用这个配置选项。</h3><p>#####################################################################################################################</p>
# 订阅更新组件 # - # type: subscribe_email # position: right
# 广告组件 # - # type: adsense # position: right
##################################################################################################################### 侧边栏滚动 # Sidebar configurations. # Please be noted that a sidebar is only visible when it has at least one widget # 侧边栏 ###### 设置sidebar中某个侧边栏的sticky为true来让它的位置固定而不跟随页面滚动。 sidebar: # Left sidebar configurations # 左侧边栏设置 left: # Whether the sidebar sticks to the top when page scrolls # 是否不随页面滚动 sticky:true # Right sidebar configurations # 右侧边栏设置 right: # Whether the sidebar sticks to the top when page scrolls # 是否不随页面滚动 sticky:false