├── .github └── workflows │ └── main.yml ├── .gitignore ├── LICENSE ├── README-zh.md ├── README.md ├── archetypes └── default.md ├── exampleSite ├── config.toml ├── content │ ├── about │ │ └── index.md │ └── posts │ │ ├── chinese-preview.md │ │ ├── english-preview.md │ │ ├── japanese-preview.md │ │ └── theme-preview.md ├── netlify.toml └── static │ └── 100.jpg ├── i18n ├── en.yaml └── zh-cn.yaml ├── images ├── screenshot.png ├── showcase.png └── tn.png ├── layouts ├── 404.html ├── _default │ ├── list.html │ ├── single.html │ └── terms.html ├── index.html ├── partials │ ├── comments.html │ ├── footer.html │ ├── head.html │ ├── header.html │ ├── js.html │ ├── mathjax.html │ ├── nav.html │ └── post.html └── shortcodes │ └── img.html ├── static ├── css │ ├── animate.min.css │ ├── comments.css │ ├── fancybox.min.css │ ├── highlight.css │ ├── normalize.css │ └── zozo.css ├── images │ └── favicon.ico └── js │ ├── fancybox.min.js │ ├── jquery-3.5.1.min.js │ └── zozo.js └── theme.toml /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: ci 2 | on: 3 | schedule: 4 | - cron: "*/60 * * * *" 5 | 6 | jobs: 7 | autogreen: 8 | runs-on: ubuntu-latest 9 | steps: 10 | - name: Clone repository 11 | uses: actions/checkout@v3 12 | 13 | - name: Auto green 14 | run: | 15 | git config --local user.email "zk@varkai.com" 16 | git config --local user.name "varkai" 17 | git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} 18 | git pull --rebase 19 | git commit --allow-empty -m "a commit a day keeps your girlfriend away" 20 | git push 21 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Hugo default output directory 2 | /public 3 | 4 | ## OS Files 5 | # Windows 6 | Thumbs.db 7 | Desktop.ini 8 | $RECYCLE.BIN/ 9 | 10 | # OSX 11 | .DS_Store 12 | *.map 13 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2019 varkai 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | 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, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /README-zh.md: -------------------------------------------------------------------------------- 1 | # Hugo Theme Zozo 2 | 3 | [![GitHub](https://img.shields.io/github/license/imzeuk/hugo-theme-zozo.svg?color=4664DA&style=flat-square)](https://github.com/varkai/hugo-theme-zozo/blob/master/LICENSE) 4 | 5 | > 该主题移植自 [Aragaki](https://github.com/PCDotFan/Aragaki),结构样式参考自 [菩提树下](https://blog.caicai.me/),部分功能参考自 [Even](https://github.com/olOwOlo/hugo-theme-even) 6 | 7 | **在线预览**:[Demo](https://zozo.varkai.com) 8 | 9 | ## 截图 10 | 11 | ![zozo](./images/showcase.png) 12 | 13 | ## 安装 14 | 15 | 首先进入 hugo 的站点目录运行下面的命令: 16 | 17 | ```bash 18 | $ git clone https://github.com/varkai/hugo-theme-zozo themes/zozo 19 | ``` 20 | 21 | 本主题提供了一个示例配置文件是 [`exampleSite`](./exampleSite) 目录里的 [`config.toml`](./exampleSite/config.toml) 文件。 22 | 23 | 配置文件中对大部分配置都有详细的注释说明,复制该文件到站点目录下,根据自己的情况修改即可。 24 | 25 | 更多安装信息查看 Hugo 官方文档 [setup guide](https://gohugo.io/overview/installing/)。 26 | 27 | ## 示例站点 28 | 29 | `exampleSite` 是本主题的一个示例站点,里面有配置文件、关于页面的一些示例。 30 | 31 | ## 关于页面 32 | 33 | 使用关于页面,首先要在你的站点目录的 [`content`](./exampleSite/content/) 目录下创建一个 [`about`](./exampleSite/content/about/) 目录,然后再创建一个 [`index.md`](./exampleSite/content/about/index.md) 文件,最后编写该文件即可。 34 | 35 | ## Shortcodes 36 | 37 | 主题提供了 `img` shortcode. 38 | 39 | ```markdown 40 | {{< img src="path/to/xxx.png" >}} 41 | ``` 42 | 43 | ## Math 公式 44 | 45 | 本主题支持 MathJax 数学公式,默认为关闭状态,如需使用,需要在 [`config.toml`](./exampleSite/config.toml) 中进行设置。 46 | 47 | 设置 `[params]` 下的 `mathjax = true` 来支持数学公式。 48 | 49 | ## Valine 评论 50 | 51 | 本主题提供了 Valine 评论系统,默认为关闭状态,如需使用,需要在 [`config.toml`](./exampleSite/config.toml) 中进行设置。 52 | 53 | 设置 `[params.valine]` 下的 `enable = true` 来开启评论系统,并将 `appId` 和 `appKey` 设置为你自己的。 54 | 55 | 56 | ## 社交链接 57 | 58 | 本主题的社交链接是字体图标的样式,并放置在了页面头部。你可以通过在 [`config.toml`](./exampleSite/config.toml) 的 `[social]` 模块中修改添加你的社交链接。 59 | 60 | ## 部署主题 61 | 62 | 配置完成之后,就可以使用下面的命令来启动 hugo 服务编译 markdown 文件生成静态站点: 63 | 64 | ```bash 65 | $ hugo server 66 | ``` 67 | 68 | 然后在浏览器地址栏输入 [localhost:1313](http://localhost:1313) 来访问站点。 69 | 70 | ## License 71 | 72 | Released under the [MIT](https://github.com/varkai/hugo-theme-zozo/blob/master/LICENSE) License. 73 | 74 | ## 致谢 75 | 76 | - [Aragaki](https://github.com/PCDotFan/Aragaki) 77 | - [菩提树下](https://blog.caicai.me/) 78 | - [olOwOlo](https://olowolo.com/) -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Hugo Theme Zozo 2 | 3 | [![GitHub](https://img.shields.io/github/license/imzeuk/hugo-theme-zozo.svg?color=4664DA&style=flat-square)](https://github.com/varkai/hugo-theme-zozo/blob/master/LICENSE) 4 | 5 | A simple and beautiful theme for Hugo 6 | 7 | > It's a port of [Aragaki](https://github.com/PCDotFan/Aragaki), The style is reference from [菩提树下](https://blog.caicai.me/), Some functions are referenced from [Even](https://github.com/olOwOlo/hugo-theme-even) 8 | 9 | **Features** 10 | 11 | + **Responsive** 12 | + **Syntax highlighting with highlightjs** 13 | + **Math with mathjax** 14 | + **Social links(Customize)** 15 | + **Tags page** 16 | + **Archive page** 17 | + **Disqus and [Valine](https://valine.js.org/en/index.html) comment-system** 18 | + **Fancybox** 19 | + **GoogleAnalytics** 20 | 21 | [Demo](https://zozo.varkai.com) | [中文说明](./README-zh.md) 22 | 23 | ## Sceenshots 24 | 25 | ![zozo](./images/showcase.png) 26 | 27 | ## Installation 28 | 29 | ```bash 30 | $ git clone https://github.com/varkai/hugo-theme-zozo themes/zozo 31 | ``` 32 | 33 | **Important**: Take a look inside the [`exampleSite`](./exampleSite) folder of this theme. You'll find a file called [`config.toml`](./exampleSite/config.toml). To use it, copy the [`config.toml`](./exampleSite/config.toml) in the root folder of your Hugo site. Feel free to change it. 34 | 35 | ## ExampleSite 36 | 37 | There is an example site with config file and markdown files in `exampleSite` directory. 38 | 39 | ## About Page 40 | 41 | Use the about page to introduce yourself to your visitors. You can customize the content as you like in the `/content/about/index.md`. 42 | 43 | ## Shortcodes 44 | 45 | This theme provides `img` shortcodes. 46 | 47 | ```markdown 48 | {{< img src="path/to/xxx.png" >}} 49 | ``` 50 | 51 | ## MathJax 52 | 53 | This theme supports MathJax, which are turned off by default. If you want to use them, you need to set them in `config.toml`. 54 | 55 | Set `mathjax = true` under the `[params]` to support the MathJax. 56 | 57 | ## Valine Comment System 58 | 59 | This theme provides valine comment system, the default is closed, if you want to use, need to set in `config. toml`. 60 | 61 | Set the `enable = true` under `[params.valine]` to open valine, and will be `appId` and `appKey` set for yourself. 62 | 63 | ## Social Link Icons 64 | 65 | You can add a social link panel in the header by adding entries to the social block in the `config.toml`. 66 | 67 | [Remix icon](https://remixicon.com/) is used in this theme. 68 | 69 | ## Nearly Finished 70 | 71 | In order to see your site in action, run Hugo's built-in local server. 72 | 73 | ```bash 74 | $ hugo server 75 | ``` 76 | 77 | Now enter `localhost:1313` in the address bar of your browser. 78 | 79 | ## License 80 | 81 | Released under the [MIT](https://github.com/varkai/hugo-theme-zozo/blob/master/LICENSE) License. 82 | 83 | ## Acknowledgements 84 | 85 | - [Aragaki](https://github.com/PCDotFan/Aragaki) 86 | - [菩提树下](https://blog.caicai.me/) 87 | - [olOwOlo](https://olowolo.com/) -------------------------------------------------------------------------------- /archetypes/default.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "{{ replace .Name "-" " " | title }}" 3 | date: {{ .Date }} 4 | hidden: false 5 | draft: true 6 | tags: [] 7 | keywords: [] 8 | description: "" 9 | slug: "" 10 | --- 11 | 12 | -------------------------------------------------------------------------------- /exampleSite/config.toml: -------------------------------------------------------------------------------- 1 | baseURL = "http://localhost:1313/" 2 | languageCode = "en" 3 | defaultContentLanguage = "en" 4 | title = "ZO ZO" # site title # 网站标题 5 | theme = "zozo" 6 | hasCJKLanguage = true # has chinese/japanese/korean ? # 自动检测是否包含 中文\日文\韩文 7 | summaryLength = 100 8 | paginate = 4 # shows the number of articles # 首页显示文章数量 9 | enableEmoji = true 10 | googleAnalytics = "" # your google analytics id # Google统计代码 11 | disqusShortname = "" # your discuss shortname # Disqus评论系统代码 12 | 13 | pygmentsUseClasses = true 14 | pygmentCodeFences = true 15 | pygmentscodefencesguesssyntax = true 16 | 17 | [author] # essential # 必需 18 | name = "VarKai" 19 | 20 | [blackfriday] 21 | smartypants = false 22 | 23 | [[menu.main]] # config your menu # 配置菜单 24 | name = "Home" 25 | weight = 10 26 | identifier = "home" 27 | url = "/" 28 | [[menu.main]] 29 | name = "Archive" 30 | weight = 20 31 | identifier = "archive" 32 | url = "/posts/" 33 | [[menu.main]] 34 | name = "Tags" 35 | weight = 30 36 | identifier = "tags" 37 | url = "/tags/" 38 | [[menu.main]] 39 | name = "About" 40 | weight = 40 41 | identifier = "about" 42 | url = "/about/" 43 | 44 | [params] 45 | subTitle = "the site subtitle" # site's subTitle # 网站二级标题 46 | footerSlogan = "My spiritual home" # site's footer slogan # 网站页脚标语 47 | keywords = ["Hugo","theme","zozo"] # site's keywords # 网站关键字 48 | description = "Hugo theme zozo example site." # site's description # 网站描述 49 | enableMathJax = true # enable mathjax # 是否使用mathjax(数学公式) 50 | enableSummary = true # display the article summary # 是否显示文章摘要 51 | mainSections = ["posts","post"] 52 | 53 | # Valine. 54 | # You can get your appid and appkey from https://leancloud.cn 55 | # more info please open https://valine.js.org 56 | [params.valine] 57 | enable = false 58 | appId = "" 59 | appKey = "" 60 | placeholder = " " 61 | visitor = true 62 | 63 | # Your socail's url 64 | # 社交地址配置 65 | [social] 66 | github = " " 67 | twitter = " " 68 | facebook = " " 69 | weibo = " " 70 | instagram = " " 71 | 72 | [markup] 73 | [markup.goldmark] 74 | [markup.goldmark.renderer] 75 | unsafe = true 76 | -------------------------------------------------------------------------------- /exampleSite/content/about/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "关于" 3 | date: 2018-12-29T20:24:28+08:00 4 | hidden: true 5 | draft: false 6 | --- 7 | 8 | Hugo 官方主页: [https://gohugo.io/](https://gohugo.io/) 9 | 10 | Hugo的安装方式有两种,一种是直接下载编译好的Hugo二进制文件。如果只是使用Hugo推荐用这种方式。另一种方式是获取Hugo的源码,自己编译。由于各种不可预料的网络问题,第二种方式不是那么轻易能成功,虽然最后我还是折腾出来了。 11 | 12 | Hugo二进制下载地址: [https://github.com/gohugoio/hugo/releases](https://github.com/gohugoio/hugo/releases) 13 | 14 | -------------------------------------------------------------------------------- /exampleSite/content/posts/chinese-preview.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "药师灌顶真言" 3 | date: 2019-04-11T14:26:00+08:00 4 | draft: false 5 | tags: ["中文", "真言"] 6 | slug: "Chinese-Preview" 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 | 35 | 鞞刹逝 36 | 37 | 鞞刹社 38 | 39 | 三没揭帝莎诃 40 | 41 | # 读法 42 | 43 | 那摩波切罚地 44 | 45 | 皮杀社 46 | 47 | 句度比琉璃 48 | 49 | 波拉婆 50 | 51 | 和拉舌也 52 | 53 | 大拖接多也 54 | 55 | 艾拉和地 56 | 57 | 三秒三波拖也 58 | 59 | 大至拖 60 | 61 | 安 62 | 63 | 皮杀逝 64 | 65 | 皮杀逝 66 | 67 | 皮杀社 68 | 69 | 三摩接地缩和 70 | 71 | # 简单释义 72 | 73 | 南无 薄伽伐帝 74 | 75 | 归命 世尊 76 | 77 | 鞞杀社 窭噜 薜琉璃 跋喇婆 喝啰阇也 78 | 79 | 药 师 琉璃 光 王 80 | 81 | 怛他揭多也 阿啰喝帝 三藐三勃陀耶 82 | 83 | 如来 应供 正等正觉 84 | 85 | 怛侄他 86 | 87 | 即说咒曰 88 | 89 | 唵 鞞刹逝 鞞刹逝 鞞刹社 三没揭帝 90 | 91 | 唵 药 药 药师 自度度他 92 | 93 | 莎诃 94 | 95 | 成就 96 | -------------------------------------------------------------------------------- /exampleSite/content/posts/english-preview.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Creating a New Theme" 3 | date: 2019-04-01T14:26:00+08:00 4 | draft: false 5 | tags: ["English", "Theme"] 6 | slug: "English Preview" 7 | --- 8 | 9 | ## Introduction 10 | 11 | This tutorial will show you how to create a simple theme in Hugo. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I'll explain how Hugo uses templates and how you can organize your templates to create a theme. I won't cover using CSS to style your theme. 12 | 13 | We'll start with creating a new site with a very basic template. Then we'll add in a few pages and posts. With small variations on that, you will be able to create many different types of web sites. 14 | 15 | In this tutorial, commands that you enter will start with the "$" prompt. The output will follow. Lines that start with "#" are comments that I've added to explain a point. When I show updates to a file, the ":wq" on the last line means to save the file. 16 | 17 | Here's an example: 18 | 19 | ``` 20 | ## this is a comment 21 | $ echo this is a command 22 | this is a command 23 | 24 | ## edit the file 25 | $vi foo.md 26 | +++ 27 | date = "2014-09-28" 28 | title = "creating a new theme" 29 | +++ 30 | 31 | bah and humbug 32 | :wq 33 | 34 | ## show it 35 | $ cat foo.md 36 | +++ 37 | date = "2014-09-28" 38 | title = "creating a new theme" 39 | +++ 40 | 41 | bah and humbug 42 | $ 43 | ``` 44 | 45 | 46 | ## Some Definitions 47 | 48 | There are a few concepts that you need to understand before creating a theme. 49 | 50 | ### Skins 51 | 52 | Skins are the files responsible for the look and feel of your site. It’s the CSS that controls colors and fonts, it’s the Javascript that determines actions and reactions. It’s also the rules that Hugo uses to transform your content into the HTML that the site will serve to visitors. 53 | 54 | You have two ways to create a skin. The simplest way is to create it in the ```layouts/``` directory. If you do, then you don’t have to worry about configuring Hugo to recognize it. The first place that Hugo will look for rules and files is in the ```layouts/``` directory so it will always find the skin. 55 | 56 | Your second choice is to create it in a sub-directory of the ```themes/``` directory. If you do, then you must always tell Hugo where to search for the skin. It’s extra work, though, so why bother with it? 57 | 58 | The difference between creating a skin in ```layouts/``` and creating it in ```themes/``` is very subtle. A skin in ```layouts/``` can’t be customized without updating the templates and static files that it is built from. A skin created in ```themes/```, on the other hand, can be and that makes it easier for other people to use it. 59 | 60 | The rest of this tutorial will call a skin created in the ```themes/``` directory a theme. 61 | 62 | Note that you can use this tutorial to create a skin in the ```layouts/``` directory if you wish to. The main difference will be that you won’t need to update the site’s configuration file to use a theme. 63 | 64 | ### The Home Page 65 | 66 | The home page, or landing page, is the first page that many visitors to a site see. It is the index.html file in the root directory of the web site. Since Hugo writes files to the public/ directory, our home page is public/index.html. 67 | 68 | ### Site Configuration File 69 | 70 | When Hugo runs, it looks for a configuration file that contains settings that override default values for the entire site. The file can use TOML, YAML, or JSON. I prefer to use TOML for my configuration files. If you prefer to use JSON or YAML, you’ll need to translate my examples. You’ll also need to change the name of the file since Hugo uses the extension to determine how to process it. 71 | 72 | Hugo translates Markdown files into HTML. By default, Hugo expects to find Markdown files in your ```content/``` directory and template files in your ```themes/``` directory. It will create HTML files in your ```public/``` directory. You can change this by specifying alternate locations in the configuration file. 73 | 74 | ### Content 75 | 76 | Content is stored in text files that contain two sections. The first section is the “front matter,” which is the meta-information on the content. The second section contains Markdown that will be converted to HTML. 77 | 78 | #### Front Matter 79 | 80 | The front matter is information about the content. Like the configuration file, it can be written in TOML, YAML, or JSON. Unlike the configuration file, Hugo doesn’t use the file’s extension to know the format. It looks for markers to signal the type. TOML is surrounded by “`+++`”, YAML by “`---`”, and JSON is enclosed in curly braces. I prefer to use TOML, so you’ll need to translate my examples if you prefer YAML or JSON. 81 | 82 | The information in the front matter is passed into the template before the content is rendered into HTML. 83 | 84 | #### Markdown 85 | 86 | Content is written in Markdown which makes it easier to create the content. Hugo runs the content through a Markdown engine to create the HTML which will be written to the output file. 87 | 88 | ### Template Files 89 | 90 | Hugo uses template files to render content into HTML. Template files are a bridge between the content and presentation. Rules in the template define what content is published, where it's published to, and how it will rendered to the HTML file. The template guides the presentation by specifying the style to use. 91 | 92 | There are three types of templates: single, list, and partial. Each type takes a bit of content as input and transforms it based on the commands in the template. 93 | 94 | Hugo uses its knowledge of the content to find the template file used to render the content. If it can’t find a template that is an exact match for the content, it will shift up a level and search from there. It will continue to do so until it finds a matching template or runs out of templates to try. If it can’t find a template, it will use the default template for the site. 95 | 96 | Please note that you can use the front matter to influence Hugo’s choice of templates. 97 | 98 | #### Single Template 99 | 100 | A single template is used to render a single piece of content. For example, an article or post would be a single piece of content and use a single template. 101 | 102 | #### List Template 103 | 104 | A list template renders a group of related content. That could be a summary of recent postings or all articles in a category. List templates can contain multiple groups. 105 | 106 | The homepage template is a special type of list template. Hugo assumes that the home page of your site will act as the portal for the rest of the content in the site. 107 | 108 | #### Partial Template 109 | 110 | A partial template is a template that can be included in other templates. Partial templates must be called using the “partial” template command. They are very handy for rolling up common behavior. For example, your site may have a banner that all pages use. Instead of copying the text of the banner into every single and list template, you could create a partial with the banner in it. That way if you decide to change the banner, you only have to change the partial template. 111 | 112 | ## Create a New Site 113 | 114 | Let's use Hugo to create a new web site. I'm a Mac user, so I'll create mine in my home directory, in the Sites folder. If you're using Linux, you might have to create the folder first. 115 | 116 | The "new site" command will create a skeleton of a site. It will give you the basic directory structure and a useable configuration file. 117 | 118 | ``` 119 | $ hugo new site ~/Sites/zafta 120 | $ cd ~/Sites/zafta 121 | $ ls -l 122 | total 8 123 | drwxr-xr-x 7 quoha staff 238 Sep 29 16:49 . 124 | drwxr-xr-x 3 quoha staff 102 Sep 29 16:49 .. 125 | drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 archetypes 126 | -rw-r--r-- 1 quoha staff 82 Sep 29 16:49 config.toml 127 | drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 content 128 | drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 layouts 129 | drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 static 130 | $ 131 | ``` 132 | 133 | Take a look in the content/ directory to confirm that it is empty. 134 | 135 | The other directories (archetypes/, layouts/, and static/) are used when customizing a theme. That's a topic for a different tutorial, so please ignore them for now. 136 | 137 | ### Generate the HTML For the New Site 138 | 139 | Running the `hugo` command with no options will read all the available content and generate the HTML files. It will also copy all static files (that's everything that's not content). Since we have an empty site, it won't do much, but it will do it very quickly. 140 | 141 | ``` 142 | $ hugo --verbose 143 | INFO: 2014/09/29 Using config file: config.toml 144 | INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ 145 | WARN: 2014/09/29 Unable to locate layout: [index.html _default/list.html _default/single.html] 146 | WARN: 2014/09/29 Unable to locate layout: [404.html] 147 | 0 draft content 148 | 0 future content 149 | 0 pages created 150 | 0 tags created 151 | 0 categories created 152 | in 2 ms 153 | $ 154 | ``` 155 | 156 | The "`--verbose`" flag gives extra information that will be helpful when we build the template. Every line of the output that starts with "INFO:" or "WARN:" is present because we used that flag. The lines that start with "WARN:" are warning messages. We'll go over them later. 157 | 158 | We can verify that the command worked by looking at the directory again. 159 | 160 | ``` 161 | $ ls -l 162 | total 8 163 | drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 archetypes 164 | -rw-r--r-- 1 quoha staff 82 Sep 29 16:49 config.toml 165 | drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 content 166 | drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 layouts 167 | drwxr-xr-x 4 quoha staff 136 Sep 29 17:02 public 168 | drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 static 169 | $ 170 | ``` 171 | 172 | See that new public/ directory? Hugo placed all generated content there. When you're ready to publish your web site, that's the place to start. For now, though, let's just confirm that we have what we'd expect from a site with no content. 173 | 174 | ``` 175 | $ ls -l public 176 | total 16 177 | -rw-r--r-- 1 quoha staff 416 Sep 29 17:02 index.xml 178 | -rw-r--r-- 1 quoha staff 262 Sep 29 17:02 sitemap.xml 179 | $ 180 | ``` 181 | 182 | Hugo created two XML files, which is standard, but there are no HTML files. 183 | 184 | 185 | 186 | ### Test the New Site 187 | 188 | Verify that you can run the built-in web server. It will dramatically shorten your development cycle if you do. Start it by running the "server" command. If it is successful, you will see output similar to the following: 189 | 190 | ``` 191 | $ hugo server --verbose 192 | INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml 193 | INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ 194 | WARN: 2014/09/29 Unable to locate layout: [index.html _default/list.html _default/single.html] 195 | WARN: 2014/09/29 Unable to locate layout: [404.html] 196 | 0 draft content 197 | 0 future content 198 | 0 pages created 199 | 0 tags created 200 | 0 categories created 201 | in 2 ms 202 | Serving pages from /Users/quoha/Sites/zafta/public 203 | Web Server is available at http://localhost:1313 204 | Press Ctrl+C to stop 205 | ``` 206 | 207 | Connect to the listed URL (it's on the line that starts with "Web Server"). If everything is working correctly, you should get a page that shows the following: 208 | 209 | ``` 210 | index.xml 211 | sitemap.xml 212 | ``` 213 | 214 | That's a listing of your public/ directory. Hugo didn't create a home page because our site has no content. When there's no index.html file in a directory, the server lists the files in the directory, which is what you should see in your browser. 215 | 216 | Let’s go back and look at those warnings again. 217 | 218 | ``` 219 | WARN: 2014/09/29 Unable to locate layout: [index.html _default/list.html _default/single.html] 220 | WARN: 2014/09/29 Unable to locate layout: [404.html] 221 | ``` 222 | 223 | That second warning is easier to explain. We haven’t created a template to be used to generate “page not found errors.” The 404 message is a topic for a separate tutorial. 224 | 225 | Now for the first warning. It is for the home page. You can tell because the first layout that it looked for was “index.html.” That’s only used by the home page. 226 | 227 | I like that the verbose flag causes Hugo to list the files that it's searching for. For the home page, they are index.html, _default/list.html, and _default/single.html. There are some rules that we'll cover later that explain the names and paths. For now, just remember that Hugo couldn't find a template for the home page and it told you so. 228 | 229 | At this point, you've got a working installation and site that we can build upon. All that’s left is to add some content and a theme to display it. 230 | 231 | ## Create a New Theme 232 | 233 | Hugo doesn't ship with a default theme. There are a few available (I counted a dozen when I first installed Hugo) and Hugo comes with a command to create new themes. 234 | 235 | We're going to create a new theme called "zafta." Since the goal of this tutorial is to show you how to fill out the files to pull in your content, the theme will not contain any CSS. In other words, ugly but functional. 236 | 237 | All themes have opinions on content and layout. For example, Zafta uses "post" over "blog". Strong opinions make for simpler templates but differing opinions make it tougher to use themes. When you build a theme, consider using the terms that other themes do. 238 | 239 | 240 | ### Create a Skeleton 241 | 242 | Use the hugo "new" command to create the skeleton of a theme. This creates the directory structure and places empty files for you to fill out. 243 | 244 | ``` 245 | $ hugo new theme zafta 246 | 247 | $ ls -l 248 | total 8 249 | drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 archetypes 250 | -rw-r--r-- 1 quoha staff 82 Sep 29 16:49 config.toml 251 | drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 content 252 | drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 layouts 253 | drwxr-xr-x 4 quoha staff 136 Sep 29 17:02 public 254 | drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 static 255 | drwxr-xr-x 3 quoha staff 102 Sep 29 17:31 themes 256 | 257 | $ find themes -type f | xargs ls -l 258 | -rw-r--r-- 1 quoha staff 1081 Sep 29 17:31 themes/zafta/LICENSE.md 259 | -rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/archetypes/default.md 260 | -rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/_default/list.html 261 | -rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/_default/single.html 262 | -rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/index.html 263 | -rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/partials/footer.html 264 | -rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/partials/header.html 265 | -rw-r--r-- 1 quoha staff 93 Sep 29 17:31 themes/zafta/theme.toml 266 | $ 267 | ``` 268 | 269 | The skeleton includes templates (the files ending in .html), license file, a description of your theme (the theme.toml file), and an empty archetype. 270 | 271 | Please take a minute to fill out the theme.toml and LICENSE.md files. They're optional, but if you're going to be distributing your theme, it tells the world who to praise (or blame). It's also nice to declare the license so that people will know how they can use the theme. 272 | 273 | ``` 274 | $ vi themes/zafta/theme.toml 275 | author = "michael d henderson" 276 | description = "a minimal working template" 277 | license = "MIT" 278 | name = "zafta" 279 | source_repo = "" 280 | tags = ["tags", "categories"] 281 | :wq 282 | 283 | ## also edit themes/zafta/LICENSE.md and change 284 | ## the bit that says "YOUR_NAME_HERE" 285 | ``` 286 | 287 | Note that the the skeleton's template files are empty. Don't worry, we'll be changing that shortly. 288 | 289 | ``` 290 | $ find themes/zafta -name '*.html' | xargs ls -l 291 | -rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/_default/list.html 292 | -rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/_default/single.html 293 | -rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/index.html 294 | -rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/partials/footer.html 295 | -rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/partials/header.html 296 | $ 297 | ``` 298 | 299 | 300 | 301 | ### Update the Configuration File to Use the Theme 302 | 303 | Now that we've got a theme to work with, it's a good idea to add the theme name to the configuration file. This is optional, because you can always add "-t zafta" on all your commands. I like to put it the configuration file because I like shorter command lines. If you don't put it in the configuration file or specify it on the command line, you won't use the template that you're expecting to. 304 | 305 | Edit the file to add the theme, add a title for the site, and specify that all of our content will use the TOML format. 306 | 307 | ``` 308 | $ vi config.toml 309 | theme = "zafta" 310 | baseurl = "" 311 | languageCode = "en-us" 312 | title = "zafta - totally refreshing" 313 | MetaDataFormat = "toml" 314 | :wq 315 | 316 | $ 317 | ``` 318 | 319 | ### Generate the Site 320 | 321 | Now that we have an empty theme, let's generate the site again. 322 | 323 | ``` 324 | $ hugo --verbose 325 | INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml 326 | INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ 327 | INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ 328 | WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] 329 | 0 draft content 330 | 0 future content 331 | 0 pages created 332 | 0 tags created 333 | 0 categories created 334 | in 2 ms 335 | $ 336 | ``` 337 | 338 | Did you notice that the output is different? The warning message for the home page has disappeared and we have an additional information line saying that Hugo is syncing from the theme's directory. 339 | 340 | Let's check the public/ directory to see what Hugo's created. 341 | 342 | ``` 343 | $ ls -l public 344 | total 16 345 | drwxr-xr-x 2 quoha staff 68 Sep 29 17:56 css 346 | -rw-r--r-- 1 quoha staff 0 Sep 29 17:56 index.html 347 | -rw-r--r-- 1 quoha staff 407 Sep 29 17:56 index.xml 348 | drwxr-xr-x 2 quoha staff 68 Sep 29 17:56 js 349 | -rw-r--r-- 1 quoha staff 243 Sep 29 17:56 sitemap.xml 350 | $ 351 | ``` 352 | 353 | Notice four things: 354 | 355 | 1. Hugo created a home page. This is the file public/index.html. 356 | 2. Hugo created a css/ directory. 357 | 3. Hugo created a js/ directory. 358 | 4. Hugo claimed that it created 0 pages. It created a file and copied over static files, but didn't create any pages. That's because it considers a "page" to be a file created directly from a content file. It doesn't count things like the index.html files that it creates automatically. 359 | 360 | #### The Home Page 361 | 362 | Hugo supports many different types of templates. The home page is special because it gets its own type of template and its own template file. The file, layouts/index.html, is used to generate the HTML for the home page. The Hugo documentation says that this is the only required template, but that depends. Hugo's warning message shows that it looks for three different templates: 363 | 364 | ``` 365 | WARN: 2014/09/29 Unable to locate layout: [index.html _default/list.html _default/single.html] 366 | ``` 367 | 368 | If it can't find any of these, it completely skips creating the home page. We noticed that when we built the site without having a theme installed. 369 | 370 | When Hugo created our theme, it created an empty home page template. Now, when we build the site, Hugo finds the template and uses it to generate the HTML for the home page. Since the template file is empty, the HTML file is empty, too. If the template had any rules in it, then Hugo would have used them to generate the home page. 371 | 372 | ``` 373 | $ find . -name index.html | xargs ls -l 374 | -rw-r--r-- 1 quoha staff 0 Sep 29 20:21 ./public/index.html 375 | -rw-r--r-- 1 quoha staff 0 Sep 29 17:31 ./themes/zafta/layouts/index.html 376 | $ 377 | ``` 378 | 379 | #### The Magic of Static 380 | 381 | Hugo does two things when generating the site. It uses templates to transform content into HTML and it copies static files into the site. Unlike content, static files are not transformed. They are copied exactly as they are. 382 | 383 | Hugo assumes that your site will use both CSS and JavaScript, so it creates directories in your theme to hold them. Remember opinions? Well, Hugo's opinion is that you'll store your CSS in a directory named css/ and your JavaScript in a directory named js/. If you don't like that, you can change the directory names in your theme directory or even delete them completely. Hugo's nice enough to offer its opinion, then behave nicely if you disagree. 384 | 385 | ``` 386 | $ find themes/zafta -type d | xargs ls -ld 387 | drwxr-xr-x 7 quoha staff 238 Sep 29 17:38 themes/zafta 388 | drwxr-xr-x 3 quoha staff 102 Sep 29 17:31 themes/zafta/archetypes 389 | drwxr-xr-x 5 quoha staff 170 Sep 29 17:31 themes/zafta/layouts 390 | drwxr-xr-x 4 quoha staff 136 Sep 29 17:31 themes/zafta/layouts/_default 391 | drwxr-xr-x 4 quoha staff 136 Sep 29 17:31 themes/zafta/layouts/partials 392 | drwxr-xr-x 4 quoha staff 136 Sep 29 17:31 themes/zafta/static 393 | drwxr-xr-x 2 quoha staff 68 Sep 29 17:31 themes/zafta/static/css 394 | drwxr-xr-x 2 quoha staff 68 Sep 29 17:31 themes/zafta/static/js 395 | $ 396 | ``` 397 | 398 | ## The Theme Development Cycle 399 | 400 | When you're working on a theme, you will make changes in the theme's directory, rebuild the site, and check your changes in the browser. Hugo makes this very easy: 401 | 402 | 1. Purge the public/ directory. 403 | 2. Run the built in web server in watch mode. 404 | 3. Open your site in a browser. 405 | 4. Update the theme. 406 | 5. Glance at your browser window to see changes. 407 | 6. Return to step 4. 408 | 409 | I’ll throw in one more opinion: never work on a theme on a live site. Always work on a copy of your site. Make changes to your theme, test them, then copy them up to your site. For added safety, use a tool like Git to keep a revision history of your content and your theme. Believe me when I say that it is too easy to lose both your mind and your changes. 410 | 411 | Check the main Hugo site for information on using Git with Hugo. 412 | 413 | ### Purge the public/ Directory 414 | 415 | When generating the site, Hugo will create new files and update existing ones in the ```public/``` directory. It will not delete files that are no longer used. For example, files that were created in the wrong directory or with the wrong title will remain. If you leave them, you might get confused by them later. I recommend cleaning out your site prior to generating it. 416 | 417 | Note: If you're building on an SSD, you should ignore this. Churning on a SSD can be costly. 418 | 419 | ### Hugo's Watch Option 420 | 421 | Hugo's "`--watch`" option will monitor the content/ and your theme directories for changes and rebuild the site automatically. 422 | 423 | ### Live Reload 424 | 425 | Hugo's built in web server supports live reload. As pages are saved on the server, the browser is told to refresh the page. Usually, this happens faster than you can say, "Wow, that's totally amazing." 426 | 427 | ### Development Commands 428 | 429 | Use the following commands as the basis for your workflow. 430 | 431 | ``` 432 | ## purge old files. hugo will recreate the public directory. 433 | ## 434 | $ rm -rf public 435 | ## 436 | ## run hugo in watch mode 437 | ## 438 | $ hugo server --watch --verbose 439 | ``` 440 | 441 | Here's sample output showing Hugo detecting a change to the template for the home page. Once generated, the web browser automatically reloaded the page. I've said this before, it's amazing. 442 | 443 | 444 | ``` 445 | $ rm -rf public 446 | $ hugo server --watch --verbose 447 | INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml 448 | INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ 449 | INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ 450 | WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] 451 | 0 draft content 452 | 0 future content 453 | 0 pages created 454 | 0 tags created 455 | 0 categories created 456 | in 2 ms 457 | Watching for changes in /Users/quoha/Sites/zafta/content 458 | Serving pages from /Users/quoha/Sites/zafta/public 459 | Web Server is available at http://localhost:1313 460 | Press Ctrl+C to stop 461 | INFO: 2014/09/29 File System Event: ["/Users/quoha/Sites/zafta/themes/zafta/layouts/index.html": MODIFY|ATTRIB] 462 | Change detected, rebuilding site 463 | 464 | WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] 465 | 0 draft content 466 | 0 future content 467 | 0 pages created 468 | 0 tags created 469 | 0 categories created 470 | in 1 ms 471 | ``` 472 | 473 | ## Update the Home Page Template 474 | 475 | The home page is one of a few special pages that Hugo creates automatically. As mentioned earlier, it looks for one of three files in the theme's layout/ directory: 476 | 477 | 1. index.html 478 | 2. _default/list.html 479 | 3. _default/single.html 480 | 481 | We could update one of the default templates, but a good design decision is to update the most specific template available. That's not a hard and fast rule (in fact, we'll break it a few times in this tutorial), but it is a good generalization. 482 | 483 | ### Make a Static Home Page 484 | 485 | Right now, that page is empty because we don't have any content and we don't have any logic in the template. Let's change that by adding some text to the template. 486 | 487 | ``` 488 | $ vi themes/zafta/layouts/index.html 489 | 490 | 491 | 492 |

