├── .github └── FUNDING.yml ├── .gitignore ├── LICENSE ├── README.md ├── _config.yml ├── layout ├── includes │ ├── base.njk │ ├── footer.njk │ ├── head.njk │ ├── headerbar.njk │ ├── plugins │ │ ├── baiduAnalytice.njk │ │ ├── disqus.njk │ │ ├── gitalk.njk │ │ ├── googleAnalytice.njk │ │ ├── mtaTencentAnalytice.njk │ │ ├── plugin.njk │ │ └── umamiAnalytice.njk │ └── sidebar.njk ├── index.njk └── post.njk ├── package.json ├── screenshot └── 1.png ├── source ├── assets │ ├── JosefinSans-Regular.ttf │ ├── JosefinSans-SemiBoldItalic.ttf │ └── svg_icons.svg ├── css │ ├── dracula.css │ └── style.styl ├── javascripts │ ├── acelog.js │ └── highlight.pack.js └── stylus │ ├── _background.styl │ ├── _container.styl │ ├── _darkTheme.styl │ ├── _font.styl │ ├── _global.styl │ ├── _header.styl │ ├── _lightbox.styl │ ├── _page.styl │ ├── _pageContent.styl │ ├── _pageOutline.styl │ ├── _postList.styl │ ├── _sidebar.styl │ └── _var.styl ├── src ├── index.ts ├── tsconfig.json └── util │ └── jquery_polyfill.ts └── webpack.config.js /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | node_modules 3 | yarn.lock 4 | acelog.js.map 5 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 iGuan7u 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Acetolog 2 | 3 | [![Hexo](https://img.shields.io/badge/Hexo-6.0-brightgreen)](https://github.com/hexojs/hexo) 4 | 5 | A beautiful & simple hexo theme. Inspired by 6 | [typology](https://demo.mekshq.com/typology/) and 7 | [Bear](https://demo.mekshq.com/typology/). Aiming to be a simple but elegant 8 | blog theme. 9 | 10 | ![ScreenShot](./screenshot/1.png) 11 | 12 | [LiveDemo](https://www.iguan7u.cn) 13 | 14 | ## Dependency 15 | 16 | Acetolog **no longer** depends on any other libraries. Since you install hexo 17 | successfully, you can switch theme to Acetolog, Smoothly. (Just as 18 | hexo-theme-next did.) 19 | 20 | ## Install 21 | 22 | 1. Enter hexo theme folder 23 | 24 | ``` 25 | $: cd themes 26 | ``` 27 | 28 | 2. Clone Acetolog from github 29 | 30 | ``` 31 | $: git clone https://github.com/iGuan7u/Acetolog 32 | ``` 33 | 34 | 3. Modify hexo config change theme to `Acetolog` 35 | 36 | ``` 37 | theme: Acetolog 38 | ``` 39 | 40 | 4. Generate new pages 41 | 42 | ``` 43 | $: hexo clean 44 | $: hexo g 45 | ``` 46 | 47 | ## Custom 48 | 49 | ### Comment: 50 | 51 | - [Gitalk](https://github.com/gitalk/gitalk) Gitalk is based on Github issus. It 52 | requires less resources than disqus, saving your website loading time, a lot. 53 | By enaling `gitalk` config in acetolog theme `themes/Acetolog/_config.yml` to 54 | use it. **Recommanded** 55 | 56 | - [Disqus](https://disqus.com) You can enable `disqus` config in theme config 57 | `themes/Acetolog/_config.yml`. 58 | 59 | ### Analytice: 60 | 61 | Acetolog support: 62 | 63 | - [UmamiAnalytice](https://umami.is/) 64 | - [GoogleAnalytice](https://analytics.google.com) 65 | - [BaiduAnalytice](https://tongji.baidu.com) 66 | - ~~[TencentAnalytice](https://mta.qq.com)~~ 67 | 68 | You can modify the theme config `themes/Acetolog/_config.yml` to enable which 69 | one you prefer. 70 | 71 | ### Code Block Highlight: 72 | 73 | Acetolog support code block highlight by using hexo built-in function. Make sure 74 | you enabled `highlight.enable` and`highlight.hljs` in your blog `_config.yml`. 75 | 76 | ```yml 77 | highlight: 78 | enable: true 79 | hljs: true # MAKE SURE ENABLE IT! 80 | ``` 81 | 82 | ### Read Time: 83 | 84 | Acetolog can display each page's word count nicely, you can enable it by 85 | installing `hexo-wordcount`. 86 | 87 | ``` 88 | $: npm intall hexo-wordcount 89 | ``` 90 | 91 | That's it, no more configuration. 92 | 93 | ### Excerpt: 94 | 95 | Acetolog can display page's excerpt in main page. If you don't setting excerpt 96 | in each page, you can just setting it automatically by installing 97 | `hexo-auto-excerpt`. 98 | 99 | ``` 100 | $: npm intall hexo-auto-excerpt 101 | ``` 102 | 103 | That's it, no more configuration. 104 | 105 | ### Dark Mode: 106 | 107 | Now Acetolog support **Dark Mode**! You can change the color you prefer in 108 | `themes/Acetolog/source/stylus/_var.styl`, of course, you can disable it by 109 | commented the code below in `themes/Acetolog/source/css/style.styl` 110 | 111 | ``` 112 | @import "../stylus/darkTheme.styl"; 113 | ``` 114 | 115 | ### Main Theme Color: 116 | 117 | You can modify the main colors to your preferred, they are `$theme_color` and 118 | `$theme_color_light` in `themes/Acetolog/source/stylus/_var.styl`. 119 | 120 | ### Favicon: 121 | 122 | [favicon.io](https://favicon.io) is the recommended favicon generation tool: 123 | just generate, download, got `favicon_io.zip`, and unzip to your `source` 124 | directory. 125 | 126 | ### IPC License: 127 | 128 | You can enable it in theme config `themes/Acetolog/_config.yml`, chinese website 129 | may need it. 130 | 131 | ## License 132 | 133 | MIT 134 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | root: / 2 | 3 | Home: / 4 | 5 | language: en 6 | 7 | author: iGuan7u 8 | description: A beautiful & simple theme. 9 | 10 | # AvatorURL 11 | # it would be shown on sidecar. 12 | 13 | avatar: https://yourAvatorURL 14 | 15 | # Comment 16 | 17 | gitalk: 18 | enable: false 19 | clientID: github_clientID 20 | clientSecret: github_clientSecret 21 | repo: you site homepage 22 | owner: your username 23 | admin: same as [owner] 24 | 25 | disqus: 26 | enable: false 27 | shortname: your_disqus_short_name 28 | 29 | # Contact_Info 30 | # Contact info will be shown on the side bar. 31 | 32 | contact: 33 | enable: false 34 | description: 'Contact Info description' 35 | 36 | twitter: 37 | enable: false 38 | username: twitter_username 39 | 40 | github: 41 | enable: false 42 | username: github_username 43 | 44 | weibo: 45 | enable: false 46 | username: weibo_username 47 | 48 | facebook: 49 | enable: false 50 | username: facebook_username 51 | 52 | instagram: 53 | enable: false 54 | username: instagram_username 55 | 56 | 57 | # Analytice 58 | 59 | ## Recommended 60 | umami_analytice: 61 | enable: false 62 | website_id: umami_website_id 63 | js_src: umami_js_src 64 | 65 | baidu_analytics: 66 | enable: false 67 | id: baidu_analytice_id 68 | 69 | google_analytice: 70 | enable: false 71 | tracking_id: google_tracking_id 72 | 73 | # Website ICPLicense 74 | # which is useful in China mainland. 75 | 76 | ICPLicense: 77 | enable: false 78 | content: "Fill IPCLicense" 79 | 80 | # EtraPlugin 81 | 82 | extra_plugin: 83 | enable: false 84 | url: extra_plugin_js_url 85 | 86 | # Development Setting 87 | 88 | node_sass: 89 | # outputStyle: nested 90 | outputStyle: compressed 91 | precision: 5 92 | sourceComments: false -------------------------------------------------------------------------------- /layout/includes/base.njk: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {% block extra_style %}{% endblock %} 5 | {% include "./head.njk" %} 6 | 7 | 8 | {% include "./headerbar.njk" %} 9 | {% include "./sidebar.njk" %} 10 | {% block content %}{% endblock %} 11 | {% include "./footer.njk" %} 12 | 13 | {% include "./plugins/mtaTencentAnalytice.njk" %} 14 | {% include "./plugins/baiduAnalytice.njk" %} 15 | {% include "./plugins/googleAnalytice.njk" %} 16 | {% include "./plugins/umamiAnalytice.njk" %} 17 | {% include "./plugins/plugin.njk" %} 18 | 19 | -------------------------------------------------------------------------------- /layout/includes/footer.njk: -------------------------------------------------------------------------------- 1 | 24 | -------------------------------------------------------------------------------- /layout/includes/head.njk: -------------------------------------------------------------------------------- 1 | {{ page.title or config.subtitle or '' }} 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /layout/includes/headerbar.njk: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 | 7 |
8 | 9 |
10 |
11 | 12 | 13 | 14 |
15 |
16 |
17 |
18 | -------------------------------------------------------------------------------- /layout/includes/plugins/baiduAnalytice.njk: -------------------------------------------------------------------------------- 1 | {% if theme.baidu_analytics.enable === true %} 2 | 3 | {% endif %} -------------------------------------------------------------------------------- /layout/includes/plugins/disqus.njk: -------------------------------------------------------------------------------- 1 | {% if theme.disqus.enable %} 2 |
3 | 12 | {% endif %} 13 | -------------------------------------------------------------------------------- /layout/includes/plugins/gitalk.njk: -------------------------------------------------------------------------------- 1 | {% if theme.gitalk.enable %} 2 |
3 | 4 | 15 | {% endif %} 16 | -------------------------------------------------------------------------------- /layout/includes/plugins/googleAnalytice.njk: -------------------------------------------------------------------------------- 1 | {% if theme.google_analytice.enable === true %} 2 | 3 | 4 | {% endif %} -------------------------------------------------------------------------------- /layout/includes/plugins/mtaTencentAnalytice.njk: -------------------------------------------------------------------------------- 1 | {% if theme.mta_analytics.enable === true %} 2 | 5 | {% endif %} -------------------------------------------------------------------------------- /layout/includes/plugins/plugin.njk: -------------------------------------------------------------------------------- 1 | {% if theme.extra_plugin.enable %} 2 | 6 | {% endif %} 7 | -------------------------------------------------------------------------------- /layout/includes/plugins/umamiAnalytice.njk: -------------------------------------------------------------------------------- 1 | {% if theme.umami_analytice.enable === true %} 2 | 4 | {% endif %} -------------------------------------------------------------------------------- /layout/includes/sidebar.njk: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | 5 |
6 |
7 |

{{ config.title }}

8 |
9 | 10 | 11 | 12 |
13 |
14 | 15 |
16 | 17 |
18 |

{{ config.author }}

19 | 20 |

{{ config.description }}

21 |
22 | 23 | {% if theme.contact.enable === true %} 24 |
25 |

GET IN TOUCH

26 |

{{ theme.contact.description }}

27 | 28 |
29 | {# Facebook widget #} 30 | {% if theme.contact.facebook.enable === true %} 31 |
32 | 33 | 34 | 35 |
36 | {% endif %} 37 | 38 | {# instagram widget #} 39 | {% if theme.contact.instagram.enable === true %} 40 |
41 | 42 | 43 | 44 |
45 | {% endif %} 46 | 47 | {# weibo widget #} 48 | {% if theme.contact.weibo.enable === true %} 49 |
50 | 51 | 52 | 53 |
54 | {% endif %} 55 | 56 | {# github widget #} 57 | {% if theme.contact.github.enable === true %} 58 |
59 | 60 | 61 | 62 |
63 | {% endif %} 64 | 65 | {# twitter widget #} 66 | {% if theme.contact.twitter.enable === true %} 67 |
68 | 69 | 70 | 71 |
72 | {% endif %} 73 |
74 |
75 | {% endif %} 76 |
77 |
78 |
79 | -------------------------------------------------------------------------------- /layout/index.njk: -------------------------------------------------------------------------------- 1 | {% extends './includes/base.njk' %} 2 | {% block content %} 3 |
4 |
5 | {{ config.bio|default('A Simple Theme')|first|upper }} 6 |
7 |

8 | {{ config.bio|default('A Simple Theme') }} 9 |

10 |
11 |
12 |
13 |
14 |
15 |
16 | LATEST PAGES 17 |
18 |
19 |
    20 | {% for item in page.posts.toArray() %} 21 |
  • 22 |
    23 |
    24 | {{ (item.title or 'No Title') | first | upper }} 25 |
    26 |

    27 | 28 | {{ item.title or 'No Title' }} 29 | 30 |

    31 |
    32 | 35 | {% if min2read %} 36 |
    37 | {{ min2read(item.content) }} Min Read 38 |
    39 | {% endif %} 40 |
    41 |
    42 |
    43 |

    44 | {{ item.excerpt|striptags }} 45 |

    46 |
    47 |
    48 | 49 | READ ON 50 | 51 | 54 | READ LATER 55 | 56 |
    57 |
  • 58 | {% endfor %} 59 |
60 | 78 |
79 |
80 | {% endblock %} -------------------------------------------------------------------------------- /layout/post.njk: -------------------------------------------------------------------------------- 1 | {% extends './includes/base.njk' %} 2 | 3 | {% block extra_style %} 4 | {% if theme.gitalk.enable %} 5 | 6 | {% endif %} 7 | 8 | {% endblock %} 9 | 10 | {% block content %} 11 |
12 | 13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |

21 | {{ page.title|default('No Title') }} 22 |

23 |
24 | 27 | 28 | {% if wordcount %} 29 | 32 | {% endif %} 33 | 34 | {% if min2read %} 35 | 38 | {% endif %} 39 | 40 |
41 |
42 | 43 | {% if toc(page.content) %} 44 |
45 | {{ toc(page.content,{list_number:false}) }} 46 |
47 | {% endif %} 48 | 49 | {# Page Content #} 50 |
51 | {{ page.content }} 52 |
53 | 54 | {# Comment Plugins #} 55 | {% include "./includes/plugins/gitalk.njk" %} 56 | {% include "./includes/plugins/disqus.njk" %} 57 |
58 | 59 | {# Navigate Element #} 60 | 78 |
79 |
80 | 81 | {% endblock %} 82 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "acetolog", 3 | "version": "1.0.1", 4 | "description": "A beautiful & simple theme.", 5 | "repository": "https://github.com/iGuan7u/Acetolog", 6 | "author": "iGuan7u ", 7 | "license": "MIT", 8 | "private": false, 9 | "scripts": { 10 | "dev": "webpack --watch", 11 | "build": "webpack --mode=production" 12 | }, 13 | "devDependencies": { 14 | "ts-loader": "^6.2.2", 15 | "typescript": "^3.8.3", 16 | "webpack": "^4.41.6", 17 | "webpack-cli": "^3.3.11" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /screenshot/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iGuan7u/Acetolog/9f87b6e9551a4dd5320a42b97ee08127feb208a4/screenshot/1.png -------------------------------------------------------------------------------- /source/assets/JosefinSans-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iGuan7u/Acetolog/9f87b6e9551a4dd5320a42b97ee08127feb208a4/source/assets/JosefinSans-Regular.ttf -------------------------------------------------------------------------------- /source/assets/JosefinSans-SemiBoldItalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iGuan7u/Acetolog/9f87b6e9551a4dd5320a42b97ee08127feb208a4/source/assets/JosefinSans-SemiBoldItalic.ttf -------------------------------------------------------------------------------- /source/assets/svg_icons.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /source/css/dracula.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Dracula Theme v1.2.0 4 | 5 | https://github.com/zenorocha/dracula-theme 6 | 7 | Copyright 2015, All rights reserved 8 | 9 | Code licensed under the MIT license 10 | http://zenorocha.mit-license.org 11 | 12 | @author Éverton Ribeiro 13 | @author Zeno Rocha 14 | 15 | */ 16 | 17 | .hljs { 18 | display: block; 19 | overflow-x: auto; 20 | padding: 0.5em; 21 | background: #282a36; 22 | } 23 | 24 | .hljs-keyword, 25 | .hljs-selector-tag, 26 | .hljs-literal, 27 | .hljs-section, 28 | .hljs-link { 29 | color: #8be9fd; 30 | } 31 | 32 | .hljs-function .hljs-keyword { 33 | color: #ff79c6; 34 | } 35 | 36 | .hljs, 37 | .hljs-subst { 38 | color: #f8f8f2; 39 | } 40 | 41 | .hljs-string, 42 | .hljs-title, 43 | .hljs-name, 44 | .hljs-type, 45 | .hljs-attribute, 46 | .hljs-symbol, 47 | .hljs-bullet, 48 | .hljs-addition, 49 | .hljs-variable, 50 | .hljs-template-tag, 51 | .hljs-template-variable { 52 | color: #f1fa8c; 53 | } 54 | 55 | .hljs-comment, 56 | .hljs-quote, 57 | .hljs-deletion, 58 | .hljs-meta { 59 | color: #6272a4; 60 | } 61 | 62 | .hljs-keyword, 63 | .hljs-selector-tag, 64 | .hljs-literal, 65 | .hljs-title, 66 | .hljs-section, 67 | .hljs-doctag, 68 | .hljs-type, 69 | .hljs-name, 70 | .hljs-strong { 71 | font-weight: bold; 72 | } 73 | 74 | .hljs-emphasis { 75 | font-style: italic; 76 | } 77 | -------------------------------------------------------------------------------- /source/css/style.styl: -------------------------------------------------------------------------------- 1 | @import "../stylus/_var.styl"; 2 | 3 | @import "../stylus/_global.styl"; 4 | 5 | @import "../stylus/_font.styl"; 6 | 7 | @import "../stylus/_header.styl"; 8 | 9 | @import "../stylus/_background.styl"; 10 | 11 | @import "../stylus/_container.styl"; 12 | 13 | @import "../stylus/_postList.styl"; 14 | 15 | @import "../stylus/_page.styl"; 16 | 17 | @import "../stylus/_pageOutline.styl"; 18 | 19 | @import "../stylus/_pageContent.styl"; 20 | 21 | @import "../stylus/_sidebar.styl"; 22 | 23 | @import "../stylus/_lightbox.styl"; 24 | 25 | // If you don't like dark mode, you can disable next line. 26 | @import "../stylus/_darkTheme.styl"; 27 | -------------------------------------------------------------------------------- /source/javascripts/acelog.js: -------------------------------------------------------------------------------- 1 | !function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";e.__esModule=!0,n(1);var o=window.$;window.$(".al_header_setting").click((function(t){o(".al_sidebar").addClass("al_sidebar_Active"),o("body").addClass("al_no_scroll")})),o(".al_sidebar_close,.al_sidebar_overlay").click((function(t){o(".al_sidebar").removeClass("al_sidebar_Active"),o("body").removeClass("al_no_scroll"),t.stopPropagation()})),o(".al_social_icon_cnt").click((function(t){window.open(o(t.target).attr("data_link"))})),o(".al_lightbox_cnt").click((function(t){o(".al_lightbox_cnt").removeClass("al_lightbox_cnt_Active"),o("body").removeClass("al_no_scroll"),t.stopPropagation()})),o("#post-body img").click((function(t){var e=t.target;e&&(o(".al_lightbox_cnt").addClass("al_lightbox_cnt_Active"),o("body").addClass("al_no_scroll"),o(".al_lightbox_img").attr("src",e.getAttribute("src")))}))},function(t,e){var n=function(t){var e=this;this.click=function(t){for(var n=0;n]+>|\t|)+|(?:\n)))/gm,r={case_insensitive:"cI",lexemes:"l",contains:"c",keywords:"k",subLanguage:"sL",className:"cN",begin:"b",beginKeywords:"bK",end:"e",endsWithParent:"eW",illegal:"i",excludeBegin:"eB",excludeEnd:"eE",returnBegin:"rB",returnEnd:"rE",variants:"v",IDENT_RE:"IR",UNDERSCORE_IDENT_RE:"UIR",NUMBER_RE:"NR",C_NUMBER_RE:"CNR",BINARY_NUMBER_RE:"BNR",RE_STARTERS_RE:"RSR",BACKSLASH_ESCAPE:"BE",APOS_STRING_MODE:"ASM",QUOTE_STRING_MODE:"QSM",PHRASAL_WORDS_MODE:"PWM",C_LINE_COMMENT_MODE:"CLCM",C_BLOCK_COMMENT_MODE:"CBCM",HASH_COMMENT_MODE:"HCM",NUMBER_MODE:"NM",C_NUMBER_MODE:"CNM",BINARY_NUMBER_MODE:"BNM",CSS_NUMBER_MODE:"CSSNM",REGEXP_MODE:"RM",TITLE_MODE:"TM",UNDERSCORE_TITLE_MODE:"UTM",COMMENT:"C",beginRe:"bR",endRe:"eR",illegalRe:"iR",lexemesRe:"lR",terminators:"t",terminator_end:"tE"},m="",O="Could not find the language '{}', did you forget to load/include a language module?",B={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},o="of and for in not or if then".split(" ");function x(e){return e.replace(/&/g,"&").replace(//g,">")}function g(e){return e.nodeName.toLowerCase()}function u(e){return n.test(e)}function s(e){var n,t={},r=Array.prototype.slice.call(arguments,1);for(n in e)t[n]=e[n];return r.forEach(function(e){for(n in e)t[n]=e[n]}),t}function E(e){var a=[];return function e(n,t){for(var r=n.firstChild;r;r=r.nextSibling)3===r.nodeType?t+=r.nodeValue.length:1===r.nodeType&&(a.push({event:"start",offset:t,node:r}),t=e(r,t),g(r).match(/br|hr|img|input/)||a.push({event:"stop",offset:t,node:r}));return t}(e,0),a}function d(e,n,t){var r=0,a="",i=[];function o(){return e.length&&n.length?e[0].offset!==n[0].offset?e[0].offset"}function l(e){a+=""}function u(e){("start"===e.event?c:l)(e.node)}for(;e.length||n.length;){var s=o();if(a+=x(t.substring(r,s[0].offset)),r=s[0].offset,s===e){for(i.reverse().forEach(l);u(s.splice(0,1)[0]),(s=o())===e&&s.length&&s[0].offset===r;);i.reverse().forEach(c)}else"start"===s[0].event?i.push(s[0].node):i.pop(),u(s.splice(0,1)[0])}return a+x(t.substr(r))}function R(n){return n.v&&!n.cached_variants&&(n.cached_variants=n.v.map(function(e){return s(n,{v:null},e)})),n.cached_variants?n.cached_variants:function e(n){return!!n&&(n.eW||e(n.starts))}(n)?[s(n,{starts:n.starts?s(n.starts):null})]:Object.isFrozen(n)?[s(n)]:[n]}function p(e){if(r&&!e.langApiRestored){for(var n in e.langApiRestored=!0,r)e[n]&&(e[r[n]]=e[n]);(e.c||[]).concat(e.v||[]).forEach(p)}}function v(n,r){var a={};return"string"==typeof n?t("keyword",n):i(n).forEach(function(e){t(e,n[e])}),a;function t(t,e){r&&(e=e.toLowerCase()),e.split(" ").forEach(function(e){var n=e.split("|");a[n[0]]=[t,function(e,n){return n?Number(n):function(e){return-1!=o.indexOf(e.toLowerCase())}(e)?0:1}(n[0],n[1])]})}}function S(r){function s(e){return e&&e.source||e}function f(e,n){return new RegExp(s(e),"m"+(r.cI?"i":"")+(n?"g":""))}function a(a){var i,e,o={},c=[],l={},t=1;function n(e,n){o[t]=e,c.push([e,n]),t+=function(e){return new RegExp(e.toString()+"|").exec("").length-1}(n)+1}for(var r=0;r')+n+(t?"":m)}function l(){p+=null!=d.sL?function(){var e="string"==typeof d.sL;if(e&&!_[d.sL])return x(v);var n=e?T(d.sL,v,!0,R[d.sL]):w(v,d.sL.length?d.sL:void 0);return 0")+'"');if("end"===n.type){var r=function(e){var n=e[0],t=i.substr(e.index),r=o(d,t);if(r){var a=d;for(a.skip?v+=n:(a.rE||a.eE||(v+=n),l(),a.eE&&(v=n));d.cN&&(p+=m),d.skip||d.sL||(M+=d.relevance),(d=d.parent)!==r.parent;);return r.starts&&(r.endSameAsBegin&&(r.starts.eR=r.eR),u(r.starts)),a.rE?0:n.length}}(n);if(null!=r)return r}return v+=t,t.length}var g=D(n);if(!g)throw console.error(O.replace("{}",n)),new Error('Unknown language: "'+n+'"');S(g);var E,d=t||g,R={},p="";for(E=d;E!==g;E=E.parent)E.cN&&(p=c(E.cN,"",!0)+p);var v="",M=0;try{for(var b,h,N=0;d.t.lastIndex=N,b=d.t.exec(i);)h=r(i.substring(N,b.index),b),N=b.index+h;for(r(i.substr(N)),E=d;E.parent;E=E.parent)E.cN&&(p+=m);return{relevance:M,value:p,i:!1,language:n,top:d}}catch(e){if(e.message&&-1!==e.message.indexOf("Illegal"))return{i:!0,relevance:0,value:x(i)};if(C)return{relevance:0,value:x(i),language:n,top:d,errorRaised:e};throw e}}function w(t,e){e=e||B.languages||i(_);var r={relevance:0,value:x(t)},a=r;return e.filter(D).filter(L).forEach(function(e){var n=T(e,t,!1);n.language=e,n.relevance>a.relevance&&(a=n),n.relevance>r.relevance&&(a=r,r=n)}),a.language&&(r.second_best=a),r}function M(e){return B.tabReplace||B.useBR?e.replace(t,function(e,n){return B.useBR&&"\n"===e?"
":B.tabReplace?n.replace(/\t/g,B.tabReplace):""}):e}function b(e){var n,t,r,a,i,o=function(e){var n,t,r,a,i=e.className+" ";if(i+=e.parentNode?e.parentNode.className:"",t=l.exec(i)){var o=D(t[1]);return o||(console.warn(O.replace("{}",t[1])),console.warn("Falling back to no-highlight mode for this block.",e)),o?t[1]:"no-highlight"}for(n=0,r=(i=i.split(/\s+/)).length;n/g,"\n"):n=e,i=n.textContent,r=o?T(o,i,!0):w(i),(t=E(n)).length&&((a=document.createElement("div")).innerHTML=r.value,r.value=d(t,E(a),i)),r.value=M(r.value),e.innerHTML=r.value,e.className=function(e,n,t){var r=n?c[n]:t,a=[e.trim()];return e.match(/\bhljs\b/)||a.push("hljs"),-1===e.indexOf(r)&&a.push(r),a.join(" ").trim()}(e.className,o,r.language),e.result={language:r.language,re:r.relevance},r.second_best&&(e.second_best={language:r.second_best.language,re:r.second_best.relevance}))}function h(){if(!h.called){h.called=!0;var e=document.querySelectorAll("pre code");f.forEach.call(e,b)}}var N={disableAutodetect:!0};function D(e){return e=(e||"").toLowerCase(),_[e]||_[c[e]]}function L(e){var n=D(e);return n&&!n.disableAutodetect}return a.highlight=T,a.highlightAuto=w,a.fixMarkup=M,a.highlightBlock=b,a.configure=function(e){B=s(B,e)},a.initHighlighting=h,a.initHighlightingOnLoad=function(){window.addEventListener("DOMContentLoaded",h,!1),window.addEventListener("load",h,!1)},a.registerLanguage=function(n,e){var t;try{t=e(a)}catch(e){if(console.error("Language definition for '{}' could not be registered.".replace("{}",n)),!C)throw e;console.error(e),t=N}p(_[n]=t),t.rawDefinition=e.bind(null,a),t.aliases&&t.aliases.forEach(function(e){c[e]=n})},a.listLanguages=function(){return i(_)},a.getLanguage=D,a.requireLanguage=function(e){var n=D(e);if(n)return n;throw new Error("The '{}' language is required, but not loaded.".replace("{}",e))},a.autoDetection=L,a.inherit=s,a.debugMode=function(){C=!1},a.IR=a.IDENT_RE="[a-zA-Z]\\w*",a.UIR=a.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",a.NR=a.NUMBER_RE="\\b\\d+(\\.\\d+)?",a.CNR=a.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",a.BNR=a.BINARY_NUMBER_RE="\\b(0b[01]+)",a.RSR=a.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",a.BE=a.BACKSLASH_ESCAPE={b:"\\\\[\\s\\S]",relevance:0},a.ASM=a.APOS_STRING_MODE={cN:"string",b:"'",e:"'",i:"\\n",c:[a.BE]},a.QSM=a.QUOTE_STRING_MODE={cN:"string",b:'"',e:'"',i:"\\n",c:[a.BE]},a.PWM=a.PHRASAL_WORDS_MODE={b:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},a.C=a.COMMENT=function(e,n,t){var r=a.inherit({cN:"comment",b:e,e:n,c:[]},t||{});return r.c.push(a.PWM),r.c.push({cN:"doctag",b:"(?:TODO|FIXME|NOTE|BUG|XXX):",relevance:0}),r},a.CLCM=a.C_LINE_COMMENT_MODE=a.C("//","$"),a.CBCM=a.C_BLOCK_COMMENT_MODE=a.C("/\\*","\\*/"),a.HCM=a.HASH_COMMENT_MODE=a.C("#","$"),a.NM=a.NUMBER_MODE={cN:"number",b:a.NR,relevance:0},a.CNM=a.C_NUMBER_MODE={cN:"number",b:a.CNR,relevance:0},a.BNM=a.BINARY_NUMBER_MODE={cN:"number",b:a.BNR,relevance:0},a.CSSNM=a.CSS_NUMBER_MODE={cN:"number",b:a.NR+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},a.RM=a.REGEXP_MODE={cN:"regexp",b:/\//,e:/\/[gimuy]*/,i:/\n/,c:[a.BE,{b:/\[/,e:/\]/,relevance:0,c:[a.BE]}]},a.TM=a.TITLE_MODE={cN:"title",b:a.IR,relevance:0},a.UTM=a.UNDERSCORE_TITLE_MODE={cN:"title",b:a.UIR,relevance:0},a.METHOD_GUARD={b:"\\.\\s*"+a.UIR,relevance:0},[a.BE,a.ASM,a.QSM,a.PWM,a.C,a.CLCM,a.CBCM,a.HCM,a.NM,a.CNM,a.BNM,a.CSSNM,a.RM,a.TM,a.UTM,a.METHOD_GUARD].forEach(function(e){!function n(t){Object.freeze(t);var r="function"==typeof t;Object.getOwnPropertyNames(t).forEach(function(e){!t.hasOwnProperty(e)||null===t[e]||"object"!=typeof t[e]&&"function"!=typeof t[e]||r&&("caller"===e||"callee"===e||"arguments"===e)||Object.isFrozen(t[e])||n(t[e])});return t}(e)}),a});hljs.registerLanguage("swift",function(e){var i={keyword:"#available #colorLiteral #column #else #elseif #endif #file #fileLiteral #function #if #imageLiteral #line #selector #sourceLocation _ __COLUMN__ __FILE__ __FUNCTION__ __LINE__ Any as as! as? associatedtype associativity break case catch class continue convenience default defer deinit didSet do dynamic dynamicType else enum extension fallthrough false fileprivate final for func get guard if import in indirect infix init inout internal is lazy left let mutating nil none nonmutating open operator optional override postfix precedence prefix private protocol Protocol public repeat required rethrows return right self Self set static struct subscript super switch throw throws true try try! try? Type typealias unowned var weak where while willSet",literal:"true false nil",built_in:"abs advance alignof alignofValue anyGenerator assert assertionFailure bridgeFromObjectiveC bridgeFromObjectiveCUnconditional bridgeToObjectiveC bridgeToObjectiveCUnconditional c contains count countElements countLeadingZeros debugPrint debugPrintln distance dropFirst dropLast dump encodeBitsAsWords enumerate equal fatalError filter find getBridgedObjectiveCType getVaList indices insertionSort isBridgedToObjectiveC isBridgedVerbatimToObjectiveC isUniquelyReferenced isUniquelyReferencedNonObjC join lazy lexicographicalCompare map max maxElement min minElement numericCast overlaps partition posix precondition preconditionFailure print println quickSort readLine reduce reflect reinterpretCast reverse roundUpToAlignment sizeof sizeofValue sort split startsWith stride strideof strideofValue swap toString transcode underestimateCount unsafeAddressOf unsafeBitCast unsafeDowncast unsafeUnwrap unsafeReflect withExtendedLifetime withObjectAtPlusZero withUnsafePointer withUnsafePointerToObject withUnsafeMutablePointer withUnsafeMutablePointers withUnsafePointer withUnsafePointers withVaList zip"},t=e.C("/\\*","\\*/",{c:["self"]}),n={cN:"subst",b:/\\\(/,e:"\\)",k:i,c:[]},r={cN:"string",c:[e.BE,n],v:[{b:/"""/,e:/"""/},{b:/"/,e:/"/}]},a={cN:"number",b:"\\b([\\d_]+(\\.[\\deE_]+)?|0x[a-fA-F0-9_]+(\\.[a-fA-F0-9p_]+)?|0b[01_]+|0o[0-7_]+)\\b",relevance:0};return n.c=[a],{k:i,c:[r,e.CLCM,t,{cN:"type",b:"\\b[A-Z][\\wÀ-ʸ']*[!?]"},{cN:"type",b:"\\b[A-Z][\\wÀ-ʸ']*",relevance:0},a,{cN:"function",bK:"func",e:"{",eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/}),{b://},{cN:"params",b:/\(/,e:/\)/,endsParent:!0,k:i,c:["self",a,r,e.CBCM,{b:":"}],i:/["']/}],i:/\[|%/},{cN:"class",bK:"struct protocol class extension enum",k:i,e:"\\{",eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/})]},{cN:"meta",b:"(@discardableResult|@warn_unused_result|@exported|@lazy|@noescape|@NSCopying|@NSManaged|@objc|@objcMembers|@convention|@required|@noreturn|@IBAction|@IBDesignable|@IBInspectable|@IBOutlet|@infix|@prefix|@postfix|@autoclosure|@testable|@available|@nonobjc|@NSApplicationMain|@UIApplicationMain|@dynamicMemberLookup|@propertyWrapper)"},{bK:"import",e:/$/,c:[e.CLCM,t]}]}});hljs.registerLanguage("ruby",function(e){var c="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",b={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor",literal:"true false nil"},r={cN:"doctag",b:"@[A-Za-z]+"},a={b:"#<",e:">"},n=[e.C("#","$",{c:[r]}),e.C("^\\=begin","^\\=end",{c:[r],relevance:10}),e.C("^__END__","\\n$")],s={cN:"subst",b:"#\\{",e:"}",k:b},t={cN:"string",c:[e.BE,s],v:[{b:/'/,e:/'/},{b:/"/,e:/"/},{b:/`/,e:/`/},{b:"%[qQwWx]?\\(",e:"\\)"},{b:"%[qQwWx]?\\[",e:"\\]"},{b:"%[qQwWx]?{",e:"}"},{b:"%[qQwWx]?<",e:">"},{b:"%[qQwWx]?/",e:"/"},{b:"%[qQwWx]?%",e:"%"},{b:"%[qQwWx]?-",e:"-"},{b:"%[qQwWx]?\\|",e:"\\|"},{b:/\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/},{b:/<<[-~]?'?(\w+)(?:.|\n)*?\n\s*\1\b/,rB:!0,c:[{b:/<<[-~]?'?/},{b:/\w+/,endSameAsBegin:!0,c:[e.BE,s]}]}]},i={cN:"params",b:"\\(",e:"\\)",endsParent:!0,k:b},l=[t,a,{cN:"class",bK:"class module",e:"$|;",i:/=/,c:[e.inherit(e.TM,{b:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{b:"<\\s*",c:[{b:"("+e.IR+"::)?"+e.IR}]}].concat(n)},{cN:"function",bK:"def",e:"$|;",c:[e.inherit(e.TM,{b:c}),i].concat(n)},{b:e.IR+"::"},{cN:"symbol",b:e.UIR+"(\\!|\\?)?:",relevance:0},{cN:"symbol",b:":(?!\\s)",c:[t,{b:c}],relevance:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{b:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{cN:"params",b:/\|/,e:/\|/,k:b},{b:"("+e.RSR+"|unless)\\s*",k:"unless",c:[a,{cN:"regexp",c:[e.BE,s],i:/\n/,v:[{b:"/",e:"/[a-z]*"},{b:"%r{",e:"}[a-z]*"},{b:"%r\\(",e:"\\)[a-z]*"},{b:"%r!",e:"![a-z]*"},{b:"%r\\[",e:"\\][a-z]*"}]}].concat(n),relevance:0}].concat(n);s.c=l;var d=[{b:/^\s*=>/,starts:{e:"$",c:i.c=l}},{cN:"meta",b:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+>|(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>)",starts:{e:"$",c:l}}];return{aliases:["rb","gemspec","podspec","thor","irb"],k:b,i:/\/\*/,c:n.concat(d).concat(l)}});hljs.registerLanguage("yaml",function(e){var b="true false yes no null",a={cN:"string",relevance:0,v:[{b:/'/,e:/'/},{b:/"/,e:/"/},{b:/\S+/}],c:[e.BE,{cN:"template-variable",v:[{b:"{{",e:"}}"},{b:"%{",e:"}"}]}]};return{cI:!0,aliases:["yml","YAML","yaml"],c:[{cN:"attr",v:[{b:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{b:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{b:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},{cN:"meta",b:"^---s*$",relevance:10},{cN:"string",b:"[\\|>]([0-9]?[+-])?[ ]*\\n( *)[\\S ]+\\n(\\2[\\S ]+\\n?)*"},{b:"<%[%=-]?",e:"[%-]?%>",sL:"ruby",eB:!0,eE:!0,relevance:0},{cN:"type",b:"!"+e.UIR},{cN:"type",b:"!!"+e.UIR},{cN:"meta",b:"&"+e.UIR+"$"},{cN:"meta",b:"\\*"+e.UIR+"$"},{cN:"bullet",b:"\\-(?=[ ]|$)",relevance:0},e.HCM,{bK:b,k:{literal:b}},{cN:"number",b:e.CNR+"\\b"},a]}});hljs.registerLanguage("plaintext",function(e){return{disableAutodetect:!0}});hljs.registerLanguage("scss",function(e){var t="@[a-z-]+",r={cN:"variable",b:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b"},i={cN:"number",b:"#[0-9A-Fa-f]+"};e.CSSNM,e.QSM,e.ASM,e.CBCM;return{cI:!0,i:"[=/|']",c:[e.CLCM,e.CBCM,{cN:"selector-id",b:"\\#[A-Za-z0-9_-]+",relevance:0},{cN:"selector-class",b:"\\.[A-Za-z0-9_-]+",relevance:0},{cN:"selector-attr",b:"\\[",e:"\\]",i:"$"},{cN:"selector-tag",b:"\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",relevance:0},{cN:"selector-pseudo",b:":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"},{cN:"selector-pseudo",b:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},r,{cN:"attribute",b:"\\b(src|z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",i:"[^\\s]"},{b:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{b:":",e:";",c:[r,i,e.CSSNM,e.QSM,e.ASM,{cN:"meta",b:"!important"}]},{b:"@(page|font-face)",l:t,k:"@page @font-face"},{b:"@",e:"[{;]",rB:!0,k:"and or not only",c:[{b:t,cN:"keyword"},r,e.QSM,e.ASM,i,e.CSSNM]}]}});hljs.registerLanguage("kotlin",function(e){var t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual trait volatile transient native default",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},a={cN:"symbol",b:e.UIR+"@"},n={cN:"subst",b:"\\${",e:"}",c:[e.CNM]},c={cN:"variable",b:"\\$"+e.UIR},r={cN:"string",v:[{b:'"""',e:'"""(?=[^"])',c:[c,n]},{b:"'",e:"'",i:/\n/,c:[e.BE]},{b:'"',e:'"',i:/\n/,c:[e.BE,c,n]}]};n.c.push(r);var i={cN:"meta",b:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UIR+")?"},l={cN:"meta",b:"@"+e.UIR,c:[{b:/\(/,e:/\)/,c:[e.inherit(r,{cN:"meta-string"})]}]},s={cN:"number",b:"\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?",relevance:0},b=e.C("/\\*","\\*/",{c:[e.CBCM]}),o={v:[{cN:"type",b:e.UIR},{b:/\(/,e:/\)/,c:[]}]},d=o;return d.v[1].c=[o],o.v[1].c=[d],{aliases:["kt"],k:t,c:[e.C("/\\*\\*","\\*/",{relevance:0,c:[{cN:"doctag",b:"@[A-Za-z]+"}]}),e.CLCM,b,{cN:"keyword",b:/\b(break|continue|return|this)\b/,starts:{c:[{cN:"symbol",b:/@\w+/}]}},a,i,l,{cN:"function",bK:"fun",e:"[(]|$",rB:!0,eE:!0,k:t,i:/fun\s+(<.*>)?[^\s\(]+(\s+[^\s\(]+)\s*=/,relevance:5,c:[{b:e.UIR+"\\s*\\(",rB:!0,relevance:0,c:[e.UTM]},{cN:"type",b://,k:"reified",relevance:0},{cN:"params",b:/\(/,e:/\)/,endsParent:!0,k:t,relevance:0,c:[{b:/:/,e:/[=,\/]/,eW:!0,c:[o,e.CLCM,b],relevance:0},e.CLCM,b,i,l,r,e.CNM]},b]},{cN:"class",bK:"class interface trait",e:/[:\{(]|$/,eE:!0,i:"extends implements",c:[{bK:"public protected internal private constructor"},e.UTM,{cN:"type",b://,eB:!0,eE:!0,relevance:0},{cN:"type",b:/[,:]\s*/,e:/[<\(,]|$/,eB:!0,rE:!0},i,l]},r,{cN:"meta",b:"^#!/usr/bin/env",e:"$",i:"\n"},s]}});hljs.registerLanguage("javascript",function(e){var r="<>",a="",t={b:/<[A-Za-z0-9\\._:-]+/,e:/\/[A-Za-z0-9\\._:-]+>|\/>/},c="[A-Za-z$_][0-9A-Za-z$_]*",n={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},s={cN:"number",v:[{b:"\\b(0[bB][01]+)n?"},{b:"\\b(0[oO][0-7]+)n?"},{b:e.CNR+"n?"}],relevance:0},o={cN:"subst",b:"\\$\\{",e:"\\}",k:n,c:[]},i={b:"html`",e:"",starts:{e:"`",rE:!1,c:[e.BE,o],sL:"xml"}},b={b:"css`",e:"",starts:{e:"`",rE:!1,c:[e.BE,o],sL:"css"}},l={cN:"string",b:"`",e:"`",c:[e.BE,o]};o.c=[e.ASM,e.QSM,i,b,l,s,e.RM];var u=o.c.concat([e.CBCM,e.CLCM]);return{aliases:["js","jsx","mjs","cjs"],k:n,c:[{cN:"meta",relevance:10,b:/^\s*['"]use (strict|asm)['"]/},{cN:"meta",b:/^#!/,e:/$/},e.ASM,e.QSM,i,b,l,e.CLCM,e.C("/\\*\\*","\\*/",{relevance:0,c:[{cN:"doctag",b:"@[A-Za-z]+",c:[{cN:"type",b:"\\{",e:"\\}",relevance:0},{cN:"variable",b:c+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{b:/(?=[^\n])\s/,relevance:0}]}]}),e.CBCM,s,{b:/[{,\n]\s*/,relevance:0,c:[{b:c+"\\s*:",rB:!0,relevance:0,c:[{cN:"attr",b:c,relevance:0}]}]},{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{cN:"function",b:"(\\(.*?\\)|"+c+")\\s*=>",rB:!0,e:"\\s*=>",c:[{cN:"params",v:[{b:c},{b:/\(\s*\)/},{b:/\(/,e:/\)/,eB:!0,eE:!0,k:n,c:u}]}]},{cN:"",b:/\s/,e:/\s*/,skip:!0},{v:[{b:r,e:a},{b:t.b,e:t.e}],sL:"xml",c:[{b:t.b,e:t.e,skip:!0,c:["self"]}]}],relevance:0},{cN:"function",bK:"function",e:/\{/,eE:!0,c:[e.inherit(e.TM,{b:c}),{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,c:u}],i:/\[|%/},{b:/\$[(.]/},e.METHOD_GUARD,{cN:"class",bK:"class",e:/[{;=]/,eE:!0,i:/[:"\[\]]/,c:[{bK:"extends"},e.UTM]},{bK:"constructor get set",e:/\{/,eE:!0}],i:/#(?!!)/}});hljs.registerLanguage("go",function(e){var n={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",literal:"true false iota nil",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{aliases:["golang"],k:n,i:"")+")",c={cN:"keyword",b:"\\b[a-z\\d_]*_t\\b"},s={cN:"string",v:[{b:'(u8?|U|L)?"',e:'"',i:"\\n",c:[e.BE]},{b:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",e:"'",i:"."},{b:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\((?:.|\n)*?\)\1"/}]},n={cN:"number",v:[{b:"\\b(0b[01']+)"},{b:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{b:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},o={cN:"meta",b:/#\s*[a-z]+\b/,e:/$/,k:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},c:[{b:/\\\n/,relevance:0},e.inherit(s,{cN:"meta-string"}),{cN:"meta-string",b:/<.*?>/,e:/$/,i:"\\n"},e.CLCM,e.CBCM]},l={cN:"title",b:t(a)+e.IR,relevance:0},u=t(a)+e.IR+"\\s*\\(",p={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_tshort reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr _Bool complex _Complex imaginary _Imaginary",literal:"true false nullptr NULL"},m=[c,e.CLCM,e.CBCM,n,s],d={v:[{b:/=/,e:/;/},{b:/\(/,e:/\)/},{bK:"new throw return else",e:/;/}],k:p,c:m.concat([{b:/\(/,e:/\)/,k:p,c:m.concat(["self"]),relevance:0}]),relevance:0},b={cN:"function",b:"("+i+"[\\*&\\s]+)+"+u,rB:!0,e:/[{;=]/,eE:!0,k:p,i:/[^\w\s\*&:<>]/,c:[{b:r,k:p,relevance:0},{b:u,rB:!0,c:[l],relevance:0},{cN:"params",b:/\(/,e:/\)/,k:p,relevance:0,c:[e.CLCM,e.CBCM,s,n,c,{b:/\(/,e:/\)/,k:p,relevance:0,c:["self",e.CLCM,e.CBCM,s,n,c]}]},c,e.CLCM,e.CBCM,o]};return{aliases:["c","cc","h","c++","h++","hpp","hh","hxx","cxx"],k:p,i:"",k:p,c:["self",c]},{b:e.IR+"::",k:p},{cN:"class",bK:"class struct",e:/[{;:]/,c:[{b://,c:["self"]},e.TM]}]),exports:{preprocessor:o,strings:s,k:p}}});hljs.registerLanguage("xml",function(e){var c={cN:"symbol",b:"&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;"},s={b:"\\s",c:[{cN:"meta-keyword",b:"#?[a-z_][a-z1-9_-]+",i:"\\n"}]},a=e.inherit(s,{b:"\\(",e:"\\)"}),t=e.inherit(e.ASM,{cN:"meta-string"}),l=e.inherit(e.QSM,{cN:"meta-string"}),r={eW:!0,i:/`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],cI:!0,c:[{cN:"meta",b:"",relevance:10,c:[s,l,t,a,{b:"\\[",e:"\\]",c:[{cN:"meta",b:"",c:[s,a,l,t]}]}]},e.C("\x3c!--","--\x3e",{relevance:10}),{b:"<\\!\\[CDATA\\[",e:"\\]\\]>",relevance:10},c,{cN:"meta",b:/<\?xml/,e:/\?>/,relevance:10},{b:/<\?(php)?/,e:/\?>/,sL:"php",c:[{b:"/\\*",e:"\\*/",skip:!0},{b:'b"',e:'"',skip:!0},{b:"b'",e:"'",skip:!0},e.inherit(e.ASM,{i:null,cN:null,c:null,skip:!0}),e.inherit(e.QSM,{i:null,cN:null,c:null,skip:!0})]},{cN:"tag",b:")",e:">",k:{name:"style"},c:[r],starts:{e:"",rE:!0,sL:["css","xml"]}},{cN:"tag",b:")",e:">",k:{name:"script"},c:[r],starts:{e:"<\/script>",rE:!0,sL:["actionscript","javascript","handlebars","xml"]}},{cN:"tag",b:"",c:[{cN:"name",b:/[^\/><\s]+/,relevance:0},r]}]}});hljs.registerLanguage("markdown",function(e){return{aliases:["md","mkdown","mkd"],c:[{cN:"section",v:[{b:"^#{1,6}",e:"$"},{b:"^.+?\\n[=-]{2,}$"}]},{b:"<",e:">",sL:"xml",relevance:0},{cN:"bullet",b:"^\\s*([*+-]|(\\d+\\.))\\s+"},{cN:"strong",b:"[*_]{2}.+?[*_]{2}"},{cN:"emphasis",v:[{b:"\\*.+?\\*"},{b:"_.+?_",relevance:0}]},{cN:"quote",b:"^>\\s+",e:"$"},{cN:"code",v:[{b:"^```\\w*\\s*$",e:"^```[ ]*$"},{b:"`.+?`"},{b:"^( {4}|\\t)",e:"$",relevance:0}]},{b:"^[-\\*]{3,}",e:"$"},{b:"\\[.+?\\][\\(\\[].*?[\\)\\]]",rB:!0,c:[{cN:"string",b:"\\[",e:"\\]",eB:!0,rE:!0,relevance:0},{cN:"link",b:"\\]\\(",e:"\\)",eB:!0,eE:!0},{cN:"symbol",b:"\\]\\[",e:"\\]",eB:!0,eE:!0}],relevance:10},{b:/^\[[^\n]+\]:/,rB:!0,c:[{cN:"symbol",b:/\[/,e:/\]/,eB:!0,eE:!0},{cN:"link",b:/:\s*/,e:/$/,eB:!0}]}]}});hljs.registerLanguage("python",function(e){var r={keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda async await nonlocal|10",built_in:"Ellipsis NotImplemented",literal:"False None True"},b={cN:"meta",b:/^(>>>|\.\.\.) /},c={cN:"subst",b:/\{/,e:/\}/,k:r,i:/#/},a={b:/\{\{/,relevance:0},l={cN:"string",c:[e.BE],v:[{b:/(u|b)?r?'''/,e:/'''/,c:[e.BE,b],relevance:10},{b:/(u|b)?r?"""/,e:/"""/,c:[e.BE,b],relevance:10},{b:/(fr|rf|f)'''/,e:/'''/,c:[e.BE,b,a,c]},{b:/(fr|rf|f)"""/,e:/"""/,c:[e.BE,b,a,c]},{b:/(u|r|ur)'/,e:/'/,relevance:10},{b:/(u|r|ur)"/,e:/"/,relevance:10},{b:/(b|br)'/,e:/'/},{b:/(b|br)"/,e:/"/},{b:/(fr|rf|f)'/,e:/'/,c:[e.BE,a,c]},{b:/(fr|rf|f)"/,e:/"/,c:[e.BE,a,c]},e.ASM,e.QSM]},n={cN:"number",relevance:0,v:[{b:e.BNR+"[lLjJ]?"},{b:"\\b(0o[0-7]+)[lLjJ]?"},{b:e.CNR+"[lLjJ]?"}]},i={cN:"params",b:/\(/,e:/\)/,c:["self",b,n,l,e.HCM]};return c.c=[l,n,b],{aliases:["py","gyp","ipython"],k:r,i:/(<\/|->|\?)|=>/,c:[b,n,{bK:"if",relevance:0},l,e.HCM,{v:[{cN:"function",bK:"def"},{cN:"class",bK:"class"}],e:/:/,i:/[${=;\n,]/,c:[e.UTM,i,{b:/->/,eW:!0,k:"None"}]},{cN:"meta",b:/^[\t ]*@/,e:/$/},{b:/\b(print|exec)\(/}]}});hljs.registerLanguage("http",function(e){var t="HTTP/[0-9\\.]+";return{aliases:["https"],i:"\\S",c:[{b:"^"+t,e:"$",c:[{cN:"number",b:"\\b\\d{3}\\b"}]},{b:"^[A-Z]+ (.*?) "+t+"$",rB:!0,e:"$",c:[{cN:"string",b:" ",e:" ",eB:!0,eE:!0},{b:t},{cN:"keyword",b:"[A-Z]+"}]},{cN:"attribute",b:"^\\w",e:": ",eE:!0,i:"\\n|\\s|=",starts:{e:"$",relevance:0}},{b:"\\n\\n",starts:{sL:[],eW:!0}}]}});hljs.registerLanguage("sql",function(e){var t=e.C("--","$");return{cI:!0,i:/[<>{}*]/,c:[{bK:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment values with",e:/;/,eW:!0,l:/[\w\.]+/,k:{keyword:"as abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias all allocate allow alter always analyze ancillary and anti any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound bucket buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain explode export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force foreign form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour hours http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lateral lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minutes minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notnull notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second seconds section securefile security seed segment select self semi sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tablesample tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unnest unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace window with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek",literal:"true false null unknown",built_in:"array bigint binary bit blob bool boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text time timestamp tinyint varchar varchar2 varying void"},c:[{cN:"string",b:"'",e:"'",c:[{b:"''"}]},{cN:"string",b:'"',e:'"',c:[{b:'""'}]},{cN:"string",b:"`",e:"`"},e.CNM,e.CBCM,t,e.HCM]},e.CBCM,t,e.HCM]}});hljs.registerLanguage("bash",function(e){var t={cN:"variable",v:[{b:/\$[\w\d#@][\w\d_]*/},{b:/\$\{(.*?)}/}]},a={cN:"string",b:/"/,e:/"/,c:[e.BE,t,{cN:"variable",b:/\$\(/,e:/\)/,c:[e.BE]}]};return{aliases:["sh","zsh"],l:/\b-?[a-z\._]+\b/,k:{keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp",_:"-ne -eq -lt -gt -f -d -e -s -l -a"},c:[{cN:"meta",b:/^#![^\n]+sh\s*$/,relevance:10},{cN:"function",b:/\w[\w\d_]*\s*\(\s*\)\s*\{/,rB:!0,c:[e.inherit(e.TM,{b:/\w[\w\d_]*/})],relevance:0},e.HCM,a,{cN:"",b:/\\"/},{cN:"string",b:/'/,e:/'/},t]}});hljs.registerLanguage("json",function(e){var i={literal:"true false null"},n=[e.CLCM,e.CBCM],c=[e.QSM,e.CNM],r={e:",",eW:!0,eE:!0,c:c,k:i},t={b:"{",e:"}",c:[{cN:"attr",b:/"/,e:/"/,c:[e.BE],i:"\\n"},e.inherit(r,{b:/:/})].concat(n),i:"\\S"},a={b:"\\[",e:"\\]",c:[e.inherit(r)],i:"\\S"};return c.push(t,a),n.forEach(function(e){c.push(e)}),{c:c,k:i,i:"\\S"}});hljs.registerLanguage("rust",function(e){var t="([ui](8|16|32|64|128|size)|f(32|64))?",r="drop i8 i16 i32 i64 i128 isize u8 u16 u32 u64 u128 usize f32 f64 str char bool Box Option Result String Vec Copy Send Sized Sync Drop Fn FnMut FnOnce ToOwned Clone Debug PartialEq PartialOrd Eq Ord AsRef AsMut Into From Default Iterator Extend IntoIterator DoubleEndedIterator ExactSizeIterator SliceConcatExt ToString assert! assert_eq! bitflags! bytes! cfg! col! concat! concat_idents! debug_assert! debug_assert_eq! env! panic! file! format! format_args! include_bin! include_str! line! local_data_key! module_path! option_env! print! println! select! stringify! try! unimplemented! unreachable! vec! write! writeln! macro_rules! assert_ne! debug_assert_ne!";return{aliases:["rs"],k:{keyword:"abstract as async await become box break const continue crate do dyn else enum extern false final fn for if impl in let loop macro match mod move mut override priv pub ref return self Self static struct super trait true try type typeof unsafe unsized use virtual where while yield",literal:"true false Some None Ok Err",built_in:r},l:e.IR+"!?",i:""}]}});hljs.registerLanguage("java",function(e){var a="false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",t={cN:"number",b:"\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?",relevance:0};return{aliases:["jsp"],k:a,i:/<\/|#/,c:[e.C("/\\*\\*","\\*/",{relevance:0,c:[{b:/\w+@/,relevance:0},{cN:"doctag",b:"@[A-Za-z]+"}]}),e.CLCM,e.CBCM,e.ASM,e.QSM,{cN:"class",bK:"class interface",e:/[{;=]/,eE:!0,k:"class interface",i:/[:"\[\]]/,c:[{bK:"extends implements"},e.UTM]},{bK:"new throw return else",relevance:0},{cN:"function",b:"([À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*(<[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*(\\s*,\\s*[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*)*>)?\\s+)+"+e.UIR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:a,c:[{b:e.UIR+"\\s*\\(",rB:!0,relevance:0,c:[e.UTM]},{cN:"params",b:/\(/,e:/\)/,k:a,relevance:0,c:[e.ASM,e.QSM,e.CNM,e.CBCM]},e.CLCM,e.CBCM]},t,{cN:"meta",b:"@[A-Za-z]+"}]}});hljs.registerLanguage("makefile",function(e){var i={cN:"variable",v:[{b:"\\$\\("+e.UIR+"\\)",c:[e.BE]},{b:/\$[@%/,e:/$/,i:"\\n"},e.CLCM,e.CBCM]},{cN:"class",b:"("+i.split(" ").join("|")+")\\b",e:"({|$)",eE:!0,k:i,l:t,c:[e.UTM]},{b:"\\."+e.UIR,relevance:0}]}});hljs.registerLanguage("shell",function(s){return{aliases:["console"],c:[{cN:"meta",b:"^\\s{0,3}[/\\w\\d\\[\\]()@-]*[>%$#]",starts:{e:"$",sL:"bash"}}]}});hljs.registerLanguage("typescript",function(e){var r="[A-Za-z$_][0-9A-Za-z$_]*",t={keyword:"in if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const class public private protected get set super static implements enum export import declare type namespace abstract as from extends async await",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document any number boolean string void Promise"},n={cN:"meta",b:"@"+r},a={b:"\\(",e:/\)/,k:t,c:["self",e.QSM,e.ASM,e.NM]},c={cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,k:t,c:[e.CLCM,e.CBCM,n,a]},s={cN:"number",v:[{b:"\\b(0[bB][01]+)n?"},{b:"\\b(0[oO][0-7]+)n?"},{b:e.CNR+"n?"}],relevance:0},o={cN:"subst",b:"\\$\\{",e:"\\}",k:t,c:[]},i={b:"html`",e:"",starts:{e:"`",rE:!1,c:[e.BE,o],sL:"xml"}},l={b:"css`",e:"",starts:{e:"`",rE:!1,c:[e.BE,o],sL:"css"}},b={cN:"string",b:"`",e:"`",c:[e.BE,o]};return o.c=[e.ASM,e.QSM,i,l,b,s,e.RM],{aliases:["ts"],k:t,c:[{cN:"meta",b:/^\s*['"]use strict['"]/},e.ASM,e.QSM,i,l,b,e.CLCM,e.CBCM,s,{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{cN:"function",b:"(\\(.*?\\)|"+e.IR+")\\s*=>",rB:!0,e:"\\s*=>",c:[{cN:"params",v:[{b:e.IR},{b:/\(\s*\)/},{b:/\(/,e:/\)/,eB:!0,eE:!0,k:t,c:["self",e.CLCM,e.CBCM]}]}]}],relevance:0},{cN:"function",bK:"function",e:/[\{;]/,eE:!0,k:t,c:["self",e.inherit(e.TM,{b:r}),c],i:/%/,relevance:0},{bK:"constructor",e:/[\{;]/,eE:!0,c:["self",c]},{b:/module\./,k:{built_in:"module"},relevance:0},{bK:"module",e:/\{/,eE:!0},{bK:"interface",e:/\{/,eE:!0,k:"interface extends"},{b:/\$[(.]/},{b:"\\."+e.IR,relevance:0},n,a]}});hljs.registerLanguage("php",function(e){var c={b:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"},i={cN:"meta",b:/<\?(php)?|\?>/},t={cN:"string",c:[e.BE,i],v:[{b:'b"',e:'"'},{b:"b'",e:"'"},e.inherit(e.ASM,{i:null}),e.inherit(e.QSM,{i:null})]},a={v:[e.BNM,e.CNM]};return{aliases:["php","php3","php4","php5","php6","php7"],cI:!0,k:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally",c:[e.HCM,e.C("//","$",{c:[i]}),e.C("/\\*","\\*/",{c:[{cN:"doctag",b:"@[A-Za-z]+"}]}),e.C("__halt_compiler.+?;",!1,{eW:!0,k:"__halt_compiler",l:e.UIR}),{cN:"string",b:/<<<['"]?\w+['"]?$/,e:/^\w+;?$/,c:[e.BE,{cN:"subst",v:[{b:/\$\w+/},{b:/\{\$/,e:/\}/}]}]},i,{cN:"keyword",b:/\$this\b/},c,{b:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{cN:"function",bK:"function",e:/[;{]/,eE:!0,i:"\\$|\\[|%",c:[e.UTM,{cN:"params",b:"\\(",e:"\\)",c:["self",c,e.CBCM,t,a]}]},{cN:"class",bK:"class interface",e:"{",eE:!0,i:/[:\(\$"]/,c:[{bK:"extends implements"},e.UTM]},{bK:"namespace",e:";",i:/[\.']/,c:[e.UTM]},{bK:"use",e:";",c:[e.UTM]},{b:"=>"},t,a]}});hljs.registerLanguage("css",function(e){var c={b:/(?:[A-Z\_\.\-]+|--[a-zA-Z0-9_-]+)\s*:/,rB:!0,e:";",eW:!0,c:[{cN:"attribute",b:/\S/,e:":",eE:!0,starts:{eW:!0,eE:!0,c:[{b:/[\w-]+\(/,rB:!0,c:[{cN:"built_in",b:/[\w-]+/},{b:/\(/,e:/\)/,c:[e.ASM,e.QSM,e.CSSNM]}]},e.CSSNM,e.QSM,e.ASM,e.CBCM,{cN:"number",b:"#[0-9A-Fa-f]+"},{cN:"meta",b:"!important"}]}}]};return{cI:!0,i:/[=\/|'\$]/,c:[e.CBCM,{cN:"selector-id",b:/#[A-Za-z0-9_-]+/},{cN:"selector-class",b:/\.[A-Za-z0-9_-]+/},{cN:"selector-attr",b:/\[/,e:/\]/,i:"$",c:[e.ASM,e.QSM]},{cN:"selector-pseudo",b:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{b:"@(page|font-face)",l:"@[a-z-]+",k:"@page @font-face"},{b:"@",e:"[{;]",i:/:/,rB:!0,c:[{cN:"keyword",b:/@\-?\w[\w]*(\-\w+)*/},{b:/\s/,eW:!0,eE:!0,relevance:0,k:"and or not only",c:[{b:/[a-z-]+:/,cN:"attribute"},e.ASM,e.QSM,e.CSSNM]}]},{cN:"selector-tag",b:"[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},{b:"{",e:"}",i:/\S/,c:[e.CBCM,c]}]}}); -------------------------------------------------------------------------------- /source/stylus/_background.styl: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | .al_index_background { 4 | z-index: 10; 5 | 6 | background-color: $theme_color; 7 | } 8 | 9 | .al_index_background_letter { 10 | font-size: 600px; 11 | height: 770px; 12 | z-index: 11; 13 | cursor: default; 14 | } 15 | 16 | .al_index_background_bio { 17 | color: white; 18 | text-transform: uppercase; 19 | text-align: center; 20 | } 21 | 22 | .al_index_background h2 { 23 | font-size: 48px; 24 | position: relative; 25 | z-index: 12; 26 | transition: all .4s cubic-bezier(.25, .8, .25, 1); 27 | cursor: default; 28 | 29 | &:hover { 30 | text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /source/stylus/_container.styl: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | .al_fake_background { 4 | background-color: $fake_background_color; 5 | top: 100px; 6 | width: 100%; 7 | bottom: 0; 8 | } 9 | 10 | .al_main_container { 11 | position: relative; 12 | background-color: $background_color; 13 | color: #444; 14 | padding: 100px 30px; 15 | } 16 | 17 | .al_post_nav { 18 | justify-content: space-between; 19 | margin-top: 50px; 20 | 21 | .al_post_nav_item { 22 | padding: 12px 0; 23 | max-width 180px; 24 | cursor: pointer; 25 | 26 | &:hover { 27 | fill: $theme_color; 28 | color: $theme_color; 29 | } 30 | 31 | color: $list_title_color; 32 | } 33 | 34 | .al_arrow { 35 | width: 10px; 36 | height 10px 37 | margin: 0 10px; 38 | display: inline-block; 39 | flex-shrink: 0; 40 | } 41 | 42 | .icon { 43 | width: 50px; 44 | height 50px; 45 | margin: 0 10px; 46 | border-radius: 25px; 47 | } 48 | } 49 | 50 | @media screen and (max-width: 768px) { 51 | .al_main_container { 52 | margin: 0; 53 | } 54 | } 55 | 56 | @media screen and (min-width: 769px) and (max-width: 1199px) { 57 | .al_main_container { 58 | margin: 0 35px; 59 | } 60 | } 61 | 62 | @media screen and (min-width: 1200px) { 63 | .al_main_container { 64 | padding: 100px 50px; 65 | max-width: 1000px; 66 | margin: 0 auto; 67 | } 68 | } -------------------------------------------------------------------------------- /source/stylus/_darkTheme.styl: -------------------------------------------------------------------------------- 1 | @media (prefers-color-scheme: dark) { 2 | .al_main_container, .al_sidebar_cnt { 3 | color: #ccc; 4 | } 5 | 6 | .al_fake_background, .al_index_footer { 7 | background-color: $dark_fake_background_color; 8 | } 9 | 10 | .al_main_container, .al_sidebar_author_cnt { 11 | background-color: $dark_background_color; 12 | } 13 | 14 | .al_index_post_title a { 15 | color: $dark_list_title_color; 16 | } 17 | 18 | .al_index_post_excerpt { 19 | color: $dark_list_desc_color; 20 | } 21 | 22 | .al_letter { 23 | color: rgba(255, 255, 255, 0.1); 24 | } 25 | 26 | .al_main_page_container { 27 | code:not(.hljs) { 28 | background-color: #333; 29 | } 30 | } 31 | 32 | #post-body > table { 33 | tr:nth-child(2n) { 34 | background-color: #09070e; 35 | } 36 | 37 | th, td { 38 | border: 1px solid #888; 39 | } 40 | } 41 | 42 | .al_post_nav .al_post_nav_item { 43 | color: $dark_list_title_color; 44 | fill: $dark_list_title_color 45 | 46 | &:hover { 47 | fill: $theme_color; 48 | color: $theme_color; 49 | } 50 | } 51 | 52 | // gitalk 53 | .gt-comment-content { 54 | background-color: #090601 !important; 55 | 56 | &:hover { 57 | box-shadow: 0 0.625em 3.75em 0 #0b0b0b !important; 58 | } 59 | } 60 | 61 | .gt-container .gt-comment-body { 62 | color: #ccc !important; 63 | } 64 | } -------------------------------------------------------------------------------- /source/stylus/_font.styl: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: Josefin Sans; 3 | src: url("/assets/JosefinSans-Regular.ttf"); 4 | font-weight: normal; 5 | font-style: normal; 6 | } 7 | 8 | h1, h2, h3 { 9 | font-family: "AvenirNext-Medium"; 10 | } 11 | 12 | h1 { 13 | font-size: 44px; 14 | } 15 | 16 | h2 { 17 | font-size: 32px; 18 | margin-top: 50px; 19 | } 20 | 21 | h3 { 22 | font-size: 22px; 23 | } 24 | 25 | h4, span, div { 26 | font-family: "AvenirNext-Regular"; 27 | } 28 | 29 | b, strong { 30 | font-family: "AvenirNext-Bold" 31 | } 32 | 33 | i, em { 34 | font-family: "AvenirNext-Italic" 35 | } 36 | -------------------------------------------------------------------------------- /source/stylus/_global.styl: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | } 4 | 5 | body.al_no_scroll { 6 | overflow: hidden; 7 | } 8 | 9 | a { 10 | text-decoration: none; 11 | } 12 | 13 | .dis_flex { 14 | display: flex; 15 | } 16 | 17 | .dis_flex_jcenter { 18 | display: flex; 19 | justify-content: center; 20 | } 21 | 22 | .dis_flex_acenter { 23 | display: flex; 24 | align-items: center; 25 | } 26 | 27 | .dis_flex_center { 28 | display: flex; 29 | justify-content: center; 30 | align-items: center; 31 | } 32 | 33 | .al_pos_ab { 34 | position: absolute; 35 | } 36 | 37 | .al_pos_fixed { 38 | position: fixed; 39 | } 40 | 41 | .al_full_cover { 42 | position: fixed; 43 | top: 0; 44 | bottom: 0; 45 | left: 0; 46 | right: 0; 47 | } 48 | 49 | .al_button { 50 | text-align: center; 51 | font-size: 11px; 52 | padding: 0 20px; 53 | height: 40px; 54 | line-height: 40px; 55 | &:hover { 56 | box-shadow: rgba(1, 1, 1, 0.1) 0px 10px 20px; 57 | } 58 | } 59 | 60 | .al_button_theme { 61 | color: white; 62 | background: $theme_color; 63 | border: 1px solid $theme_color; 64 | } 65 | 66 | .al_button_transparent { 67 | color: $theme_color; 68 | border: 1px solid $theme_color; 69 | } 70 | 71 | .al_letter { 72 | text-transform: uppercase; 73 | color: rgba(0,0,0,0.1); 74 | font-size: 190px; 75 | font-weight: 600; 76 | display: block; 77 | pointer-events: none; 78 | } 79 | 80 | .al_shadow { 81 | box-shadow: rgba(1, 1, 1, 0.1) 0px 10px 20px; 82 | } 83 | 84 | .al_text_ellipsis { 85 | overflow: hidden; 86 | white-space:nowrap; 87 | text-overflow: ellipsis; 88 | } -------------------------------------------------------------------------------- /source/stylus/_header.styl: -------------------------------------------------------------------------------- 1 | .al_header { 2 | top: 0; 3 | width: 100%; 4 | height: 80px; 5 | z-index: 20; 6 | } 7 | 8 | .al_svg_symbol { 9 | display: none; 10 | } 11 | 12 | .al_header_site_title { 13 | font-size: 1.5em; 14 | font-weight: bold; 15 | } 16 | 17 | .al_header_container { 18 | height: 100%; 19 | align-items: center; 20 | justify-content: space-between; 21 | padding: 0 20px; 22 | } 23 | 24 | .al_header_container a { 25 | color: white; 26 | padding: 0 15px; 27 | } 28 | 29 | .al_header_setting { 30 | width: 38px; 31 | height: 38px; 32 | padding: 10px 12px; 33 | 34 | &:hover { 35 | background-color: rgba(255, 255, 255, 0.1); 36 | } 37 | } 38 | 39 | .al_header_icon { 40 | width: 14px; 41 | height: 14px; 42 | fill: white; 43 | pointer-events: none; 44 | } -------------------------------------------------------------------------------- /source/stylus/_lightbox.styl: -------------------------------------------------------------------------------- 1 | .al_lightbox_cnt { 2 | display: none; 3 | overflow: hidden; 4 | background: #000; 5 | z-index: 30; 6 | cursor: zoom-out; 7 | } 8 | 9 | .al_lightbox_cnt_Active { 10 | display: flex; 11 | } 12 | 13 | .al_lightbox_img { 14 | width: auto; 15 | height: auto; 16 | max-width: 100%; 17 | max-height: 100%; 18 | } -------------------------------------------------------------------------------- /source/stylus/_page.styl: -------------------------------------------------------------------------------- 1 | .al_page_background { 2 | background-color: $theme_color; 3 | z-index: 10; 4 | } 5 | 6 | .al_page_container { 7 | z-index: 20; 8 | position: relative; 9 | min-height: 100vh; 10 | margin-top: 90px; 11 | } 12 | 13 | .al_main_page_container { 14 | font-size: 15px; 15 | 16 | img, video { 17 | max-width: 100%; 18 | height: auto; 19 | border: none; 20 | display: block; 21 | margin: auto; 22 | cursor: zoom-in; 23 | } 24 | 25 | a { 26 | color: $theme_color; 27 | } 28 | 29 | q, blockquote { 30 | quotes: none; 31 | 32 | &::before, &::after { 33 | content: ""; 34 | content: none 35 | } 36 | } 37 | 38 | p, figure { 39 | margin-bottom: 1.57143em; 40 | hyphens: auto; 41 | line-height: 25px; 42 | } 43 | 44 | figure { 45 | margin-left: 0; 46 | margin-right: 0; 47 | span { 48 | word-wrap: break-word; 49 | word-break: break-all; 50 | } 51 | } 52 | 53 | hr { 54 | height: 1px; 55 | border: 0; 56 | background-color: #dedede; 57 | margin: -1px auto 1.57143em auto 58 | } 59 | } 60 | 61 | .al_page_title { 62 | margin: 0; 63 | } 64 | 65 | .al_page_info { 66 | color: #888; 67 | margin: 20px 0; 68 | } 69 | 70 | .al_page_content_info { 71 | margin-right: 15px; 72 | font-size: 13px; 73 | color: #888; 74 | 75 | &:not(:last-of-type) { 76 | &::after { 77 | content: "/"; 78 | right: -7px; 79 | position: relative; 80 | } 81 | } 82 | } 83 | 84 | .al_disqus { 85 | margin-top: 100px; 86 | } 87 | 88 | .al_post_nav_desc { 89 | -webkit-line-clamp: 2; 90 | display: -webkit-box; 91 | -webkit-box-orient: vertical; 92 | white-space: normal; 93 | } 94 | -------------------------------------------------------------------------------- /source/stylus/_pageContent.styl: -------------------------------------------------------------------------------- 1 | 2 | 3 | // ol,ul { 4 | // list-style: none 5 | // } 6 | 7 | .al_article { 8 | max-width: 720px; 9 | margin: 0 auto; 10 | } 11 | 12 | article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary { 13 | display: block 14 | } 15 | 16 | * { 17 | box-sizing: border-box 18 | } 19 | 20 | u { 21 | text-decoration: none; 22 | background-image: linear-gradient(to bottom, rgba(0,0,0,0) 50%, $theme_color_light 50%); 23 | background-repeat: repeat-x; 24 | background-size: 2px 2px; 25 | background-position: 0 1.05em 26 | } 27 | 28 | s { 29 | color: #878787 30 | } 31 | 32 | p { 33 | margin-bottom: 0.1em 34 | } 35 | 36 | hr { 37 | margin-bottom: 0.7em; 38 | margin-top: 0.7em 39 | } 40 | 41 | blockquote { 42 | display: block; 43 | margin-left: -1em; 44 | padding-left: 0.8em; 45 | border-left: 0.2em solid $theme_color_light; 46 | } 47 | 48 | .arrow svg #rod { 49 | stroke: #545454 50 | } 51 | 52 | .arrow svg #point { 53 | fill: #545454 54 | } 55 | 56 | mark { 57 | color: inherit; 58 | display: inline; 59 | padding: 0.2em 0.5em; 60 | background-color: #fcffc0 61 | } 62 | 63 | figure.highlight { 64 | overflow: hidden; 65 | overflow-x: auto; 66 | background: #282a36; 67 | padding: 10px; 68 | font-size: 14px; 69 | color: #ccc; 70 | 71 | pre { 72 | margin: 0; 73 | } 74 | 75 | td { 76 | border: none; 77 | padding: 0; 78 | } 79 | 80 | td.gutter { 81 | text-align: right; 82 | 83 | pre { 84 | padding-right: 15px; 85 | } 86 | } 87 | } 88 | 89 | code:not(.hljs) { 90 | font-family: "Menlo-Regular"; 91 | border: solid 1px #dedede; 92 | padding: 0.2em 0.5em; 93 | font-size: 0.9em 94 | } 95 | 96 | #post-body > table { 97 | border-collapse: collapse; 98 | border-spacing: 0; 99 | width: 100%; 100 | display: block; 101 | line-height: 1.5; 102 | 103 | th, td { 104 | padding: 6px 13px; 105 | border: 1px solid #dfe2e5; 106 | } 107 | 108 | tr:nth-child(2n) { 109 | background-color: #f6f8fa; 110 | } 111 | } 112 | 113 | #post-body > ul, #post-body > ol { 114 | padding-inline-start: 0px; 115 | 116 | li { 117 | margin-bottom: 5px; 118 | } 119 | 120 | p { 121 | display: inline; 122 | } 123 | } 124 | 125 | #post-body > ul { 126 | list-style: none; 127 | 128 | li { 129 | &::before { 130 | content: "•"; 131 | color: $theme_color; 132 | display: inline-block; 133 | margin-right: 10px; 134 | } 135 | text-indent: -0.7em; 136 | } 137 | } 138 | 139 | ol { 140 | counter-reset: ol 0; 141 | li { 142 | display: block; 143 | text-indent: -1.45em; 144 | 145 | &::before { 146 | content: counter(ol) "."; 147 | counter-increment: ol; 148 | color: $theme_color; 149 | text-align: right; 150 | display: inline-block; 151 | min-width: 1em; 152 | margin-right: 0.5em; 153 | } 154 | } 155 | } 156 | -------------------------------------------------------------------------------- /source/stylus/_pageOutline.styl: -------------------------------------------------------------------------------- 1 | .al_page_content_outline { 2 | line-height: 20px; 3 | font-size: .7em; 4 | word-wrap: break-word; 5 | padding: 8px 16px; 6 | margin: 0 0 25px 0; 7 | display: block; 8 | color: #808080; 9 | border: none; 10 | box-shadow: inset 0 0 0 1px #E4EBF2; 11 | border-radius: 4px; 12 | overflow: hidden; 13 | 14 | .toc, .toc-child { 15 | padding: 0; 16 | } 17 | 18 | li { 19 | list-style-position: outside; 20 | margin-left: 1.5em; 21 | } 22 | 23 | .toc-link { 24 | color: #888; 25 | } 26 | } -------------------------------------------------------------------------------- /source/stylus/_postList.styl: -------------------------------------------------------------------------------- 1 | .al_index_container { 2 | margin-top: calc(100vh - 120px); 3 | position: relative; 4 | z-index: 100; 5 | min-height: 100vh; 6 | } 7 | 8 | .al_section_container { 9 | height: 55px; 10 | font-size: 15px; 11 | .section_header { 12 | color: #6e6e6e; 13 | font-size: 15px; 14 | line-height: 15px; 15 | } 16 | } 17 | 18 | .al_index_page_seperator { 19 | &::after { 20 | content: ""; 21 | height: 1px; 22 | width: 50px; 23 | position: absolute; 24 | bottom: 0; 25 | left: 50%; 26 | margin-left: -25px; 27 | background: rgba(51, 51, 51, 0.2); 28 | } 29 | } 30 | 31 | .al_index_pageList_item { 32 | position: relative; 33 | list-style-type: none; 34 | padding: 80px 20px; 35 | } 36 | 37 | .al_index_post_title_cnt { 38 | flex-direction: column; 39 | } 40 | 41 | .al_index_post_title_letter { 42 | left: -34px; 43 | line-height: 190px; 44 | top: 30px; 45 | } 46 | 47 | .al_index_post_title { 48 | text-transform: uppercase; 49 | font-size: 48px; 50 | margin: 0; 51 | padding: 10px 0; 52 | 53 | a { 54 | display: block; 55 | color: $list_title_color; 56 | word-wrap: break-word; 57 | } 58 | 59 | a:hover { 60 | color: $theme_color; 61 | } 62 | } 63 | 64 | .al_index_post_button { 65 | width: calc(50% - 15px); 66 | max-width: 160px; 67 | min-width: 110px; 68 | margin-right: 15px; 69 | } 70 | 71 | .al_index_post_extra { 72 | margin: 8px 0 26px 0; 73 | color: #888; 74 | font-size: 13px; 75 | } 76 | 77 | .al_index_post_extra_item { 78 | margin-right: 15px; 79 | &:not(:last-child)::after { 80 | content: "/"; 81 | right: -7px; 82 | position: relative; 83 | } 84 | } 85 | 86 | .al_index_post_excerpt_cnt { 87 | margin-bottom: 30px; 88 | } 89 | 90 | .al_index_post_excerpt { 91 | color: $list_desc_color; 92 | line-height: 30px; 93 | } 94 | 95 | .al_index_footer { 96 | color: #aaa; 97 | font-size: 14px; 98 | height: 235px; 99 | flex-direction: column; 100 | position: relative; 101 | background-color: $fake_background_color; 102 | z-index: 11; 103 | 104 | a { 105 | color: $theme_color; 106 | } 107 | } 108 | 109 | .al_index_footer_item { 110 | margin-bottom: 10px; 111 | } 112 | 113 | .al_index_footer_title { 114 | font-size: 26px; 115 | margin-bottom: 20px; 116 | font-weight: 600; 117 | } 118 | 119 | .al_post_list { 120 | padding: 0; 121 | } 122 | 123 | @media screen and (max-width: 768px) { 124 | .al_index_post_title_letter { 125 | display: none; 126 | } 127 | 128 | .al_index_container { 129 | margin-top: 100vh; 130 | } 131 | 132 | .al_section_container { 133 | height: 25px; 134 | } 135 | 136 | .al_index_pageList_item { 137 | padding: 80px 0; 138 | } 139 | } 140 | -------------------------------------------------------------------------------- /source/stylus/_sidebar.styl: -------------------------------------------------------------------------------- 1 | 2 | .al_sidebar_cnt { 3 | transition: all .4s cubic-bezier(.25, .8, .25, 1); 4 | top: 0; 5 | right: -400px; 6 | width: 400px; 7 | bottom: 0; 8 | z-index: 1001; 9 | background-color: $theme_color; 10 | } 11 | 12 | .al_sidebar_author_cnt { 13 | background-color: $background_color; 14 | } 15 | 16 | .al_sidebar_overlay { 17 | display: none; 18 | transition: all .4s cubic-bezier(.25, .8, .25, 1); 19 | z-index: 1000; 20 | background-color: black; 21 | opacity: 0.5; 22 | } 23 | 24 | .al_sidebar_header { 25 | height: 80px; 26 | padding: 0 38px 0 50px; 27 | justify-content: space-between; 28 | 29 | h3 { 30 | color: white; 31 | font-size: 24px; 32 | } 33 | } 34 | 35 | .al_sidebar_author_cnt { 36 | height: calc(100% - 80px); 37 | padding: 50px; 38 | 39 | h4 { 40 | font-size: 24px; 41 | margin: 0; 42 | margin-bottom: 24px; 43 | } 44 | 45 | p { 46 | font-size: 14px; 47 | line-height: 26px; 48 | } 49 | 50 | img { 51 | float: left; 52 | width: 90px; 53 | height: 90px; 54 | border-radius: 50%; 55 | margin-right: 14px; 56 | } 57 | } 58 | 59 | .al_sidebar_Active { 60 | .al_sidebar_overlay { 61 | display: block; 62 | } 63 | 64 | .al_sidebar_cnt { 65 | right: 0; 66 | } 67 | } 68 | 69 | .al_sidebar_contact_info { 70 | margin-top: 50px; 71 | } 72 | 73 | .al_sidebar_social_widget { 74 | margin-top: 24px; 75 | } 76 | 77 | .al_social_icon_cnt { 78 | &:hover { 79 | opacity: 0.5; 80 | cursor: pointer; 81 | } 82 | #facebook { 83 | fill: #3b5c95; 84 | } 85 | #twitter{ 86 | fill: #00aaf0; 87 | } 88 | #instagram { 89 | fill: #cb3c9f; 90 | } 91 | #weibo{ 92 | fill: #d2292b; 93 | } 94 | margin: 5px; 95 | } 96 | 97 | .al_social_icon { 98 | pointer-events: none; 99 | width: 46px; 100 | height: 46px; 101 | } 102 | 103 | @media screen and (max-width: 768px) { 104 | .al_sidebar_cnt { 105 | width: 100%; 106 | right: -100%; 107 | } 108 | } 109 | -------------------------------------------------------------------------------- /source/stylus/_var.styl: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | // This is the MAIN THEME COLOR. 4 | $theme_color = #be223a; 5 | $theme_color_light = #e06e73; 6 | 7 | // Light mode color set. 8 | 9 | $fake_background_color = #f8f8f8; 10 | 11 | $background_color = white; 12 | 13 | $list_title_color = #444; 14 | 15 | $list_desc_color = #555; 16 | 17 | // Dark mode color set. 18 | 19 | $dark_fake_background_color = black; 20 | 21 | $dark_background_color = #232323; 22 | 23 | $dark_list_title_color = #bbb; 24 | 25 | $dark_list_desc_color = #aaa; 26 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | import './util/jquery_polyfill.ts' 2 | 3 | var $ = window.$ 4 | 5 | window.$('.al_header_setting').click(event => { 6 | $('.al_sidebar').addClass('al_sidebar_Active') 7 | $('body').addClass('al_no_scroll') 8 | }) 9 | 10 | $('.al_sidebar_close,.al_sidebar_overlay').click(event => { 11 | $('.al_sidebar').removeClass('al_sidebar_Active') 12 | $('body').removeClass('al_no_scroll') 13 | event.stopPropagation() 14 | }) 15 | 16 | $('.al_social_icon_cnt').click(event => { 17 | window.open($(event.target as Element).attr('data_link')) 18 | }) 19 | 20 | $('.al_lightbox_cnt').click((event) => { 21 | $('.al_lightbox_cnt').removeClass('al_lightbox_cnt_Active') 22 | $('body').removeClass('al_no_scroll') 23 | event.stopPropagation() 24 | }) 25 | 26 | $('#post-body img').click(((event) => { 27 | const imageDOM = event.target as HTMLImageElement 28 | if (!imageDOM) { 29 | return 30 | } 31 | $('.al_lightbox_cnt').addClass('al_lightbox_cnt_Active') 32 | $('body').addClass('al_no_scroll') 33 | $('.al_lightbox_img').attr('src', imageDOM.getAttribute('src')) 34 | })) -------------------------------------------------------------------------------- /src/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "sourceMap": true 4 | } 5 | } -------------------------------------------------------------------------------- /src/util/jquery_polyfill.ts: -------------------------------------------------------------------------------- 1 | class JQueryObject { 2 | 3 | nodes: Element[] 4 | 5 | constructor(nodes: Element[]) { 6 | this.nodes = nodes 7 | } 8 | 9 | click = (callback: (event: MouseEvent) => void) => { 10 | for(let index = 0; index < this.nodes.length; index++) { 11 | this.nodes[index].addEventListener('click', callback) 12 | } 13 | return this 14 | } 15 | 16 | addClass = (... classNames: string[]) => { 17 | for (const className of classNames) { 18 | this.nodes.forEach(node => { 19 | node.classList.add(className) 20 | }) 21 | } 22 | return this; 23 | } 24 | 25 | removeClass = (className: string) => { 26 | for(let index = 0; index < this.nodes.length; index++) { 27 | this.nodes[index].classList.remove(className) 28 | } 29 | return this 30 | } 31 | 32 | attr = (attributeName: string, newValue?: string) => { 33 | if (!newValue) { 34 | return this.nodes[0].getAttribute(attributeName) 35 | } else { 36 | this.nodes[0].setAttribute(attributeName, newValue) 37 | return newValue 38 | } 39 | } 40 | } 41 | 42 | interface Window { 43 | $: (querySelector: string | Element) => JQueryObject; 44 | } 45 | 46 | window.$ = function(queryObject: string | Element) { 47 | if (typeof queryObject === 'string') { 48 | const nodes: Element[] = [] 49 | document.querySelectorAll(queryObject).forEach((element) => { 50 | nodes.push(element) 51 | }) 52 | const object = new JQueryObject(nodes) 53 | return object 54 | } else { 55 | const object = new JQueryObject([queryObject]) 56 | return object 57 | } 58 | } -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | 3 | var config = { 4 | mode: "development", 5 | entry: "./src/index.ts", 6 | output: { 7 | path: path.resolve(__dirname, "source/javascripts"), 8 | filename: "acelog.js", 9 | }, 10 | module: { 11 | rules: [{ 12 | test: /\.tsx?$/, 13 | loader: "ts-loader" 14 | }] 15 | } 16 | } 17 | 18 | module.exports = (env, argv) => { 19 | if (argv.mode !== 'production') { 20 | config.devtool = 'source-map'; 21 | } 22 | return config 23 | } --------------------------------------------------------------------------------