UNPKG

hexo-theme-sukax

Version:

Modern, powerful and simple theme for Hexo

445 lines (420 loc) 14.7 kB
# --------------------------------------------------------------- # !!ATTENTION!! # --------------------------------------------------------------- # There are two config file in Hexo Project, one in the root directory of your Hexo Project and another in the theme directory. # For convenience of description, the former is referred to as the site config and the latter as the theme config. # # There are some pivotal config in `site_config.yml` in Suka Theme directory. # You should copy them and paste them to the end of your site config file! # Read the documents for more info. # --------------------------------------------------------------- # --------------------------------------------------------------- # Site Information Settings # --------------------------------------------------------------- head: # Favicon # Put your favicons into `hexo-site/source/` directory. # To get or check favicons visit: https://realfavicongenerator.net favicon: # You should use a image/x-icon type icon and configure it here. ico: /img/suka-favicon.ico # 16x16 png small: # 32x32 png medium: # /img/suka-favicon.png # 180x180 png apple_touch_icon: # 192x192 png large: # svg icon safari_pinned_tab: # Color # It will defined color below: # Android Chrome Color # Safari Pinned Tab color: # PWA # You can setup your blog as pwa with a manifest. # https://app-manifest.firebaseapp.com where you can generate a manifest quickly # Leave it blank if you don't have one pwa_manifest: # Open search # Fill in your opensearch xml file here. # Leave it blank if you don't have one open_search: # Keywords # Define meta keywords tag # split with ',' keywords: # Site Verification site_verification: google: baidu: footer: # Copyright Since # Specify the date when the site was setup. # For example, if you set it as 2015, then footer will show something like '© 2015 - 2018' # If you just want to show something like '© 2018' only, simly leave it blank. copyright_since: # Footer Text # You can specify the text you want to show in footer, HTML tag is supported. # For example, you can setup ICP license number as: # custom_text: '<a href="http://www.miitbeian.gov.cn" rel="nofollow noopener noreferrer">某ICP备xxxxxxxx号-x</a>' # Another example, you can setup 'Hosted on Coding Pages' as: # custom_text: 'Hosted on <a href="https://pages.coding.me" rel="nofollow noopener noreferrer">Coding Pages</a>' # Muilt line footer text is supported. custom_text: # --------------------------------------------------------------- # Customize Settings # --------------------------------------------------------------- uiux: # Muilt line slogan is supported. slogan: Hi, nice to meet you. # For most link color except post color link_color: primary_color: # Background color bg_color: img: avatar: '/img/default_avatar.png' # --------------------------------------------------------------- # Menu Settings # --------------------------------------------------------------- # Nav settings # Used to choose which nav: home: use: true archives: use: true rss: use: false share: use: true search: use: true link: /search pages: #About: #link: /about/ #Friends: #link: /links/ # SNS Share Switch # Used to choose which items will be displayed in share menu. sns_share: weibo: true facebook: true twitter: true telegram: true googleplus: true linkedin: true qq: true # Qrcode which will show in share menu, for redirect to other device qrcode: index_share: true post_share: true # --------------------------------------------------------------- # Post Settings # --------------------------------------------------------------- post: # Default Excerpt # Please use <!-- more --> in the post to control excerpt accurately and will override the configuration here. entry_excerpt: 120 # Notify on expire of the page # To let the visitor know if the post hasn't been update for long. expire: true share: true # Post License # You can specify the text you want to show in the end of your posts and pages, HTML tag is supported. # For example, you can setup a CC license as: # license: 'This blog is under a <a href="/creativecommons.html" target="_blank">CC BY-NC-SA 3.0 Unported License</a>' # You can also use Front-Matter `license` to override this setting # or use Front-Matter `hide_license: true` to hide license on spefic post license: # Table Of Contents which will be show on right side of the post toc: # You can still disable toc for each single post by setting their front-matter with 'toc: false' enable: true # Show line number for each toc list-item or not. Default is true. line_number: true # --------------------------------------------------------------- # Integrated Services # --------------------------------------------------------------- # Comment Systems # Available value of "use": # disqus | disqusjs | disqus_click | changyan | livere | gitment | gitalk | valine | facebook # If you want to use DisqusJS for better disqus exprience in China, please read https://github.com/SukkaW/DisqusJS#readme # If you want to use gitment or gitalk, you should get the client_id and client_secret form https://github.com/settings/applications/new # If you want to use valine, you should get the app_id and app_key form https://leancloud.cn , more setting please see https://valine.js.org comment: use: disqus: shortname: # disqus shortname disqusjs: shortname: siteName: api: apikey: admin: adminLabel: changyan: appid: conf: thread_key_type: path # id | path. Only when you generate static id for each post before you using 'id' livere: data_uid: gitment: repo: owner: client_id: client_secret: gitalk: repo: owner: client_id: client_secret: valine: leancloud_appId: # leancloud application app id leancloud_appKey: # leancloud application app key notify: false # valine mail notify (true/false) https://github.com/xCss/Valine/wiki verify: false # valine verify code (true/false) pageSize: 10 # comment list page size avatar: identicon # gravatar style https://valine.js.org/#/avatar lang: zh-cn # i18n placeholder: Just go go # valine comment input placeholder(like: Please leave your footprints ) guest_info: nick,mail,link #valine comment header info wildfire: database_provider: firebase # firebase or wilddog wilddog_site_id: firebase_api_key: firebase_auth_domain: firebase_database_url: firebase_project_id: firebase_storage_bucket: firebase_messaging_sender_id: theme: light # light or dark locale: en # en or zh-CN facebook: colorschme: light # light | dark numposts: 10 orderby: social # social | reverse_time | time # You can only fill in one of them below when configuring. # If you fill in both of them then appid method will be used. # Read facebook developer documents for more info: # https://developers.facebook.com/docs/plugins/comments/#moderation-setup-instructions admin_fb_appid: admin_fb_username: # Currently "Suka" don't support more than one admin. You can open a new issue if you really need one. # Site Analytics # Suka theme has a built in Baidu's, Google's website analytics and CNZZ's analytics service analytics: google_site_id: clarity_tag: cloudflare_token: # https://github.com/SukkaW/cloudflare-workers-async-google-analytics cloudflare_async_google_analytics: google_site_id: # Please use according to Readme # https://github.com/SukkaW/cloudflare-workers-async-google-analytics#get-start cfga_api: # cfga.lufs.workers.dev gtags_site_id: baidu_site_id: cnzz_site_id: tencent_site_id: tencent_mta_id: # Views Analytics # Busuanzi # The counter by https://busuanzi.ibruce.info busuanzi: enable: true # Site views analytics support either pv or uv # will be show at footer site_uv: enable: true before: # html tag support after: Viewers # html tag support divider: '|' # html tag supported, something like '|' ',' '·' even '<br>', if you dont want any divider simply leave it blank, offset: 0 site_pv: enable: false before: # html tag support after: Views # html tag support divider: # html tag supported, something like '|' ',' '·' even '<br>', if you dont want any divider simply leave it blank, offset: 0 # Post views analytics # will be show at post header info post_pv: enable: true before: # html tag support after: Views # html tag support # The counter by https://valine.js.org/visitor.html valine_counter: # ATTENTION! You should use valine comment system to enable this feature! enable: false # By use config.url as id to count all site pv site_pv: enable: false before: # html tag supported after: # html tag supported divider: # html tag supported, something like '|' ',' '·' even '<br>', if you dont want any divider simply leave it blank, # Show pv for each post on index (Exprimental) index_post_pv: enable: false before: # html tag supported after: # html tag supported # Show pv on post page post_pv: enable: false before: # html tag supported after: # html tag supported # The counter by https://github.com/spencerwooo/ga-hit-count-serverless ga_hit_count: enable: false post_views_api: # Example: https://domain.com/api/ga before: # html tag support after: Views # html tag support # --------------------------------------------------------------- # Plugin Settings # --------------------------------------------------------------- # Search # Available value of "use": # local | google | swiftype search: use: local # Swiftype swiftype_key: # Code highlight # You can only enable one of them to avoid issues. # Suka support hexo built in preprocess highlight.js, and Suka Theme has various theme for you to choose. # Suka Theme has also built in those code highlight: Hanabi | Prism | Prettify , you can config below. # Run `hexo clean` first after changing code highlight configuration. # Hexo built in highlight # To use hexo built in highlight, you need to disable all other highlight option. # Then enable Hexo highlight option in site config. # # highlight: # enable: true # highlight: theme: github # You can only enable the Suka built in prettify theme here. Check the /source/css/highlight directories. # The theme name is the css file name without `.min.css`, as [theme-name].min.css # Hanabi (https://github.com/egoist/hanabi) # To use hanabi, you need to disable all highlight option in hexo's site config: # # highlight: # enable: false # line_number: false # auto_detect: false # tab_replace: false # hanabi: enable: false # Prism # To use prism, you need to disable all highlight option in hexo's site config. # # highlight: # enable: false # line_number: false # auto_detect: false # tab_replace: false # # Then you need to disable other code hightlight first, and enable prism at site config: # # suka_theme: # ... # prism: # enable: true # line_number: true # Enable line number or not # theme: default # # You can only enable the Suka built in prism theme here. Check the /source/lib/prism directories. # The theme name is the css file name without `.min.css` and `prism-`, as prism-[theme-name].min.css # Google Code Prettify # To use prettify, you need to disable all highlight option in hexo's site config. # # highlight: # enable: false # line_number: false # auto_detect: false # tab_replace: false # prettify: enable: false linenumber: true # We prefer to enable for avoiding some pretiffy's bugs. # Prettify Theme theme: github-v2 # It will not load any theme if you leave it blank # You can only enable the Suka built in prettify theme here. Check the /source/lib/prettify/themes directories. # The theme name is the css file name without `.min.css`, as [theme-name].min.css # # If you want to use other theme, you can leave that blank, and load your own theme by adding <link> tag using custom code. # Learn how to use custom code here: https://theme-suka.skk.moe/docs/en/expert/#Add-custom-code # --------------------------------------------------------------- # Expert Settings # --------------------------------------------------------------- # !!ATTENTION!! # Do Not Modify Below This Line, unless you know what you are doing! # --------------------------------------------------------------- # Vendors # Set a CDN address for the vendor you want to customize. # Be aware that you should use the same version as internal ones to avoid potential problems. # We prefer you using the https protocol of CDN files whether you enable https on your site or not. vendors: # hexo-theme-suka # https://github.com/SukkaW/hexo-theme-suka # You can check current the Suka Version Code at the end of theme config. suka: style_css: local_search_js: hanabi_browser_js: highlight_theme: # You can fill in any suka built in highlight.js theme you want here, and it will override the prism theme config before. lazyload_img: # Spectre.css # https://picturepan2.github.io/spectre/ # Version: 0.5.3 spectre: spectre_css: # Prism & Prism Theme # https://github.com/PrismJS/prism/ https://github.com/PrismJS/prism-themes # Prism Version: 1.15.0 | Prism Theme Version: 1.0.1 prism: theme: # You can fill in any prism theme you want here, and it will override the prism theme config in site config. line_number: # Lazyload # https://github.com/verlok/lazyload # Version: 17.1.2 lazyload: # Busuanzi # https://busuanzi.ibruce.info busuanzi: # Hanabi # https://github.com/egoist/hanabi # Version: 0.4.0 hanabi: # Prettify Core # Attention! It is NOT the `run_prettify.js`! # Version: 0.1.0 prettify: # Prettify Theme # You can fill in any prettify theme you want here, and it will override the prettify theme config before. # Personally I prefer the theme here: https://github.com/jmblog/color-themes-for-google-code-prettify prettify_theme: # GA Hit Count # https://github.com/Lufsx/ga-hit-count ga_hit_count: fragment_cache: false # Theme Version # localStorage cache version verison: 1.3.3 old_verison: - 0.2.0 - 0.0.1 - 0.1.0 - 1.0.0 - 1.0.1 - 1.1.0 - 1.1.1 - 1.2.0 - 1.3.0 - 1.3.2