hugo says hello!

493 | 494 | 495 | :wq 496 | 497 | $ 498 | ``` 499 | 500 | Build the web site and then verify the results. 501 | 502 | ``` 503 | $ hugo --verbose 504 | INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml 505 | INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ 506 | INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ 507 | WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] 508 | 0 draft content 509 | 0 future content 510 | 0 pages created 511 | 0 tags created 512 | 0 categories created 513 | in 2 ms 514 | 515 | $ find public -type f -name '*.html' | xargs ls -l 516 | -rw-r--r-- 1 quoha staff 78 Sep 29 21:26 public/index.html 517 | 518 | $ cat public/index.html 519 | 520 | 521 | 522 |

hugo says hello!

523 | 524 | ``` 525 | 526 | #### Live Reload 527 | 528 | Note: If you're running the server with the `--watch` option, you'll see different content in the file: 529 | 530 | ``` 531 | $ cat public/index.html 532 | 533 | 534 | 535 |

hugo says hello!

536 | 540 | 541 | ``` 542 | 543 | When you use `--watch`, the Live Reload script is added by Hugo. Look for live reload in the documentation to see what it does and how to disable it. 544 | 545 | ### Build a "Dynamic" Home Page 546 | 547 | "Dynamic home page?" Hugo's a static web site generator, so this seems an odd thing to say. I mean let's have the home page automatically reflect the content in the site every time Hugo builds it. We'll use iteration in the template to do that. 548 | 549 | #### Create New Posts 550 | 551 | Now that we have the home page generating static content, let's add some content to the site. We'll display these posts as a list on the home page and on their own page, too. 552 | 553 | Hugo has a command to generate a skeleton post, just like it does for sites and themes. 554 | 555 | ``` 556 | $ hugo --verbose new post/first.md 557 | INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml 558 | INFO: 2014/09/29 attempting to create post/first.md of post 559 | INFO: 2014/09/29 curpath: /Users/quoha/Sites/zafta/themes/zafta/archetypes/default.md 560 | ERROR: 2014/09/29 Unable to Cast to map[string]interface{} 561 | 562 | $ 563 | ``` 564 | 565 | That wasn't very nice, was it? 566 | 567 | The "new" command uses an archetype to create the post file. Hugo created an empty default archetype file, but that causes an error when there's a theme. For me, the workaround was to create an archetypes file specifically for the post type. 568 | 569 | ``` 570 | $ vi themes/zafta/archetypes/post.md 571 | +++ 572 | Description = "" 573 | Tags = [] 574 | Categories = [] 575 | +++ 576 | :wq 577 | 578 | $ find themes/zafta/archetypes -type f | xargs ls -l 579 | -rw-r--r-- 1 quoha staff 0 Sep 29 21:53 themes/zafta/archetypes/default.md 580 | -rw-r--r-- 1 quoha staff 51 Sep 29 21:54 themes/zafta/archetypes/post.md 581 | 582 | $ hugo --verbose new post/first.md 583 | INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml 584 | INFO: 2014/09/29 attempting to create post/first.md of post 585 | INFO: 2014/09/29 curpath: /Users/quoha/Sites/zafta/themes/zafta/archetypes/post.md 586 | INFO: 2014/09/29 creating /Users/quoha/Sites/zafta/content/post/first.md 587 | /Users/quoha/Sites/zafta/content/post/first.md created 588 | 589 | $ hugo --verbose new post/second.md 590 | INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml 591 | INFO: 2014/09/29 attempting to create post/second.md of post 592 | INFO: 2014/09/29 curpath: /Users/quoha/Sites/zafta/themes/zafta/archetypes/post.md 593 | INFO: 2014/09/29 creating /Users/quoha/Sites/zafta/content/post/second.md 594 | /Users/quoha/Sites/zafta/content/post/second.md created 595 | 596 | $ ls -l content/post 597 | total 16 598 | -rw-r--r-- 1 quoha staff 104 Sep 29 21:54 first.md 599 | -rw-r--r-- 1 quoha staff 105 Sep 29 21:57 second.md 600 | 601 | $ cat content/post/first.md 602 | +++ 603 | Categories = [] 604 | Description = "" 605 | Tags = [] 606 | date = "2014-09-29T21:54:53-05:00" 607 | title = "first" 608 | 609 | +++ 610 | my first post 611 | 612 | $ cat content/post/second.md 613 | +++ 614 | Categories = [] 615 | Description = "" 616 | Tags = [] 617 | date = "2014-09-29T21:57:09-05:00" 618 | title = "second" 619 | 620 | +++ 621 | my second post 622 | 623 | $ 624 | ``` 625 | 626 | Build the web site and then verify the results. 627 | 628 | ``` 629 | $ rm -rf public 630 | $ hugo --verbose 631 | INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml 632 | INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ 633 | INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ 634 | INFO: 2014/09/29 found taxonomies: map[string]string{"category":"categories", "tag":"tags"} 635 | WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] 636 | 0 draft content 637 | 0 future content 638 | 2 pages created 639 | 0 tags created 640 | 0 categories created 641 | in 4 ms 642 | $ 643 | ``` 644 | 645 | The output says that it created 2 pages. Those are our new posts: 646 | 647 | ``` 648 | $ find public -type f -name '*.html' | xargs ls -l 649 | -rw-r--r-- 1 quoha staff 78 Sep 29 22:13 public/index.html 650 | -rw-r--r-- 1 quoha staff 0 Sep 29 22:13 public/post/first/index.html 651 | -rw-r--r-- 1 quoha staff 0 Sep 29 22:13 public/post/index.html 652 | -rw-r--r-- 1 quoha staff 0 Sep 29 22:13 public/post/second/index.html 653 | $ 654 | ``` 655 | 656 | The new files are empty because because the templates used to generate the content are empty. The homepage doesn't show the new content, either. We have to update the templates to add the posts. 657 | 658 | ### List and Single Templates 659 | 660 | In Hugo, we have three major kinds of templates. There's the home page template that we updated previously. It is used only by the home page. We also have "single" templates which are used to generate output for a single content file. We also have "list" templates that are used to group multiple pieces of content before generating output. 661 | 662 | Generally speaking, list templates are named "list.html" and single templates are named "single.html." 663 | 664 | There are three other types of templates: partials, content views, and terms. We will not go into much detail on these. 665 | 666 | ### Add Content to the Homepage 667 | 668 | The home page will contain a list of posts. Let's update its template to add the posts that we just created. The logic in the template will run every time we build the site. 669 | 670 | ``` 671 | $ vi themes/zafta/layouts/index.html 672 | 673 | 674 | 675 | {{ range first 10 .Data.Pages }} 676 |

