提交 03ac17ab 编写于 作者: Miykael_xxm's avatar Miykael_xxm 🚴

init

上级
流水线 #5215 已通过 ,包含阶段
in 13 秒
image: klakegg/hugo:0.83.1
pages:
script:
- hugo
artifacts:
paths:
- public
expire_in: 1 day
only:
- master
\ No newline at end of file
public
themes/next_bak
resources
themes/beautifulhugo
# Created by https://www.toptal.com/developers/gitignore/api/intellij+iml
# Edit at https://www.toptal.com/developers/gitignore?templates=intellij+iml
### Intellij+iml ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
# AWS User-specific
.idea/**/aws.xml
# Generated files
.idea/**/contentModel.xml
# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
# Gradle
.idea/**/gradle.xml
.idea/**/libraries
# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr
# CMake
cmake-build-*/
# Mongo Explorer plugin
.idea/**/mongoSettings.xml
# File-based project format
*.iws
# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Cursive Clojure plugin
.idea/replstate.xml
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
# Editor-based Rest Client
.idea/httpRequests
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser
### Intellij+iml Patch ###
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
*.iml
modules.xml
.idea/misc.xml
*.ipr
# End of https://www.toptal.com/developers/gitignore/api/intellij+iml
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---
Title = "开源软件推进联盟KOL"
BaseUrl = "https://copu.gitcode.host/kols/"
DefaultContentLanguage = "zh-cn"
LanguageCode = "zh-CN"
Theme = "hugo-theme-next"
MetaDataFormat = "toml"
PaginatePath = "p"
Paginate = 10
DisablePathToLower = false
PreserveTaxonomyNames = false
PygmentsStyle = "emacs"
pygmentsCodefences = true
pygmentsCodefencesGuessSyntax = true
enableRobotsTXT = true
enableEmoji = true
hasCJKLanguage = true
three_waves = true
timeout = 100000
ignoreErrors = ["error-remote-getjson"]
[sitemap]
filename = "sitemap.xml"
changefreq = "weekly"
priority = 0.5
[outputFormats]
[outputFormats.SearchIndex]
mediaType = "application/xml"
baseName = "searchindex"
isPlainText = true
notAlternative = true
[outputs]
home = ["HTML", "RSS"]
[minify]
disableCSS = false
disableHTML = false
disableJS = false
disableJSON = false
disableSVG = false
disableXML = false
minifyOutput = true
## 让Markdown支持写HTML语法
[markup]
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true
\ No newline at end of file
[zh-CN]
title = "开源推进发展联盟KOL"
languageName = "中文"
weight = 1
contentdir = "content/zh-CN"
[en]
title = "开源推进发展联盟KOL"
languageName = "English"
weight = 2
contentdir = "content/en"
[[Main]]
Name = "蓝皮书"
Pre = "home"
URL = "categories"
Weight = 1
[[Main]]
Name = "优秀开源人物"
Pre = "users"
URL = "tags/people/"
Weight = 2
[[Main]]
Name = "名词示例"
Pre = "wikis"
URL = "tags/wiki/"
Weight = 3
\ No newline at end of file
[[Main]]
Name = "蓝皮书"
Pre = "home"
URL = "https://copu.gitcode.host/copu"
Weight = 1
[[Main]]
Name = "优秀开源人物"
Pre = "users"
URL = "categories/开源人物/"
Weight = 2
[[Main]]
Name = "名词示例"
Pre = "at"
URL = "categories/名词示例/"
Weight = 3
[[Main]]
Name = "关于我们"
Pre = "globe"
URL = "about.html"
Weight = 4
\ No newline at end of file
Description = "科创中国-开源创新榜评选活动入围项目"
Keywords = ""
Subtitle = "共商 共建 共享 共生 共赢"
AuthorImg = "/img/logo.png"
AuthorName = "开源创新联合体"
Introduce = ""
DateFormat = "2006/01/02"
YearFormat = "2006Y"
MonthFormat = "01/02"
[Footer]
[[Socials]]
Name = "GitCode"
Icon = "code"
URL = "https://git.csdn.net/"
[[Socials]]
Name = "官网"
Icon = "globe"
URL = "https://cccst.org.cn/subpage/osis?utm_source=gitcode"
[[Links]]
Name = "国家科技传播中心"
Permalink = "https://cccst.org.cn/"
[[Links]]
Name = "CSDN"
Permalink = "https://www.csdn.net/"
[TagsCloud]
Enable = true
Limit = 10
[Share]
Enable = true
AddthisId = "Your AddthisId"
[Comment]
Enable = true
Module = "Waline"
LiveReId = "Your LiveReId"
WalineSerURL = "Your WalineSerURL"
[LeanCloud]
AppId = "Your LCAppId"
AppKey = "Your LCAppKey"
ServerURL = "Your LCServer"
[Statis]
BusuanziCounter = true
# CNNZSiteId = "Your CNNZSiteId"
# BaiduSiteId = "Your BaiduSiteId"
# GoogleSiteId = "Your GoogleSiteId"
[OnlineIM]
Enable = false
# DaoVoiceId = "Your DaoVoiceId"
[Others]
# RevolverMapId = "Your RevolverMapId"
\ No newline at end of file
Description = "开源推进发展联盟"
Keywords = ""
Subtitle = "共商 共建 共享 共生 共赢"
AuthorImg = "/img/logo.png"
AuthorName = "开源推进发展联盟"
Introduce = ""
DateFormat = "2006-01-02"
YearFormat = "2006年"
MonthFormat = "01-02"
[Footer]
[[Socials]]
Name = "GitCode"
Icon = "code"
URL = "https://git.csdn.net/"
[[Socials]]
Name = "官网"
Icon = "globe"
URL = "#"
[[Links]]
Name = "开源推进发展联盟"
Permalink = "#"
[[Links]]
Name = "CSDN"
Permalink = "https://www.csdn.net/"
---
title: Home
---
\ No newline at end of file
+++
title = "评选活动说明"
description = ""
date = "2021-11-08"
author = "科创中国"
url = "about.html"
type = "about"
+++
### 活动背景
为推进我国开源生态建设,团结引领优秀开源人才,积极搭建开源生态平台,整合我国开源界的资源,完善开源创新的总体布局,体现我国新型举国体制优势,使开源创新、开源技术在建设制造强国、质量强国、网络强国、数字中国肩负起历史赋予的科技创新重任。
此活动由中国科协科学技术传播中心、“科创中国”开源创新联合体联合中国通信学会、中科院软件研究所、中国开发者社区(CSDN)等机构平台组织负责承办,充分发动“科创中国”开源创新联合体成员单位等参与评审,利用开源社区数据库和专业分析工具进行大数据遴选推荐;邀请资深专家学者参与评审。旨在选树一批优秀的开源社区/机构和产品,形成示范引领带动作用,促进我国开源生态的繁荣和开源产业的快速发展,建设“共商、共建、共享、共生、共赢”的科技共同体。
更多信息请访问[活动官网](https://cccst.org.cn/subpage/osis?utm_source=gitcode).
### 榜单设置
此次评选包括三个榜单,分别为:
- 2021年度优秀开源产品(50个)
- 2021年度优秀开源社区(10家)
- 2021年度突出贡献开源机构(10家)
其中2021年度优秀开源产品(50个)来自:人工智能、数据库、操作系统、云原生、大数据、物联网、芯片、区块链、工业互联网、软件研发十大国内开源重点领域。
\ No newline at end of file
+++
author = "中兴通讯股份有限公司"
title = "【人工智能】Adlik深度学习推理加速工具链"
date = "2021-11-09"
description = "Adlik深度学习推理工具链是托管在Linux基金会人工智能和数据基金会的开源项目。主要解决在深度学习落地过程中的一系列问题,如:1)针对不同设备的推理框架有很多,对用户难以选择,学习成本大2)不用应用场景的部署条件不同,有基于容器化部署场景,也有基于嵌入式硬件部署的场景,同样的模型服务,不同部署方案要掌握不同的技术3)根据性能需求有很多的模型调优工作4)推理服务应用于不同硬件,需要多类异构计算引擎的支持利用Adlik,开发者可以方便地通过剪枝、量化、压缩等技术来优化主流训练框架如TensorFlow、Keras、Caffe、PyTorch等训练出的模型,并针对推理侧模型部署的运行时"
categories = ["名词示例"]
toc = true
+++
## 基本信息
|基本信息项|说明|
|--|--|
|产品名称| Adlik深度学习推理加速工具链|
|产品 Logo |![](/img/Adlik1.png)|
|产品简介 |Adlik深度学习推理工具链是托管在Linux基金会人工智能和数据基金会的开源项目。主要解决在深度学习落地过程中的一系列问题,如:1)针对不同设备的推理框架有很多,对用户难以选择,学习成本大2)不用应用场景的部署条件不同,有基于容器化部署场景,也有基于嵌入式硬件部署的场景,同样的模型服务,不同部署方案要掌握不同的技术3)根据性能需求有很多的模型调优工作4)推理服务应用于不同硬件,需要多类异构计算引擎的支持利用Adlik,开发者可以方便地通过剪枝、量化、压缩等技术来优化主流训练框架如TensorFlow、Keras、Caffe、PyTorch等训练出的模型,并针对推理侧模型部署的运行时|
|托管平台 |https://github.com/Adlik/Adlik|
### 技术水平
|技术水平项|说明|
|--|--|
|合规性|Apache 2.0![](/img/Adlik2.png)|
|Stars|产品活跃度:点赞数,提供截图等证明材料Star数457![](/img/Adlik3.png)|
|Issues |产品活跃度:点赞数,提供截图等证明材料Issue总数154![](/img/Adlik4.png)|
|Forks|产品活跃度:分叉数,提供截图等证明材料Fork数42![](/img/Adlik5.png)|
|Contributors |产品活跃度:贡献者数,提供截图等证明材料Contrubutor数量21![](/img/Adlik6.png)|
|Pull Request |产品活跃度:请求合并数,提供截图等证明材料Pull request总数382![](/img/Adlik7.png)|
|Docs/Wiki |产品使用、开发、FAQ等文档/音视频等教程资料,提供截图等证明材料![](/img/Adlik8.png)|
### 经济效益
|经济效益项|说明|
|--|--|
|商业案例数|产品是否有投入商业使用数量,提供截图等证明材料6![](/img/Adlik9.png)|
|用户使用数|产品总体的使用用户数量,提供截图等证明材料未统计,50+|
|收入规模|产品是否实现收入,提供截图等证明材料无|
### 社会效益
|社会效益项|说明|
|--|--|
| 教研案例数 |产品是否在教学研方面有使用,提供截图等证明材料否|
| 所获奖项数 |产品是否有获奖,提供截图等证明材料OSCAR尖峰开源项目奖![](/img/Adlik10.png)|
| 解决就业数 |产品是否有促进就业,提供截图等证明材料无材料|
+++
author = "数字天堂(北京)网络技术有限公司"
title = "【软件研发】uni-app"
date = "2021-10-26"
description = "uni-app是一个使用Vue.js开发所有前端应用的框架,开发者编写一套代码,可发布到iOS、Android、Web(响应式)、以及各种小程序(微信/支付宝/百度/头条/飞书/QQ/快手/钉钉/淘宝)、快应用等多个平台。"
categories = ["开源人物"]
toc = true
+++
## uni-app 基本信息
|基本信息项|说明|
|--|--|
|产品名称| uni-app|
|产品 Logo | ![](/img/uni-app1.png)|
|产品简介 |uni-app是一个使用Vue.js开发所有前端应用的框架,开发者编写一套代码,可发布到iOS、Android、Web(响应式)、以及各种小程序(微信/支付宝/百度/头条/飞书/QQ/快手/钉钉/淘宝)、快应用等多个平台。|
|托管平台 |https://codechina.csdn.net/dcloud/uni-app|
### 技术水平
|技术水平项|说明|
|--|--|
|合规性|Apache License 2.0 ![](/img/uni-app2.png)|
|Stars|34.3K ![](/img/uni-app3.png)|
|Issues |共2600+ ![](/img/uni-app4.png)|
|Forks|3.1K ![](/img/uni-app5.png)|
|Contributors |187 ![](/img/uni-app6.png)|
|Pull Request |共270+ ![](/img/uni-app7.png)|
|Docs/Wiki | ![](/img/uni-app8.png)|
### 经济效益
|经济效益项|说明|
|--|--|
|商业案例数|开发者和案例更多:HBuilder装机量800万台,开发者社区月活百万,70多个QQ微信群承载10万人。案例众多,uni统计月活超10亿|
|用户使用数|DCloud有900万开发者,uni统计手机端月活12亿+。是开发者数量和案例最丰富的多端开发框架。|
|收入规模|已有3651位用户赞助(https://dev.dcloud.net.cn/sponsor/)|
### 社会效益
|社会效益项|说明|
|--|--|
| 教研案例数 |腾讯课堂官方自制uni-app培训视频|
| 所获奖项数 |权威认可:阿里小程序官方工具内置uni-app|
| 解决就业数 |无|
name: sync-2-gitee
on:
push:
branches: [main, gh-pg]
jobs:
sync-2-gitee:
runs-on: ubuntu-latest
steps:
- name: Sync to Gitee
uses: wearerequired/git-mirror-action@master
env:
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
with:
source-repo: git@github.com:elkan1788/hugo-theme-next.git
destination-repo: git@gitee.com:lisenhui/hugo-theme-next.git
reload-pages:
needs: sync-2-gitee
runs-on: ubuntu-latest
steps:
- name: Build Gitee Pages by GitAction
uses: yanglbme/gitee-pages-action@main
with:
gitee-username: elkan1788@gmail.com
gitee-password: ${{ secrets.GITEE_PASSWORD }}
gitee-repo: lisenhui/hugo-theme-next
branch: gh-pg
\ No newline at end of file
public/
exampleSite/config/development/params.toml
*.exe
.DS_Store
language: go
branches:
only:
- main
addons:
ssh_known_hosts:
- github.com
env:
- HUGO_VERSION=0.82.1
before_install:
- export TZ='Asia/Shanghai'
- export LANG="zh_CN.UTF-8"
install:
- wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz -nd -P soft
- tar -xzvf soft/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz -C soft
- chmod +x soft/hugo
- export PATH=$PATH:$PWD/soft
- hugo version
- echo 'Hugo engine env is ready.'
script:
- cd ./exampleSite
- rm -rf ../public
- sh ../.travis/replace_params_value.sh
- hugo -d ../public -t ../..
- cp ../README.md ../public
- cp ../README.en.md ../public
- cp ../LICENSE ../public
deploy:
provider: pages
skip-cleanup: true
local-dir: public
target-branch: gh-pg
github-token: $GITHUB_PAGES
keep-history: true
commit_message: "Update blog site by TravisCI with build $TRAVIS_BUILD_ID"
on:
branch: main
after_deploy:
- pwd
- ls -al ../public
- echo "Deploy blog article success."
\ No newline at end of file
#!/bin/bash
echo "Start replace the plugin's paramter"
## replace the paramter's values
sed -i 's/Your AddthisId/'$AddthisId'/g;s/Your BaiduSiteId/'$BaiduSiteId'/g;s/Your CNNZSiteId/'$CNNZSiteId'/g;s/Your DaoVoiceId/'$DaoVoiceId'/g;s/Your GoogleSiteId/'$GoogleSiteId'/g;s/Your LCAppId/'$LCAppId'/g;s/Your LCAppKey/'$LCAppKey'/g;s|Your LCServer|'$LCServer'|g;s/Your LiveReId/'$LiveReId'/g;s/Your RevolverMapId/'$RevolverMapId'/g;s|Your WalineSerURL|'$WalineSerURL'|g' config/_default/params.toml
echo "Replace the plugin's paramter is success."
\ No newline at end of file
MIT License
Copyright (c) 2016 xtfly
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
[![Go Enviroment](https://img.shields.io/static/v1?label=GoLang&message=1.12.1&color=%2300ADD8&logo=Go)](https://studygolang.com/dl#go1.12.1)
[![Build Hugo Version](https://img.shields.io/static/v1?label=Hugo&message=0.87.0&color=%23FF4088&logo=hugo)](https://github.com/gohugoio/hugo/releases/tag/v0.87.0)
![GitHub branch checks state](https://img.shields.io/github/checks-status/elkan1788/hugo-theme-next/main?label=Check%20State&logo=Checkmarx)
[![Build Status](https://img.shields.io/travis/com/elkan1788/hugo-theme-next/main?label=Building&logo=Travis%20CI)](https://travis-ci.com/elkan1788/hugo-theme-next)
[![GitHub deployments](https://img.shields.io/github/deployments/elkan1788/hugo-theme-next/github-pages?label=gh-pg&logo=GitHub)](https://github.com/elkan1788/hugo-theme-next/tree/gh-pg)
[![Repos Size](https://img.shields.io/github/repo-size/elkan1788/hugo-theme-next?color=%23FFBF3B&logo=Files)](https://github.com/elkan1788/hugo-theme-next/releases)
[![Release Version](https://img.shields.io/github/v/release/elkan1788/hugo-theme-next?color=%230082C9&label=Release&logo=Next.js)](https://github.com/elkan1788/hugo-theme-next/releases/latest)
![GitHub](https://img.shields.io/github/license/elkan1788/hugo-theme-next?label=License&logo=WebAuthn)
[中文](https://github.com/elkan1788/hugo-theme-next/blob/main/README.md) | [English](#)
# NexT for Hugo
This theme is base on [xtfly](https://github.com/xtfly/hugo-theme-next) who port it from `Hexo` engine, then I had do more depth optimization and renovation. With the origin `NexT` theme's is simple and animated, I had add many blogs ecological related servcie components, make it more perfect and easy to use. The main features as folows:
- Multiple devices display adaptive
- Support Chinese and English
- Support a variety of site statistics tools, such as Baidu, Google, CNZZ, Busuanzi etc
- Automatically generate site map, with Baidu link push SEO optimization
- Integrate multiple comment plug-ins
- Add plug-ins for articles to share quickly
- Support article access statistics
- Integrated Picture viewer
- Custom profile page
- Online chat IM
- ......
With all the maintenance and upgrades, we want to see the 'NexT' theme continue to shine on the 'Hugo' engine.For the latest information about this theme, you can check the build status and new release above. Welcome to use and feedback.
# Previw
The adaptability compatible with PC and different mobile devices is as follows:
![my-hugo-blog.png](https://lisenhui.gitee.io/imgs/blog/my-hugo-blog.png)
Some browsers compatible with PC tests are as follows:
[![Coogle Chrome](https://img.shields.io/static/v1?label=Chrome&message=92.0.45%2B&color=%234285F4&logo=GoogleChrome)](#)
[![Firefox](https://img.shields.io/static/v1?label=Firefox&message=91.0.2%2B&color=%23FF7139&logo=Firefox)](#)
[![Safari](https://img.shields.io/static/v1?label=Safari&message=14.7.1%2B&color=%23212E50&logo=Safari)](#)
[![Microsoft Edge](https://img.shields.io/static/v1?label=Microsoft%20Edge&message=44.18362%2B&color=%230078D7&logo=Microsoft%20Edge)](#)
[![Internet Exporler](https://img.shields.io/static/v1?label=IE&message=11.356%2B&color=%230076D6&logo=Internet%20Explorer)](#)
> You can also visit my blog space to preview the actual effect, please click on [https://lisenhui.cn](https://lisenhui.cn) to visit.
# QuickStart
1. Refere to `Hugo` official deployment document [Installing] (https://gohugo.io/getting-started/installing/), and installed `Hugo` command on your computer;
2. Refer to the official Git deployment documentation [Install Git](https://git-scm.com/book/zh/v2/%E8%B5%B7%E6%AD%A5-%E5%AE%89%E8%A3%85-Git) to install the `Git` command on your computer;
3. Execute the 'Hugo new site' command to create your own site;
4. Run the 'git init' command to initialize all the files on the site;
5. Switch to the site of `themes` directory, execute `git clone - recurse - submodules https://github.com/elkan1788/hugo-theme-next.git` command to clone this theme;
Recommended use `Gitee` repository in China: `git clone --recurse-submodules https://gitee.com/lisenhui/hugo-theme-next.git`
6. Copy the two directories `config` and `content` from `hugo-theme-next` to the root directory of the site;
7. Execute `hugo server` to generate site services;
8. Open your browser and enter `http://localhost:1313/` in the address bar to view the effect.
[![Live Demo](https://asciinema.org/a/434226.svg)](https://asciinema.org/a/434226)
> Later, you can refer to the configuration parameters in the file in the `config` directory to adjust as needed to generate your own personalized site.
# Markdown syntax
The default for this theme is to place Chinese articles in the `post` folder under `zh-CN` and English articles in the `post` folder under `en`. In addition, there is only one `index.md` file under the `about` folder for editing personal information.
1. The template reference for the beginning of the article:
```
---
title: "Hello World"
url: 2020/09/11/hexo-hello-world.html
date: "2020-09-11"
tags:
- testing
- learn
categories:
- Hugo
toc: true
math: true
type: about
---
```
Parameter description:
- `title`: title of artilce
- `url`: visit link of article
- `date`: push date of article
- `tags`: tag of article
- `categories`: category of article
- `toc`: to enable directory navigation
- `math`: to enable mathematical formula parsing
- `type`: Page display type
2. For the Summary content displayed on the home page, Manual intervention can be done by using the `<!--more-->` label. For more information, please refer to the official document: [Manual Summary Splitting](https://gohugo.io/content-management/summaries/#user-defined-manual-summary-splitting)。
# License
[MIT License](LICENSE).
\ No newline at end of file
[![Go Enviroment](https://img.shields.io/static/v1?label=GoLang&message=1.12.1&color=%2300ADD8&logo=Go)](https://studygolang.com/dl#go1.12.1)
[![Build Hugo Version](https://img.shields.io/static/v1?label=Hugo&message=0.87.0&color=%23FF4088&logo=hugo)](https://github.com/gohugoio/hugo/releases/tag/v0.87.0)
![GitHub branch checks state](https://img.shields.io/github/checks-status/elkan1788/hugo-theme-next/main?label=Check%20State&logo=Checkmarx)
[![Build Status](https://img.shields.io/travis/com/elkan1788/hugo-theme-next/main?label=Building&logo=Travis%20CI)](https://travis-ci.com/elkan1788/hugo-theme-next)
[![GitHub deployments](https://img.shields.io/github/deployments/elkan1788/hugo-theme-next/github-pages?label=gh-pg&logo=GitHub)](https://github.com/elkan1788/hugo-theme-next/tree/gh-pg)
[![Repos Size](https://img.shields.io/github/repo-size/elkan1788/hugo-theme-next?color=%23FFBF3B&logo=Files)](https://github.com/elkan1788/hugo-theme-next/releases)
[![Release Version](https://img.shields.io/github/v/release/elkan1788/hugo-theme-next?color=%230082C9&label=Release&logo=Next.js)](https://github.com/elkan1788/hugo-theme-next/releases/latest)
![GitHub](https://img.shields.io/github/license/elkan1788/hugo-theme-next?label=License&logo=WebAuthn)
[中文](#) | [English](https://github.com/elkan1788/hugo-theme-next/blob/main/README.en.md)
# Hugo版本的NexT主题
本主题是在[xtfly](https://github.com/xtfly/hugo-theme-next)移植基础上,再次进行深度的优化和改造,维持了`NexT`原本简单朴素的基调,同时增添不少与博客生态相关的服务组件,让主题更加的完善和好用。主要的特性如下:
- 多种设备显示自适应
- 支持中英文双语切换
- 支持多种站点统计工具,如百度,谷歌,CNZZ,不蒜子
- 自动生成站点地图,加入百度链接推送SEO优化
- 集成多种评论插件
- 添加文章快速分享
- 支持文章访问统计
- 集成图片浏览器
- 自定义个人信息页面
- 在线聊天功能
- ......
耗费如此多精力去维护及升级,也是希望看到`NexT`主题能在`Hugo`引擎上继续发光发热。关于本主题的最新情况,可查看上方的构建状态和新版本发布,欢迎大家使用与反馈。
# 效果预览
同时兼容PC端和不同移动设备访问的自适应,效果如下:
![my-hugo-blog.png](https://lisenhui.gitee.io/imgs/blog/my-hugo-blog.png)
其中PC端测试兼容的部分浏览器有:
[![Coogle Chrome](https://img.shields.io/static/v1?label=Chrome&message=92.0.45%2B&color=%234285F4&logo=GoogleChrome)](#)
[![Firefox](https://img.shields.io/static/v1?label=Firefox&message=91.0.2%2B&color=%23FF7139&logo=Firefox)](#)
[![Safari](https://img.shields.io/static/v1?label=Safari&message=14.7.1%2B&color=%23212E50&logo=Safari)](#)
[![Microsoft Edge](https://img.shields.io/static/v1?label=Microsoft%20Edge&message=44.18362%2B&color=%230078D7&logo=Microsoft%20Edge)](#)
[![Internet Exporler](https://img.shields.io/static/v1?label=IE&message=11.356%2B&color=%230076D6&logo=Internet%20Explorer)](#)
> 也可访问鄙人的博客空间预览实际效果,欢迎点击[https://lisenhui.cn](https://lisenhui.cn)访问。
# 快速开始
1. 参考`Hugo`官方的部署文档[Installing](https://gohugo.io/getting-started/installing/),在您的电脑上安装`Hugo`执行文件;
2. 参考`Git`官方的部署文档[安装 Git](https://git-scm.com/book/zh/v2/%E8%B5%B7%E6%AD%A5-%E5%AE%89%E8%A3%85-Git),在您的电脑上安装`Git`执行文件;
3. 执行`hugo new site [站点名称]`命令来创建您自己的站点;
4. 执行`git init`命令初步化站点的所有文件;
5. 切换到站点的`themes`目录下,执行`git clone --recurse-submodules https://github.com/elkan1788/hugo-theme-next.git`命令克隆本主题
> 在国内可使用`Gitee`仓库地址: `git clone --recurse-submodules https://gitee.com/lisenhui/hugo-theme-next.git`
6. 拷贝`hugo-theme-next`目录下的两个目录`config``content`到站点根目录下面;
7. 执行`hugo server`生成站点服务;
8. 打开浏览器,在地址栏输入`http://localhost:1313/`访问查看效果。
[![Live Demo](https://asciinema.org/a/434226.svg)](https://asciinema.org/a/434226)
> 后续可参考`config`目录下文件里的配置参数,按需调整生成您自己个性化的站点。
# 文章标记
本主题默认是把中文文章放在`zh-CN`目录下的`post`文件夹,而英文文章放在`en`目录下的`post`文件夹,另外在`about`文件夹下只有一个`index.md`文件用于编辑个人信息。
1. 文章的开头模板参考:
```
---
title: "Hello World"
url: 2020/09/11/hexo-hello-world.html
date: "2020-09-11"
tags:
- 测试
- 学习
categories:
- Hugo
toc: true
math: true
type: about
---
```
参数作用说明:
- `title`: 文章标题
- `url`: 访问路径
- `date`: 发表日期
- `tags`: 文章标签
- `categories`: 文章分类
- `toc`: 是否开启目录导航
- `math`: 是否开启数学公式解析
- `type`: 页面显示类型
2. 关于首页显示的文章摘要内容可使用 `<!--more-->` 标签来手动干预,更多说明可详见官方文档:[Manual Summary Splitting](https://gohugo.io/content-management/summaries/#user-defined-manual-summary-splitting)。
# 许可证
[MIT License](LICENSE).
\ No newline at end of file
---
title: "{{ .TranslationBaseName | title }}"
url: "{{ dateFormat "2006/01/01" .Date }}/{{ lower (substr .TranslationBaseName 6) }}.html"
date: "{{ .Date }}"
draft: true
categories:
- "xx"
tags:
- "xxx"
- "xxx"
toc: true
---
\ No newline at end of file
# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so
# Folders
_obj
_test
# Architecture specific extensions/prefixes
*.[568vq]
[568vq].out
*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*
_testmain.go
*.exe
*.test
/public
/themes
.DS_Store
The MIT License (MIT)
Copyright (c) 2014 Steve Francia
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
\ No newline at end of file
# hugoBasicExample
This repository offers an example site for [Hugo](https://gohugo.io/) and also it provides the default content for demos hosted on the [Hugo Themes Showcase](https://themes.gohugo.io/).
# Using
1. [Install Hugo](https://gohugo.io/overview/installing/)
2. Clone this repository
```bash
git clone https://github.com/gohugoio/hugoBasicExample.git
cd hugoBasicExample
```
3. Clone the repository you want to test. If you want to test all Hugo Themes then follow the instructions provided [here](https://github.com/gohugoio/hugoThemes#installing-all-themes)
4. Run Hugo and select the theme of your choosing
```bash
hugo server -t YOURTHEME
```
5. Under `/content/` this repository contains the following:
- A section called `/post/` with sample markdown content
- A headless bundle called `homepage` that you may want to use for single page applications. You can find instructions about headless bundles over [here](https://gohugo.io/content-management/page-bundles/#headless-bundle)
- An `about.md` that is intended to provide the `/about/` page for a theme demo
6. If you intend to build a theme that does not fit in the content structure provided in this repository, then you are still more than welcome to submit it for review at the [Hugo Themes](https://github.com/gohugoio/hugoThemes/issues) respository
Title = "Loving life and dreams."
BaseUrl = "http://next.lisenhui.cn/"
DefaultContentLanguage = "zh-cn"
LanguageCode = "zh-CN"
Theme = "hugo-theme-next"
MetaDataFormat = "toml"
PaginatePath = "p"
Paginate = 5
DisablePathToLower = false
PreserveTaxonomyNames = false
PygmentsStyle = "emacs"
pygmentsCodefences = true
pygmentsCodefencesGuessSyntax = true
enableRobotsTXT = true
enableEmoji = true
hasCJKLanguage = true
timeout = 100000
ignoreErrors = ["error-remote-getjson"]
[sitemap]
filename = "sitemap.xml"
changefreq = "weekly"
priority = 0.5
[outputFormats]
[outputFormats.SearchIndex]
mediaType = "application/xml"
baseName = "searchindex"
isPlainText = true
notAlternative = true
[outputs]
home = ["HTML", "RSS", "SearchIndex"]
[minify]
disableCSS = false
disableHTML = false
disableJS = false
disableJSON = false
disableSVG = false
disableXML = false
minifyOutput = true
## 让Markdown支持写HTML语法
[markup]
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true
\ No newline at end of file
[zh-CN]
title = "科创中国-开源创新榜"
languageName = "中文"
weight = 1
contentdir = "content/zh-CN"
[en]
title = "科创中国-开源创新榜"
languageName = "English"
weight = 2
contentdir = "content/en"
[[Main]]
Name = "Home"
Pre = "home"
URL = "/"
Weight = 1
[[Main]]
Name = "Archive"
Pre = "archive"
URL = "post"
Weight = 2
[[Main]]
Name = "About"
Pre = "user"
URL = "about.html"
Weight = 3
[[Main]]
Name = "Page404"
Pre = "heartbeat"
URL = "404.html"
Weight = 4
\ No newline at end of file
[[Main]]
Name = "首页"
Pre = "home"
URL = "/"
Weight = 1
[[Main]]
Name = "归档"
Pre = "archive"
URL = "post"
Weight = 2
[[Main]]
Name = "关于我"
Pre = "user"
URL = "about.html"
Weight = 3
[[Main]]
Name = "公益404"
Pre = "heartbeat"
URL = "404.html"
Weight = 4
\ No newline at end of file
Description = "Weclome to Elkan's blog site that who is best on program develop, pre-sales and big data."
Keywords = "Blog, Software, Big Data, Product, Architecture, Java, Kylin"
Subtitle = "Don't stop running forward!"
AuthorImg = "/img/avatar.png"
AuthorName = "Elkan.Li"
Introduce = "Never forget your dreams!"
DateFormat = "2006/01/02"
YearFormat = "2006Y"
MonthFormat = "01/02"
[Footer]
StorageLink = "https://www.ucloud.cn/"
StorageName = "UCloud Storage"
ICPLink = "http://beian.miit.gov.cn"
ICPNo = "ICP.NO 18047355"
[[Socials]]
Name = "GitHub"
Icon = "github"
URL = "https://github.com/elkan1788/"
[[Socials]]
Name = "ZhiHu"
Icon = "globe"
URL = "https://www.zhihu.com/people/fan-meng-xing-chen-1"
[[Links]]
Name = "Nutz"
Permalink = "https://nutzam.com/"
[[Links]]
Name = "JFinal"
Permalink = "https://jfinal.com/"
[[Links]]
Name = "Wendal"
Permalink = "http://wendal.net/"
[[Links]]
Name = "LiaoXueFeng"
Permalink = "https://www.liaoxuefeng.com/"
\ No newline at end of file
[TagsCloud]
Enable = true
Limit = 10
[Share]
Enable = true
AddthisId = "Your AddthisId"
[Comment]
Enable = true
Module = "Waline"
LiveReId = "Your LiveReId"
WalineSerURL = "Your WalineSerURL"
[LeanCloud]
AppId = "Your LCAppId"
AppKey = "Your LCAppKey"
ServerURL = "Your LCServer"
[Statis]
BusuanziCounter = true
# CNNZSiteId = "Your CNNZSiteId"
# BaiduSiteId = "Your BaiduSiteId"
# GoogleSiteId = "Your GoogleSiteId"
[OnlineIM]
Enable = false
# DaoVoiceId = "Your DaoVoiceId"
[Others]
# RevolverMapId = "Your RevolverMapId"
\ No newline at end of file
Description = "欢迎来到凡梦星尘空间站,个人主要专注于程序开发,产品,售前及大数据解决方案。"
Keywords = "博客, 程序员, 架构师, 思考, 读书, 笔记, 技术, 分享, 大数据, 产品"
Subtitle = "没有伞的孩子要学会努力奔跑!"
AuthorImg = "/img/avatar.png"
AuthorName = "凡梦星尘"
Introduce = "再平凡的人也有属于他自己的梦想!"
DateFormat = "2006-01-02"
YearFormat = "2006年"
MonthFormat = "01-02"
[Footer]
StorageLink = "https://www.ucloud.cn/"
StorageName = "UCloud云存储"
ICPLink = "http://beian.miit.gov.cn"
ICPNo = "粤ICP备18047355号"
[[Socials]]
Name = "GitHub"
Icon = "github"
URL = "https://github.com/elkan1788/"
[[Socials]]
Name = "知乎"
Icon = "globe"
URL = "https://www.zhihu.com/people/fan-meng-xing-chen-1"
[[Links]]
Name = "Nutz"
Permalink = "https://nutzam.com/"
[[Links]]
Name = "JFinal"
Permalink = "https://jfinal.com/"
[[Links]]
Name = "Wendal"
Permalink = "http://wendal.net/"
[[Links]]
Name = "廖雪峰"
Permalink = "https://www.liaoxuefeng.com/"
\ No newline at end of file
BaseUrl = "http://localhost:1313/"
[minify]
disableCSS = false
disableHTML = false
disableJS = false
disableJSON = false
disableSVG = false
disableXML = false
minifyOutput = false
\ No newline at end of file
timeout = 30000
enableInlineShortcodes = true
[taxonomies]
category = "categories"
tag = "tags"
series = "series"
[privacy]
[privacy.vimeo]
disabled = false
simple = true
[privacy.twitter]
disabled = false
enableDNT = true
simple = true
disableInlineCSS = true
[privacy.instagram]
disabled = false
simple = true
[privacy.youtube]
disabled = false
privacyEnhanced = true
---
title: Home
---
\ No newline at end of file
+++
title = "About"
description = "Hugo, the world's fastest framework for building websites"
date = "2019-02-28"
author = "Hugo Authors"
url = "/en/about.html"
type = "about"
+++
Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows.
Hugo makes use of a variety of open source projects including:
* https://github.com/yuin/goldmark
* https://github.com/alecthomas/chroma
* https://github.com/muesli/smartcrop
* https://github.com/spf13/cobra
* https://github.com/spf13/viper
Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages.
Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases.
Websites built with Hugo are extremely fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider.
Learn more and contribute on [GitHub](https://github.com/gohugoio).
+++
author = "Hugo Authors"
title = "Emoji Support"
date = "2019-03-05"
description = "Guide to emoji usage in Hugo"
tags = [
"emoji",
]
toc = true
+++
Emoji can be enabled in a Hugo project in a number of ways.
<!--more-->
The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes).
To enable emoji globally, set `enableEmoji` to `true` in your site's [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g.
<p><span class="nowrap"><span class="emojify">🙈</span> <code>:see_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙉</span> <code>:hear_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙊</span> <code>:speak_no_evil:</code></span></p>
<br>
The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes.
***
**N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g.
{{< highlight html >}}
.emoji {
font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
}
{{< /highlight >}}
{{< css.inline >}}
<style>
.emojify {
font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
font-size: 2rem;
vertical-align: middle;
}
@media screen and (max-width:650px) {
.nowrap {
display: block;
margin: 25px 0;
}
}
</style>
{{< /css.inline >}}
+++
author = "Hugo Authors"
title = "Markdown Syntax Guide"
date = "2019-03-11"
description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
tags = [
"markdown",
"css",
"html",
]
categories = [
"themes",
"syntax",
]
series = ["Themes Guide"]
aliases = ["migrate-from-jekyl"]
toc = true
+++
This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.
<!--more-->
## Headings
The following HTML `<h1>``<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest.
# H1
## H2
### H3
#### H4
##### H5
###### H6
## Paragraph
Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
## Blockquotes
The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
#### Blockquote without attribution
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
> **Note** that you can use *Markdown syntax* within a blockquote.
#### Blockquote with attribution
> Don't communicate by sharing memory, share memory by communicating.<br>
> — <cite>Rob Pike[^1]</cite>
[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
## Tables
Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box.
Name | Age
--------|------
Bob | 27
Alice | 23
#### Inline Markdown within tables
| Italics | Bold | Code |
| -------- | -------- | ------ |
| *italics* | **bold** | `code` |
## Code Blocks
#### Code block with backticks
```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
```
#### Code block indented with four spaces
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
#### Code block with Hugo's internal highlight shortcode
{{< highlight html >}}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
{{< /highlight >}}
## List Types
#### Ordered List
1. First item
2. Second item
3. Third item
#### Unordered List
* List item
* Another item
* And another item
#### Nested list
* Fruit
* Apple
* Orange
* Banana
* Dairy
* Milk
* Cheese
## Other Elements — abbr, sub, sup, kbd, mark
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
H<sub>2</sub>O
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session.
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
---
author: Hugo Authors
title: Math Typesetting
date: 2019-03-08
description: A brief guide to setup MathJax
math: true
---
Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries.
<!--more-->
In this example we will be using [MathJax](https://www.mathjax.org/)
- Create a post under `/content/en[zh-CN]/math.md`
- To enable MathJax globally set the parameter `math` to `true` in a project's configuration
- To enable KaTex on a per page basis include the parameter `math: true` in content files
**Note:** Use the online reference of [Supported TeX Functions](https://docs.mathjax.org/en/latest/input/tex/index.html)
### Examples
## Repeating fractions
$$
\frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} \equiv 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}} {1+\cdots} } } }
$$
## Summation notation
$$
\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)
$$
## Sum of a Series
I broke up the next two examples into separate lines so it behaves better on a mobile phone. That's why they include \displaystyle.
$$
\displaystyle\sum_{i=1}^{k+1}i
$$
$$
\displaystyle= \left(\sum_{i=1}^{k}i\right) +(k+1)
$$
$$
\displaystyle= \frac{k(k+1)}{2}+k+1
$$
$$
\displaystyle= \frac{k(k+1)+2(k+1)}{2}
$$
$$
\displaystyle= \frac{(k+1)(k+2)}{2}
$$
$$
\displaystyle= \frac{(k+1)((k+1)+1)}{2}
$$
## Product notation
$$
\displaystyle 1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots = \displaystyle \prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})}, \displaystyle\text{ for }\lvert q\rvert < 1.
$$
## Inline math
And here is some in-line math: $$ k_{n+1} = n^2 + k_n^2 - k_{n-1} $$ , followed by some more text.
## Greek Letters
$$
\Gamma\ \Delta\ \Theta\ \Lambda\ \Xi\ \Pi\ \Sigma\ \Upsilon\ \Phi\ \Psi\ \Omega
\alpha\ \beta\ \gamma\ \delta\ \epsilon\ \zeta\ \eta\ \theta\ \iota\ \kappa\ \lambda\ \mu\ \nu\ \xi \ \omicron\ \pi\ \rho\ \sigma\ \tau\ \upsilon\ \phi\ \chi\ \psi\ \omega\ \varepsilon\ \vartheta\ \varpi\ \varrho\ \varsigma\ \varphi
$$
## Arrows
$$
\gets\ \to\ \leftarrow\ \rightarrow\ \uparrow\ \Uparrow\ \downarrow\ \Downarrow\ \updownarrow\ \Updownarrow
$$
$$
\Leftarrow\ \Rightarrow\ \leftrightarrow\ \Leftrightarrow\ \mapsto\ \hookleftarrow
\leftharpoonup\ \leftharpoondown\ \rightleftharpoons\ \longleftarrow\ \Longleftarrow\ \longrightarrow
$$
$$
\Longrightarrow\ \longleftrightarrow\ \Longleftrightarrow\ \longmapsto\ \hookrightarrow\ \rightharpoonup
$$
$$
\rightharpoondown\ \leadsto\ \nearrow\ \searrow\ \swarrow\ \nwarrow
$$
## Symbols
$$
\surd\ \barwedge\ \veebar\ \odot\ \oplus\ \otimes\ \oslash\ \circledcirc\ \boxdot\ \bigtriangleup
$$
$$
\bigtriangledown\ \dagger\ \diamond\ \star\ \triangleleft\ \triangleright\ \angle\ \infty\ \prime\ \triangle
$$
## Calculus
$$
\int u \frac{dv}{dx}\,dx=uv-\int \frac{du}{dx}v\,dx
$$
$$
f(x) = \int_{-\infty}^\infty \hat f(\xi)\,e^{2 \pi i \xi x}
$$
$$
\oint \vec{F} \cdot d\vec{s}=0
$$
## Lorenz Equations
$$
\begin{aligned} \dot{x} & = \sigma(y-x) \\ \dot{y} & = \rho x - y - xz \\ \dot{z} & = -\beta z + xy \end{aligned}
$$
## Cross Product
This works in KaTeX, but the separation of fractions in this environment is not so good.
$$
\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ \frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \\ \frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0 \end{vmatrix}
$$
Here's a workaround: make the fractions smaller with an extra class that targets the spans with "mfrac" class (makes no difference in the MathJax case):
$$
\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ \frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \\ \frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0 \end{vmatrix}
$$
## Accents
$$
\hat{x}\ \vec{x}\ \ddot{x}
$$
## Stretchy brackets
$$
\left(\frac{x^2}{y^3}\right)
$$
## Evaluation at limits
$$
\left.\frac{x^3}{3}\right|_0^1
$$
## Case definitions
$$
f(n) = \begin{cases} \frac{n}{2}, & \text{if } n\text{ is even} \\ 3n+1, & \text{if } n\text{ is odd} \end{cases}
$$
## Maxwell's Equations
$$
\begin{aligned} \nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\ \nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\ \nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\ \nabla \cdot \vec{\mathbf{B}} & = 0 \end{aligned}
$$
These equations are quite cramped. We can add vertical spacing using (for example) [1em] after each line break (\\). as you can see here:
$$
\begin{aligned} \nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\[1em] \nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\[0.5em] \nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\[1em] \nabla \cdot \vec{\mathbf{B}} & = 0 \end{aligned}
$$
## Statistics
Definition of combination:
$$
\frac{n!}{k!(n-k)!} = {^n}C_k
{n \choose k}
$$
## Fractions on fractions
$$
\frac{\frac{1}{x}+\frac{1}{y}}{y-z}
$$
## n-th root
$$
\sqrt[n]{1+x+x^2+x^3+\ldots}
$$
## Matrices
$$
\begin{pmatrix} a_{11} & a_{12} & a_{13}\\ a_{21} & a_{22} & a_{23}\\ a_{31} & a_{32} & a_{33} \end{pmatrix}
\begin{bmatrix} 0 & \cdots & 0 \\ \vdots & \ddots & \vdots \\ 0 & \cdots & 0 \end{bmatrix}
$$
## Punctuation
$$
f(x) = \sqrt{1+x} \quad (x \ge -1)
f(x) \sim x^2 \quad (x\to\infty)
$$
Now with punctuation:
$$
f(x) = \sqrt{1+x}, \quad x \ge -1
f(x) \sim x^2, \quad x\to\infty
$$
\ No newline at end of file
+++
author = "Hugo Authors"
title = "Placeholder Text"
date = "2019-03-09"
description = "Lorem Ipsum Dolor Si Amet"
tags = [
"markdown",
"text",
]
toc = true
+++
Lorem est tota propiore conpellat pectoribus de pectora summo. <!--more-->Redit teque digerit hominumque toris verebor lumina non cervice subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum.
1. Exierant elisi ambit vivere dedere
2. Duce pollice
3. Eris modo
4. Spargitque ferrea quos palude
Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis.
1. Comas hunc haec pietate fetum procerum dixit
2. Post torum vates letum Tiresia
3. Flumen querellas
4. Arcanaque montibus omnes
5. Quidem et
# Vagus elidunt
<svg class="canon" xmlns="http://www.w3.org/2000/svg" overflow="visible" viewBox="0 0 496 373" height="373" width="496"><g fill="none"><path stroke="#000" stroke-width=".75" d="M.599 372.348L495.263 1.206M.312.633l494.95 370.853M.312 372.633L247.643.92M248.502.92l246.76 370.566M330.828 123.869V1.134M330.396 1.134L165.104 124.515"></path><path stroke="#ED1C24" stroke-width=".75" d="M275.73 41.616h166.224v249.05H275.73zM54.478 41.616h166.225v249.052H54.478z"></path><path stroke="#000" stroke-width=".75" d="M.479.375h495v372h-495zM247.979.875v372"></path><ellipse cx="498.729" cy="177.625" rx=".75" ry="1.25"></ellipse><ellipse cx="247.229" cy="377.375" rx=".75" ry="1.25"></ellipse></g></svg>
[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon)
## Mane refeci capiebant unda mulcebat
Victa caducifer, malo vulnere contra dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis.
Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae vulnus haerentia iuste et exercebat, sui et.
Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem Propoetides **parte**.
{{< css.inline >}}
<style>
.canon { background: white; width: 100%; height: auto; }
</style>
{{< /css.inline >}}
+++
author = "Hugo Authors"
title = "Rich Content"
date = "2019-03-10"
description = "A brief description of Hugo Shortcodes"
tags = [
"shortcodes",
"privacy",
]
toc = true
+++
Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugos-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds.
<!--more-->
---
## YouTube Privacy Enhanced Shortcode
{{< youtube ZJthWmvUzzc >}}
<br>
---
## Twitter Simple Shortcode
{{< twitter_simple 1085870671291310081 >}}
<br>
---
## Vimeo Simple Shortcode
{{< vimeo_simple 48912912 >}}
---
title: Home
---
\ No newline at end of file
+++
title = "关于我"
description = "Hugo,世界上最快的网站建设框架"
date = "2019-02-28"
author = "Hugo Authors"
url = "about.html"
type = "about"
+++
Hugo是用Go编写的一个开放源代码静态站点生成器,可在[Apache许可证2.0](https://github.com/gohugoio/hugo/blob/master/LICENSE)下使用。 Hugo支持TOML, YAML和JSON数据文件类型,Markdown和HTML内容文件,并使用短代码添加丰富的内容。其他值得注意的功能包括分类法、多语言模式、图像处理、自定义输出格式、HTML/CSS/JS缩小和对Sass SCSS工作流的支持。
Hugo使用了多种开源项目,包括:
* https://github.com/yuin/goldmark
* https://github.com/alecthomas/chroma
* https://github.com/muesli/smartcrop
* https://github.com/spf13/cobra
* https://github.com/spf13/viper
Hugo是博客、企业网站、创意作品集、在线杂志、单页应用程序甚至是数千页的网站的理想选择。
Hugo适合那些想要手工编写自己的网站代码,而不用担心设置复杂的运行时、依赖关系和数据库的人。
使用Hugo建立的网站非常快速、安全,可以部署在任何地方,包括AWS、GitHub Pages、Heroku、Netlify和任何其他托管提供商。
更多信息请访问[GitHub](https://github.com/gohugoio).
+++
author = "Hugo Authors"
title = "支持Emoji表情符号"
date = "2019-03-05"
description = "Guide to emoji usage in Hugo"
tags = [
"emoji",
]
toc = true
+++
在Hugo项目中可以通过多种方式启用Emoji。
<!--more-->
The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes).
To enable emoji globally, set `enableEmoji` to `true` in your site's [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g.
<p><span class="nowrap"><span class="emojify">馃檲</span> <code>:see_no_evil:</code></span> <span class="nowrap"><span class="emojify">馃檳</span> <code>:hear_no_evil:</code></span> <span class="nowrap"><span class="emojify">馃檴</span> <code>:speak_no_evil:</code></span></p>
<br>
The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes.
***
**N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g.
{{< highlight html >}}
.emoji {
font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
}
{{< /highlight >}}
{{< css.inline >}}
<style>
.emojify {
font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
font-size: 2rem;
vertical-align: middle;
}
@media screen and (max-width:650px) {
.nowrap {
display: block;
margin: 25px 0;
}
}
</style>
{{< /css.inline >}}
+++
author = "Hugo Authors"
title = "Markdown语法手册"
date = "2019-03-11"
description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
tags = [
"markdown",
"css",
"html",
]
categories = [
"themes",
"syntax",
]
series = ["Themes Guide"]
aliases = ["migrate-from-jekyl"]
toc = true
+++
本文提供了一个可以在 Hugo 内容文件中使用的基本Markdown语法示例,还展示了基本 HTML 元素在 Hugo 主题中是否使用 CSS 装饰。
<!--more-->
# 标题
下面的 HTML 代码`<h1>``<h6>` 元素表示六个级别的节标题。
`<h1>`是最高的节级别,`<h6>`是最低的节级别。
# H1
## H2
### H3
#### H4
##### H5
###### H6
# 段落
Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
伊塔图?厨房里有很多东西,我不知道他们喜欢吃什么,或者他们喜欢吃什么。
# 引用
blockquote元素表示从另一个来源引用的内容,可选的引用必须在`footer``cite`元素内,也可选的内嵌更改,如注释和缩写。
#### 引用没有归属
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
> **注意** 可以在块引用中使用 *Markdown* 语法。
#### 带归属的引用
> 不要通过分享记忆来交流,通过交流来分享记忆。<br>
> — <cite>罗布·派克[^1]</cite>
[^1]: 以上引文摘自Rob Pike在2015年11月18日Gopherfest上的[演讲](https://www.youtube.com/watch?v=PAAkCSZUG1c)
# 表格
表不是Markdown核心规范的一部分,但是Hugo支持开箱即用。
Name | Age
--------|------
Bob | 27
Alice | 23
#### 表格内使用Markdown语法
| Italics | Bold | Code |
| -------- | -------- | ------ |
| *italics* | **bold** | `code` |
# 图像
```html
![图像描述](图像地址)
```
## 示例
![screenshot.png](//siteimgs.cn-sh2.ufileos.com/my-hugo-blog.png)
<svg role="img" with="24" height="24" fill="#4285F4" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Google Chrome</title><path d="M12 0C8.21 0 4.831 1.757 2.632 4.501l3.953 6.848A5.454 5.454 0 0 1 12 6.545h10.691A12 12 0 0 0 12 0zM1.931 5.47A11.943 11.943 0 0 0 0 12c0 6.012 4.42 10.991 10.189 11.864l3.953-6.847a5.45 5.45 0 0 1-6.865-2.29zm13.342 2.166a5.446 5.446 0 0 1 1.45 7.09l.002.001h-.002l-5.344 9.257c.206.01.413.016.621.016 6.627 0 12-5.373 12-12 0-1.54-.29-3.011-.818-4.364zM12 16.364a4.364 4.364 0 1 1 0-8.728 4.364 4.364 0 0 1 0 8.728Z"/></svg>
<svg role="img" with="24" height="24" fill="#FF7139" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Firefox Browser</title><path d="M8.824 7.287c.008 0 .004 0 0 0zm-2.8-1.4c.006 0 .003 0 0 0zm16.754 2.161c-.505-1.215-1.53-2.528-2.333-2.943.654 1.283 1.033 2.57 1.177 3.53l.002.02c-1.314-3.278-3.544-4.6-5.366-7.477-.091-.147-.184-.292-.273-.446a3.545 3.545 0 01-.13-.24 2.118 2.118 0 01-.172-.46.03.03 0 00-.027-.03.038.038 0 00-.021 0l-.006.001a.037.037 0 00-.01.005L15.624 0c-2.585 1.515-3.657 4.168-3.932 5.856a6.197 6.197 0 00-2.305.587.297.297 0 00-.147.37c.057.162.24.24.396.17a5.622 5.622 0 012.008-.523l.067-.005a5.847 5.847 0 011.957.222l.095.03a5.816 5.816 0 01.616.228c.08.036.16.073.238.112l.107.055a5.835 5.835 0 01.368.211 5.953 5.953 0 012.034 2.104c-.62-.437-1.733-.868-2.803-.681 4.183 2.09 3.06 9.292-2.737 9.02a5.164 5.164 0 01-1.513-.292 4.42 4.42 0 01-.538-.232c-1.42-.735-2.593-2.121-2.74-3.806 0 0 .537-2 3.845-2 .357 0 1.38-.998 1.398-1.287-.005-.095-2.029-.9-2.817-1.677-.422-.416-.622-.616-.8-.767a3.47 3.47 0 00-.301-.227 5.388 5.388 0 01-.032-2.842c-1.195.544-2.124 1.403-2.8 2.163h-.006c-.46-.584-.428-2.51-.402-2.913-.006-.025-.343.176-.389.206-.406.29-.787.616-1.136.974-.397.403-.76.839-1.085 1.303a9.816 9.816 0 00-1.562 3.52c-.003.013-.11.487-.19 1.073-.013.09-.026.181-.037.272a7.8 7.8 0 00-.069.667l-.002.034-.023.387-.001.06C.386 18.795 5.593 24 12.016 24c5.752 0 10.527-4.176 11.463-9.661.02-.149.035-.298.052-.448.232-1.994-.025-4.09-.753-5.844z"/></svg>
[![Coogle Chrome](https://img.shields.io/static/v1?label=Chrome&message=92.0.45%2B&color=%234285F4&logo=GoogleChrome)](#)
[![Firefox](https://img.shields.io/static/v1?label=Firefox&message=91.0.2%2B&color=%23FF7139&logo=Firefox)](#)
[![Safari](https://img.shields.io/static/v1?label=Safari&message=14.7.1%2B&color=%23212E50&logo=Safari)](#)
[![Microsoft Edge](https://img.shields.io/static/v1?label=Microsoft%20Edge&message=44.18362%2B&color=%230078D7&logo=Microsoft%20Edge)](#)
[![Internet Exporler](https://img.shields.io/static/v1?label=IE&message=11.356%2B&color=%230076D6&logo=Internet%20Explorer)](#)
> 点击图像可以打开图像浏览器,快试试吧。
# 代码块
## 带有引号的代码块
```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
```
## 用四个空格缩进的代码块
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
## 代码块引用Hugo的内部高亮短代码
{{< highlight html >}}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
{{< /highlight >}}
# 列表类型
## 有序列表
1. First item
2. Second item
3. Third item
## 无序列表
* List item
* Another item
* And another item
## 嵌套列表
* Fruit
* Apple
* Orange
* Banana
* Dairy
* Milk
* Cheese
## 其他元素 — abbr, sub, sup, kbd, mark
<abbr title="Graphics Interchange Format">GIF</abbr> 是位图图像格式。
H<sub>2</sub>O
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
<kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> 组合键结束会话。
大多数<mark>蝾螈</mark>在夜间活动,捕食昆虫、蠕虫和其他小动物。
---
author: Hugo Authors
title: 数据公式设置显示
date: 2019-03-08
description: 设置MathJax的简要指南
math: true
---
Hugo项目中的数学表示法可以通过使用第三方JavaScript库来实现。
<!--more-->
在这个例子中,我们将使用 [MathJax](https://www.mathjax.org/)
- Create a post under `/content/en[zh-CN]/math.md`
- 可以全局启用MathJax,请在项目配置中将参数`math`设置为`true`
- 或是在每页基础上启用MathJax,在内容文件中包括参数`math: true`
**注意:** 使用[支持的TeX功能](https://docs.mathjax.org/en/latest/input/tex/index.html)的联机参考资料
### 例子
## 重复的分数
$$
\frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} \equiv 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}} {1+\cdots} } } }
$$
## 总和记号
$$
\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)
$$
## 几何级数之和
我把接下来的两个例子分成了几行,这样它在手机上表现得更好。这就是为什么它们包含 `\displaystyle`
$$
\displaystyle\sum_{i=1}^{k+1}i
$$
$$
\displaystyle= \left(\sum_{i=1}^{k}i\right) +(k+1)
$$
$$
\displaystyle= \frac{k(k+1)}{2}+k+1
$$
$$
\displaystyle= \frac{k(k+1)+2(k+1)}{2}
$$
$$
\displaystyle= \frac{(k+1)(k+2)}{2}
$$
$$
\displaystyle= \frac{(k+1)((k+1)+1)}{2}
$$
## 乘记号
$$
\displaystyle 1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots = \displaystyle \prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})}, \displaystyle\text{ for }\lvert q\rvert < 1.
$$
## 随文数式
这是一些线性数学: $$ k_{n+1} = n^2 + k_n^2 - k_{n-1} $$ , 然后是更多的文本。
## 希腊字母
$$
\Gamma\ \Delta\ \Theta\ \Lambda\ \Xi\ \Pi\ \Sigma\ \Upsilon\ \Phi\ \Psi\ \Omega
\alpha\ \beta\ \gamma\ \delta\ \epsilon\ \zeta\ \eta\ \theta\ \iota\ \kappa\ \lambda\ \mu\ \nu\ \xi \ \omicron\ \pi\ \rho\ \sigma\ \tau\ \upsilon\ \phi\ \chi\ \psi\ \omega\ \varepsilon\ \vartheta\ \varpi\ \varrho\ \varsigma\ \varphi
$$
## 箭头
$$
\gets\ \to\ \leftarrow\ \rightarrow\ \uparrow\ \Uparrow\ \downarrow\ \Downarrow\ \updownarrow\ \Updownarrow
$$
$$
\Leftarrow\ \Rightarrow\ \leftrightarrow\ \Leftrightarrow\ \mapsto\ \hookleftarrow
\leftharpoonup\ \leftharpoondown\ \rightleftharpoons\ \longleftarrow\ \Longleftarrow\ \longrightarrow
$$
$$
\Longrightarrow\ \longleftrightarrow\ \Longleftrightarrow\ \longmapsto\ \hookrightarrow\ \rightharpoonup
$$
$$
\rightharpoondown\ \leadsto\ \nearrow\ \searrow\ \swarrow\ \nwarrow
$$
## 符号
$$
\surd\ \barwedge\ \veebar\ \odot\ \oplus\ \otimes\ \oslash\ \circledcirc\ \boxdot\ \bigtriangleup
$$
$$
\bigtriangledown\ \dagger\ \diamond\ \star\ \triangleleft\ \triangleright\ \angle\ \infty\ \prime\ \triangle
$$
## 微积分学
$$
\int u \frac{dv}{dx}\,dx=uv-\int \frac{du}{dx}v\,dx
$$
$$
f(x) = \int_{-\infty}^\infty \hat f(\xi)\,e^{2 \pi i \xi x}
$$
$$
\oint \vec{F} \cdot d\vec{s}=0
$$
## 洛伦茨方程
$$
\begin{aligned} \dot{x} & = \sigma(y-x) \\ \dot{y} & = \rho x - y - xz \\ \dot{z} & = -\beta z + xy \end{aligned}
$$
## 交叉乘积
这在KaTeX中是可行的,但在这种环境中馏分的分离不是很好。
$$
\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ \frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \\ \frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0 \end{vmatrix}
$$
这里有一个解决方案:使用“mfrac”类(在MathJax情况下没有区别)的额外类使分数更小:
$$
\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ \frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \\ \frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0 \end{vmatrix}
$$
## 强调
$$
\hat{x}\ \vec{x}\ \ddot{x}
$$
## 有弹性的括号
$$
\left(\frac{x^2}{y^3}\right)
$$
## 评估范围
$$
\left.\frac{x^3}{3}\right|_0^1
$$
## 诊断标准
$$
f(n) = \begin{cases} \frac{n}{2}, & \text{if } n\text{ is even} \\ 3n+1, & \text{if } n\text{ is odd} \end{cases}
$$
## 麦克斯韦方程组
$$
\begin{aligned} \nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\ \nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\ \nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\ \nabla \cdot \vec{\mathbf{B}} & = 0 \end{aligned}
$$
这些方程式很狭窄。我们可以使用(例如)添加垂直间距 [1em] 在每个换行符(\\)之后。正如你在这里看到的:
$$
\begin{aligned} \nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\[1em] \nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\[0.5em] \nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\[1em] \nabla \cdot \vec{\mathbf{B}} & = 0 \end{aligned}
$$
## 统计学
固定词组:
$$
\frac{n!}{k!(n-k)!} = {^n}C_k
{n \choose k}
$$
## 分数在分数
$$
\frac{\frac{1}{x}+\frac{1}{y}}{y-z}
$$
## n次方根
$$
\sqrt[n]{1+x+x^2+x^3+\ldots}
$$
## 矩阵
$$
\begin{pmatrix} a_{11} & a_{12} & a_{13}\\ a_{21} & a_{22} & a_{23}\\ a_{31} & a_{32} & a_{33} \end{pmatrix}
\begin{bmatrix} 0 & \cdots & 0 \\ \vdots & \ddots & \vdots \\ 0 & \cdots & 0 \end{bmatrix}
$$
## 标点符号
$$
f(x) = \sqrt{1+x} \quad (x \ge -1)
f(x) \sim x^2 \quad (x\to\infty)
$$
现在用标点符号:
$$
f(x) = \sqrt{1+x}, \quad x \ge -1
f(x) \sim x^2, \quad x\to\infty
$$
+++
author = "Hugo Authors"
title = "占位符文本显示"
date = "2019-03-09"
description = "Lorem Ipsum Dolor Si Amet"
tags = [
"markdown",
"text",
]
toc = true
+++
你对我的心有偏见。我向您保证,我们的生活将不会受到影响,我们的生活将会受到影响。你说你现在住在医院里,因为你的眼睛是透明的,你的眼睛是光明的,你的眼睛是光明的!
<!--more-->
1. Exierant elisi ambit vivere dedere
2. Duce pollice
3. Eris modo
4. Spargitque ferrea quos palude
Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis.
1. Comas hunc haec pietate fetum procerum dixit
2. Post torum vates letum Tiresia
3. Flumen querellas
4. Arcanaque montibus omnes
5. Quidem et
# Vagus elidunt
<svg class="canon" xmlns="http://www.w3.org/2000/svg" overflow="visible" viewBox="0 0 496 373" height="373" width="496"><g fill="none"><path stroke="#000" stroke-width=".75" d="M.599 372.348L495.263 1.206M.312.633l494.95 370.853M.312 372.633L247.643.92M248.502.92l246.76 370.566M330.828 123.869V1.134M330.396 1.134L165.104 124.515"></path><path stroke="#ED1C24" stroke-width=".75" d="M275.73 41.616h166.224v249.05H275.73zM54.478 41.616h166.225v249.052H54.478z"></path><path stroke="#000" stroke-width=".75" d="M.479.375h495v372h-495zM247.979.875v372"></path><ellipse cx="498.729" cy="177.625" rx=".75" ry="1.25"></ellipse><ellipse cx="247.229" cy="377.375" rx=".75" ry="1.25"></ellipse></g></svg>
[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon)
## Mane refeci capiebant unda mulcebat
Victa caducifer, malo vulnere contra dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis.
Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae vulnus haerentia iuste et exercebat, sui et.
Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem Propoetides **parte**.
{{< css.inline >}}
<style>
.canon { background: white; width: 100%; height: auto; }
</style>
{{< /css.inline >}}
+++
author = "Hugo Authors"
title = "富文本内容测试"
date = "2019-03-10"
description = "A brief description of Hugo Shortcodes"
tags = [
"shortcodes",
"privacy",
]
toc = true
+++
Hugo上有几个[**内置短代码**](https://gohugo.io/content-management/shortcodes/#use-hugos),用于丰富内容,以及[**隐私配置**](https://gohugo.io/about/hugo-and-gdpr/)还有一组简单的短代码,支持各种社交媒体嵌入的静态和非JS版本。
<!--more-->
---
## YouTube Privacy Enhanced Shortcode
{{< youtube ZJthWmvUzzc >}}
<br>
---
## Twitter Simple Shortcode
{{< twitter_simple 1085870671291310081 >}}
<br>
---
## Vimeo Simple Shortcode
{{< vimeo_simple 48912912 >}}
[StatsCats]
other = "Total <span class='span-stats-tip'>{{ len .Data.Terms }} </span> categories"
[StatsTags]
other = "Total <span class='span-stats-tip'>{{ len .Data.Terms }} </spa> tags"
[StatsBlogs]
other = "Well! Total <span class='span-stats-tip'>{{ .Count }} </span> blogs, let's press on."
[Blog]
other = "Blogs"
[Category]
other = "Categories"
[Archive]
other = "Archive"
[Tag]
other = "Tags"
[ToC]
other = "Table of Content"
[RSS]
other = "RSS"
[SiteInfo]
other = "Site Information"
[Link]
other = "Links"
[TagCloud]
other = "TagCloud"
[Time]
other = "Published at"
[View]
other = "Reading"
[ReadMore]
other = "Read More"
[Word]
other = "Words"
[WordCount]
other = "{{ .WordCount }} words"
[ReadingTime]
other = "{{ .ReadingTime }} minutes"
[Colon]
other = ":"
[Visit]
other = "Visited"
[Search]
other = "Search"
[404PageTitle]
other = "Err404, Page not found!"
[BackHomeTip]
other = "Back blog site's Home"
[SearchPhr]
other = "Enter key words..."
[ScanQQCode]
other = "QQ QrCode"
[ArticleTitle]
other = "Title"
[ArticleAuthor]
other = "Author"
[ArticleLink]
other = "Link"
[ArticleDeclaration]
other = "Declaration"
[ArticleDecContent]
other = "This blog post article is under the <a href='https://creativecommons.org/licenses/by-nc-sa/3.0/' target='_blank' style='text-decoration: underline;'>CC BY-NC-SA 3.0</a> license,Please indicate the source!"
[RewardTips]
other = "If it can help you, you can give tips for blogger that how much you want. ^_^"
[RewardBtnText]
other = "Reward"
[RewardWxPay]
other = "Wechat Pay"
[RewardAliPay]
other = "Ali Pay"
[CommentPh]
other = "Just do what you want leave here, and don't forget give your email to make exchange. ^_^"
[UnComment]
other ="Sorry, Waline plugin doesn't support IE or Edge, Please swithc to Chrome browser."
[Vote]
other = "Vote"
[VoteLink]
other ="You can vote for this project in this <a href="#" target='_blank' style='text-decoration: underline;'>link</a>"
[StatsCats]
other = "目前共计 <span class='span-stats-tip'>{{ len .Data.Terms }}</span> 个分类"
[StatsTags]
other = "目前共计 <span class='span-stats-tip'>{{ len .Data.Terms }}</span> 个社区/机构类型"
[StatsBlogs]
other = "目前共计 <span class='span-stats-tip'>{{ .Count }} </span> 篇内容"
[Blog]
other = "内容"
[Category]
other = "分类"
[Archive]
other = "归档"
[Tag]
other = " "
[ToC]
other = "文章目录"
[RSS]
other = "RSS 订阅"
[SiteInfo]
other = "站点概览"
[Link]
other = "友情链接"
[TagCloud]
other = "标签云"
[Time]
other = "时间"
[View]
other = "阅读"
[ReadMore]
other = "查看项目"
[Word]
other = "字数"
[WordCount]
other = "{{ .WordCount }} 字"
[ReadingTime]
other = "{{ .ReadingTime }}分钟"
[Colon]
other = ":"
[Visit]
other = "阅读次数"
[Search]
other = "搜索"
[404PageTitle]
other = "404错误,页面不存在!"
[BackHomeTip]
other = "返回我的主页"
[SearchPhr]
other = "搜索项目关键字..."
[ScanQQCode]
other = "QQ扫一扫交流"
[ArticleTitle]
other = "标题"
[ArticleAuthor]
other = "作者"
[ArticleLink]
other = "链接"
[ArticleDeclaration]
other = "声明"
[ArticleDecContent]
other = "除特别声明外,以上内容均采用 <a href='https://creativecommons.org/licenses/by-nc-sa/3.0/' target='_blank' style='text-decoration: underline;'>CC BY-NC-SA 3.0</a>许可协议,转载请注明出处!"
[RewardTips]
other = "创作实属不易,如有帮助,那就打赏博主些许茶钱吧 ^_^"
[RewardBtnText]
other = "赏"
[RewardWxPay]
other = "微信打赏"
[RewardAliPay]
other = "支付宝打赏"
[CommentPh]
other = "欢迎留下您的宝贵建议,请填写您的昵称和邮箱便于后续交流. ^_^"
[UnComment]
other = "抱歉,Waline插件不支持IE或Edge,建议使用Chrome浏览器。"
[Vote]
other = "专家打分"
[VoteLink]
other ="点击 <a href='#' target='_blank' style='text-decoration: underline;'>这里</a> 给项目打分"
<!DOCTYPE HTML>
<html lang="{{ .Site.Language.Lang }}" dir="{{ $.Param "contentdir" | default "zh" }}">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8;"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="robots" content="all" />
<meta name="robots" content="index,follow"/>
<meta name="description" content="{{ i18n "404PageTitle" }}"/>
<title>{{ i18n "404PageTitle" }}</title>
<script type="text/javascript" src="//qzonestyle.gtimg.cn/qzone/hybrid/app/404/search_children.js" charset="utf-8" homePageUrl="{{ "/" | relLangURL }}" homePageName="{{ i18n "BackHomeTip" }}"></script>
</head>
<body>
</body>
</html>
\ No newline at end of file
{{ partial "head.html" . }}
<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">
<div class="container one-collumn sidebar-position-left {{ block "main_class" .}}{{end}} ">
<div class="headband"></div>
<header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
<div class="header-inner"> {{ partial "header.html" . }} </div>
</header>
<main id="main" class="main">
<div class="main-inner">
<div class="content-wrap">
<div id="content" class="content">
{{ block "main_content" . }}{{end}}
</div>
</div>
{{ partial "sidebar.html" . }}
</div>
</main>
<footer id="footer" class="footer">
<div class="footer-inner">
{{ partial "footer.html" . }}
</div>
</footer>
<div class="back-to-top">
<i class="fa fa-arrow-up"></i>
<span id="scrollpercent"><span>0</span>%</span>
</div>
</div>
{{ partial "script.html" .}}
</body>
</html>
\ No newline at end of file
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
<search>
{{range where .Site.RegularPages "Kind" "page"}}
<entry>
<title>{{ .Title }}</title>
<url>{{ .Permalink }}</url>
<categories>
{{ range .Params.categories }}<category>{{ . }}</category>{{ end }}
</categories>
<tags>
{{ range .Params.tags }}
<tag>{{ . }}</tag>
{{ end }}
</tags>
<content type="html"> {{ .Content | plainify }}</content>
</entry>
{{ end }}
</search>
\ No newline at end of file
{{ define "main_class"}}page-home{{ end}}
{{ define "main_content" }}
<section id="posts" class="posts-expand">
<article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
<a class="post-title-link" href="{{ .Permalink }}" itemprop="url">
{{ .Title }}
</a>
</h1>
<div class="post-meta">
{{ partial "post/date.html" .}}
{{ partial "post/category.html" .}}
{{ partial "post/wordcount.html" .}}
{{ partial "post/readtime.html" .}}
{{ partial "post/visitors.html" .}}
</div>
</header>
<div class="post-body" itemprop="articleBody">
{{ .Content }}
</div>
<footer class="post-footer">
{{ partial "post/tags.html" .}}
{{ partial "widgets/share.html" .}}
{{ partial "post/prenext.html" .}}
</footer>
</article>
</section>
{{ end }}
\ No newline at end of file
{{ define "main_class"}}{{ end}}
{{ define "main_content" }}
<div id="posts" class="posts-expand">
{{ if eq .Data.Plural "categories" }}
<div class="category-all-page">
<div class="category-all-title">
{{ i18n "StatsCats" . | safeHTML }}
</div>
<div class="category-all">
<ul class="category-list">
{{ range $name, $items := .Site.Taxonomies.categories }}
<li class="category-list-item">
<a class="category-list-link" href="{{ "/categories/" | relLangURL }}{{ $name | urlize | lower }}">{{ $name }}</a>
<span class="category-list-count"><sup>{{ len $items }}</sup></span>
</li>
{{ end }}
</ul>
</div>
</div>
{{ end }}
{{ if eq .Data.Plural "tags" }}
<div class="tag-cloud">
<div class="tag-cloud-title">
{{ i18n "StatsTags" . | safeHTML }}
</div>
<div class="tag-cloud-tags">
{{ range $name, $items := .Site.Taxonomies.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ $name | urlize | lower }}" style="font-size: 24.5px; color: #212121">{{ $name }}</a>
<span class="tag-list-count"><sup>{{ len $items }}</sup></span>
{{ end }}
</div>
</div>
{{ end }}
</div>
{{ end }}
\ No newline at end of file
{{ define "main_class"}}page-home{{ end}}
{{ define "main_content" }}
<section id="posts" class="posts-expand">
<article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<h1 class="post-title" itemprop="name headline" style="font-weight: bold;">
<a class="post-title-link" href="{{ .Permalink }}" itemprop="url">
{{ .Title }}
</a>
</h1>
</header>
<div class="post-body" itemprop="articleBody">
{{ .Content }}
</div>
</article>
</section>
{{ end }}
\ No newline at end of file
{{ define "main_class"}}page-home{{ end}}
{{ define "main_content" }}
{{ partial "post_list.html" . }}
{{ end }}
\ No newline at end of file
<div class="copyright" >
<span class="copyright-year">
&copy; 2010 - {{ now.Year }}
</span>
<span class="with-love"><i class="fa fa-heart"></i></span>
<span class="copyright-author">{{ .Site.Title }}</span>
</div>
<div class="powered-info">
<span class="powered-by">
Powered by - <a class="powered-link" href="//gohugo.io" target="_blank" title="hugo" >Hugo v{{ hugo.Version }}</a>
</span>
<span class="separator-line">/</span>
<span class="theme-info">
Theme by - <a class="powered-link" href="//gitcode.net/mirrors/elkan1788/hugo-theme-next" target="_blank"> NexT
</a>
</span>
</div>
\ No newline at end of file
<!DOCTYPE HTML>
<html lang="{{ .Site.Language.Lang }}" dir="{{ $.Param "contentdir" | default "zh" }}">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />
<title>{{if .IsHome }} {{ .Site.Title}} {{ else }} {{ .Title }} - {{ .Site.Title }} {{ end }}</title>
{{ if .Keywords }}
<meta name="keywords" content="{{ range .Keywords }}{{ . }},{{ end }}">
{{ else }}
<meta name="keywords" content="{{ .Site.Params.Keywords }}">
{{ end }}
{{ with .Site.Params.AuthorName }}
<meta name="author" content="{{ . }}">
{{ end }}
<meta property="og:title" content="{{ if ne .Permalink " / " }}{{ .Title }}{{else}}{{ .Site.Title }}{{end}}"/>
<meta property="og:site_name" content="{{ .Site.Title }}">
<meta property="og:image" content="/img/author.jpg">
<meta name="title" content="{{ if ne .Permalink " / " }}{{ .Title }} - {{ end }}{{ .Site.Title }}" />
{{ with .Description }}
<meta name="description" content="{{ . }}" />
{{ else }}
<meta name="description" content="{{ .Site.Params.Description }}">
{{ end }}
<link rel="shortcut icon" href="/kols/img/icon.png" />
<link rel="apple-touch-icon" href="/kols/img/apple-touch-icon.png" />
<link rel="apple-touch-icon-precomposed" href="/kols/img/apple-touch-icon.png" />
<link href="//cdn.bootcdn.net/ajax/libs/font-awesome/4.6.2/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
{{ if .IsPage }}
<link href="//cdn.bootcdn.net/ajax/libs/imageviewer/0.1.0/viewer.min.css" rel="stylesheet"/>
{{ end }}
<link href="/kols/css/main.css" rel="stylesheet" type="text/css" />
<link href="/kols/css/syntax.css" rel="stylesheet" type="text/css" />
{{ if isset .Site.Params.Statis "baidusiteid" }}
<!-- Baidu tongji -->
<script type="text/javascript">
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?{{ .Site.Params.Statis.BaiduSiteId }}";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<!-- Baidu tongji -->
{{ end }}
{{ if isset .Site.Params.Statis "googlesiteid" }}
<!-- Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ .Site.Params.Statis.GoogleSiteId }}"></script>
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ .Site.Params.Statis.GoogleSiteId }} ');
</script>
<!-- Google Analytics -->
{{ end }}
</head>
\ No newline at end of file
<div class="site-brand-container">
<div class="site-nav-toggle">
<div class="toggle" role="button" style="opacity: 1; top: 0px;">
<span class="toggle-line"></span>
<span class="toggle-line"></span>
<span class="toggle-line"></span>
</div>
</div>
<div class="site-meta {{ if .Site.Params.Imglogo }} custom-logo {{ end }}">
<!-- <div class="multi-lang-switch">
<i class="fa fa-fw fa-language" style="margin-right: 5px;"></i>
{{ $siteLanguages := .Site.Languages }}
{{ $pageLang := .Page.Lang }}
{{ $langLen := len .Page.AllTranslations }}
{{ range .Page.AllTranslations }}
{{ $translation := .}}
{{ range $index, $lang := $siteLanguages }}
{{ if eq $translation.Lang $lang.Lang }}
{{ if eq $pageLang $lang.Lang}}
<a class="lang-link" id="{{ $translation.Language }}" href="#">{{ $lang.LanguageName }}</a>
{{ else }}
<a class="lang-link" id="{{ $translation.Language }}" href="{{ $translation.Permalink }}">{{ $lang.LanguageName }}</a>
{{ end }}
{{ if and (ne (add $index 1) $langLen) (ne $index $langLen)}}
<span class="lang-line"> / </span>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
</div> -->
<div class="custom-logo-site-title">
<!-- <a href="{{ "/" | relLangURL }}" class="brand" rel="start"> -->
<span class="logo-line-before"><i></i></span>
<span class="site-title">{{ .Site.Title }}</span>
<span class="logo-line-after"><i></i></span>
</a>
</div>
<p class="site-subtitle">{{ with .Site.Params.Subtitle }}{{ . }}{{ end }}</p>
</div>
<div class="site-nav-right">
<div class="toggle popup-trigger" style="opacity: 1; top: 0px;">
<i class="fa fa-search fa-fw fa-lg"></i>
</div>
</div>
</div>
<nav class="site-nav">
<ul id="menu" class="menu">
{{ $curPage := . }}
{{ range .Site.Menus.main }}
{{ $active := or ($curPage.IsMenuCurrent "main" .) ($curPage.HasMenuCurrent "main" .) }}
{{ $active = or $active (eq .Name $curPage.Title) }}
<li class="menu-item {{ if $active }}menu-item-active{{ end }}">
<a href="{{ .URL | relLangURL }}" rel="section" {{ if eq .URL "/404.html" }}target="_blank"{{ end }}>
<i class="menu-item-icon fa fa-fw fa-{{ .Pre }}"></i> <br />{{ .Name }}
</a>
</li>
{{ end }}
<!-- <li class="menu-item menu-item-search">
<a href="javascript:;" class="popup-trigger"> <i class="menu-item-icon fa fa-search fa-fw"></i> <br /> {{ i18n "Search" }}</a>
</li> -->
</ul>
<div class="site-search">
{{ partial "widgets/search.html" .}}
</div>
</nav>
{{ $pag := .Paginator }}
{{ $tps := $pag.TotalPages }}
{{ $begin := sub $pag.PageNumber 4}}
{{ $.Scratch.Set "begin" $begin }}
{{ $end := add $pag.PageNumber 4}}
{{ $.Scratch.Set "end" $end }}
{{ if lt $begin 0}}
{{ $end := sub $end $begin }}
{{ $.Scratch.Set "end" $end }}
{{ end}}
{{ $end := $.Scratch.Get "end"}}
{{ $over := sub $tps $end }}
{{ if lt $over 0}}
{{ $begin := add $begin $over}}
{{ $.Scratch.Set "begin" $begin }}
{{ end }}
{{ $begin := $.Scratch.Get "begin"}}
<nav class="pagination">
{{ if $pag.HasPrev }}<a class="extend prev" rel="prev" href="{{ $pag.Prev.URL }}"><i class="fa fa-angle-left"></i></a>{{ end }}
{{ range $p := $pag.Pagers }}
{{ if and (ge $p.PageNumber $begin) (le $p.PageNumber $end) }}
{{ if eq $p $pag }}
<span class="page-number current">{{ $p.PageNumber }}</span>
{{ else }}
<a class="page-number" href="{{ $p.URL }}">{{ $p.PageNumber }}</a>
{{ end }}
{{ end }}
{{ end }}
{{ if $pag.HasNext }}<a class="extend next" rel="next" href="{{ $pag.Next.URL }}"><i class="fa fa-angle-right"></i></a>{{ end }}
</nav>
{{ if isset .Params "categories" }}
{{ if not (eq (len .Params.categories) 0) }}
<span class="post-category" >
&nbsp; | &nbsp;
<i class="fa fa-folder-o fa-fw"></i>
<span class="post-meta-item-text">{{ i18n "Category" }}{{ i18n "Colon"}}</span>
{{ range .Params.categories }}
<span itemprop="about" itemscope itemtype="https://schema.org/Thing">
<a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}" itemprop="url" rel="index" style="text-decoration: underline">
<span itemprop="name">{{ . }}</span>
</a>
&nbsp;
</span>
{{ end }}
</span>
{{ end }}
{{ end }}
\ No newline at end of file
<span class="post-time">
<i class="fa fa-calendar-o fa-fw"></i>
<span class="post-meta-item-text">{{ i18n "Time" }}{{ i18n "Colon"}}</span>
<time itemprop="dateCreated" datetime="2016-03-22T13:04:35+08:00" content="{{ .Date.Format .Site.Params.DateFormat }}">
{{ .Date.Format .Site.Params.DateFormat }}
</time>
</span>
\ No newline at end of file
<div class="post-nav">
<div class="post-nav-next post-nav-item">
{{ with .NextInSection }}
<a href="{{ .Permalink}}" rel="next" title="{{.Title}}">
<i class="fa fa-chevron-left"></i> {{.Title}}
</a>
{{end}}
</div>
<div class="post-nav-prev post-nav-item">
{{ with .PrevInSection }}
<a href="{{ .Permalink}}" rel="prev" title="{{.Title}}">
{{.Title}}
<i class="fa fa-chevron-right"></i>
</a>
{{end}}
</div>
</div>
\ No newline at end of file
<span>
|
<i class="fa fa-eye fa-fw"></i>
<span class="post-meta-item-text">{{ i18n "View" }}{{ i18n "Colon"}}</span>
<span class="leancloud-view-count">{{ i18n "ReadingTime" .}}</span>
</span>
\ No newline at end of file
{{ if isset .Params "tags" }}
{{ if not (eq (len .Params.tags) 0) }}
<div class="post-tags">
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize | lower }}" rel="tag" title="{{ . }}">#{{ . }}#</a>
{{ end }}
</div>
{{ end }}
{{ end }}
<span id="{{ .Page.RelPermalink }}" class="leancloud_visitors" data-flag-title="{{ .Page.Title }}">
|
<i class="fa fa-binoculars fa-fw"></i>
<span class="post-meta-item-text">{{ i18n "Visit" }}{{ i18n "Colon"}}</span>
<span class="leancloud-visitors-count"></span>
</span>
\ No newline at end of file
<span>
|
<i class="fa fa-file-word-o fa-fw"></i>
<span class="post-meta-item-text">{{ i18n "Word" }}{{ i18n "Colon"}}</span>
<span class="leancloud-world-count">{{ i18n "WordCount" .}}</span>
</span>
\ No newline at end of file
{{ $paginator := .Paginate (where .Site.RegularPages "Section" "post") }}
<section id="posts" class="posts-expand">
{{ range $paginator.Pages }}
<article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
<a class="post-title-link" href="{{ .Permalink }}" itemprop="url">
{{ .Title }}
</a>
</h1>
<div class="post-meta">
{{ partial "post/date.html" .}}
{{ partial "post/category.html" .}}
{{ partial "post/wordcount.html" .}}
{{ partial "post/readtime.html" .}}
<!--{{ partial "post/visitors.html" .}}-->
</div>
</header>
<div class="post-body" itemprop="articleBody">
{{ .Summary }}
</div>
{{ if .Truncated }}
<div class="post-more-link text-center">
<a class="btn" href="{{ .Permalink }}" rel="contents">
{{ i18n "ReadMore" }} &raquo;
</a>
</div>
{{ end }}
<footer class="post-footer"><div class="post-eof"></div></footer>
</article>
{{end}}
</section>
{{ partial "pagination.html" . }}
{{ range .Pages }}
<article class="post post-type-normal }}" itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<h1 class="post-title">
<a class="post-title-link" href="{{ lower .Permalink }}" itemprop="url">
<span itemprop="name">{{ .Title }}</span>
</a>
</h1>
<div class="post-meta">
<time class="post-time" itemprop="dateCreated"
datetime="{{ .Date.Format .Site.Params.DateFormat }}"
content="{{ .Date.Format .Site.Params.MonthFormat }}" >
{{ .Date.Format .Site.Params.MonthFormat }}
</time>
</div>
</header>
</article>
{{end}}
\ No newline at end of file
<script type="text/javascript" src="//cdn.bootcdn.net/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script type="text/javascript" src="/js/search.js"></script>
<script type="text/javascript" src="/js/affix.js"></script>
<script type="text/javascript" src="/js/scrollspy.js"></script>
<script type="text/javascript">
function detectIE() {
var ua = window.navigator.userAgent;
var msie = ua.indexOf('MSIE ');
var trident = ua.indexOf('Trident/');
var edge = ua.indexOf('Edge/');
if (msie>0 || trident>0 || edge>0) {
return -1;
}
return 1;
}
function getCntViewHeight() {
var docHeight = $('#content').height(),
winHeight = $(window).height(),
cntViewHeight = (docHeight > winHeight) ? (docHeight - winHeight) : ($(document).height() - winHeight);
return cntViewHeight;
}
function getScrollbarWidth() {
var $div = $('<div />').addClass('scrollbar-measure').prependTo('body');
var div = $div[0];
var scrollbarWidth = div.offsetWidth - div.clientWidth;
$div.remove();
return scrollbarWidth;
}
function registerBackTop() {
var THRESHOLD = 50;
var $top = $('.back-to-top');
$(window).on('scroll', function () {
$top.toggleClass('back-to-top-on', window.pageYOffset > THRESHOLD);
var scrollTop = $(window).scrollTop();
var cntViewHeight = getCntViewHeight();
var scrollPercent = (scrollTop) / (cntViewHeight);
var scrollPercentRounded = Math.round(scrollPercent*100);
var scrollPercentMaxed = (scrollPercentRounded > 100) ? 100 : scrollPercentRounded;
$('#scrollpercent>span').html(scrollPercentMaxed);
});
$top.on('click', function () {
$("html,body").animate({
scrollTop: 0,
screenLeft: 0,
}, 800);
});
}
function initScrollSpy () {
var tocSelector = '.post-toc';
var $tocElement = $(tocSelector);
var activeCurrentSelector = '.active-current';
$tocElement
.on('activate.bs.scrollspy', function () {
var $currentActiveElement = $(tocSelector + ' .active').last();
removeCurrentActiveClass();
$currentActiveElement.addClass('active-current');
})
.on('clear.bs.scrollspy', removeCurrentActiveClass);
$('body').scrollspy({ target: tocSelector });
function removeCurrentActiveClass () {
$(tocSelector + ' ' + activeCurrentSelector)
.removeClass(activeCurrentSelector.substring(1));
}
}
function initAffix () {
var headerHeight = $('.header-inner').height();
var footerOffset = parseInt($('.main').css('padding-bottom'), 10);
var sidebarTop = headerHeight + 10;
$('.sidebar-inner').affix({
offset: {
top: sidebarTop,
bottom: footerOffset
}
});
$(document)
.on('affixed.bs.affix', function () {
updateTOCHeight(document.body.clientHeight - 100);
});
}
function initTOCDimension () {
var updateTOCHeightTimer;
$(window).on('resize', function () {
updateTOCHeightTimer && clearTimeout(updateTOCHeightTimer);
updateTOCHeightTimer = setTimeout(function () {
var tocWrapperHeight = document.body.clientHeight - 100;
updateTOCHeight(tocWrapperHeight);
}, 0);
});
// Initialize TOC Height.
updateTOCHeight(document.body.clientHeight - 100);
// Initialize TOC Width.
var scrollbarWidth = getScrollbarWidth();
$('.post-toc').css('width', 'calc(100% + ' + scrollbarWidth + 'px)');
}
function updateTOCHeight (height) {
height = height || 'auto';
$('.post-toc').css('max-height', height);
}
$(function() {
var sidebarTop = $('.header-inner').height() + 10;
$('#sidebar').css({ 'margin-top': sidebarTop }).show();
// Seems no good for fixed the scroll bar issues
var sidebarMt = parseInt($('#sidebar').css('margin-top'));
var sidebarInHeight = parseInt($('.sidebar-inner').css('height'));
var sideHeight = sidebarMt + sidebarInHeight;
var contentHeight = $('.content-wrap').height();
if (contentHeight < sideHeight) {
$('.content-wrap').css('min-height', sideHeight);
}
$('.site-nav-toggle').on('click', function () {
var $siteNav = $('.site-nav');
var $toggleLine = $('.toggle');
var ON_CLASS_NAME = 'site-nav-on';
var CLOSE_CLASS_NAME = 'toggle-close';
var isSiteNavOn = $siteNav.hasClass(ON_CLASS_NAME);
var animateAction = isSiteNavOn ? 'slideUp' : 'slideDown';
var animateCallback = isSiteNavOn ? 'removeClass' : 'addClass';
$siteNav.stop()[animateAction]('normal', function () {
$siteNav[animateCallback](ON_CLASS_NAME);
$toggleLine[animateCallback](CLOSE_CLASS_NAME);
});
});
registerBackTop();
initScrollSpy();
initAffix();
initTOCDimension();
$('.sidebar-nav-toc').click(function(){
$(this).addClass('sidebar-nav-active');
$(this).next().removeClass('sidebar-nav-active');
$('.'+$(this).next().attr('data-target')).toggle(500);
$('.'+$(this).attr('data-target')).toggle(500);
});
$('.sidebar-nav-overview').click(function(){
$(this).addClass('sidebar-nav-active');
$(this).prev().removeClass('sidebar-nav-active');
$('.'+$(this).prev().attr('data-target')).toggle(500);
$('.'+$(this).attr('data-target')).toggle(500);
});
});
</script>
{{ if .IsPage }}
<!-- Is Page -->
<!-- Image Viewer -->
<script src="//cdn.bootcdn.net/ajax/libs/imageviewer/0.1.0/viewer.min.js"></script>
<script type="text/javascript">
$(function() {
$('.post-body').viewer();
});
</script>
<!-- Image Viewer -->
{{ if and (.Site.Params.Comment.Enable) (eq .Site.Params.Comment.Module "Valine") }}
<!-- Valine -->
<script src='//unpkg.com/valine/dist/Valine.min.js'></script>
<script type="text/javascript">
new Valine({
el: '#vcomments',
appId: '{{ .Site.Params.LeanCloud.AppId }}',
appKey: '{{ .Site.Params.LeanCloud.AppKey }}',
visitor: true,
placeholder: ' {{ i18n "CommentPh" }} ',
requiredFields: ['nick', 'mail'],
lang: "{{ .Page.Lang }}"
});
</script>
<!-- Addthis Share -->
{{end }}
{{ if and (.Site.Params.Comment.Enable) (eq .Site.Params.Comment.Module "Waline") }}
<!-- Waline -->
<script type="text/javascript">
$(function(){
if (detectIE()>0) {
$.getScript(document.location.protocol+'//cdn.jsdelivr.net/npm/@waline/client/dist/Waline.min.js', function(){
new Waline({
el: '#wcomments',
visitor: true,
avatar:'wavatar',
avatarCDN:'https://sdn.geekzu.org/avatar/',
avatarForce:!1,
wordLimit: '200',
placeholder: ' {{ i18n "CommentPh" }} ',
requiredFields: ['nick', 'mail'],
serverURL: "{{ .Site.Params.Comment.WalineSerURL }}",
lang: "{{ .Page.Lang }}"
});
});
} else {
$('#wcomments').html('{{ i18n "UnComment" }}');
}
});
</script>
<!-- Waline -->
{{end }}
{{ if and (.Site.Params.Comment.Enable) (eq .Site.Params.Comment.Module "LiveRe") }}
<!-- LiveRe -->
<script src="//cdn.jsdelivr.net/npm/leancloud-storage@4.6.1/dist/av-min.js"></script>
<script type="text/javascript">
(function(d, s) {
var j, e = d.getElementsByTagName(s)[0];
if (typeof LivereTower === 'function') { return; }
j = d.createElement(s);
j.src = '//cdn-city.livere.com/js/embed.dist.js';
j.async = true;
e.parentNode.insertBefore(j, e);
})(document, 'script');
function showTime(Counter) {
var query = new AV.Query(Counter);
var entries = [];
var $visitors = $(".leancloud_visitors");
$visitors.each(function () {
entries.push( $(this).attr("id").trim() );
});
query.containedIn('url', entries);
query.find()
.then((results) => {
var COUNT_CONTAINER_REF = '.leancloud-visitors-count';
if (results.length == 0) {
$visitors.find(COUNT_CONTAINER_REF).text(0);
return;
}
for (var i = 0; i < results.length; i++) {
var item = results[i];
var url = item.get('url');
var time = item.get('time');
var element = document.getElementById(url);
$(element).find(COUNT_CONTAINER_REF).text(time);
}
for(var i = 0; i < entries.length; i++) {
var url = entries[i];
var element = document.getElementById(url);
var countSpan = $(element).find(COUNT_CONTAINER_REF);
if( countSpan.text() == '') {
countSpan.text(0);
}
}
}, (error) => {
console.log('Query vistors failed: '+error);
});
}
function addCount(Counter) {
var $visitors = $(".leancloud_visitors");
var url = $visitors.attr('id').trim();
var title = $visitors.attr('data-flag-title').trim();
var query = new AV.Query('Counter');
query.equalTo("url", url);
query.find().then((results) => {
if (results.length > 0) {
var counter = results[0];
counter.increment('time', 1);
counter.save(null, {
query: new AV.Query('Counter').equalTo('url', url),
fetchWhenSave: true
}).then((counter) => {
var $element = $(document.getElementById(url));
$element.find('.leancloud-visitors-count').text(counter.get('time'));
}, (error) => {
console.log('Update vistor failed: '+error);
});
} else {
var acl = new AV.ACL();
acl.setPublicReadAccess(true);
acl.setPublicWriteAccess(true);
var newCounter = new Counter();
newCounter.set("title", title);
newCounter.set("url", url);
newCounter.set("time", 1);
newCounter.setACL(acl);
newCounter.save().then((counter) => {
var $element = $(document.getElementById(url));
$element.find('.leancloud-visitors-count').text(newCounter.get('time'));
}, (error) => {
console.log("Save new vistor failed: "+error);
});
}});
}
$(function() {
AV.init({
appId: "{{ .Site.Params.LeanCloud.AppId }}",
appKey: "{{ .Site.Params.LeanCloud.AppKey }}",
serverURL: "{{ .Site.Params.LeanCloud.ServerURL }}"
});
const Counter = AV.Object.extend("Counter");
if ($('.leancloud_visitors').length == 1) {
addCount(Counter);
} else if ($('.post-title-link').length > 1) {
showTime(Counter);
}
});
</script>
<!-- LiveRe -->
{{ end }}
{{if and .Params.math (ne .Params.math false) }}
<!-- MathJax support Math -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_SVG"></script>
<!-- MathJax support Math -->
{{ end }}
{{ if and (.Site.Params.Share.Enable) (isset .Site.Params.Share "addthisid") }}
<!-- Addthis Share -->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ .Site.Params.Share.AddthisId }}"></script>
<!-- Addthis Share -->
{{ end }}
<!-- Is Page -->
{{ end }}
<!-- Baidu Link Push -->
<!-- <script>
(function(){
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https'){
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else{
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();
</script> -->
<!-- Baidu Link Push -->
{{ if and (.Site.Params.OnlineIM.Enable) (isset .Site.Params.OnlineIM "daovoiceid") }}
<!-- DaoVoice OnlineIM -->
<script type="text/javascript">
$(function(){
if (document.body.clientWidth > 900) {
var oHead = document.getElementsByTagName('HEAD').item(0);
var oScript= document.createElement("script");
oScript.type = "text/javascript";
oScript.innerHTML="(function(i,s,o,g,r,a,m){i[\"DaoVoiceObject\"]=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;a.charset=\"utf-8\";m.parentNode.insertBefore(a,m)})(window,document,\"script\",('https:' == document.location.protocol ? 'https:' : 'http:') + \"//widget.daovoice.io/widget/{{ .Site.Params.OnlineIM.DaoVoiceId }}.js\",\"daovoice\")";
oHead.appendChild(oScript);
daovoice('init', {
app_id: "{{ .Site.Params.OnlineIM.DaoVoiceId }}"
});
daovoice('update');
}
});
</script>
<!-- DaoVoice OnlineIM -->
{{ end }}
\ No newline at end of file
<div class="sidebar-toggle">
<div class="sidebar-toggle-line-wrap">
<span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
<span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
<span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
</div>
</div>
<aside id="sidebar" class="sidebar">
<div class="sidebar-inner">
{{ if isset .Params "toc" }}
<ul class="sidebar-nav motion-element">
<li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap" >
{{ i18n "ToC" }}
</li>
<li class="sidebar-nav-overview" data-target="site-overview">
{{ i18n "SiteInfo" }}
</li>
</ul>
{{ end }}
<section class="site-overview sidebar-panel {{ if not (isset .Params "toc") }} sidebar-panel-active {{ end }}">
{{ partial "sidebar/author.html" . }}
{{ partial "sidebar/state.html" . }}
{{ partial "sidebar/social.html" . }}
{{ partial "sidebar/link.html" . }}
{{ partial "sidebar/stats.html" . }}
</section>
{{ partial "sidebar/toc.html" . }}
</div>
</aside>
<div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
<img class="site-author-image" itemprop="image"
src="{{ .Site.Params.AuthorImg }}"
alt="{{ .Site.Params.AuthorName }}" />
<p class="site-author-name" itemprop="name">{{ .Site.Params.AuthorName }}</p>
<p class="site-description motion-element" itemprop="description">
{{ with .Site.Params.Introduce }}
{{ . }}
{{end}}
</p>
</div>
\ No newline at end of file
{{ if .Site.Params.Links }}
<div class="links-of-blogroll motion-element links-of-blogroll-inline">
<div class="links-of-blogroll-title">
<i class="fa fa-fw fa-globe"></i>
{{ i18n "Link" }}
</div>
<ul class="links-of-blogroll-list">
{{ range .Site.Params.Links }}
<li class="links-of-blogroll-item">
<a href="{{ .Permalink }}" title="{{ .Name }}" target="_blank">{{ .Name }}</a>
</li>
{{ end }}
</ul>
</div>
{{ end }}
{{ with .OutputFormats.Get "RSS" }}
<div class="feed-link motion-element">
<a href="{{ .RelPermalink | relLangURL }}" rel="alternate" type="application/rss+xml" target="_blank">
<i class="fa fa-rss"></i>
{{ i18n "RSS" }}
</a>
</div>
{{ end }}
\ No newline at end of file
{{ if .Site.Params.Socials }}
<div class="links-of-author motion-element">
{{ range .Site.Params.Socials }}
<span class="links-of-author-item">
<a href="{{ .URL }}" target="_blank" title="{{ .Name }}">
<i class="fa fa-fw fa-{{ .Icon }}"></i>
{{ .Name }}
</a>
</span>
{{ end }}
</div>
{{ end}}
<nav class="site-state motion-element">
<div class="site-state-item site-state-posts">
<a href="{{ "/post/" | relLangURL }}">
<span class="site-state-item-count">{{ len (where .Site.RegularPages "Section" "post") }}</span>
<span class="site-state-item-name">{{ i18n "Blog" }}</span>
</a>
</div>
<div class="site-state-item site-state-categories">
<a href="{{ "/categories/" | relLangURL }}">
{{if isset .Site.Taxonomies "categories"}}
<span class="site-state-item-count">{{len .Site.Taxonomies.categories}}</span>
{{else}}
<span class="site-state-item-count">0</span>
{{end}}
<span class="site-state-item-name">{{ i18n "Category" }}</span>
</a>
</div>
<!-- <div class="site-state-item site-state-tags">
<a href="{{ "/tags/" | relLangURL }}">
{{if isset .Site.Taxonomies "tags"}}
<span class="site-state-item-count">{{len .Site.Taxonomies.tags}}</span>
{{else}}
<span class="site-state-item-count">0</span>
{{end}}
<span class="site-state-item-name">{{ i18n "Tag" }}</span>
</a>
</div> -->
</nav>
\ No newline at end of file
{{ if (isset .Site.Params.Others "revolvermapid") }}
<div class="links-of-blogroll motion-element inline">
<script type="text/javascript" src="//rf.revolvermaps.com/0/0/6.js?i={{ .Site.Params.Others.RevolverMapId }}&amp;m=7&amp;c=e63100&amp;cr1=ffffff&amp;f=arial&amp;l=0&amp;bv=90&amp;lx=-420&amp;ly=420&amp;hi=20&amp;he=7&amp;hc=a8ddff&amp;rs=80" async="async"></script>
</div>
{{ end }}
\ No newline at end of file
{{ if .Site.Params.TagsCloud.Enable }}
<div class="tagcloud-of-blogroll motion-element tagcloud-of-blogroll-inline">
<div class="tagcloud-of-blogroll-title">
<i class="fa fa-fw fa-tags"></i>
{{ i18n "TagCloud" }}
</div>
<ul class="tagcloud-of-blogroll-list">
{{ range (first ($.Site.Params.TagsCloud.Limit) $.Site.Taxonomies.tags.ByCount) }}
<li class="tagcloud-of-blogroll-item">
<a href="{{ "/tags/" | relLangURL }}{{ .Name | urlize }}">{{ .Name | humanize }}</a>
</li>
{{ end }}
</ul>
</div>
{{ end }}
{{ if isset .Params "toc"}}
<section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
<div class="post-toc">
<div class="post-toc-content">{{ .TableOfContents }}</div>
</div>
</section>
{{ end }}
\ No newline at end of file
{{ if .Site.Params.Comment.Enable }}
{{ if eq .Site.Params.Comment.Module "Valine" }}
<div id="vcomments"></div>
{{ end }}
{{ if eq .Site.Params.Comment.Module "Waline" }}
<div id="wcomments"></div>
{{ end }}
{{ if eq .Site.Params.Comment.Module "LiveRe" }}
<div id="lv-container" data-id="city" data-uid="{{ .Site.Params.Comment.LiveReId }}">
{{ end }}
{{ end }}
\ No newline at end of file
<div class="post-nav">
<div class="article-copyright">
<!-- <div class="article-copyright-img">
<img src="/img/qq_qrcode.png" width="129px" height="129px"/>
<div style="text-align:center;">{{ i18n "ScanQQCode" }}</div>
</div> -->
<div class="article-copyright-info">
<p>
<span>{{ i18n "Vote" }}:</span>{{ i18n "VoteLink" | safeHTML }}
</p>
<p>
<span>{{ i18n "ArticleDeclaration" }}:</span>{{ .Page.Title }}
</p>
<p>
<span>{{ i18n "ArticleLink" }}:</span>{{ .Page.Permalink }}
</p>
<p>
<span>{{ i18n "ArticleAuthor" }}:</span>{{ .Site.Params.AuthorName }}
</p>
<p>
<span>{{ i18n "ArticleDeclaration" }}: </span>{{ i18n "ArticleDecContent" | safeHTML }}
</p>
</div>
</div>
<div class="clear"></div>
</div>
\ No newline at end of file
<div class="reward-qr-info">
<div>{{ i18n "RewardTips" }}</div>
<button id="rewardButton" disable="enable" onclick="var qr = document.getElementById('QR'); if (qr.style.display === 'none') {qr.style.display='block';} else {qr.style.display='none'}">
<span>{{ i18n "RewardBtnText" }}</span>
</button>
<div id="QR" style="display: none;">
<div id="wechat" style="display: inline-block">
<img id="wechat_qr" src="/img/wechat-pay.png" alt="WeChat Pay"/>
<p>{{ i18n "RewardWxPay" }}</p>
</div>
<div id="alipay" style="display: inline-block">
<img id="alipay_qr" src="/img/ali-pay.png" alt="Alipay"/>
<p>{{ i18n "RewardAliPay" }}</p>
</div>
</div>
</div>
\ No newline at end of file
<div class="popup search-popup local-search-popup">
<div class="local-search-header clearfix">
<span class="search-icon"><i class="fa fa-search"></i> </span>
<span class="popup-btn-close"><i class="fa fa-times-circle"></i></span>
<div class="local-search-input-wrapper">
<input autocomplete="off" placeholder="{{ i18n "SearchPhr" }}" spellcheck="false" type="text" id="local-search-input" autocapitalize="none" autocorrect="off">
</div>
</div>
<div id="local-search-result"></div>
</div>
{{ if .Site.Params.Share.Enable }}
{{ if isset .Site.Params.Share "addthisid" }}
<div class="addthis_inline_share_toolbox"></div>
{{ end }}
{{ end }}
\ No newline at end of file
{{ if isset .Site.Params.Statis "cnnzsiteid" }}
<span class="cnzz_icon" id="cnzz_stat_icon_{{ .Site.Params.Statis.CNNZSiteId }}">
<a href="//www.cnzz.com/stat/website.php?web_id={{ .Site.Params.Statis.CNNZSiteId }}" target="_blank" title="站长统计">
<img border="0" hspace="0" vspace="0" src="//icon.cnzz.com/img/pic1.gif">
</a>
</span>
<script type="text/javascript">
(function(){
var cnzz_s_tag = document.createElement('script');
cnzz_s_tag.type = 'text/javascript';
cnzz_s_tag.async = true;
cnzz_s_tag.charset = 'utf-8';
cnzz_s_tag.src = 'https://s4.cnzz.com/z_stat.php?id={{ .Site.Params.Statis.CNNZSiteId }}&show=pic1';
var root_s = document.getElementsByTagName('script')[0];
root_s.parentNode.insertBefore(cnzz_s_tag, root_s);
})();
</script>
{{ end }}
{{ if .Site.Params.Statis.BusuanziCounter }}
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<span class="site-uv">
<i class="fa fa-user"></i>
<span class="busuanzi-value" id="busuanzi_value_site_uv"></span>
</span>
<span class="separator-line">/</span>
<span class="site-pv">
<i class="fa fa-eye"></i>
<span class="busuanzi-value" id="busuanzi_value_site_pv"></span>
</span>
{{ end }}
\ No newline at end of file
User-agent: *
Disallow:
\ No newline at end of file
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
<search>
{{range where .Site.RegularPages "Kind" "page"}}
<entry>
<title>{{ .Title }}</title>
<url>{{ .Permalink }}</url>
<categories>
{{ range .Params.categories }}<category>{{ . }}</category>{{ end }}
</categories>
<tags>
{{ range .Params.tags }}
<tag>{{ . }}</tag>
{{ end }}
</tags>
<content type="html"> {{ .Content | plainify }}</content>
</entry>
{{ end }}
</search>
\ No newline at end of file
{{ define "main_class"}}{{ end}}
{{ define "main_content" }}
<section id="posts" class="posts-collapse">
<span class="archive-move-on"></span>
<span class="archive-page-counter">
{{ i18n "StatsBlogs" (len (where .Site.RegularPages "Section" "post")) | safeHTML }}
</span>
{{ range (.Paginate (.Data.Pages.GroupByDate "2006") 15 ).PageGroups }}
<div class="collection-title">
<h2 class="archive-year motion-element" id="archive-year-{{ .Key }}">{{ .Key }}</h2>
</div>
{{ partial "post_simple_list.html" . }}
{{ end }}
</section>
{{ partial "pagination.html" . }}
{{ end }}
\ No newline at end of file
<div class="note danger">
{{ .Inner | markdownify }}
</div>
\ No newline at end of file
<blockquote class="blockquote-center">
{{ .Inner | markdownify }}
</blockquote>
\ No newline at end of file
{{ define "main_class"}}{{ end}}
{{ define "main_content" }}
<section id="posts" class="posts-collapse">
<div class="collection-title">
<h2 >{{ .Title }}
<small>{{ i18n "Category" }}</small>
</h2>
</div>
{{ range (.Paginate (.Data.Pages.GroupByDate "2006") 15 ).PageGroups }}
<div class="collection-title">
<h2 class="archive-year motion-element" id="archive-year-{{ .Key }}">{{ .Key }}</h2>
</div>
{{ partial "post_simple_list.html" . }}
{{ end }}
</section>
{{ partial "pagination.html" . }}
{{ end }}
\ No newline at end of file
{{ define "main_class"}}{{ end}}
{{ define "main_content" }}
<section id="posts" class="posts-collapse">
<div class="collection-title">
<h2 >{{ .Title }}
<small>{{ i18n "Tag" }}</small>
</h2>
</div>
{{ range (.Paginate (.Data.Pages.GroupByDate "2006") 15 ).PageGroups }}
<div class="collection-title">
<h2 class="archive-year motion-element" id="archive-year-{{ .Key }}">{{ .Key }}</h2>
</div>
{{ partial "post_simple_list.html" . }}
{{ end }}
</section>
{{ partial "pagination.html" . }}
{{ end }}
\ No newline at end of file
此差异已折叠。
/* Background */ .chroma { color: #f8f8f2; background-color: #272822 }
/* Error */ .chroma .err { color: #960050; background-color: #1e0010 }
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #ffffcc }
/* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em; }
/* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em; }
/* Keyword */ .chroma .k { color: #66d9ef }
/* KeywordConstant */ .chroma .kc { color: #66d9ef }
/* KeywordDeclaration */ .chroma .kd { color: #66d9ef }
/* KeywordNamespace */ .chroma .kn { color: #f92672 }
/* KeywordPseudo */ .chroma .kp { color: #66d9ef }
/* KeywordReserved */ .chroma .kr { color: #66d9ef }
/* KeywordType */ .chroma .kt { color: #66d9ef }
/* NameAttribute */ .chroma .na { color: #a6e22e }
/* NameClass */ .chroma .nc { color: #a6e22e }
/* NameConstant */ .chroma .no { color: #66d9ef }
/* NameDecorator */ .chroma .nd { color: #a6e22e }
/* NameException */ .chroma .ne { color: #a6e22e }
/* NameFunction */ .chroma .nf { color: #a6e22e }
/* NameOther */ .chroma .nx { color: #a6e22e }
/* NameTag */ .chroma .nt { color: #f92672 }
/* Literal */ .chroma .l { color: #ae81ff }
/* LiteralDate */ .chroma .ld { color: #e6db74 }
/* LiteralString */ .chroma .s { color: #e6db74 }
/* LiteralStringAffix */ .chroma .sa { color: #e6db74 }
/* LiteralStringBacktick */ .chroma .sb { color: #e6db74 }
/* LiteralStringChar */ .chroma .sc { color: #e6db74 }
/* LiteralStringDelimiter */ .chroma .dl { color: #e6db74 }
/* LiteralStringDoc */ .chroma .sd { color: #e6db74 }
/* LiteralStringDouble */ .chroma .s2 { color: #e6db74 }
/* LiteralStringEscape */ .chroma .se { color: #ae81ff }
/* LiteralStringHeredoc */ .chroma .sh { color: #e6db74 }
/* LiteralStringInterpol */ .chroma .si { color: #e6db74 }
/* LiteralStringOther */ .chroma .sx { color: #e6db74 }
/* LiteralStringRegex */ .chroma .sr { color: #e6db74 }
/* LiteralStringSingle */ .chroma .s1 { color: #e6db74 }
/* LiteralStringSymbol */ .chroma .ss { color: #e6db74 }
/* LiteralNumber */ .chroma .m { color: #ae81ff }
/* LiteralNumberBin */ .chroma .mb { color: #ae81ff }
/* LiteralNumberFloat */ .chroma .mf { color: #ae81ff }
/* LiteralNumberHex */ .chroma .mh { color: #ae81ff }
/* LiteralNumberInteger */ .chroma .mi { color: #ae81ff }
/* LiteralNumberIntegerLong */ .chroma .il { color: #ae81ff }
/* LiteralNumberOct */ .chroma .mo { color: #ae81ff }
/* Operator */ .chroma .o { color: #f92672 }
/* OperatorWord */ .chroma .ow { color: #f92672 }
/* Comment */ .chroma .c { color: #75715e }
/* CommentHashbang */ .chroma .ch { color: #75715e }
/* CommentMultiline */ .chroma .cm { color: #75715e }
/* CommentSingle */ .chroma .c1 { color: #75715e }
/* CommentSpecial */ .chroma .cs { color: #75715e }
/* CommentPreproc */ .chroma .cp { color: #75715e }
/* CommentPreprocFile */ .chroma .cpf { color: #75715e }
/* GenericDeleted */ .chroma .gd { color: #f92672 }
/* GenericEmph */ .chroma .ge { font-style: italic }
/* GenericInserted */ .chroma .gi { color: #a6e22e }
/* GenericStrong */ .chroma .gs { font-weight: bold }
/* GenericSubheading */ .chroma .gu { color: #75715e }
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册