{{ .Title }}

677 | {{ end }} 678 | 679 | 680 | :wq 681 | 682 | $ 683 | ``` 684 | 685 | Hugo uses the Go template engine. That engine scans the template files for commands which are enclosed between "{{" and "}}". In our template, the commands are: 686 | 687 | 1. range 688 | 2. .Title 689 | 3. end 690 | 691 | The "range" command is an iterator. We're going to use it to go through the first ten pages. Every HTML file that Hugo creates is treated as a page, so looping through the list of pages will look at every file that will be created. 692 | 693 | The ".Title" command prints the value of the "title" variable. Hugo pulls it from the front matter in the Markdown file. 694 | 695 | The "end" command signals the end of the range iterator. The engine loops back to the top of the iteration when it finds "end." Everything between the "range" and "end" is evaluated every time the engine goes through the iteration. In this file, that would cause the title from the first ten pages to be output as heading level one. 696 | 697 | It's helpful to remember that some variables, like .Data, are created before any output files. Hugo loads every content file into the variable and then gives the template a chance to process before creating the HTML files. 698 | 699 | Build the web site and then verify the results. 700 | 701 | ``` 702 | $ rm -rf public 703 | $ hugo --verbose 704 | INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml 705 | INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ 706 | INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ 707 | INFO: 2014/09/29 found taxonomies: map[string]string{"tag":"tags", "category":"categories"} 708 | WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] 709 | 0 draft content 710 | 0 future content 711 | 2 pages created 712 | 0 tags created 713 | 0 categories created 714 | in 4 ms 715 | $ find public -type f -name '*.html' | xargs ls -l 716 | -rw-r--r-- 1 quoha staff 94 Sep 29 22:23 public/index.html 717 | -rw-r--r-- 1 quoha staff 0 Sep 29 22:23 public/post/first/index.html 718 | -rw-r--r-- 1 quoha staff 0 Sep 29 22:23 public/post/index.html 719 | -rw-r--r-- 1 quoha staff 0 Sep 29 22:23 public/post/second/index.html 720 | $ cat public/index.html 721 | 722 | 723 | 724 | 725 |

second

726 | 727 |

first

728 | 729 | 730 | 731 | $ 732 | ``` 733 | 734 | Congratulations, the home page shows the title of the two posts. The posts themselves are still empty, but let's take a moment to appreciate what we've done. Your template now generates output dynamically. Believe it or not, by inserting the range command inside of those curly braces, you've learned everything you need to know to build a theme. All that's really left is understanding which template will be used to generate each content file and becoming familiar with the commands for the template engine. 735 | 736 | And, if that were entirely true, this tutorial would be much shorter. There are a few things to know that will make creating a new template much easier. Don't worry, though, that's all to come. 737 | 738 | ### Add Content to the Posts 739 | 740 | We're working with posts, which are in the content/post/ directory. That means that their section is "post" (and if we don't do something weird, their type is also "post"). 741 | 742 | Hugo uses the section and type to find the template file for every piece of content. Hugo will first look for a template file that matches the section or type name. If it can't find one, then it will look in the _default/ directory. There are some twists that we'll cover when we get to categories and tags, but for now we can assume that Hugo will try post/single.html, then _default/single.html. 743 | 744 | Now that we know the search rule, let's see what we actually have available: 745 | 746 | ``` 747 | $ find themes/zafta -name single.html | xargs ls -l 748 | -rw-r--r-- 1 quoha staff 132 Sep 29 17:31 themes/zafta/layouts/_default/single.html 749 | ``` 750 | 751 | We could create a new template, post/single.html, or change the default. Since we don't know of any other content types, let's start with updating the default. 752 | 753 | Remember, any content that we haven't created a template for will end up using this template. That can be good or bad. Bad because I know that we're going to be adding different types of content and we're going to end up undoing some of the changes we've made. It's good because we'll be able to see immediate results. It's also good to start here because we can start to build the basic layout for the site. As we add more content types, we'll refactor this file and move logic around. Hugo makes that fairly painless, so we'll accept the cost and proceed. 754 | 755 | Please see the Hugo documentation on template rendering for all the details on determining which template to use. And, as the docs mention, if you're building a single page application (SPA) web site, you can delete all of the other templates and work with just the default single page. That's a refreshing amount of joy right there. 756 | 757 | #### Update the Template File 758 | 759 | ``` 760 | $ vi themes/zafta/layouts/_default/single.html 761 | 762 | 763 | 764 | {{ .Title }} 765 | 766 | 767 |

{{ .Title }}

768 | {{ .Content }} 769 | 770 | 771 | :wq 772 | 773 | $ 774 | ``` 775 | 776 | Build the web site and verify the results. 777 | 778 | ``` 779 | $ rm -rf public 780 | $ hugo --verbose 781 | INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml 782 | INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ 783 | INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ 784 | INFO: 2014/09/29 found taxonomies: map[string]string{"tag":"tags", "category":"categories"} 785 | WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] 786 | 0 draft content 787 | 0 future content 788 | 2 pages created 789 | 0 tags created 790 | 0 categories created 791 | in 4 ms 792 | 793 | $ find public -type f -name '*.html' | xargs ls -l 794 | -rw-r--r-- 1 quoha staff 94 Sep 29 22:40 public/index.html 795 | -rw-r--r-- 1 quoha staff 125 Sep 29 22:40 public/post/first/index.html 796 | -rw-r--r-- 1 quoha staff 0 Sep 29 22:40 public/post/index.html 797 | -rw-r--r-- 1 quoha staff 128 Sep 29 22:40 public/post/second/index.html 798 | 799 | $ cat public/post/first/index.html 800 | 801 | 802 | 803 | first 804 | 805 | 806 |

first

807 |

my first post

808 | 809 | 810 | 811 | 812 | $ cat public/post/second/index.html 813 | 814 | 815 | 816 | second 817 | 818 | 819 |

second

820 |

my second post

821 | 822 | 823 | 824 | $ 825 | ``` 826 | 827 | Notice that the posts now have content. You can go to localhost:1313/post/first to verify. 828 | 829 | ### Linking to Content 830 | 831 | The posts are on the home page. Let's add a link from there to the post. Since this is the home page, we'll update its template. 832 | 833 | ``` 834 | $ vi themes/zafta/layouts/index.html 835 | 836 | 837 | 838 | {{ range first 10 .Data.Pages }} 839 |

{{ .Title }}

840 | {{ end }} 841 | 842 | 843 | ``` 844 | 845 | Build the web site and verify the results. 846 | 847 | ``` 848 | $ rm -rf public 849 | $ hugo --verbose 850 | INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml 851 | INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ 852 | INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ 853 | INFO: 2014/09/29 found taxonomies: map[string]string{"tag":"tags", "category":"categories"} 854 | WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] 855 | 0 draft content 856 | 0 future content 857 | 2 pages created 858 | 0 tags created 859 | 0 categories created 860 | in 4 ms 861 | 862 | $ find public -type f -name '*.html' | xargs ls -l 863 | -rw-r--r-- 1 quoha staff 149 Sep 29 22:44 public/index.html 864 | -rw-r--r-- 1 quoha staff 125 Sep 29 22:44 public/post/first/index.html 865 | -rw-r--r-- 1 quoha staff 0 Sep 29 22:44 public/post/index.html 866 | -rw-r--r-- 1 quoha staff 128 Sep 29 22:44 public/post/second/index.html 867 | 868 | $ cat public/index.html 869 | 870 | 871 | 872 | 873 |

second

874 | 875 |

first

876 | 877 | 878 | 879 | 880 | $ 881 | ``` 882 | 883 | ### Create a Post Listing 884 | 885 | We have the posts displaying on the home page and on their own page. We also have a file public/post/index.html that is empty. Let's make it show a list of all posts (not just the first ten). 886 | 887 | We need to decide which template to update. This will be a listing, so it should be a list template. Let's take a quick look and see which list templates are available. 888 | 889 | ``` 890 | $ find themes/zafta -name list.html | xargs ls -l 891 | -rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/_default/list.html 892 | ``` 893 | 894 | As with the single post, we have to decide to update _default/list.html or create post/list.html. We still don't have multiple content types, so let's stay consistent and update the default list template. 895 | 896 | ## Creating Top Level Pages 897 | 898 | Let's add an "about" page and display it at the top level (as opposed to a sub-level like we did with posts). 899 | 900 | The default in Hugo is to use the directory structure of the content/ directory to guide the location of the generated html in the public/ directory. Let's verify that by creating an "about" page at the top level: 901 | 902 | ``` 903 | $ vi content/about.md 904 | +++ 905 | title = "about" 906 | description = "about this site" 907 | date = "2014-09-27" 908 | slug = "about time" 909 | +++ 910 | 911 | ## about us 912 | 913 | i'm speechless 914 | :wq 915 | ``` 916 | 917 | Generate the web site and verify the results. 918 | 919 | ``` 920 | $ find public -name '*.html' | xargs ls -l 921 | -rw-rw-r-- 1 mdhender staff 334 Sep 27 15:08 public/about-time/index.html 922 | -rw-rw-r-- 1 mdhender staff 527 Sep 27 15:08 public/index.html 923 | -rw-rw-r-- 1 mdhender staff 358 Sep 27 15:08 public/post/first-post/index.html 924 | -rw-rw-r-- 1 mdhender staff 0 Sep 27 15:08 public/post/index.html 925 | -rw-rw-r-- 1 mdhender staff 342 Sep 27 15:08 public/post/second-post/index.html 926 | ``` 927 | 928 | Notice that the page wasn't created at the top level. It was created in a sub-directory named 'about-time/'. That name came from our slug. Hugo will use the slug to name the generated content. It's a reasonable default, by the way, but we can learn a few things by fighting it for this file. 929 | 930 | One other thing. Take a look at the home page. 931 | 932 | ``` 933 | $ cat public/index.html 934 | 935 | 936 | 937 |

creating a new theme

938 |

about

939 |

second

940 |

first

941 | 945 | 946 | ``` 947 | 948 | Notice that the "about" link is listed with the posts? That's not desirable, so let's change that first. 949 | 950 | ``` 951 | $ vi themes/zafta/layouts/index.html 952 | 953 | 954 | 955 |

posts

956 | {{ range first 10 .Data.Pages }} 957 | {{ if eq .Type "post"}} 958 |

{{ .Title }}

959 | {{ end }} 960 | {{ end }} 961 | 962 |

pages

963 | {{ range .Data.Pages }} 964 | {{ if eq .Type "page" }} 965 |

{{ .Title }}

966 | {{ end }} 967 | {{ end }} 968 | 969 | 970 | :wq 971 | ``` 972 | 973 | Generate the web site and verify the results. The home page has two sections, posts and pages, and each section has the right set of headings and links in it. 974 | 975 | But, that about page still renders to about-time/index.html. 976 | 977 | ``` 978 | $ find public -name '*.html' | xargs ls -l 979 | -rw-rw-r-- 1 mdhender staff 334 Sep 27 15:33 public/about-time/index.html 980 | -rw-rw-r-- 1 mdhender staff 645 Sep 27 15:33 public/index.html 981 | -rw-rw-r-- 1 mdhender staff 358 Sep 27 15:33 public/post/first-post/index.html 982 | -rw-rw-r-- 1 mdhender staff 0 Sep 27 15:33 public/post/index.html 983 | -rw-rw-r-- 1 mdhender staff 342 Sep 27 15:33 public/post/second-post/index.html 984 | ``` 985 | 986 | Knowing that hugo is using the slug to generate the file name, the simplest solution is to change the slug. Let's do it the hard way and change the permalink in the configuration file. 987 | 988 | ``` 989 | $ vi config.toml 990 | [permalinks] 991 | page = "/:title/" 992 | about = "/:filename/" 993 | ``` 994 | 995 | Generate the web site and verify that this didn't work. Hugo lets "slug" or "URL" override the permalinks setting in the configuration file. Go ahead and comment out the slug in content/about.md, then generate the web site to get it to be created in the right place. 996 | 997 | ## Sharing Templates 998 | 999 | If you've been following along, you probably noticed that posts have titles in the browser and the home page doesn't. That's because we didn't put the title in the home page's template (layouts/index.html). That's an easy thing to do, but let's look at a different option. 1000 | 1001 | We can put the common bits into a shared template that's stored in the themes/zafta/layouts/partials/ directory. 1002 | 1003 | ### Create the Header and Footer Partials 1004 | 1005 | In Hugo, a partial is a sugar-coated template. Normally a template reference has a path specified. Partials are different. Hugo searches for them along a TODO defined search path. This makes it easier for end-users to override the theme's presentation. 1006 | 1007 | ``` 1008 | $ vi themes/zafta/layouts/partials/header.html 1009 | 1010 | 1011 | 1012 | {{ .Title }} 1013 | 1014 | 1015 | :wq 1016 | 1017 | $ vi themes/zafta/layouts/partials/footer.html 1018 | 1019 | 1020 | :wq 1021 | ``` 1022 | 1023 | ### Update the Home Page Template to Use the Partials 1024 | 1025 | The most noticeable difference between a template call and a partials call is the lack of path: 1026 | 1027 | ``` 1028 | {{ template "theme/partials/header.html" . }} 1029 | ``` 1030 | versus 1031 | ``` 1032 | {{ partial "header.html" . }} 1033 | ``` 1034 | Both pass in the context. 1035 | 1036 | Let's change the home page template to use these new partials. 1037 | 1038 | ``` 1039 | $ vi themes/zafta/layouts/index.html 1040 | {{ partial "header.html" . }} 1041 | 1042 |

posts

1043 | {{ range first 10 .Data.Pages }} 1044 | {{ if eq .Type "post"}} 1045 |

{{ .Title }}

1046 | {{ end }} 1047 | {{ end }} 1048 | 1049 |

pages

1050 | {{ range .Data.Pages }} 1051 | {{ if or (eq .Type "page") (eq .Type "about") }} 1052 |

{{ .Type }} - {{ .Title }} - {{ .RelPermalink }}

1053 | {{ end }} 1054 | {{ end }} 1055 | 1056 | {{ partial "footer.html" . }} 1057 | :wq 1058 | ``` 1059 | 1060 | Generate the web site and verify the results. The title on the home page is now "your title here", which comes from the "title" variable in the config.toml file. 1061 | 1062 | ### Update the Default Single Template to Use the Partials 1063 | 1064 | ``` 1065 | $ vi themes/zafta/layouts/_default/single.html 1066 | {{ partial "header.html" . }} 1067 | 1068 |

{{ .Title }}

1069 | {{ .Content }} 1070 | 1071 | {{ partial "footer.html" . }} 1072 | :wq 1073 | ``` 1074 | 1075 | Generate the web site and verify the results. The title on the posts and the about page should both reflect the value in the markdown file. 1076 | 1077 | ## Add “Date Published” to Posts 1078 | 1079 | It's common to have posts display the date that they were written or published, so let's add that. The front matter of our posts has a variable named "date." It's usually the date the content was created, but let's pretend that's the value we want to display. 1080 | 1081 | ### Add “Date Published” to the Template 1082 | 1083 | We'll start by updating the template used to render the posts. The template code will look like: 1084 | 1085 | ``` 1086 | {{ .Date.Format "Mon, Jan 2, 2006" }} 1087 | ``` 1088 | 1089 | Posts use the default single template, so we'll change that file. 1090 | 1091 | ``` 1092 | $ vi themes/zafta/layouts/_default/single.html 1093 | {{ partial "header.html" . }} 1094 | 1095 |

{{ .Title }}

1096 |

{{ .Date.Format "Mon, Jan 2, 2006" }}

1097 | {{ .Content }} 1098 | 1099 | {{ partial "footer.html" . }} 1100 | :wq 1101 | ``` 1102 | 1103 | Generate the web site and verify the results. The posts now have the date displayed in them. There's a problem, though. The "about" page also has the date displayed. 1104 | 1105 | As usual, there are a couple of ways to make the date display only on posts. We could do an "if" statement like we did on the home page. Another way would be to create a separate template for posts. 1106 | 1107 | The "if" solution works for sites that have just a couple of content types. It aligns with the principle of "code for today," too. 1108 | 1109 | Let's assume, though, that we've made our site so complex that we feel we have to create a new template type. In Hugo-speak, we're going to create a section template. 1110 | 1111 | Let's restore the default single template before we forget. 1112 | 1113 | ``` 1114 | $ mkdir themes/zafta/layouts/post 1115 | $ vi themes/zafta/layouts/_default/single.html 1116 | {{ partial "header.html" . }} 1117 | 1118 |

{{ .Title }}

1119 | {{ .Content }} 1120 | 1121 | {{ partial "footer.html" . }} 1122 | :wq 1123 | ``` 1124 | 1125 | Now we'll update the post's version of the single template. If you remember Hugo's rules, the template engine will use this version over the default. 1126 | 1127 | ``` 1128 | $ vi themes/zafta/layouts/post/single.html 1129 | {{ partial "header.html" . }} 1130 | 1131 |

{{ .Title }}

1132 |

{{ .Date.Format "Mon, Jan 2, 2006" }}

1133 | {{ .Content }} 1134 | 1135 | {{ partial "footer.html" . }} 1136 | :wq 1137 | 1138 | ``` 1139 | 1140 | Note that we removed the date logic from the default template and put it in the post template. Generate the web site and verify the results. Posts have dates and the about page doesn't. 1141 | 1142 | ### Don't Repeat Yourself 1143 | 1144 | DRY is a good design goal and Hugo does a great job supporting it. Part of the art of a good template is knowing when to add a new template and when to update an existing one. While you're figuring that out, accept that you'll be doing some refactoring. Hugo makes that easy and fast, so it's okay to delay splitting up a template. 1145 | -------------------------------------------------------------------------------- /exampleSite/content/posts/japanese-preview.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "日本語敬語体系" 3 | date: 2019-04-10T14:26:00+08:00 4 | draft: false 5 | tags: ["日本語", "体系"] 6 | slug: "Japanese-Preview" 7 | --- 8 | 9 | > 日本語の敬語体系は、一般に、大きく尊敬語・謙譲語・丁寧語に分類される。文化審議会国語分科会は、2007年2月に「敬語の指針」を答申し、これに丁重語および美化語を含めた5分類を示している。 10 | 11 | # 尊敬語 12 | 13 | 尊敬語は、動作の主体を高めることで、主体への敬意を表す言い方である。動詞に「お(ご)~になる」を付けた形、また、助動詞「(ら)れる」を付けた形などが用いられる。たとえば、動詞「取る」の尊敬形として、「(先生が)お取りになる」「(先生が)取られる」などが用いられる。 14 | 15 | 語によっては、特定の尊敬語が対応するものもある。たとえば、「言う」の尊敬語は「おっしゃる」、「食べる」の尊敬語は「召し上がる」、「行く・来る・いる」の尊敬語は「いらっしゃる」である。 16 | 17 | # 謙譲語 18 | 19 | 謙譲語は、古代から基本的に動作の客体への敬意を表す言い方であり、現代では「動作の主体を低める」と解釈するほうがよい場合がある。動詞に「お~する」「お~いたします」(謙譲語+丁寧語)をつけた形などが用いられる。たとえば、「取る」の謙譲形として、「お取りする」などが用いられる。 20 | 21 | 語によっては、特定の謙譲語が対応するものもある。たとえば、「言う」の謙譲語は「申し上げる」、「食べる」の謙譲語は「いただく」、「(相手の所に)行く」の謙譲語は「伺う」「参上する」「まいる」である。 22 | 23 | なお、「夜も更けてまいりました」の「まいり」など、謙譲表現のようでありながら、誰かを低めているわけではない表現がある。これは、「夜も更けてきた」という話題を丁重に表現することによって、聞き手への敬意を表すものである。宮地裕は、この表現に使われる語を、特に「丁重語」と称している[104][105]。丁重語にはほかに「いたし(マス)」「申し(マス)」「存じ(マス)」「小生」「小社」「弊社」などがある。文化審議会の「敬語の指針」でも、「明日から海外へまいります」の「まいり」のように、相手とは関りのない自分側の動作を表現する言い方を丁重語としている。 24 | 25 | # 丁寧語 26 | 27 | 丁寧語は、文末を丁寧にすることで、聞き手への敬意を表すものである。動詞・形容詞の終止形で終わる常体に対して、名詞・形容動詞語幹などに「です」を付けた形(「学生です」「きれいです」)や、動詞に「ます」をつけた形(「行きます」「分かりました」)等の丁寧語を用いた文体を敬体という。 28 | 29 | 一般に、目上の人には丁寧語を用い、同等・目下の人には丁寧語を用いないといわれる。しかし、実際の言語生活に照らして考えれば、これは事実ではない。母が子を叱るとき、「お母さんはもう知りませんよ」と丁寧語を用いる場合ももある。丁寧語が用いられる多くの場合は、敬意や謝意の表現とされるが、、稀に一歩引いた心理的な距離をとろうとする場合もある。 30 | 31 | 「お弁当」「ご飯」などの「お」「ご」も、広い意味では丁寧語に含まれるが、宮地裕は特に「美化語」と称して区別する[104][105]。相手への丁寧の意を示すというよりは、話し手が自分の言葉遣いに配慮した表現である。したがって、「お弁当食べようよ。」のように、丁寧体でない文でも美化語を用いることがある。文化審議会の「敬語の指針」でも「美化語」を設けている。 32 | -------------------------------------------------------------------------------- /exampleSite/content/posts/theme-preview.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Theme Preview" 3 | date: 2019-03-31T17:49:40+08:00 4 | hidden: false 5 | draft: false 6 | tags: ["theme"] 7 | keywords: [] 8 | description: "" 9 | slug: "Theme Preview" 10 | --- 11 | 12 | # Headings 13 | 14 | ```markdown 15 | # H1 16 | ## H2 17 | ### H3 18 | #### H4 19 | ##### H5 20 | ###### H6 21 | ``` 22 | 23 | 24 | 25 | # H1 26 | 27 | ## H2 28 | 29 | ### H3 30 | 31 | #### H4 32 | 33 | ##### H5 34 | 35 | ###### H6 36 | 37 | # Paragraphs 38 | 39 | ```markdown 40 | This is a paragraph. 41 | I am still part of the paragraph. 42 | 43 | New paragraph. 44 | ``` 45 | 46 | This is a paragraph. 47 | I am still part of the paragraph. 48 | 49 | New paragraph. 50 | 51 | # Image 52 | 53 | ```markdown 54 | Web Image 55 | 56 | ![Web Image](https://i.loli.net/2019/04/13/5cb1d33cf0ee6.jpg) 57 | 58 | Local Image 59 | 60 | ![Local Image](100.jpg) 61 | 62 | ``` 63 | 64 | Web Image 65 | 66 | ![Web Image](https://i.loli.net/2019/04/13/5cb1d33cf0ee6.jpg) 67 | 68 | Local Image 69 | 70 | ![Local Image](/100.jpg) 71 | 72 | 73 | # Block Quotes 74 | 75 | ```markdown 76 | > This is a block quote 77 | ``` 78 | 79 | > This is a block quote 80 | 81 | # Code Blocks 82 | 83 | ``````markdown 84 | ```javascript 85 | // Fenced **with** highlighting 86 | function doIt() { 87 | for (var i = 1; i <= slen ; i^^) { 88 | setTimeout("document.z.textdisplay.value = newMake()", i*300); 89 | setTimeout("window.status = newMake()", i*300); 90 | } 91 | } 92 | ``` 93 | `````` 94 | 95 | ```javascript 96 | function doIt() { 97 | for (var i = 1; i <= slen ; i^^) { 98 | setTimeout("document.z.textdisplay.value = newMake()", i*300); 99 | setTimeout("window.status = newMake()", i*300); 100 | } 101 | } 102 | ``` 103 | 104 | # Tables 105 | 106 | ```markdown 107 | | Colors | Fruits | Vegetable | 108 | | ------------- |:---------------:| -----------------:| 109 | | Red | *Apple* | [Pepper](#Tables) | 110 | | ~~Orange~~ | Oranges | **Carrot** | 111 | | Green | ~~***Pears***~~ | Spinach | 112 | ``` 113 | 114 | | Colors | Fruits | Vegetable | 115 | | ------------- |:---------------:| -----------------:| 116 | | Red | *Apple* | [Pepper](#Tables) | 117 | | ~~Orange~~ | Oranges | **Carrot** | 118 | | Green | ~~***Pears***~~ | Spinach | 119 | 120 | # List Types 121 | 122 | #### Ordered List 123 | 124 | ```markdown 125 | 1. First item 126 | 2. Second item 127 | 3. Third item 128 | ``` 129 | 130 | 1. First item 131 | 2. Second item 132 | 3. Third item 133 | 134 | #### Unordered List 135 | 136 | ```markdown 137 | - First item 138 | - Second item 139 | - Third item 140 | ``` 141 | 142 | - First item 143 | - Second item 144 | - Third item 145 | 146 | # Math 147 | 148 | ``` 149 | $$ 150 | evidence\_{i}=\sum\_{j}W\_{ij}x\_{j}+b\_{i} 151 | $$ 152 | 153 | $$ 154 | AveP = \int_0^1 p(r) dr 155 | $$ 156 | 157 | When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are 158 | $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$ 159 | ``` 160 | 161 | $$ 162 | evidence\_{i}=\sum\_{j}W\_{ij}x\_{j}+b\_{i} 163 | $$ 164 | 165 | $$ 166 | AveP = \int_0^1 p(r) dr 167 | $$ 168 | 169 | When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are 170 | $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$ 171 | 172 | #### Emoji 173 | 174 | This is a test for emoji. 175 | :smile: 176 | :see_no_evil: 177 | :smile_cat: 178 | :watermelon: -------------------------------------------------------------------------------- /exampleSite/netlify.toml: -------------------------------------------------------------------------------- 1 | [build] 2 | publish = "public" 3 | command = "hugo --gc --minify" 4 | 5 | [context.production.environment] 6 | HUGO_VERSION = "0.72.0" 7 | HUGO_ENV = "production" 8 | HUGO_ENABLEGITINFO = "true" -------------------------------------------------------------------------------- /exampleSite/static/100.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varkai/hugo-theme-zozo/f16ebe56f0303fe50518232bf26415ccc68fc9ec/exampleSite/static/100.jpg -------------------------------------------------------------------------------- /i18n/en.yaml: -------------------------------------------------------------------------------- 1 | prev_page: 2 | other: "Prev" 3 | 4 | next_page: 5 | other: "Next" 6 | 7 | home: 8 | other: "Home" 9 | 10 | archive: 11 | other: "Archive" 12 | 13 | tags: 14 | other: "Tags" 15 | 16 | about: 17 | other: "About" -------------------------------------------------------------------------------- /i18n/zh-cn.yaml: -------------------------------------------------------------------------------- 1 | prev_page: 2 | other: "返回上一页" 3 | 4 | next_page: 5 | other: "阅读更多文章" 6 | 7 | home: 8 | other: "首页" 9 | 10 | archive: 11 | other: "归档" 12 | 13 | tags: 14 | other: "标签" 15 | 16 | about: 17 | other: "关于" -------------------------------------------------------------------------------- /images/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varkai/hugo-theme-zozo/f16ebe56f0303fe50518232bf26415ccc68fc9ec/images/screenshot.png -------------------------------------------------------------------------------- /images/showcase.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varkai/hugo-theme-zozo/f16ebe56f0303fe50518232bf26415ccc68fc9ec/images/showcase.png -------------------------------------------------------------------------------- /images/tn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varkai/hugo-theme-zozo/f16ebe56f0303fe50518232bf26415ccc68fc9ec/images/tn.png -------------------------------------------------------------------------------- /layouts/404.html: -------------------------------------------------------------------------------- 1 | {{ partial "head.html" . }} 2 | 3 | 4 |
5 | {{ partial "nav.html" . }} 6 | {{ partial "header.html" . }} 7 |
8 |
9 |

Sorry!

10 |

{{ with .Site.Params.title404 }}{{ . }}{{ else }}404 Page Not Found{{ end }}

11 |

{{ i18n "home" }}

12 |
13 | 14 |
15 |
16 | {{ partial "footer.html" . }} 17 | {{ partial "js.html" . }} 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /layouts/_default/list.html: -------------------------------------------------------------------------------- 1 | {{ partial "head.html" . }} 2 | 3 | 4 |
5 | {{ partial "nav.html" . }} 6 | {{ partial "header.html" . }} 7 |
8 |
9 | {{ range .Data.Pages.GroupByDate "2006" }} 10 |
{{ .Key }}
11 |
12 | {{ range .Pages }} 13 |
14 |
15 | {{ .Title }} 16 |
{{ .Date.Format "01-02" }}
17 |
18 |
19 | {{ end }} 20 |
21 | {{ end }} 22 |
23 | 24 |
25 | 26 |
27 | {{ partial "footer.html" . }} 28 | {{ partial "js.html" . }} 29 | 30 | 31 | -------------------------------------------------------------------------------- /layouts/_default/single.html: -------------------------------------------------------------------------------- 1 | {{ partial "head.html" . }} 2 | 3 | 4 |
5 | {{ partial "nav.html" . }} 6 | {{ partial "header.html" . }} 7 |
8 |
9 |
10 |
11 |

{{ .Title }}

12 | {{ .Date.Format "2006.01.02" }} 13 |
14 |
{{ .Content }}
15 | 29 |
30 | 31 | {{ if .Site.Params.valine.enable }} 32 | {{ partial "comments.html" . }} 33 | {{ else }} 34 |
{{ template "_internal/disqus.html" . }}
35 | {{ end }} 36 |
37 |
38 |
39 | 40 | {{ partial "footer.html" . }} 41 | {{ partial "js.html" . }} 42 | 43 | 44 | -------------------------------------------------------------------------------- /layouts/_default/terms.html: -------------------------------------------------------------------------------- 1 | {{ partial "head.html" . }} 2 | 3 | 4 |
5 | {{ partial "nav.html" . }} 6 | {{ partial "header.html" . }} 7 |
8 |
9 | 21 |
22 | 23 |
24 | 25 |
26 | {{ partial "footer.html" . }} 27 | {{ partial "js.html" . }} 28 | 29 | 30 | -------------------------------------------------------------------------------- /layouts/index.html: -------------------------------------------------------------------------------- 1 | {{ partial "head.html" . }} 2 | 3 | 4 |
5 | {{ partial "nav.html" . }} 6 | {{ partial "header.html" . }} 7 |
8 | {{ partial "post.html" .}} 9 |
10 |
11 | {{ partial "footer.html" . }} 12 | {{ partial "js.html" . }} 13 | 14 | 15 | -------------------------------------------------------------------------------- /layouts/partials/comments.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |
发表评论
4 |
5 |
6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /layouts/partials/footer.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/partials/head.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | {{ $title := ( .Title ) }} 9 | {{ $siteTitle := ( .Site.Title ) }} 10 | {{ if .IsHome }} 11 | {{ $siteTitle }} {{ if isset .Site.Params "subtitle" }}| {{ .Site.Params.Subtitle }}{{ end }} 12 | {{ else }} 13 | {{ $title }} | {{ $siteTitle }} 14 | {{ end }} 15 | 16 | {{ if .Description }} 17 | 18 | {{ else if .IsPage }} 19 | 20 | {{ else if .Site.Params.description }} 21 | 22 | {{ end }} 23 | 24 | {{ if .Keywords }} 25 | {{ $length := len .Keywords | add -1 }} 26 | 27 | {{ else if .Site.Params.keywords }} 28 | {{ $length := len .Site.Params.keywords | add -1 }} 29 | 30 | {{ end }} 31 | 32 | {{ with .OutputFormats.Get "rss" }} 33 | {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} 34 | {{ end }} 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | {{ range .Site.Params.customCSS }} 46 | 47 | {{ end }} 48 | -------------------------------------------------------------------------------- /layouts/partials/header.html: -------------------------------------------------------------------------------- 1 |
2 |
3 | 10 |
11 |

{{ with .Site.Params.subTitle }}{{ . }}{{ else }}{{ end }}

12 |
13 | {{ range $key, $val := .Site.Social }} 14 | {{ if ne $val "" }} 15 | 16 | {{ end }} 17 | {{ end }} 18 | 20 |
21 |
22 |
23 |
-------------------------------------------------------------------------------- /layouts/partials/js.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | {{ if .Site.Params.enableMathJax }} 7 | {{ partial "mathjax.html" . }} 8 | {{ end }} 9 | 10 | {{ template "_internal/google_analytics_async.html" . }} -------------------------------------------------------------------------------- /layouts/partials/mathjax.html: -------------------------------------------------------------------------------- 1 | 27 | 28 | -------------------------------------------------------------------------------- /layouts/partials/nav.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/partials/post.html: -------------------------------------------------------------------------------- 1 | {{ $paginator := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) }} 2 | {{ range $paginator.Pages }} 3 |
4 |
5 |

{{ .Title }}

6 |
7 | {{ if .Site.Params.enableSummary }} 8 |
9 |
10 |

{{ .Summary }}......

11 |
12 |
13 | {{ end }} 14 | 32 |
33 | {{ end }} 34 | 35 | -------------------------------------------------------------------------------- /layouts/shortcodes/img.html: -------------------------------------------------------------------------------- 1 | {{ $path := .Get "src" }} 2 | {{ $caption := .Get "title" }} 3 |
4 | 5 | 6 | 7 |
-------------------------------------------------------------------------------- /static/css/animate.min.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | 3 | /*! 4 | * animate.css -http://daneden.me/animate 5 | * Version - 3.7.0 6 | * Licensed under the MIT license - http://opensource.org/licenses/MIT 7 | * 8 | * Copyright (c) 2018 Daniel Eden 9 | */ 10 | 11 | @-webkit-keyframes bounce{0%,20%,53%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0);animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0);animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-30px,0)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0);animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0)}90%{-webkit-transform:translate3d(0,-4px,0);transform:translate3d(0,-4px,0)}}@keyframes bounce{0%,20%,53%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0);animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0);animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-30px,0)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0);animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0)}90%{-webkit-transform:translate3d(0,-4px,0);transform:translate3d(0,-4px,0)}}.bounce{-webkit-animation-name:bounce;-webkit-transform-origin:center bottom;animation-name:bounce;transform-origin:center bottom}@-webkit-keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}.flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes pulse{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes pulse{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.pulse{-webkit-animation-name:pulse;animation-name:pulse}@-webkit-keyframes rubberBand{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes rubberBand{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes shake{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes shake{0%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.shake{-webkit-animation-name:shake;animation-name:shake}@-webkit-keyframes headShake{0%{-webkit-transform:translateX(0);transform:translateX(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translateX(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translateX(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translateX(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translateX(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes headShake{0%{-webkit-transform:translateX(0);transform:translateX(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translateX(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translateX(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translateX(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translateX(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translateX(0)}}.headShake{-webkit-animation-name:headShake;-webkit-animation-timing-function:ease-in-out;animation-name:headShake;animation-timing-function:ease-in-out}@-webkit-keyframes swing{20%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}40%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}60%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}80%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(0deg);transform:rotate(0deg)}}@keyframes swing{20%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}40%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}60%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}80%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(0deg);transform:rotate(0deg)}}.swing{-webkit-animation-name:swing;-webkit-transform-origin:top center;animation-name:swing;transform-origin:top center}@-webkit-keyframes tada{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate(-3deg);transform:scale3d(.9,.9,.9) rotate(-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(3deg);transform:scale3d(1.1,1.1,1.1) rotate(3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(-3deg);transform:scale3d(1.1,1.1,1.1) rotate(-3deg)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes tada{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate(-3deg);transform:scale3d(.9,.9,.9) rotate(-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(3deg);transform:scale3d(1.1,1.1,1.1) rotate(3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(-3deg);transform:scale3d(1.1,1.1,1.1) rotate(-3deg)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.tada{-webkit-animation-name:tada;animation-name:tada}@-webkit-keyframes wobble{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate(-5deg);transform:translate3d(-25%,0,0) rotate(-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate(3deg);transform:translate3d(20%,0,0) rotate(3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate(-3deg);transform:translate3d(-15%,0,0) rotate(-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate(2deg);transform:translate3d(10%,0,0) rotate(2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate(-1deg);transform:translate3d(-5%,0,0) rotate(-1deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes wobble{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate(-5deg);transform:translate3d(-25%,0,0) rotate(-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate(3deg);transform:translate3d(20%,0,0) rotate(3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate(-3deg);transform:translate3d(-15%,0,0) rotate(-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate(2deg);transform:translate3d(10%,0,0) rotate(2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate(-1deg);transform:translate3d(-5%,0,0) rotate(-1deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.wobble{-webkit-animation-name:wobble;animation-name:wobble}@-webkit-keyframes jello{0%,11.1%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skewX(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skewX(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skewX(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skewX(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skewX(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skewX(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skewX(-.1953125deg) skewY(-.1953125deg)}}@keyframes jello{0%,11.1%,to{-webkit-transform:translateZ(0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skewX(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skewX(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skewX(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skewX(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skewX(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skewX(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skewX(-.1953125deg) skewY(-.1953125deg)}}.jello{-webkit-animation-name:jello;-webkit-transform-origin:center;animation-name:jello;transform-origin:center}@-webkit-keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}.heartBeat{-webkit-animation-duration:1.3s;-webkit-animation-name:heartBeat;-webkit-animation-timing-function:ease-in-out;animation-duration:1.3s;animation-name:heartBeat;animation-timing-function:ease-in-out}@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:scale3d(.3,.3,.3);opacity:0;transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{-webkit-transform:scale3d(1.03,1.03,1.03);opacity:1;transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{-webkit-transform:scaleX(1);opacity:1;transform:scaleX(1)}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:scale3d(.3,.3,.3);opacity:0;transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{-webkit-transform:scale3d(1.03,1.03,1.03);opacity:1;transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{-webkit-transform:scaleX(1);opacity:1;transform:scaleX(1)}}.bounceIn{-webkit-animation-duration:.75s;-webkit-animation-name:bounceIn;animation-duration:.75s;animation-name:bounceIn}@-webkit-keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:translate3d(0,-3000px,0);opacity:0;transform:translate3d(0,-3000px,0)}60%{-webkit-transform:translate3d(0,25px,0);opacity:1;transform:translate3d(0,25px,0)}75%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}90%{-webkit-transform:translate3d(0,5px,0);transform:translate3d(0,5px,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:translate3d(0,-3000px,0);opacity:0;transform:translate3d(0,-3000px,0)}60%{-webkit-transform:translate3d(0,25px,0);opacity:1;transform:translate3d(0,25px,0)}75%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}90%{-webkit-transform:translate3d(0,5px,0);transform:translate3d(0,5px,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInDown{-webkit-animation-name:bounceInDown;animation-name:bounceInDown}@-webkit-keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:translate3d(-3000px,0,0);opacity:0;transform:translate3d(-3000px,0,0)}60%{-webkit-transform:translate3d(25px,0,0);opacity:1;transform:translate3d(25px,0,0)}75%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}90%{-webkit-transform:translate3d(5px,0,0);transform:translate3d(5px,0,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:translate3d(-3000px,0,0);opacity:0;transform:translate3d(-3000px,0,0)}60%{-webkit-transform:translate3d(25px,0,0);opacity:1;transform:translate3d(25px,0,0)}75%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}90%{-webkit-transform:translate3d(5px,0,0);transform:translate3d(5px,0,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInLeft{-webkit-animation-name:bounceInLeft;animation-name:bounceInLeft}@-webkit-keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:translate3d(3000px,0,0);opacity:0;transform:translate3d(3000px,0,0)}60%{-webkit-transform:translate3d(-25px,0,0);opacity:1;transform:translate3d(-25px,0,0)}75%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}90%{-webkit-transform:translate3d(-5px,0,0);transform:translate3d(-5px,0,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:translate3d(3000px,0,0);opacity:0;transform:translate3d(3000px,0,0)}60%{-webkit-transform:translate3d(-25px,0,0);opacity:1;transform:translate3d(-25px,0,0)}75%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}90%{-webkit-transform:translate3d(-5px,0,0);transform:translate3d(-5px,0,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInRight{-webkit-animation-name:bounceInRight;animation-name:bounceInRight}@-webkit-keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:translate3d(0,3000px,0);opacity:0;transform:translate3d(0,3000px,0)}60%{-webkit-transform:translate3d(0,-20px,0);opacity:1;transform:translate3d(0,-20px,0)}75%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}90%{-webkit-transform:translate3d(0,-5px,0);transform:translate3d(0,-5px,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{-webkit-transform:translate3d(0,3000px,0);opacity:0;transform:translate3d(0,3000px,0)}60%{-webkit-transform:translate3d(0,-20px,0);opacity:1;transform:translate3d(0,-20px,0)}75%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}90%{-webkit-transform:translate3d(0,-5px,0);transform:translate3d(0,-5px,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}@-webkit-keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{-webkit-transform:scale3d(1.1,1.1,1.1);opacity:1;transform:scale3d(1.1,1.1,1.1)}to{-webkit-transform:scale3d(.3,.3,.3);opacity:0;transform:scale3d(.3,.3,.3)}}@keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{-webkit-transform:scale3d(1.1,1.1,1.1);opacity:1;transform:scale3d(1.1,1.1,1.1)}to{-webkit-transform:scale3d(.3,.3,.3);opacity:0;transform:scale3d(.3,.3,.3)}}.bounceOut{-webkit-animation-duration:.75s;-webkit-animation-name:bounceOut;animation-duration:.75s;animation-name:bounceOut}@-webkit-keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}40%,45%{-webkit-transform:translate3d(0,-20px,0);opacity:1;transform:translate3d(0,-20px,0)}to{-webkit-transform:translate3d(0,2000px,0);opacity:0;transform:translate3d(0,2000px,0)}}@keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}40%,45%{-webkit-transform:translate3d(0,-20px,0);opacity:1;transform:translate3d(0,-20px,0)}to{-webkit-transform:translate3d(0,2000px,0);opacity:0;transform:translate3d(0,2000px,0)}}.bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}@-webkit-keyframes bounceOutLeft{20%{-webkit-transform:translate3d(20px,0,0);opacity:1;transform:translate3d(20px,0,0)}to{-webkit-transform:translate3d(-2000px,0,0);opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes bounceOutLeft{20%{-webkit-transform:translate3d(20px,0,0);opacity:1;transform:translate3d(20px,0,0)}to{-webkit-transform:translate3d(-2000px,0,0);opacity:0;transform:translate3d(-2000px,0,0)}}.bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}@-webkit-keyframes bounceOutRight{20%{-webkit-transform:translate3d(-20px,0,0);opacity:1;transform:translate3d(-20px,0,0)}to{-webkit-transform:translate3d(2000px,0,0);opacity:0;transform:translate3d(2000px,0,0)}}@keyframes bounceOutRight{20%{-webkit-transform:translate3d(-20px,0,0);opacity:1;transform:translate3d(-20px,0,0)}to{-webkit-transform:translate3d(2000px,0,0);opacity:0;transform:translate3d(2000px,0,0)}}.bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}@-webkit-keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}40%,45%{-webkit-transform:translate3d(0,20px,0);opacity:1;transform:translate3d(0,20px,0)}to{-webkit-transform:translate3d(0,-2000px,0);opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}40%,45%{-webkit-transform:translate3d(0,20px,0);opacity:1;transform:translate3d(0,20px,0)}to{-webkit-transform:translate3d(0,-2000px,0);opacity:0;transform:translate3d(0,-2000px,0)}}.bounceOutUp{-webkit-animation-name:bounceOutUp;animation-name:bounceOutUp}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}@-webkit-keyframes fadeInDown{0%{-webkit-transform:translate3d(0,-100%,0);opacity:0;transform:translate3d(0,-100%,0)}to{-webkit-transform:translateZ(0);opacity:1;transform:translateZ(0)}}@keyframes fadeInDown{0%{-webkit-transform:translate3d(0,-100%,0);opacity:0;transform:translate3d(0,-100%,0)}to{-webkit-transform:translateZ(0);opacity:1;transform:translateZ(0)}}.fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInDownBig{0%{-webkit-transform:translate3d(0,-2000px,0);opacity:0;transform:translate3d(0,-2000px,0)}to{-webkit-transform:translateZ(0);opacity:1;transform:translateZ(0)}}@keyframes fadeInDownBig{0%{-webkit-transform:translate3d(0,-2000px,0);opacity:0;transform:translate3d(0,-2000px,0)}to{-webkit-transform:translateZ(0);opacity:1;transform:translateZ(0)}}.fadeInDownBig{-webkit-animation-name:fadeInDownBig;animation-name:fadeInDownBig}@-webkit-keyframes fadeInLeft{0%{-webkit-transform:translate3d(-100%,0,0);opacity:0;transform:translate3d(-100%,0,0)}to{-webkit-transform:translateZ(0);opacity:1;transform:translateZ(0)}}@keyframes fadeInLeft{0%{-webkit-transform:translate3d(-100%,0,0);opacity:0;transform:translate3d(-100%,0,0)}to{-webkit-transform:translateZ(0);opacity:1;transform:translateZ(0)}}.fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}@-webkit-keyframes fadeInLeftBig{0%{-webkit-transform:translate3d(-2000px,0,0);opacity:0;transform:translate3d(-2000px,0,0)}to{-webkit-transform:translateZ(0);opacity:1;transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{-webkit-transform:translate3d(-2000px,0,0);opacity:0;transform:translate3d(-2000px,0,0)}to{-webkit-transform:translateZ(0);opacity:1;transform:translateZ(0)}}.fadeInLeftBig{-webkit-animation-name:fadeInLeftBig;animation-name:fadeInLeftBig}@-webkit-keyframes fadeInRight{0%{-webkit-transform:translate3d(100%,0,0);opacity:0;transform:translate3d(100%,0,0)}to{-webkit-transform:translateZ(0);opacity:1;transform:translateZ(0)}}@keyframes fadeInRight{0%{-webkit-transform:translate3d(100%,0,0);opacity:0;transform:translate3d(100%,0,0)}to{-webkit-transform:translateZ(0);opacity:1;transform:translateZ(0)}}.fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInRightBig{0%{-webkit-transform:translate3d(2000px,0,0);opacity:0;transform:translate3d(2000px,0,0)}to{-webkit-transform:translateZ(0);opacity:1;transform:translateZ(0)}}@keyframes fadeInRightBig{0%{-webkit-transform:translate3d(2000px,0,0);opacity:0;transform:translate3d(2000px,0,0)}to{-webkit-transform:translateZ(0);opacity:1;transform:translateZ(0)}}.fadeInRightBig{-webkit-animation-name:fadeInRightBig;animation-name:fadeInRightBig}@-webkit-keyframes fadeInUp{0%{-webkit-transform:translate3d(0,100%,0);opacity:0;transform:translate3d(0,100%,0)}to{-webkit-transform:translateZ(0);opacity:1;transform:translateZ(0)}}@keyframes fadeInUp{0%{-webkit-transform:translate3d(0,100%,0);opacity:0;transform:translate3d(0,100%,0)}to{-webkit-transform:translateZ(0);opacity:1;transform:translateZ(0)}}.fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes fadeInUpBig{0%{-webkit-transform:translate3d(0,2000px,0);opacity:0;transform:translate3d(0,2000px,0)}to{-webkit-transform:translateZ(0);opacity:1;transform:translateZ(0)}}@keyframes fadeInUpBig{0%{-webkit-transform:translate3d(0,2000px,0);opacity:0;transform:translate3d(0,2000px,0)}to{-webkit-transform:translateZ(0);opacity:1;transform:translateZ(0)}}.fadeInUpBig{-webkit-animation-name:fadeInUpBig;animation-name:fadeInUpBig}@-webkit-keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeOutDown{0%{opacity:1}to{-webkit-transform:translate3d(0,100%,0);opacity:0;transform:translate3d(0,100%,0)}}@keyframes fadeOutDown{0%{opacity:1}to{-webkit-transform:translate3d(0,100%,0);opacity:0;transform:translate3d(0,100%,0)}}.fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}@-webkit-keyframes fadeOutDownBig{0%{opacity:1}to{-webkit-transform:translate3d(0,2000px,0);opacity:0;transform:translate3d(0,2000px,0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{-webkit-transform:translate3d(0,2000px,0);opacity:0;transform:translate3d(0,2000px,0)}}.fadeOutDownBig{-webkit-animation-name:fadeOutDownBig;animation-name:fadeOutDownBig}@-webkit-keyframes fadeOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0);opacity:0;transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0);opacity:0;transform:translate3d(-100%,0,0)}}.fadeOutLeft{-webkit-animation-name:fadeOutLeft;animation-name:fadeOutLeft}@-webkit-keyframes fadeOutLeftBig{0%{opacity:1}to{-webkit-transform:translate3d(-2000px,0,0);opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{-webkit-transform:translate3d(-2000px,0,0);opacity:0;transform:translate3d(-2000px,0,0)}}.fadeOutLeftBig{-webkit-animation-name:fadeOutLeftBig;animation-name:fadeOutLeftBig}@-webkit-keyframes fadeOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0);opacity:0;transform:translate3d(100%,0,0)}}@keyframes fadeOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0);opacity:0;transform:translate3d(100%,0,0)}}.fadeOutRight{-webkit-animation-name:fadeOutRight;animation-name:fadeOutRight}@-webkit-keyframes fadeOutRightBig{0%{opacity:1}to{-webkit-transform:translate3d(2000px,0,0);opacity:0;transform:translate3d(2000px,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{-webkit-transform:translate3d(2000px,0,0);opacity:0;transform:translate3d(2000px,0,0)}}.fadeOutRightBig{-webkit-animation-name:fadeOutRightBig;animation-name:fadeOutRightBig}@-webkit-keyframes fadeOutUp{0%{opacity:1}to{-webkit-transform:translate3d(0,-100%,0);opacity:0;transform:translate3d(0,-100%,0)}}@keyframes fadeOutUp{0%{opacity:1}to{-webkit-transform:translate3d(0,-100%,0);opacity:0;transform:translate3d(0,-100%,0)}}.fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}@-webkit-keyframes fadeOutUpBig{0%{opacity:1}to{-webkit-transform:translate3d(0,-2000px,0);opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{-webkit-transform:translate3d(0,-2000px,0);opacity:0;transform:translate3d(0,-2000px,0)}}.fadeOutUpBig{-webkit-animation-name:fadeOutUpBig;animation-name:fadeOutUpBig}@-webkit-keyframes flip{0%{-webkit-animation-timing-function:ease-out;-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);animation-timing-function:ease-out;transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn)}40%{-webkit-animation-timing-function:ease-out;-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);animation-timing-function:ease-out;transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg)}50%{-webkit-animation-timing-function:ease-in;-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);animation-timing-function:ease-in;transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg)}80%{-webkit-animation-timing-function:ease-in;-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg);animation-timing-function:ease-in;transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg)}to{-webkit-animation-timing-function:ease-in;-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg);animation-timing-function:ease-in;transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg)}}@keyframes flip{0%{-webkit-animation-timing-function:ease-out;-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn);animation-timing-function:ease-out;transform:perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn)}40%{-webkit-animation-timing-function:ease-out;-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg);animation-timing-function:ease-out;transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg)}50%{-webkit-animation-timing-function:ease-in;-webkit-transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg);animation-timing-function:ease-in;transform:perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg)}80%{-webkit-animation-timing-function:ease-in;-webkit-transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg);animation-timing-function:ease-in;transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0deg)}to{-webkit-animation-timing-function:ease-in;-webkit-transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg);animation-timing-function:ease-in;transform:perspective(400px) scaleX(1) translateZ(0) rotateY(0deg)}}.animated.flip{-webkit-animation-name:flip;-webkit-backface-visibility:visible;animation-name:flip;backface-visibility:visible}@-webkit-keyframes flipInX{0%{-webkit-animation-timing-function:ease-in;-webkit-transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0;transform:perspective(400px) rotateX(90deg)}40%{-webkit-animation-timing-function:ease-in;-webkit-transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in;transform:perspective(400px) rotateX(-20deg)}60%{-webkit-transform:perspective(400px) rotateX(10deg);opacity:1;transform:perspective(400px) rotateX(10deg)}80%{-webkit-transform:perspective(400px) rotateX(-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInX{0%{-webkit-animation-timing-function:ease-in;-webkit-transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0;transform:perspective(400px) rotateX(90deg)}40%{-webkit-animation-timing-function:ease-in;-webkit-transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in;transform:perspective(400px) rotateX(-20deg)}60%{-webkit-transform:perspective(400px) rotateX(10deg);opacity:1;transform:perspective(400px) rotateX(10deg)}80%{-webkit-transform:perspective(400px) rotateX(-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.flipInX{-webkit-animation-name:flipInX;-webkit-backface-visibility:visible!important;animation-name:flipInX;backface-visibility:visible!important}@-webkit-keyframes flipInY{0%{-webkit-animation-timing-function:ease-in;-webkit-transform:perspective(400px) rotateY(90deg);animation-timing-function:ease-in;opacity:0;transform:perspective(400px) rotateY(90deg)}40%{-webkit-animation-timing-function:ease-in;-webkit-transform:perspective(400px) rotateY(-20deg);animation-timing-function:ease-in;transform:perspective(400px) rotateY(-20deg)}60%{-webkit-transform:perspective(400px) rotateY(10deg);opacity:1;transform:perspective(400px) rotateY(10deg)}80%{-webkit-transform:perspective(400px) rotateY(-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInY{0%{-webkit-animation-timing-function:ease-in;-webkit-transform:perspective(400px) rotateY(90deg);animation-timing-function:ease-in;opacity:0;transform:perspective(400px) rotateY(90deg)}40%{-webkit-animation-timing-function:ease-in;-webkit-transform:perspective(400px) rotateY(-20deg);animation-timing-function:ease-in;transform:perspective(400px) rotateY(-20deg)}60%{-webkit-transform:perspective(400px) rotateY(10deg);opacity:1;transform:perspective(400px) rotateY(10deg)}80%{-webkit-transform:perspective(400px) rotateY(-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}.flipInY{-webkit-animation-name:flipInY;-webkit-backface-visibility:visible!important;animation-name:flipInY;backface-visibility:visible!important}@-webkit-keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateX(-20deg);opacity:1;transform:perspective(400px) rotateX(-20deg)}to{-webkit-transform:perspective(400px) rotateX(90deg);opacity:0;transform:perspective(400px) rotateX(90deg)}}@keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateX(-20deg);opacity:1;transform:perspective(400px) rotateX(-20deg)}to{-webkit-transform:perspective(400px) rotateX(90deg);opacity:0;transform:perspective(400px) rotateX(90deg)}}.flipOutX{-webkit-animation-duration:.75s;-webkit-animation-name:flipOutX;-webkit-backface-visibility:visible!important;animation-duration:.75s;animation-name:flipOutX;backface-visibility:visible!important}@-webkit-keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateY(-15deg);opacity:1;transform:perspective(400px) rotateY(-15deg)}to{-webkit-transform:perspective(400px) rotateY(90deg);opacity:0;transform:perspective(400px) rotateY(90deg)}}@keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateY(-15deg);opacity:1;transform:perspective(400px) rotateY(-15deg)}to{-webkit-transform:perspective(400px) rotateY(90deg);opacity:0;transform:perspective(400px) rotateY(90deg)}}.flipOutY{-webkit-animation-duration:.75s;-webkit-animation-name:flipOutY;-webkit-backface-visibility:visible!important;animation-duration:.75s;animation-name:flipOutY;backface-visibility:visible!important}@-webkit-keyframes lightSpeedIn{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);opacity:0;transform:translate3d(100%,0,0) skewX(-30deg)}60%{-webkit-transform:skewX(20deg);opacity:1;transform:skewX(20deg)}80%{-webkit-transform:skewX(-5deg);transform:skewX(-5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes lightSpeedIn{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);opacity:0;transform:translate3d(100%,0,0) skewX(-30deg)}60%{-webkit-transform:skewX(20deg);opacity:1;transform:skewX(20deg)}80%{-webkit-transform:skewX(-5deg);transform:skewX(-5deg)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.lightSpeedIn{-webkit-animation-name:lightSpeedIn;-webkit-animation-timing-function:ease-out;animation-name:lightSpeedIn;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedOut{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);opacity:0;transform:translate3d(100%,0,0) skewX(30deg)}}@keyframes lightSpeedOut{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);opacity:0;transform:translate3d(100%,0,0) skewX(30deg)}}.lightSpeedOut{-webkit-animation-name:lightSpeedOut;-webkit-animation-timing-function:ease-in;animation-name:lightSpeedOut;animation-timing-function:ease-in}@-webkit-keyframes rotateIn{0%{-webkit-transform:rotate(-200deg);-webkit-transform-origin:center;opacity:0;transform:rotate(-200deg);transform-origin:center}to{-webkit-transform:translateZ(0);-webkit-transform-origin:center;opacity:1;transform:translateZ(0);transform-origin:center}}@keyframes rotateIn{0%{-webkit-transform:rotate(-200deg);-webkit-transform-origin:center;opacity:0;transform:rotate(-200deg);transform-origin:center}to{-webkit-transform:translateZ(0);-webkit-transform-origin:center;opacity:1;transform:translateZ(0);transform-origin:center}}.rotateIn{-webkit-animation-name:rotateIn;animation-name:rotateIn}@-webkit-keyframes rotateInDownLeft{0%{-webkit-transform:rotate(-45deg);-webkit-transform-origin:left bottom;opacity:0;transform:rotate(-45deg);transform-origin:left bottom}to{-webkit-transform:translateZ(0);-webkit-transform-origin:left bottom;opacity:1;transform:translateZ(0);transform-origin:left bottom}}@keyframes rotateInDownLeft{0%{-webkit-transform:rotate(-45deg);-webkit-transform-origin:left bottom;opacity:0;transform:rotate(-45deg);transform-origin:left bottom}to{-webkit-transform:translateZ(0);-webkit-transform-origin:left bottom;opacity:1;transform:translateZ(0);transform-origin:left bottom}}.rotateInDownLeft{-webkit-animation-name:rotateInDownLeft;animation-name:rotateInDownLeft}@-webkit-keyframes rotateInDownRight{0%{-webkit-transform:rotate(45deg);-webkit-transform-origin:right bottom;opacity:0;transform:rotate(45deg);transform-origin:right bottom}to{-webkit-transform:translateZ(0);-webkit-transform-origin:right bottom;opacity:1;transform:translateZ(0);transform-origin:right bottom}}@keyframes rotateInDownRight{0%{-webkit-transform:rotate(45deg);-webkit-transform-origin:right bottom;opacity:0;transform:rotate(45deg);transform-origin:right bottom}to{-webkit-transform:translateZ(0);-webkit-transform-origin:right bottom;opacity:1;transform:translateZ(0);transform-origin:right bottom}}.rotateInDownRight{-webkit-animation-name:rotateInDownRight;animation-name:rotateInDownRight}@-webkit-keyframes rotateInUpLeft{0%{-webkit-transform:rotate(45deg);-webkit-transform-origin:left bottom;opacity:0;transform:rotate(45deg);transform-origin:left bottom}to{-webkit-transform:translateZ(0);-webkit-transform-origin:left bottom;opacity:1;transform:translateZ(0);transform-origin:left bottom}}@keyframes rotateInUpLeft{0%{-webkit-transform:rotate(45deg);-webkit-transform-origin:left bottom;opacity:0;transform:rotate(45deg);transform-origin:left bottom}to{-webkit-transform:translateZ(0);-webkit-transform-origin:left bottom;opacity:1;transform:translateZ(0);transform-origin:left bottom}}.rotateInUpLeft{-webkit-animation-name:rotateInUpLeft;animation-name:rotateInUpLeft}@-webkit-keyframes rotateInUpRight{0%{-webkit-transform:rotate(-90deg);-webkit-transform-origin:right bottom;opacity:0;transform:rotate(-90deg);transform-origin:right bottom}to{-webkit-transform:translateZ(0);-webkit-transform-origin:right bottom;opacity:1;transform:translateZ(0);transform-origin:right bottom}}@keyframes rotateInUpRight{0%{-webkit-transform:rotate(-90deg);-webkit-transform-origin:right bottom;opacity:0;transform:rotate(-90deg);transform-origin:right bottom}to{-webkit-transform:translateZ(0);-webkit-transform-origin:right bottom;opacity:1;transform:translateZ(0);transform-origin:right bottom}}.rotateInUpRight{-webkit-animation-name:rotateInUpRight;animation-name:rotateInUpRight}@-webkit-keyframes rotateOut{0%{-webkit-transform-origin:center;opacity:1;transform-origin:center}to{-webkit-transform:rotate(200deg);-webkit-transform-origin:center;opacity:0;transform:rotate(200deg);transform-origin:center}}@keyframes rotateOut{0%{-webkit-transform-origin:center;opacity:1;transform-origin:center}to{-webkit-transform:rotate(200deg);-webkit-transform-origin:center;opacity:0;transform:rotate(200deg);transform-origin:center}}.rotateOut{-webkit-animation-name:rotateOut;animation-name:rotateOut}@-webkit-keyframes rotateOutDownLeft{0%{-webkit-transform-origin:left bottom;opacity:1;transform-origin:left bottom}to{-webkit-transform:rotate(45deg);-webkit-transform-origin:left bottom;opacity:0;transform:rotate(45deg);transform-origin:left bottom}}@keyframes rotateOutDownLeft{0%{-webkit-transform-origin:left bottom;opacity:1;transform-origin:left bottom}to{-webkit-transform:rotate(45deg);-webkit-transform-origin:left bottom;opacity:0;transform:rotate(45deg);transform-origin:left bottom}}.rotateOutDownLeft{-webkit-animation-name:rotateOutDownLeft;animation-name:rotateOutDownLeft}@-webkit-keyframes rotateOutDownRight{0%{-webkit-transform-origin:right bottom;opacity:1;transform-origin:right bottom}to{-webkit-transform:rotate(-45deg);-webkit-transform-origin:right bottom;opacity:0;transform:rotate(-45deg);transform-origin:right bottom}}@keyframes rotateOutDownRight{0%{-webkit-transform-origin:right bottom;opacity:1;transform-origin:right bottom}to{-webkit-transform:rotate(-45deg);-webkit-transform-origin:right bottom;opacity:0;transform:rotate(-45deg);transform-origin:right bottom}}.rotateOutDownRight{-webkit-animation-name:rotateOutDownRight;animation-name:rotateOutDownRight}@-webkit-keyframes rotateOutUpLeft{0%{-webkit-transform-origin:left bottom;opacity:1;transform-origin:left bottom}to{-webkit-transform:rotate(-45deg);-webkit-transform-origin:left bottom;opacity:0;transform:rotate(-45deg);transform-origin:left bottom}}@keyframes rotateOutUpLeft{0%{-webkit-transform-origin:left bottom;opacity:1;transform-origin:left bottom}to{-webkit-transform:rotate(-45deg);-webkit-transform-origin:left bottom;opacity:0;transform:rotate(-45deg);transform-origin:left bottom}}.rotateOutUpLeft{-webkit-animation-name:rotateOutUpLeft;animation-name:rotateOutUpLeft}@-webkit-keyframes rotateOutUpRight{0%{-webkit-transform-origin:right bottom;opacity:1;transform-origin:right bottom}to{-webkit-transform:rotate(90deg);-webkit-transform-origin:right bottom;opacity:0;transform:rotate(90deg);transform-origin:right bottom}}@keyframes rotateOutUpRight{0%{-webkit-transform-origin:right bottom;opacity:1;transform-origin:right bottom}to{-webkit-transform:rotate(90deg);-webkit-transform-origin:right bottom;opacity:0;transform:rotate(90deg);transform-origin:right bottom}}.rotateOutUpRight{-webkit-animation-name:rotateOutUpRight;animation-name:rotateOutUpRight}@-webkit-keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;-webkit-transform-origin:top left;animation-timing-function:ease-in-out;transform-origin:top left}20%,60%{-webkit-animation-timing-function:ease-in-out;-webkit-transform:rotate(80deg);-webkit-transform-origin:top left;animation-timing-function:ease-in-out;transform:rotate(80deg);transform-origin:top left}40%,80%{-webkit-animation-timing-function:ease-in-out;-webkit-transform:rotate(60deg);-webkit-transform-origin:top left;animation-timing-function:ease-in-out;opacity:1;transform:rotate(60deg);transform-origin:top left}to{-webkit-transform:translate3d(0,700px,0);opacity:0;transform:translate3d(0,700px,0)}}@keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;-webkit-transform-origin:top left;animation-timing-function:ease-in-out;transform-origin:top left}20%,60%{-webkit-animation-timing-function:ease-in-out;-webkit-transform:rotate(80deg);-webkit-transform-origin:top left;animation-timing-function:ease-in-out;transform:rotate(80deg);transform-origin:top left}40%,80%{-webkit-animation-timing-function:ease-in-out;-webkit-transform:rotate(60deg);-webkit-transform-origin:top left;animation-timing-function:ease-in-out;opacity:1;transform:rotate(60deg);transform-origin:top left}to{-webkit-transform:translate3d(0,700px,0);opacity:0;transform:translate3d(0,700px,0)}}.hinge{-webkit-animation-duration:2s;-webkit-animation-name:hinge;animation-duration:2s;animation-name:hinge}@-webkit-keyframes jackInTheBox{0%{-webkit-transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;opacity:0;transform:scale(.1) rotate(30deg);transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{-webkit-transform:scale(1);opacity:1;transform:scale(1)}}@keyframes jackInTheBox{0%{-webkit-transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;opacity:0;transform:scale(.1) rotate(30deg);transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{-webkit-transform:scale(1);opacity:1;transform:scale(1)}}.jackInTheBox{-webkit-animation-name:jackInTheBox;animation-name:jackInTheBox}@-webkit-keyframes rollIn{0%{-webkit-transform:translate3d(-100%,0,0) rotate(-120deg);opacity:0;transform:translate3d(-100%,0,0) rotate(-120deg)}to{-webkit-transform:translateZ(0);opacity:1;transform:translateZ(0)}}@keyframes rollIn{0%{-webkit-transform:translate3d(-100%,0,0) rotate(-120deg);opacity:0;transform:translate3d(-100%,0,0) rotate(-120deg)}to{-webkit-transform:translateZ(0);opacity:1;transform:translateZ(0)}}.rollIn{-webkit-animation-name:rollIn;animation-name:rollIn}@-webkit-keyframes rollOut{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) rotate(120deg);opacity:0;transform:translate3d(100%,0,0) rotate(120deg)}}@keyframes rollOut{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) rotate(120deg);opacity:0;transform:translate3d(100%,0,0) rotate(120deg)}}.rollOut{-webkit-animation-name:rollOut;animation-name:rollOut}@-webkit-keyframes zoomIn{0%{-webkit-transform:scale3d(.3,.3,.3);opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomIn{0%{-webkit-transform:scale3d(.3,.3,.3);opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}.zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}@-webkit-keyframes zoomInDown{0%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0)}60%{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0)}}@keyframes zoomInDown{0%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0)}60%{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0)}}.zoomInDown{-webkit-animation-name:zoomInDown;animation-name:zoomInDown}@-webkit-keyframes zoomInLeft{0%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:0;transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0)}60%{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:1;transform:scale3d(.475,.475,.475) translate3d(10px,0,0)}}@keyframes zoomInLeft{0%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:0;transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0)}60%{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:1;transform:scale3d(.475,.475,.475) translate3d(10px,0,0)}}.zoomInLeft{-webkit-animation-name:zoomInLeft;animation-name:zoomInLeft}@-webkit-keyframes zoomInRight{0%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:0;transform:scale3d(.1,.1,.1) translate3d(1000px,0,0)}60%{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:1;transform:scale3d(.475,.475,.475) translate3d(-10px,0,0)}}@keyframes zoomInRight{0%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:0;transform:scale3d(.1,.1,.1) translate3d(1000px,0,0)}60%{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:1;transform:scale3d(.475,.475,.475) translate3d(-10px,0,0)}}.zoomInRight{-webkit-animation-name:zoomInRight;animation-name:zoomInRight}@-webkit-keyframes zoomInUp{0%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,1000px,0)}60%{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0)}}@keyframes zoomInUp{0%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,1000px,0)}60%{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0)}}.zoomInUp{-webkit-animation-name:zoomInUp;animation-name:zoomInUp}@-webkit-keyframes zoomOut{0%{opacity:1}50%{-webkit-transform:scale3d(.3,.3,.3);opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOut{0%{opacity:1}50%{-webkit-transform:scale3d(.3,.3,.3);opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}.zoomOut{-webkit-animation-name:zoomOut;animation-name:zoomOut}@-webkit-keyframes zoomOutDown{40%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0)}to{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-transform-origin:center bottom;animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform-origin:center bottom}}@keyframes zoomOutDown{40%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0)}to{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-transform-origin:center bottom;animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform-origin:center bottom}}.zoomOutDown{-webkit-animation-name:zoomOutDown;animation-name:zoomOutDown}@-webkit-keyframes zoomOutLeft{40%{-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);opacity:1;transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{-webkit-transform:scale(.1) translate3d(-2000px,0,0);-webkit-transform-origin:left center;opacity:0;transform:scale(.1) translate3d(-2000px,0,0);transform-origin:left center}}@keyframes zoomOutLeft{40%{-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);opacity:1;transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{-webkit-transform:scale(.1) translate3d(-2000px,0,0);-webkit-transform-origin:left center;opacity:0;transform:scale(.1) translate3d(-2000px,0,0);transform-origin:left center}}.zoomOutLeft{-webkit-animation-name:zoomOutLeft;animation-name:zoomOutLeft}@-webkit-keyframes zoomOutRight{40%{-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);opacity:1;transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{-webkit-transform:scale(.1) translate3d(2000px,0,0);-webkit-transform-origin:right center;opacity:0;transform:scale(.1) translate3d(2000px,0,0);transform-origin:right center}}@keyframes zoomOutRight{40%{-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);opacity:1;transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{-webkit-transform:scale(.1) translate3d(2000px,0,0);-webkit-transform-origin:right center;opacity:0;transform:scale(.1) translate3d(2000px,0,0);transform-origin:right center}}.zoomOutRight{-webkit-animation-name:zoomOutRight;animation-name:zoomOutRight}@-webkit-keyframes zoomOutUp{40%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0)}to{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-transform-origin:center bottom;animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform-origin:center bottom}}@keyframes zoomOutUp{40%{-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19);opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0)}to{-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-transform-origin:center bottom;animation-timing-function:cubic-bezier(.175,.885,.32,1);opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform-origin:center bottom}}.zoomOutUp{-webkit-animation-name:zoomOutUp;animation-name:zoomOutUp}@-webkit-keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInDown{-webkit-animation-name:slideInDown;animation-name:slideInDown}@-webkit-keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInLeft{-webkit-animation-name:slideInLeft;animation-name:slideInLeft}@-webkit-keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}@-webkit-keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:hidden}}@keyframes slideOutDown{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:hidden}}.slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}@-webkit-keyframes slideOutLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:hidden}}@keyframes slideOutLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:hidden}}.slideOutLeft{-webkit-animation-name:slideOutLeft;animation-name:slideOutLeft}@-webkit-keyframes slideOutRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:hidden}}@keyframes slideOutRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:hidden}}.slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}@-webkit-keyframes slideOutUp{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:hidden}}@keyframes slideOutUp{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:hidden}}.slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp}.animated{-webkit-animation-duration:1s;-webkit-animation-fill-mode:both;animation-duration:1s;animation-fill-mode:both}.animated.infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.animated.delay-1s{-webkit-animation-delay:1s;animation-delay:1s}.animated.delay-2s{-webkit-animation-delay:2s;animation-delay:2s}.animated.delay-3s{-webkit-animation-delay:3s;animation-delay:3s}.animated.delay-4s{-webkit-animation-delay:4s;animation-delay:4s}.animated.delay-5s{-webkit-animation-delay:5s;animation-delay:5s}.animated.fast{-webkit-animation-duration:.8s;animation-duration:.8s}.animated.faster{-webkit-animation-duration:.5s;animation-duration:.5s}.animated.slow{-webkit-animation-duration:2s;animation-duration:2s}.animated.slower{-webkit-animation-duration:3s;animation-duration:3s}@media (prefers-reduced-motion){.animated{-webkit-animation:unset!important;-webkit-transition:none!important;animation:unset!important;transition:none!important}} 12 | -------------------------------------------------------------------------------- /static/css/comments.css: -------------------------------------------------------------------------------- 1 | .v .vwrap { 2 | border-radius: unset; 3 | margin-top: 15px; 4 | } 5 | 6 | .v .veditor { 7 | min-height: 4.75rem; 8 | } 9 | 10 | .v .vwrap .vheader .vinput { 11 | border: none; 12 | } 13 | 14 | .v .vbtn { 15 | color: #FFFFFF; 16 | background-color: #000000; 17 | border: none; 18 | } 19 | 20 | .v .vbtn:active, 21 | .v .vbtn:hover { 22 | color: #FFFFFF; 23 | border-color: #000000; 24 | background-color: #303538; 25 | } 26 | -------------------------------------------------------------------------------- /static/css/fancybox.min.css: -------------------------------------------------------------------------------- 1 | body.compensate-for-scrollbar{overflow:hidden}.fancybox-active{height:auto}.fancybox-is-hidden{left:-9999px;margin:0;position:absolute!important;top:-9999px;visibility:hidden}.fancybox-container{-webkit-backface-visibility:hidden;height:100%;left:0;outline:none;position:fixed;-webkit-tap-highlight-color:transparent;top:0;-ms-touch-action:manipulation;touch-action:manipulation;transform:translateZ(0);width:100%;z-index:99992;background:rgba(255,255,255,0.7);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter: saturate(180%) blur(20px);}.fancybox-container *{box-sizing:border-box}.fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-stage{bottom:0;left:0;position:absolute;right:0;top:0}.fancybox-outer{-webkit-overflow-scrolling:touch;overflow-y:auto}.fancybox-bg{opacity:0;transition-duration:inherit;transition-property:opacity;transition-timing-function:cubic-bezier(.47,0,.74,.71)}.fancybox-is-open .fancybox-bg{opacity:1;transition-timing-function:cubic-bezier(.22,.61,.36,1)}.fancybox-caption,.fancybox-infobar,.fancybox-navigation .fancybox-button,.fancybox-toolbar{direction:ltr;opacity:0;position:absolute;transition:opacity .25s ease,visibility 0s ease .25s;visibility:hidden;z-index:99997}.fancybox-show-caption .fancybox-caption,.fancybox-show-infobar .fancybox-infobar,.fancybox-show-nav .fancybox-navigation .fancybox-button,.fancybox-show-toolbar .fancybox-toolbar{opacity:1;transition:opacity .25s ease 0s,visibility 0s ease 0s;visibility:visible}.fancybox-infobar{color:#ccc;font-size:13px;-webkit-font-smoothing:subpixel-antialiased;height:44px;left:0;line-height:44px;min-width:44px;mix-blend-mode:difference;padding:0 10px;pointer-events:none;top:0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.fancybox-toolbar{right:0;top:0}.fancybox-stage{direction:ltr;overflow:visible;transform:translateZ(0);z-index:99994}.fancybox-is-open .fancybox-stage{overflow:hidden}.fancybox-slide{-webkit-backface-visibility:hidden;display:none;height:100%;left:0;outline:none;overflow:auto;-webkit-overflow-scrolling:touch;padding:44px;position:absolute;text-align:center;top:0;transition-property:transform,opacity;white-space:normal;width:100%;z-index:99994}.fancybox-slide:before{content:"";display:inline-block;font-size:0;height:100%;vertical-align:middle;width:0}.fancybox-is-sliding .fancybox-slide,.fancybox-slide--current,.fancybox-slide--next,.fancybox-slide--previous{display:block}.fancybox-slide--image{overflow:hidden;padding:44px 0}.fancybox-slide--image:before{display:none}.fancybox-slide--html{padding:6px}.fancybox-content{background:#fff;display:inline-block;margin:0;max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch;padding:44px;position:relative;text-align:left;vertical-align:middle}.fancybox-slide--image .fancybox-content{animation-timing-function:cubic-bezier(.5,0,.14,1);-webkit-backface-visibility:hidden;background:transparent;background-repeat:no-repeat;background-size:100% 100%;left:0;max-width:none;overflow:visible;padding:0;position:absolute;top:0;transform-origin:top left;transition-property:transform,opacity;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:99995}.fancybox-can-zoomOut .fancybox-content{cursor:zoom-out}.fancybox-can-zoomIn .fancybox-content{cursor:zoom-in}.fancybox-can-pan .fancybox-content,.fancybox-can-swipe .fancybox-content{cursor:grab}.fancybox-is-grabbing .fancybox-content{cursor:grabbing}.fancybox-container [data-selectable=true]{cursor:text}.fancybox-image,.fancybox-spaceball{background:transparent;border:0;height:100%;left:0;margin:0;max-height:none;max-width:none;padding:0;position:absolute;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.fancybox-spaceball{z-index:1}.fancybox-slide--iframe .fancybox-content,.fancybox-slide--map .fancybox-content,.fancybox-slide--pdf .fancybox-content,.fancybox-slide--video .fancybox-content{height:100%;overflow:visible;padding:0;width:100%}.fancybox-slide--video .fancybox-content{background:#000}.fancybox-slide--map .fancybox-content{background:#e5e3df}.fancybox-slide--iframe .fancybox-content{background:#fff}.fancybox-iframe,.fancybox-video{background:transparent;border:0;display:block;height:100%;margin:0;overflow:hidden;padding:0;width:100%}.fancybox-iframe{left:0;position:absolute;top:0}.fancybox-error{background:#fff;cursor:default;max-width:400px;padding:40px;width:100%}.fancybox-error p{color:#444;font-size:16px;line-height:20px;margin:0;padding:0}.fancybox-button{background:rgba(30,30,30,.6);border:0;border-radius:0;box-shadow:none;cursor:pointer;display:inline-block;height:44px;margin:0;padding:10px;position:relative;transition:color .2s;vertical-align:top;visibility:inherit;width:44px}.fancybox-button,.fancybox-button:link,.fancybox-button:visited{color:#ccc}.fancybox-button:hover{color:#fff}.fancybox-button:focus{outline:none}.fancybox-button.fancybox-focus{outline:1px dotted}.fancybox-button[disabled],.fancybox-button[disabled]:hover{color:#888;cursor:default;outline:none}.fancybox-button div{height:100%}.fancybox-button svg{display:block;height:100%;overflow:visible;position:relative;width:100%}.fancybox-button svg path{fill:currentColor;stroke-width:0}.fancybox-button--fsenter svg:nth-child(2),.fancybox-button--fsexit svg:first-child,.fancybox-button--pause svg:first-child,.fancybox-button--play svg:nth-child(2){display:none}.fancybox-progress{background:#ff5268;height:2px;left:0;position:absolute;right:0;top:0;transform:scaleX(0);transform-origin:0;transition-property:transform;transition-timing-function:linear;z-index:99998}.fancybox-close-small{background:transparent;border:0;border-radius:0;color:#ccc;cursor:pointer;opacity:.8;padding:8px;position:absolute;right:-12px;top:-44px;z-index:401}.fancybox-close-small:hover{color:#fff;opacity:1}.fancybox-slide--html .fancybox-close-small{color:currentColor;padding:10px;right:0;top:0}.fancybox-slide--image.fancybox-is-scaling .fancybox-content{overflow:hidden}.fancybox-is-scaling .fancybox-close-small,.fancybox-is-zoomable.fancybox-can-pan .fancybox-close-small{display:none}.fancybox-navigation .fancybox-button{background-clip:content-box;height:100px;opacity:0;position:absolute;top:calc(50% - 50px);width:70px}.fancybox-navigation .fancybox-button div{padding:7px}.fancybox-navigation .fancybox-button--arrow_left{left:0;left:env(safe-area-inset-left);padding:31px 26px 31px 6px}.fancybox-navigation .fancybox-button--arrow_right{padding:31px 6px 31px 26px;right:0;right:env(safe-area-inset-right)}.fancybox-caption{background:linear-gradient(0deg,rgba(0,0,0,.85) 0,rgba(0,0,0,.3) 50%,rgba(0,0,0,.15) 65%,rgba(0,0,0,.075) 75.5%,rgba(0,0,0,.037) 82.85%,rgba(0,0,0,.019) 88%,transparent);bottom:0;color:#eee;font-size:14px;font-weight:400;left:0;line-height:1.5;padding:75px 44px 25px;pointer-events:none;right:0;text-align:center;z-index:99996}@supports (padding:max(0px)){.fancybox-caption{padding:75px max(44px,env(safe-area-inset-right)) max(25px,env(safe-area-inset-bottom)) max(44px,env(safe-area-inset-left))}}.fancybox-caption--separate{margin-top:-50px}.fancybox-caption__body{max-height:50vh;overflow:auto;pointer-events:all}.fancybox-caption a,.fancybox-caption a:link,.fancybox-caption a:visited{color:#ccc;text-decoration:none}.fancybox-caption a:hover{color:#fff;text-decoration:underline}.fancybox-loading{animation:a 1s linear infinite;background:transparent;border:4px solid #888;border-bottom-color:#fff;border-radius:50%;height:50px;left:50%;margin:-25px 0 0 -25px;opacity:.7;padding:0;position:absolute;top:50%;width:50px;z-index:99999}@keyframes a{to{transform:rotate(1turn)}}.fancybox-animated{transition-timing-function:cubic-bezier(0,0,.25,1)}.fancybox-fx-slide.fancybox-slide--previous{opacity:0;transform:translate3d(-100%,0,0)}.fancybox-fx-slide.fancybox-slide--next{opacity:0;transform:translate3d(100%,0,0)}.fancybox-fx-slide.fancybox-slide--current{opacity:1;transform:translateZ(0)}.fancybox-fx-fade.fancybox-slide--next,.fancybox-fx-fade.fancybox-slide--previous{opacity:0;transition-timing-function:cubic-bezier(.19,1,.22,1)}.fancybox-fx-fade.fancybox-slide--current{opacity:1}.fancybox-fx-zoom-in-out.fancybox-slide--previous{opacity:0;transform:scale3d(1.5,1.5,1.5)}.fancybox-fx-zoom-in-out.fancybox-slide--next{opacity:0;transform:scale3d(.5,.5,.5)}.fancybox-fx-zoom-in-out.fancybox-slide--current{opacity:1;transform:scaleX(1)}.fancybox-fx-rotate.fancybox-slide--previous{opacity:0;transform:rotate(-1turn)}.fancybox-fx-rotate.fancybox-slide--next{opacity:0;transform:rotate(1turn)}.fancybox-fx-rotate.fancybox-slide--current{opacity:1;transform:rotate(0deg)}.fancybox-fx-circular.fancybox-slide--previous{opacity:0;transform:scale3d(0,0,0) translate3d(-100%,0,0)}.fancybox-fx-circular.fancybox-slide--next{opacity:0;transform:scale3d(0,0,0) translate3d(100%,0,0)}.fancybox-fx-circular.fancybox-slide--current{opacity:1;transform:scaleX(1) translateZ(0)}.fancybox-fx-tube.fancybox-slide--previous{transform:translate3d(-100%,0,0) scale(.1) skew(-10deg)}.fancybox-fx-tube.fancybox-slide--next{transform:translate3d(100%,0,0) scale(.1) skew(10deg)}.fancybox-fx-tube.fancybox-slide--current{transform:translateZ(0) scale(1)}@media (max-height:576px){.fancybox-slide{padding-left:6px;padding-right:6px}.fancybox-slide--image{padding:6px 0}.fancybox-close-small{right:-6px}.fancybox-slide--image .fancybox-close-small{background:#4e4e4e;color:#f2f4f6;height:36px;opacity:1;padding:6px;right:0;top:0;width:36px}.fancybox-caption{padding-left:12px;padding-right:12px}@supports (padding:max(0px)){.fancybox-caption{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}}}.fancybox-share{background:#f4f4f4;border-radius:3px;max-width:90%;padding:30px;text-align:center}.fancybox-share h1{color:#222;font-size:35px;font-weight:700;margin:0 0 20px}.fancybox-share p{margin:0;padding:0}.fancybox-share__button{border:0;border-radius:3px;display:inline-block;font-size:14px;font-weight:700;line-height:40px;margin:0 5px 10px;min-width:130px;padding:0 15px;text-decoration:none;transition:all .2s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.fancybox-share__button:link,.fancybox-share__button:visited{color:#fff}.fancybox-share__button:hover{text-decoration:none}.fancybox-share__button--fb{background:#3b5998}.fancybox-share__button--fb:hover{background:#344e86}.fancybox-share__button--pt{background:#bd081d}.fancybox-share__button--pt:hover{background:#aa0719}.fancybox-share__button--tw{background:#1da1f2}.fancybox-share__button--tw:hover{background:#0d95e8}.fancybox-share__button svg{height:25px;margin-right:7px;position:relative;top:-1px;vertical-align:middle;width:25px}.fancybox-share__button svg path{fill:#fff}.fancybox-share__input{background:transparent;border:0;border-bottom:1px solid #d7d7d7;border-radius:0;color:#5d5b5b;font-size:14px;margin:10px 0 0;outline:none;padding:10px 15px;width:100%}.fancybox-thumbs{background:#ddd;bottom:0;display:none;margin:0;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;padding:2px 2px 4px;position:absolute;right:0;-webkit-tap-highlight-color:rgba(0,0,0,0);top:0;width:212px;z-index:99995}.fancybox-thumbs-x{overflow-x:auto;overflow-y:hidden}.fancybox-show-thumbs .fancybox-thumbs{display:block}.fancybox-show-thumbs .fancybox-inner{right:212px}.fancybox-thumbs__list{font-size:0;height:100%;list-style:none;margin:0;overflow-x:hidden;overflow-y:auto;padding:0;position:absolute;position:relative;white-space:nowrap;width:100%}.fancybox-thumbs-x .fancybox-thumbs__list{overflow:hidden}.fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar{width:7px}.fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar-track{background:#fff;border-radius:10px;box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar-thumb{background:#2a2a2a;border-radius:10px}.fancybox-thumbs__list a{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:rgba(0,0,0,.1);background-position:50%;background-repeat:no-repeat;background-size:cover;cursor:pointer;float:left;height:75px;margin:2px;max-height:calc(100% - 8px);max-width:calc(50% - 4px);outline:none;overflow:hidden;padding:0;position:relative;-webkit-tap-highlight-color:transparent;width:100px}.fancybox-thumbs__list a:before{border:6px solid #ff5268;bottom:0;content:"";left:0;opacity:0;position:absolute;right:0;top:0;transition:all .2s cubic-bezier(.25,.46,.45,.94);z-index:99991}.fancybox-thumbs__list a:focus:before{opacity:.5}.fancybox-thumbs__list a.fancybox-thumbs-active:before{opacity:1}@media (max-width:576px){.fancybox-thumbs{width:110px}.fancybox-show-thumbs .fancybox-inner{right:110px}.fancybox-thumbs__list a{max-width:calc(100% - 10px)}} -------------------------------------------------------------------------------- /static/css/highlight.css: -------------------------------------------------------------------------------- 1 | /* Background */ .chroma { background-color: #ffffff } 2 | /* Other */ .chroma .x { } 3 | /* Error */ .chroma .err { color: #a61717; background-color: #e3d2d2 } 4 | /* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; } 5 | /* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; } 6 | /* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #ffffcc } 7 | /* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } 8 | /* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } 9 | /* Keyword */ .chroma .k { color: #000000; font-weight: bold } 10 | /* KeywordConstant */ .chroma .kc { color: #000000; font-weight: bold } 11 | /* KeywordDeclaration */ .chroma .kd { color: #000000; font-weight: bold } 12 | /* KeywordNamespace */ .chroma .kn { color: #000000; font-weight: bold } 13 | /* KeywordPseudo */ .chroma .kp { color: #000000; font-weight: bold } 14 | /* KeywordReserved */ .chroma .kr { color: #000000; font-weight: bold } 15 | /* KeywordType */ .chroma .kt { color: #445588; font-weight: bold } 16 | /* Name */ .chroma .n { } 17 | /* NameAttribute */ .chroma .na { color: #008080 } 18 | /* NameBuiltin */ .chroma .nb { color: #0086b3 } 19 | /* NameBuiltinPseudo */ .chroma .bp { color: #999999 } 20 | /* NameClass */ .chroma .nc { color: #445588; font-weight: bold } 21 | /* NameConstant */ .chroma .no { color: #008080 } 22 | /* NameDecorator */ .chroma .nd { color: #3c5d5d; font-weight: bold } 23 | /* NameEntity */ .chroma .ni { color: #800080 } 24 | /* NameException */ .chroma .ne { color: #990000; font-weight: bold } 25 | /* NameFunction */ .chroma .nf { color: #990000; font-weight: bold } 26 | /* NameFunctionMagic */ .chroma .fm { } 27 | /* NameLabel */ .chroma .nl { color: #990000; font-weight: bold } 28 | /* NameNamespace */ .chroma .nn { color: #555555 } 29 | /* NameOther */ .chroma .nx { } 30 | /* NameProperty */ .chroma .py { } 31 | /* NameTag */ .chroma .nt { color: #000080 } 32 | /* NameVariable */ .chroma .nv { color: #008080 } 33 | /* NameVariableClass */ .chroma .vc { color: #008080 } 34 | /* NameVariableGlobal */ .chroma .vg { color: #008080 } 35 | /* NameVariableInstance */ .chroma .vi { color: #008080 } 36 | /* NameVariableMagic */ .chroma .vm { } 37 | /* Literal */ .chroma .l { } 38 | /* LiteralDate */ .chroma .ld { } 39 | /* LiteralString */ .chroma .s { color: #dd1144 } 40 | /* LiteralStringAffix */ .chroma .sa { color: #dd1144 } 41 | /* LiteralStringBacktick */ .chroma .sb { color: #dd1144 } 42 | /* LiteralStringChar */ .chroma .sc { color: #dd1144 } 43 | /* LiteralStringDelimiter */ .chroma .dl { color: #dd1144 } 44 | /* LiteralStringDoc */ .chroma .sd { color: #dd1144 } 45 | /* LiteralStringDouble */ .chroma .s2 { color: #dd1144 } 46 | /* LiteralStringEscape */ .chroma .se { color: #dd1144 } 47 | /* LiteralStringHeredoc */ .chroma .sh { color: #dd1144 } 48 | /* LiteralStringInterpol */ .chroma .si { color: #dd1144 } 49 | /* LiteralStringOther */ .chroma .sx { color: #dd1144 } 50 | /* LiteralStringRegex */ .chroma .sr { color: #009926 } 51 | /* LiteralStringSingle */ .chroma .s1 { color: #dd1144 } 52 | /* LiteralStringSymbol */ .chroma .ss { color: #990073 } 53 | /* LiteralNumber */ .chroma .m { color: #009999 } 54 | /* LiteralNumberBin */ .chroma .mb { color: #009999 } 55 | /* LiteralNumberFloat */ .chroma .mf { color: #009999 } 56 | /* LiteralNumberHex */ .chroma .mh { color: #009999 } 57 | /* LiteralNumberInteger */ .chroma .mi { color: #009999 } 58 | /* LiteralNumberIntegerLong */ .chroma .il { color: #009999 } 59 | /* LiteralNumberOct */ .chroma .mo { color: #009999 } 60 | /* Operator */ .chroma .o { color: #000000; font-weight: bold } 61 | /* OperatorWord */ .chroma .ow { color: #000000; font-weight: bold } 62 | /* Punctuation */ .chroma .p { } 63 | /* Comment */ .chroma .c { color: #999988; font-style: italic } 64 | /* CommentHashbang */ .chroma .ch { color: #999988; font-style: italic } 65 | /* CommentMultiline */ .chroma .cm { color: #999988; font-style: italic } 66 | /* CommentSingle */ .chroma .c1 { color: #6a737d; font-style: italic } 67 | /* CommentSpecial */ .chroma .cs { color: #999999; font-weight: bold; font-style: italic } 68 | /* CommentPreproc */ .chroma .cp { color: #999999; font-weight: bold; font-style: italic } 69 | /* CommentPreprocFile */ .chroma .cpf { color: #999999; font-weight: bold; font-style: italic } 70 | /* Generic */ .chroma .g { } 71 | /* GenericDeleted */ .chroma .gd { color: #000000; background-color: #ffdddd } 72 | /* GenericEmph */ .chroma .ge { color: #000000; font-style: italic } 73 | /* GenericError */ .chroma .gr { color: #aa0000 } 74 | /* GenericHeading */ .chroma .gh { color: #999999 } 75 | /* GenericInserted */ .chroma .gi { color: #000000; background-color: #ddffdd } 76 | /* GenericOutput */ .chroma .go { color: #888888 } 77 | /* GenericPrompt */ .chroma .gp { color: #555555 } 78 | /* GenericStrong */ .chroma .gs { font-weight: bold } 79 | /* GenericSubheading */ .chroma .gu { color: #aaaaaa } 80 | /* GenericTraceback */ .chroma .gt { color: #aa0000 } 81 | /* GenericUnderline */ .chroma .gl { text-decoration: underline } 82 | /* TextWhitespace */ .chroma .w { color: #bbbbbb } 83 | -------------------------------------------------------------------------------- /static/css/normalize.css: -------------------------------------------------------------------------------- 1 | /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ 2 | 3 | /* Document 4 | ========================================================================== */ 5 | 6 | /** 7 | * 1. Correct the line height in all browsers. 8 | * 2. Prevent adjustments of font size after orientation changes in iOS. 9 | */ 10 | 11 | html { 12 | line-height: 1.15; /* 1 */ 13 | -webkit-text-size-adjust: 100%; /* 2 */ 14 | } 15 | 16 | /* Sections 17 | ========================================================================== */ 18 | 19 | /** 20 | * Remove the margin in all browsers. 21 | */ 22 | 23 | body { 24 | margin: 0; 25 | } 26 | 27 | /** 28 | * Render the `main` element consistently in IE. 29 | */ 30 | 31 | main { 32 | display: block; 33 | } 34 | 35 | /** 36 | * Correct the font size and margin on `h1` elements within `section` and 37 | * `article` contexts in Chrome, Firefox, and Safari. 38 | */ 39 | 40 | h1 { 41 | font-size: 2em; 42 | margin: 0.67em 0; 43 | } 44 | 45 | /* Grouping content 46 | ========================================================================== */ 47 | 48 | /** 49 | * 1. Add the correct box sizing in Firefox. 50 | * 2. Show the overflow in Edge and IE. 51 | */ 52 | 53 | hr { 54 | box-sizing: content-box; /* 1 */ 55 | height: 0; /* 1 */ 56 | overflow: visible; /* 2 */ 57 | } 58 | 59 | /** 60 | * 1. Correct the inheritance and scaling of font size in all browsers. 61 | * 2. Correct the odd `em` font sizing in all browsers. 62 | */ 63 | 64 | pre { 65 | font-family: monospace, monospace; /* 1 */ 66 | font-size: 1em; /* 2 */ 67 | } 68 | 69 | /* Text-level semantics 70 | ========================================================================== */ 71 | 72 | /** 73 | * Remove the gray background on active links in IE 10. 74 | */ 75 | 76 | a { 77 | background-color: transparent; 78 | } 79 | 80 | /** 81 | * 1. Remove the bottom border in Chrome 57- 82 | * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. 83 | */ 84 | 85 | abbr[title] { 86 | border-bottom: none; /* 1 */ 87 | text-decoration: underline; /* 2 */ 88 | text-decoration: underline dotted; /* 2 */ 89 | } 90 | 91 | /** 92 | * Add the correct font weight in Chrome, Edge, and Safari. 93 | */ 94 | 95 | b, 96 | strong { 97 | font-weight: bolder; 98 | } 99 | 100 | /** 101 | * 1. Correct the inheritance and scaling of font size in all browsers. 102 | * 2. Correct the odd `em` font sizing in all browsers. 103 | */ 104 | 105 | code, 106 | kbd, 107 | samp { 108 | font-family: monospace, monospace; /* 1 */ 109 | font-size: 1em; /* 2 */ 110 | } 111 | 112 | /** 113 | * Add the correct font size in all browsers. 114 | */ 115 | 116 | small { 117 | font-size: 80%; 118 | } 119 | 120 | /** 121 | * Prevent `sub` and `sup` elements from affecting the line height in 122 | * all browsers. 123 | */ 124 | 125 | sub, 126 | sup { 127 | font-size: 75%; 128 | line-height: 0; 129 | position: relative; 130 | vertical-align: baseline; 131 | } 132 | 133 | sub { 134 | bottom: -0.25em; 135 | } 136 | 137 | sup { 138 | top: -0.5em; 139 | } 140 | 141 | /* Embedded content 142 | ========================================================================== */ 143 | 144 | /** 145 | * Remove the border on images inside links in IE 10. 146 | */ 147 | 148 | img { 149 | border-style: none; 150 | } 151 | 152 | /* Forms 153 | ========================================================================== */ 154 | 155 | /** 156 | * 1. Change the font styles in all browsers. 157 | * 2. Remove the margin in Firefox and Safari. 158 | */ 159 | 160 | button, 161 | input, 162 | optgroup, 163 | select, 164 | textarea { 165 | font-family: inherit; /* 1 */ 166 | font-size: 100%; /* 1 */ 167 | line-height: 1.15; /* 1 */ 168 | margin: 0; /* 2 */ 169 | } 170 | 171 | /** 172 | * Show the overflow in IE. 173 | * 1. Show the overflow in Edge. 174 | */ 175 | 176 | button, 177 | input { /* 1 */ 178 | overflow: visible; 179 | } 180 | 181 | /** 182 | * Remove the inheritance of text transform in Edge, Firefox, and IE. 183 | * 1. Remove the inheritance of text transform in Firefox. 184 | */ 185 | 186 | button, 187 | select { /* 1 */ 188 | text-transform: none; 189 | } 190 | 191 | /** 192 | * Correct the inability to style clickable types in iOS and Safari. 193 | */ 194 | 195 | button, 196 | [type="button"], 197 | [type="reset"], 198 | [type="submit"] { 199 | -webkit-appearance: button; 200 | } 201 | 202 | /** 203 | * Remove the inner border and padding in Firefox. 204 | */ 205 | 206 | button::-moz-focus-inner, 207 | [type="button"]::-moz-focus-inner, 208 | [type="reset"]::-moz-focus-inner, 209 | [type="submit"]::-moz-focus-inner { 210 | border-style: none; 211 | padding: 0; 212 | } 213 | 214 | /** 215 | * Restore the focus styles unset by the previous rule. 216 | */ 217 | 218 | button:-moz-focusring, 219 | [type="button"]:-moz-focusring, 220 | [type="reset"]:-moz-focusring, 221 | [type="submit"]:-moz-focusring { 222 | outline: 1px dotted ButtonText; 223 | } 224 | 225 | /** 226 | * Correct the padding in Firefox. 227 | */ 228 | 229 | fieldset { 230 | padding: 0.35em 0.75em 0.625em; 231 | } 232 | 233 | /** 234 | * 1. Correct the text wrapping in Edge and IE. 235 | * 2. Correct the color inheritance from `fieldset` elements in IE. 236 | * 3. Remove the padding so developers are not caught out when they zero out 237 | * `fieldset` elements in all browsers. 238 | */ 239 | 240 | legend { 241 | box-sizing: border-box; /* 1 */ 242 | color: inherit; /* 2 */ 243 | display: table; /* 1 */ 244 | max-width: 100%; /* 1 */ 245 | padding: 0; /* 3 */ 246 | white-space: normal; /* 1 */ 247 | } 248 | 249 | /** 250 | * Add the correct vertical alignment in Chrome, Firefox, and Opera. 251 | */ 252 | 253 | progress { 254 | vertical-align: baseline; 255 | } 256 | 257 | /** 258 | * Remove the default vertical scrollbar in IE 10+. 259 | */ 260 | 261 | textarea { 262 | overflow: auto; 263 | } 264 | 265 | /** 266 | * 1. Add the correct box sizing in IE 10. 267 | * 2. Remove the padding in IE 10. 268 | */ 269 | 270 | [type="checkbox"], 271 | [type="radio"] { 272 | box-sizing: border-box; /* 1 */ 273 | padding: 0; /* 2 */ 274 | } 275 | 276 | /** 277 | * Correct the cursor style of increment and decrement buttons in Chrome. 278 | */ 279 | 280 | [type="number"]::-webkit-inner-spin-button, 281 | [type="number"]::-webkit-outer-spin-button { 282 | height: auto; 283 | } 284 | 285 | /** 286 | * 1. Correct the odd appearance in Chrome and Safari. 287 | * 2. Correct the outline style in Safari. 288 | */ 289 | 290 | [type="search"] { 291 | -webkit-appearance: textfield; /* 1 */ 292 | outline-offset: -2px; /* 2 */ 293 | } 294 | 295 | /** 296 | * Remove the inner padding in Chrome and Safari on macOS. 297 | */ 298 | 299 | [type="search"]::-webkit-search-decoration { 300 | -webkit-appearance: none; 301 | } 302 | 303 | /** 304 | * 1. Correct the inability to style clickable types in iOS and Safari. 305 | * 2. Change font properties to `inherit` in Safari. 306 | */ 307 | 308 | ::-webkit-file-upload-button { 309 | -webkit-appearance: button; /* 1 */ 310 | font: inherit; /* 2 */ 311 | } 312 | 313 | /* Interactive 314 | ========================================================================== */ 315 | 316 | /* 317 | * Add the correct display in Edge, IE 10+, and Firefox. 318 | */ 319 | 320 | details { 321 | display: block; 322 | } 323 | 324 | /* 325 | * Add the correct display in all browsers. 326 | */ 327 | 328 | summary { 329 | display: list-item; 330 | } 331 | 332 | /* Misc 333 | ========================================================================== */ 334 | 335 | /** 336 | * Add the correct display in IE 10+. 337 | */ 338 | 339 | template { 340 | display: none; 341 | } 342 | 343 | /** 344 | * Add the correct display in IE 10. 345 | */ 346 | 347 | [hidden] { 348 | display: none; 349 | } -------------------------------------------------------------------------------- /static/css/zozo.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | /*basic styles starts*/ 3 | html { 4 | background-color: #f7f7f7; 5 | -webkit-font-smoothing: antialiased; 6 | } 7 | 8 | html::-webkit-scrollbar { 9 | width: 13px; 10 | } 11 | 12 | html::-webkit-scrollbar-button { 13 | display: none; 14 | } 15 | 16 | html::-webkit-scrollbar-thumb { 17 | min-height: 16px; 18 | background-color: #999999; 19 | background-clip: padding-box; 20 | border: 3px solid #fdfdfd; 21 | border-radius: 5px; 22 | } 23 | 24 | body { 25 | color: #333333; 26 | font-family: "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; 27 | font-size: 16px; 28 | width: 100%; 29 | background-color: #f7f7f7; 30 | margin: 0; 31 | padding: 0; 32 | } 33 | 34 | p { 35 | line-height: 1.9em; 36 | font-weight: 400; 37 | margin: 0; 38 | } 39 | 40 | a { 41 | text-decoration: none; 42 | } 43 | 44 | a:link, a:visited { 45 | opacity: 1; 46 | -webkit-transition: all 0.15s linear; 47 | transition: all 0.15s linear; 48 | color: #424242; 49 | } 50 | 51 | a:hover, a:active { 52 | color: #555555; 53 | } 54 | 55 | h1, 56 | h2, 57 | h3, 58 | h4, 59 | h5, 60 | h6 { 61 | text-rendering: optimizeLegibility; 62 | } 63 | 64 | hr { 65 | border: 1px solid #f3f3f3; 66 | } 67 | 68 | /*basic styles ends*/ 69 | .main { 70 | background: #ffffff; 71 | -webkit-box-shadow: 0 10px 20px 0 rgba(236, 236, 236, 0.86); 72 | box-shadow: 0 10px 20px 0 rgba(236, 236, 236, 0.86); 73 | width: 800px; 74 | margin: 60px auto 0; 75 | } 76 | 77 | .content { 78 | width: 720px; 79 | height: auto; 80 | margin: 0 auto; 81 | } 82 | 83 | .list_with_title .container { 84 | width: 720px; 85 | margin: 0 auto; 86 | } 87 | 88 | .nav_container { 89 | width: 740px; 90 | height: 3rem; 91 | margin: 0 auto; 92 | padding: 20px 0; 93 | } 94 | 95 | .nav_container .menu_icon { 96 | padding: 10px; 97 | float: right; 98 | display: none; 99 | } 100 | 101 | .nav_container .menu_icon a { 102 | cursor: pointer; 103 | } 104 | 105 | .nav_container .site_nav { 106 | float: right; 107 | } 108 | 109 | .nav_container .site_nav ul { 110 | list-style: none; 111 | margin: 0; 112 | padding: 0; 113 | float: right; 114 | } 115 | 116 | .nav_container .site_nav li, 117 | .nav_container .site_nav a { 118 | position: relative; 119 | } 120 | 121 | .nav_container .site_nav li { 122 | float: left; 123 | } 124 | 125 | .nav_container .site_nav a { 126 | display: block; 127 | white-space: nowrap; 128 | padding: 10px; 129 | font-size: 0.9rem; 130 | } 131 | 132 | .header { 133 | width: 720px; 134 | padding: 50px 0 140px 0; 135 | margin: 0 auto; 136 | background-size: cover; 137 | } 138 | 139 | .header .site_title_container { 140 | padding: 0 0; 141 | } 142 | 143 | .header .site_title_container h1 { 144 | line-height: 1; 145 | margin: 0; 146 | } 147 | 148 | .header .site_title_container a { 149 | text-decoration: none; 150 | font-weight: bold; 151 | float: left; 152 | } 153 | 154 | .header .site_title_container .site_title a { 155 | font-size: 28px; 156 | width: 65px; 157 | letter-spacing: 2px; 158 | line-height: 1.2; 159 | color: #000000; 160 | } 161 | 162 | .header .site_title_container .site_title a span { 163 | display: block; 164 | } 165 | 166 | .header .site_title_container .site_title a:hover { 167 | color: #666666; 168 | } 169 | 170 | .header .site_title_container .description { 171 | font-size: 0.9rem; 172 | color: #565654; 173 | float: right; 174 | } 175 | 176 | .header .site_title_container .description .sub_title { 177 | font-weight: normal !important; 178 | float: none !important; 179 | text-align: right; 180 | } 181 | 182 | .header .my_socials { 183 | list-style: none; 184 | font-size: 14px; 185 | float: right; 186 | margin: 5px 0; 187 | } 188 | 189 | .header .my_socials i { 190 | margin-left: 10px; 191 | } 192 | 193 | .header .my_socials a { 194 | color: #5f5f5f; 195 | font-size: 12px; 196 | float: none; 197 | cursor: pointer; 198 | } 199 | 200 | .header .my_socials a:hover { 201 | color: #000000; 202 | } 203 | 204 | .post { 205 | background-color: #ffffff; 206 | margin-top: 50px; 207 | } 208 | 209 | .post .post_title h2 { 210 | letter-spacing: 1px; 211 | font-size: 1.4rem; 212 | line-height: 1; 213 | font-weight: 600; 214 | color: #1f1f1f; 215 | margin: 0 0 6px 0; 216 | } 217 | 218 | .post .post_title a { 219 | text-decoration: none; 220 | letter-spacing: 1px; 221 | color: #1f1f1f; 222 | font-size: 1.5rem; 223 | line-height: 28px; 224 | } 225 | 226 | .post .post_title span { 227 | color: rgba(0, 0, 0, 0.44); 228 | font-size: 14px; 229 | } 230 | 231 | .post .post_title span.date { 232 | font-size: 12px; 233 | } 234 | 235 | .post .post_detail_title h2 { 236 | font-size: 1.5rem; 237 | font-weight: bold; 238 | } 239 | 240 | .post .list p { 241 | padding-bottom: 0 !important; 242 | } 243 | 244 | .post .post_content { 245 | word-break: normal; 246 | margin-top: 20px; 247 | } 248 | 249 | .post .post_content p { 250 | line-height: 2em; 251 | letter-spacing: 0.2px; 252 | margin-bottom: 20px; 253 | } 254 | 255 | .post .post_content a { 256 | text-decoration: none; 257 | letter-spacing: 1px; 258 | color: #e42b2b; 259 | } 260 | 261 | .post .post_content a:hover { 262 | color: #8e0000; 263 | } 264 | 265 | .post .post_footer { 266 | padding: 20px 0; 267 | border-bottom: 1px solid #f3f3f3; 268 | } 269 | 270 | .post .post_footer .meta { 271 | max-width: 100%; 272 | height: 25px; 273 | color: #bbbbbb; 274 | } 275 | 276 | .post .post_footer .meta .info { 277 | float: left; 278 | font-size: 11px; 279 | } 280 | 281 | .post .post_footer .meta .info .date { 282 | margin-right: 10px; 283 | } 284 | 285 | .post .post_footer .meta .field { 286 | margin-right: 10px; 287 | } 288 | 289 | .post .post_footer .meta .tags a { 290 | text-decoration: none; 291 | color: #bbbbbb; 292 | padding-right: 6px; 293 | } 294 | 295 | .post .post_footer .meta .tags a:hover { 296 | color: #1f1f1f; 297 | } 298 | 299 | .page_tags { 300 | text-align: center; 301 | margin-top: 50px; 302 | } 303 | 304 | .page_tags ul li { 305 | margin: 10px 15px; 306 | display: inline-block; 307 | font-size: 1em; 308 | } 309 | 310 | .page_tags .terms_count { 311 | display: inline-block; 312 | position: relative; 313 | top: -8px; 314 | right: -2px; 315 | color: #c5c5c5; 316 | font-size: 12px; 317 | } 318 | 319 | .page_tags ul { 320 | margin: 0; 321 | padding: 0; 322 | } 323 | 324 | .doc_comments { 325 | font-size: 14px; 326 | color: #383838; 327 | margin-top: 30px; 328 | padding: 35px 0 45px; 329 | } 330 | 331 | .doc_comments .comments_block_title { 332 | color: #000000; 333 | } 334 | 335 | .footer { 336 | clear: both; 337 | max-width: 780px; 338 | text-align: center; 339 | font-size: 12px; 340 | padding: 40px 0; 341 | margin: 0 auto; 342 | } 343 | 344 | .footer a { 345 | color: #a6a6a6; 346 | margin: 0 12px; 347 | } 348 | 349 | .footer a:hover { 350 | color: #1f1f1f; 351 | } 352 | 353 | .footer .powered_by { 354 | margin: 0; 355 | font-size: 11px; 356 | } 357 | 358 | .footer .powered_by a { 359 | color: #cccccc; 360 | margin: 0 2px; 361 | } 362 | 363 | .footer .powered_by a:hover { 364 | color: #1f1f1f; 365 | } 366 | 367 | .footer .footer_slogan { 368 | padding-top: 25px; 369 | padding-bottom: 10px; 370 | color: #000000; 371 | font-size: 16px; 372 | letter-spacing: 1px; 373 | } 374 | 375 | /*for archive*/ 376 | .list_with_title { 377 | font-size: 14px; 378 | margin: 0; 379 | padding: 0; 380 | } 381 | 382 | .list_with_title li { 383 | list-style-type: none; 384 | padding: 0; 385 | } 386 | 387 | .list_with_title .listing_title { 388 | font-size: 1.4rem; 389 | color: #1f1f1f; 390 | font-weight: bold; 391 | padding-top: 10px; 392 | line-height: 2.2em; 393 | } 394 | 395 | .list_with_title .listing { 396 | margin: 0 0 50px 0; 397 | padding: 0; 398 | line-height: 2.1; 399 | } 400 | 401 | .list_with_title .listing .listing_post { 402 | padding-bottom: 5px; 403 | } 404 | 405 | .list_with_title .listing .listing_post a { 406 | display: inline-block; 407 | width: 85%; 408 | } 409 | 410 | .list_with_title .listing .listing_post .post_time { 411 | float: right; 412 | color: #c5c5c5; 413 | font-size: 14px; 414 | } 415 | 416 | .list_with_title .listing .listing_post a:hover { 417 | color: #1f1f1f; 418 | } 419 | 420 | .pagination { 421 | padding: 30px 0 60px 0; 422 | border-bottom: 1px solid #f2f2f2; 423 | color: #666666; 424 | font-size: 14px; 425 | } 426 | 427 | .pagination a { 428 | color: #888888; 429 | text-decoration: none; 430 | } 431 | 432 | .pagination a:hover { 433 | color: #333333; 434 | } 435 | 436 | .pagination .pre { 437 | float: left; 438 | } 439 | 440 | .pagination .next { 441 | float: right; 442 | } 443 | 444 | .markdown { 445 | line-height: 1.8em; 446 | word-wrap: break-word; 447 | word-break: normal; 448 | overflow-wrap: break-word; 449 | } 450 | 451 | .markdown ul, 452 | .markdown ol, 453 | .markdown dl { 454 | margin: 0.8em 0; 455 | } 456 | 457 | .markdown h1, 458 | .markdown h2, 459 | .markdown h3, 460 | .markdown h4, 461 | .markdown h5, 462 | .markdown h6 { 463 | margin: 20px 0 20px 0; 464 | color: #000000; 465 | } 466 | 467 | .markdown h1 { 468 | font-size: 1.35em; 469 | } 470 | 471 | .markdown h2 { 472 | font-size: 1.25em; 473 | } 474 | 475 | .markdown h3 { 476 | font-size: 1.15em; 477 | } 478 | 479 | .markdown h4 { 480 | font-size: 1.1em; 481 | } 482 | 483 | .markdown pre, 484 | .markdown code { 485 | font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; 486 | font-size: 0.9em; 487 | background: #f8fafc; 488 | border: none; 489 | white-space: pre; 490 | } 491 | 492 | .markdown pre { 493 | padding: 16px; 494 | display: block; 495 | overflow: auto; 496 | white-space: pre; 497 | word-wrap: break-word; 498 | } 499 | 500 | .markdown code { 501 | color: #666666; 502 | padding: 4px 5px; 503 | border-radius: 2px; 504 | white-space: nowrap; 505 | } 506 | 507 | .markdown pre code { 508 | padding: 0; 509 | color: #555555; 510 | white-space: pre; 511 | } 512 | 513 | .markdown blockquote p { 514 | white-space: pre-line; 515 | } 516 | 517 | .markdown pre::-webkit-scrollbar { 518 | height: 10px; 519 | } 520 | 521 | .markdown pre::-webkit-scrollbar-button { 522 | display: none; 523 | } 524 | 525 | .markdown pre::-webkit-scrollbar-track { 526 | background: white; 527 | } 528 | 529 | .markdown pre::-webkit-scrollbar-thumb { 530 | min-height: 1rem; 531 | background-color: #cccccc; 532 | background-clip: padding-box; 533 | border: 3px solid #fdfdfd; 534 | border-radius: 5px; 535 | } 536 | 537 | .markdown pre::-webkit-scrollbar-thumb:active { 538 | background-color: #999999; 539 | border-width: 2px; 540 | } 541 | 542 | .markdown blockquote { 543 | -webkit-box-sizing: border-box; 544 | box-sizing: border-box; 545 | margin: 2.5em 0; 546 | padding: 0 0 0 50px; 547 | font-style: italic; 548 | color: #555555; 549 | border-left: none; 550 | } 551 | 552 | .markdown blockquote:before { 553 | content: '“'; 554 | display: block; 555 | font-family: times, sans-serif; 556 | font-style: normal; 557 | font-size: 48px; 558 | color: #444444; 559 | font-weight: bold; 560 | line-height: 30px; 561 | margin-left: -50px; 562 | position: absolute; 563 | } 564 | 565 | .markdown strong, 566 | .markdown b, 567 | .markdown em { 568 | padding: 1px 2px; 569 | background-color: #fcfcf0; 570 | font-weight: normal; 571 | } 572 | 573 | .markdown .fancybox { 574 | text-align: center; 575 | } 576 | 577 | .markdown img { 578 | max-width: 90%; 579 | height: auto; 580 | } 581 | 582 | table { 583 | border-collapse: collapse; 584 | border-spacing: 0; 585 | } 586 | 587 | table th { 588 | background-color: #f6f8fa; 589 | } 590 | 591 | table th, table td { 592 | padding: 10px 20px; 593 | border: 1px solid #dfe2e5; 594 | } 595 | 596 | a.back_to_top { 597 | text-decoration: none; 598 | position: fixed; 599 | bottom: 40px; 600 | right: 30px; 601 | background: #f0f0f0; 602 | height: 40px; 603 | width: 40px; 604 | border-radius: 50%; 605 | line-height: 36px; 606 | font-size: 18px; 607 | text-align: center; 608 | -webkit-transition-duration: 0.5s; 609 | transition-duration: 0.5s; 610 | -webkit-transition-property: background-color; 611 | transition-property: background-color; 612 | display: none; 613 | } 614 | 615 | a.back_to_top span { 616 | color: #888888; 617 | } 618 | 619 | a.back_to_top:hover { 620 | cursor: pointer; 621 | background: #dfdfdf; 622 | } 623 | 624 | a.back_to_top:hover span { 625 | color: #555555; 626 | } 627 | 628 | @media print, screen and (max-width: 680px) { 629 | .nav_container { 630 | position: relative; 631 | z-index: 999; 632 | } 633 | .nav_container .site_nav { 634 | display: none; 635 | position: fixed; 636 | right: 0; 637 | top: 60px; 638 | padding: 10px 0; 639 | width: 100%; 640 | background-color: #ffffff; 641 | -webkit-box-shadow: 0 10px 20px 0 rgba(236, 236, 236, 0.86); 642 | box-shadow: 0 10px 20px 0 rgba(236, 236, 236, 0.86); 643 | } 644 | .nav_container .site_nav ul { 645 | float: none; 646 | text-align: center; 647 | } 648 | .nav_container .site_nav li { 649 | float: none; 650 | } 651 | .nav_container .menu_icon { 652 | position: fixed; 653 | right: 0; 654 | display: block; 655 | } 656 | .back_to_top { 657 | display: none !important; 658 | } 659 | } 660 | 661 | @media screen and (min-width: 1600px) { 662 | .main { 663 | width: 1000px; 664 | } 665 | .nav_container { 666 | width: 840px; 667 | } 668 | .header, 669 | .content { 670 | width: 820px; 671 | } 672 | } 673 | 674 | @media screen and (max-width: 900px) { 675 | .main { 676 | width: 95%; 677 | margin-top: 20px; 678 | } 679 | .nav_container { 680 | width: 95%; 681 | } 682 | .header, 683 | .content { 684 | width: 90%; 685 | } 686 | .post_page { 687 | padding-top: 0; 688 | } 689 | .footer a { 690 | margin: 0 6px; 691 | } 692 | .post { 693 | margin-top: 40px; 694 | } 695 | .post .post_title a { 696 | font-size: 1.4rem; 697 | } 698 | .post_footer { 699 | padding-bottom: 30px; 700 | } 701 | } 702 | 703 | /*animation starts*/ 704 | @-webkit-keyframes fadeInDown { 705 | 0% { 706 | opacity: 0; 707 | -webkit-transform: translateY(-3px); 708 | } 709 | 100% { 710 | opacity: 1; 711 | -webkit-transform: translateY(0); 712 | } 713 | } 714 | 715 | @keyframes fadeInDown { 716 | 0% { 717 | opacity: 0; 718 | -webkit-transform: translateY(-3px); 719 | transform: translateY(-3px); 720 | } 721 | 100% { 722 | opacity: 1; 723 | -webkit-transform: translateY(0); 724 | transform: translateY(0); 725 | } 726 | } 727 | 728 | /*animation ends*/ -------------------------------------------------------------------------------- /static/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varkai/hugo-theme-zozo/f16ebe56f0303fe50518232bf26415ccc68fc9ec/static/images/favicon.ico -------------------------------------------------------------------------------- /static/js/zozo.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | // back-to-top 4 | $(document).ready((function (_this) { 5 | return function () { 6 | let bt 7 | bt = $('#back_to_top') 8 | if ($(document).width() > 480) { 9 | $(window).scroll(function () { 10 | let st 11 | st = $(window).scrollTop() 12 | if (st > 30) { 13 | return bt.css('display', 'block') 14 | } else { 15 | return bt.css('display', 'none') 16 | } 17 | }) 18 | return bt.click(function () { 19 | $('body,html').animate({ 20 | scrollTop: 0, 21 | }, 800) 22 | return false 23 | }) 24 | } 25 | } 26 | })(this)) 27 | 28 | // nav-toggle 29 | $(document).ready((function (_this) { 30 | return function () { 31 | let nav,icon 32 | icon = $('#menu_icon') 33 | nav = $('#site_nav') 34 | icon.click(function () { 35 | nav.slideToggle(250) 36 | }) 37 | } 38 | })(this)) 39 | 40 | // FancyBox 41 | $('[data-fancybox="gallery"]').fancybox({ 42 | arrows: false, 43 | infobar: false, 44 | buttons: [], 45 | clickContent: "close", 46 | autoFocus: false, 47 | backFocus: false, 48 | wheel: false, 49 | mobile: { 50 | clickContent: "close", 51 | clickSlide: "close", 52 | dblclickContent: false, 53 | dblclickSlide: false 54 | }, 55 | }); 56 | -------------------------------------------------------------------------------- /theme.toml: -------------------------------------------------------------------------------- 1 | # theme.toml template for a Hugo theme 2 | # See https://github.com/gohugoio/hugoThemes#themetoml for an example 3 | 4 | name = "zozo" 5 | license = "MIT" 6 | licenselink = "https://github.com/varkai/hugo-theme-zozo/blob/master/LICENSE" 7 | description = "A simple and beautiful theme for Hugo" 8 | homepage = "https://github.com/varkai/hugo-theme-zozo" 9 | tags = ["blog", "beautiful", "simple", "valine", "rss", "syntax highlighting", "tags"] 10 | features = ["blog", "beautiful", "simple", "valine", "rss", "syntax highlighting", "tags"] 11 | min_version = "0.58" 12 | 13 | [author] 14 | name = "VarKai" 15 | homepage = "https://varkai.com" 16 | 17 | # If porting an existing theme 18 | [original] 19 | name = "Aragaki" 20 | homepage = "https://www.mywpku.com/" 21 | repo = "https://github.com/PCDotFan/Aragaki" 22 | --------------------------------------------------------------------------------