Compare commits
55 commits
Author | SHA1 | Date | |
---|---|---|---|
acba79eebc | |||
a1aec229c5 | |||
36c140b28c | |||
d647841898 | |||
9aebccb590 | |||
5aec7ac354 | |||
ad98c7238d | |||
dbf5a656c2 | |||
e4e2844c3e | |||
97c892077a | |||
6ac660eee2 | |||
99ca8932e1 | |||
dca44e659f | |||
37de87ec41 | |||
7a9c80595f | |||
2edfe53c29 | |||
5fd2d18048 | |||
0547c3d73d | |||
10441a59a8 | |||
fcfd69e10e | |||
7dec5ad2cd | |||
23149c6547 | |||
ad3d615738 | |||
b591e1e2c0 | |||
c40f6af959 | |||
2824974ffa | |||
d11dd64eef | |||
d2c54452d8 | |||
7bf8488165 | |||
4a4f832aec | |||
9a0dd8b179 | |||
1fdfa26364 | |||
7c400e3412 | |||
0e48c7d586 | |||
985756dd02 | |||
a71e469a23 | |||
0ce04d50c7 | |||
e2ca0c5332 | |||
836128c866 | |||
23e6e10f43 | |||
e526a8d6ca | |||
5b7390b5c2 | |||
c078c22ea3 | |||
4c7fe1a56b | |||
715a82f5ac | |||
b343bac3f9 | |||
babe8865cb | |||
6526292b08 | |||
473eefc015 | |||
b46d6da8ba | |||
dff69c5bd3 | |||
3b58a1a279 | |||
4e73d5d1eb | |||
f85c96600b | |||
24a3c428ba |
71
.github/workflows/hugo.yml
vendored
Normal file
71
.github/workflows/hugo.yml
vendored
Normal file
|
@ -0,0 +1,71 @@
|
|||
# Sample workflow for building and deploying a Hugo site to GitHub Pages
|
||||
name: Deploy Hugo site to Pages
|
||||
|
||||
on:
|
||||
# Runs on pushes targeting the default branch
|
||||
push:
|
||||
branches: ["main"]
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
# Allow one concurrent deployment
|
||||
concurrency:
|
||||
group: "pages"
|
||||
cancel-in-progress: true
|
||||
|
||||
# Default to bash
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
||||
jobs:
|
||||
# Build job
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
HUGO_VERSION: 0.105.0
|
||||
steps:
|
||||
- name: Install Hugo CLI
|
||||
run: |
|
||||
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
|
||||
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
- name: Setup Pages
|
||||
id: pages
|
||||
uses: actions/configure-pages@v2
|
||||
- name: Build with Hugo
|
||||
env:
|
||||
# For maximum backward compatibility with Hugo modules
|
||||
HUGO_ENVIRONMENT: production
|
||||
HUGO_ENV: production
|
||||
run: |
|
||||
hugo \
|
||||
--source ./exampleSite \
|
||||
--minify \
|
||||
--baseURL "${{ steps.pages.outputs.base_url }}/"
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v1
|
||||
with:
|
||||
path: ./exampleSite/public
|
||||
|
||||
# Deployment job
|
||||
deploy:
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v1
|
21
LICENSE
Normal file
21
LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2022 leafee98
|
||||
|
||||
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.
|
39
README.md
Normal file
39
README.md
Normal file
|
@ -0,0 +1,39 @@
|
|||
# hugo-theme-flat
|
||||
|
||||
This is a theme I personally use.
|
||||
|
||||
## Features
|
||||
|
||||
- Dark theme support (auto switch by css media query)
|
||||
- Muti-Section supports
|
||||
- Side card to display recent updated sections
|
||||
- Responsive layout
|
||||
- Sub-menu support
|
||||
|
||||
## Multi Section Supports
|
||||
|
||||
If you use multi sections (with the concept from hugo), the RSS at bottom and *Recent* at side are ready for displaying those content. However, you will need to set up your menu at `config.toml` to point the hyperlink to proper destination.
|
||||
|
||||
If you want to re-order those sections, you need a `_index.md` at the directory of the section to set proper weight at front matter, just alike what was done at the exampleSite, see `/exampleSite/content/essays/_index.md`. See the predefined variable `weight` at [docs](https://gohugo.io/content-management/front-matter/#front-matter-variables).
|
||||
|
||||
**Note** that separating taxonomies according to different sections is not implemented yet. So better to only use taxonomies inside a specific section.
|
||||
|
||||
For a better understand, if you have to posts *A* and *B* in section *S1* and *S2*, both of the posts has the same tag *T1*, like the follow.
|
||||
|
||||
```
|
||||
post A: section S1, tag T1, tag T2
|
||||
post B: section S2, tag T2
|
||||
```
|
||||
|
||||
When you open the index page of *T1*, there will be two posts, rathor than post *A* when you are in section *S1* and post *B* when you are in section *S2*.
|
||||
|
||||
```
|
||||
tag T1: post A, post B
|
||||
tag T2: post A
|
||||
```
|
||||
|
||||
## Special Thanks
|
||||
|
||||
The wordpress theme [Allium](https://wordpress.org/themes/allium/), and [here](https://templatelens.com/allium/) is its home page. I like this theme very much when I'm using wordpress, but I don't have it on hugo, so I try my best to write a theme similar with it. There are many designs in this theme refers to it.
|
||||
|
||||
The hugo theme [jane](https://github.com/xianmin/hugo-theme-jane) and [mini](https://github.com/nodejh/hugo-theme-mini/), this is my first time to write a hugo theme, I referred this two themes' project structure and way of handling problems.
|
261
about/index.html
261
about/index.html
|
@ -1,261 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>About | Flat theme</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,minimum-scale=1">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/lib/icofont/icofont.min.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/syntax.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/style.css" />
|
||||
<link rel="shortcut icon" href="/hugo-theme-flat/images/favicon.ico" type="image/x-icon" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="header-wrapper">
|
||||
<div class="header">
|
||||
<a class="site-title" href="https://leafee98.github.io/hugo-theme-flat/">Flat theme</a>
|
||||
|
||||
<ul class="menu">
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/posts/">Posts</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/essays/">Essays</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a>Services↓</a>
|
||||
<ul class="sub-menu">
|
||||
|
||||
<li class="menu-item"><a href="#">Service A</a></li>
|
||||
|
||||
<li class="menu-item"><a href="#">Service B</a></li>
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/about/">About</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="main-wrapper">
|
||||
<div class="main">
|
||||
|
||||
|
||||
<section class="single">
|
||||
<h1 class="title">About</h1>
|
||||
|
||||
<div class="tip">
|
||||
<time datetime="2022-04-27 21:01:43 +0800 CST">2022/04/27</time>
|
||||
<span class="split">·</span>
|
||||
<span> 396 words </span>
|
||||
<span class="split">·</span>
|
||||
<span>
|
||||
1 minutes to read
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="taxonomies">
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="content">
|
||||
<h2 id="about-this-demo-site">About this demo site <a href="#about-this-demo-site" class="anchor">🔗</a></h2><p>This is the <em>about page</em> of this theme. The content of this demo site is come from <a href="https://github.com/nodejh/hugo-theme-mini/">hugo-theme-mini</a>, whose license is <a href="https://github.com/nodejh/hugo-theme-mini/blob/39be4727b355bc8cabd919c6684d79064690a5c6/LICENSE.md">MIT</a></p>
|
||||
<p>This site is built by hugo, which is a fast static site generator writen in go. You can go to its <a href="https://gohugo.io">offical site</a> to get more information.</p>
|
||||
<h2 id="cjk-supported">CJK supported <a href="#cjk-supported" class="anchor">🔗</a></h2><p>This hugo theme support CJK language, but some right to left language may not act as expected. Let’s just test CJK layout!</p>
|
||||
<p>这一句话是用中文写的,一般情况下,中英文排版如果字体设置不当,显示出来的字号会有相当的差距,即便实际上的字号是相同的。这个问题暂时看来无法彻底解决,唯一能做的就是挑选合适的字体,使相同字号下,中英文在展示出来后肉眼感官大小差别不大。</p>
|
||||
<p>Try another typography, which make English and Chinese lay down in a single line. The word <em>Chinese</em> in Chinese is “中文”.</p>
|
||||
<h2 id="what-is-hugo">What is hugo <a href="#what-is-hugo" class="anchor">🔗</a></h2><p>Written in Go, Hugo is an open source static site generator available under the <a href="https://github.com/gohugoio/hugo/blob/master/LICENSE">Apache Licence 2.0.</a> 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.</p>
|
||||
<p>Hugo makes use of a variety of open source projects including:</p>
|
||||
<ul>
|
||||
<li><a href="https://github.com/yuin/goldmark">https://github.com/yuin/goldmark</a></li>
|
||||
<li><a href="https://github.com/alecthomas/chroma">https://github.com/alecthomas/chroma</a></li>
|
||||
<li><a href="https://github.com/muesli/smartcrop">https://github.com/muesli/smartcrop</a></li>
|
||||
<li><a href="https://github.com/spf13/cobra">https://github.com/spf13/cobra</a></li>
|
||||
<li><a href="https://github.com/spf13/viper">https://github.com/spf13/viper</a></li>
|
||||
</ul>
|
||||
<p>Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages.</p>
|
||||
<p>Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases.</p>
|
||||
<p>Websites built with Hugo are extremely fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider.</p>
|
||||
<p>Learn more and contribute on <a href="https://github.com/gohugoio">GitHub</a>.</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="side">
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Posts</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/latex-support/">Latex Support</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/markdown-syntax/">Markdown Syntax Guide</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/placeholder-text/">Placeholder Text</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/math-typesetting/">Math Typesetting</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/emoji-support/">Emoji Support</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Essays</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/essays/what-is-hugo/">What Is Hugo</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-categories">
|
||||
<h2>Categories</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/syntax">syntax(1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/themes">themes(1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="side-tags">
|
||||
<h2>Tags</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/css">css (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/emoji">emoji (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/html">html (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/markdown">markdown (2)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/text">text (1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
<footer class="footer">
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/posts/index.xml">
|
||||
Feed of Posts
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/essays/index.xml">
|
||||
Feed of Essays
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Copyright <a href="https://creativecommons.org/licenses/by/4.0/">CC BY-4.0</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Powered by <a href="https://gohugo.io">Hugo</a></span>
|
||||
|
||||
|
||||
|
||||
<span class="footer-item">Theme <a href="https://cgit.leafee98.com/hugo-theme-flat.git">hugo-theme-flat</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
13
archetypes/default.md
Normal file
13
archetypes/default.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
date: {{ .Date }}
|
||||
tags: []
|
||||
categories: []
|
||||
weight: 50
|
||||
show_comments: true
|
||||
katex: false
|
||||
draft: true
|
||||
description: ""
|
||||
---
|
||||
|
||||
<!--more-->
|
|
@ -1,240 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Flat theme</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,minimum-scale=1">
|
||||
|
||||
<link rel="alternate" type="application/rss+xml" href="https://leafee98.github.io/hugo-theme-flat/categories/index.xml" title="Flat theme" />
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/lib/icofont/icofont.min.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/syntax.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/style.css" />
|
||||
<link rel="shortcut icon" href="/hugo-theme-flat/images/favicon.ico" type="image/x-icon" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="header-wrapper">
|
||||
<div class="header">
|
||||
<a class="site-title" href="https://leafee98.github.io/hugo-theme-flat/">Flat theme</a>
|
||||
|
||||
<ul class="menu">
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/posts/">Posts</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/essays/">Essays</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a>Services↓</a>
|
||||
<ul class="sub-menu">
|
||||
|
||||
<li class="menu-item"><a href="#">Service A</a></li>
|
||||
|
||||
<li class="menu-item"><a href="#">Service B</a></li>
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/about/">About</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="main-wrapper">
|
||||
<div class="main">
|
||||
|
||||
<section id="tags">
|
||||
|
||||
|
||||
|
||||
<span class="tag">
|
||||
<a href="syntax">
|
||||
syntax <span>(1)</span>
|
||||
</a>
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
<span class="tag">
|
||||
<a href="themes">
|
||||
themes <span>(1)</span>
|
||||
</a>
|
||||
</span>
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
<div class="side">
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Posts</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/latex-support/">Latex Support</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/markdown-syntax/">Markdown Syntax Guide</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/placeholder-text/">Placeholder Text</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/math-typesetting/">Math Typesetting</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/emoji-support/">Emoji Support</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Essays</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/essays/what-is-hugo/">What Is Hugo</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-categories">
|
||||
<h2>Categories</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/syntax">syntax(1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/themes">themes(1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="side-tags">
|
||||
<h2>Tags</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/css">css (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/emoji">emoji (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/html">html (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/markdown">markdown (2)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/text">text (1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
<footer class="footer">
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/posts/index.xml">
|
||||
Feed of Posts
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/essays/index.xml">
|
||||
Feed of Essays
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/categories/index.xml">
|
||||
Feed of "Categories"
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Copyright <a href="https://creativecommons.org/licenses/by/4.0/">CC BY-4.0</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Powered by <a href="https://gohugo.io">Hugo</a></span>
|
||||
|
||||
|
||||
|
||||
<span class="footer-item">Theme <a href="https://cgit.leafee98.com/hugo-theme-flat.git">hugo-theme-flat</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1,28 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>Categories on Flat theme</title>
|
||||
<link>https://leafee98.github.io/hugo-theme-flat/categories/</link>
|
||||
<description>Recent content in Categories on Flat theme</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<lastBuildDate>Mon, 11 Mar 2019 00:00:00 +0000</lastBuildDate><atom:link href="https://leafee98.github.io/hugo-theme-flat/categories/index.xml" rel="self" type="application/rss+xml" />
|
||||
<item>
|
||||
<title>syntax</title>
|
||||
<link>https://leafee98.github.io/hugo-theme-flat/categories/syntax/</link>
|
||||
<pubDate>Mon, 11 Mar 2019 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>https://leafee98.github.io/hugo-theme-flat/categories/syntax/</guid>
|
||||
<description></description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>themes</title>
|
||||
<link>https://leafee98.github.io/hugo-theme-flat/categories/themes/</link>
|
||||
<pubDate>Mon, 11 Mar 2019 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>https://leafee98.github.io/hugo-theme-flat/categories/themes/</guid>
|
||||
<description></description>
|
||||
</item>
|
||||
|
||||
</channel>
|
||||
</rss>
|
|
@ -1,259 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>syntax | Flat theme</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,minimum-scale=1">
|
||||
|
||||
<link rel="alternate" type="application/rss+xml" href="https://leafee98.github.io/hugo-theme-flat/categories/syntax/index.xml" title="Flat theme" />
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/lib/icofont/icofont.min.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/syntax.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/style.css" />
|
||||
<link rel="shortcut icon" href="/hugo-theme-flat/images/favicon.ico" type="image/x-icon" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="header-wrapper">
|
||||
<div class="header">
|
||||
<a class="site-title" href="https://leafee98.github.io/hugo-theme-flat/">Flat theme</a>
|
||||
|
||||
<ul class="menu">
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/posts/">Posts</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/essays/">Essays</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a>Services↓</a>
|
||||
<ul class="sub-menu">
|
||||
|
||||
<li class="menu-item"><a href="#">Service A</a></li>
|
||||
|
||||
<li class="menu-item"><a href="#">Service B</a></li>
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/about/">About</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="main-wrapper">
|
||||
<div class="main">
|
||||
|
||||
|
||||
<div>
|
||||
|
||||
|
||||
<section id="archive">
|
||||
|
||||
<div class="group">
|
||||
<h3 class="key">
|
||||
2019
|
||||
</h3>
|
||||
|
||||
|
||||
<div class="value">
|
||||
<time class="date" datetime="2019-03-11 00:00:00 +0000 UTC">03/11</time>
|
||||
|
||||
<div class="title">
|
||||
|
||||
<a href="https://leafee98.github.io/hugo-theme-flat/posts/markdown-syntax/">Markdown Syntax Guide</a>
|
||||
|
||||
|
||||
|
||||
<a class="tags" href="/hugo-theme-flat/tags/markdown">markdown</a>
|
||||
|
||||
<a class="tags" href="/hugo-theme-flat/tags/css">css</a>
|
||||
|
||||
<a class="tags" href="/hugo-theme-flat/tags/html">html</a>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="side">
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Posts</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/latex-support/">Latex Support</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/markdown-syntax/">Markdown Syntax Guide</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/placeholder-text/">Placeholder Text</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/math-typesetting/">Math Typesetting</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/emoji-support/">Emoji Support</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Essays</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/essays/what-is-hugo/">What Is Hugo</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-categories">
|
||||
<h2>Categories</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/syntax">syntax(1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/themes">themes(1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="side-tags">
|
||||
<h2>Tags</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/css">css (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/emoji">emoji (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/html">html (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/markdown">markdown (2)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/text">text (1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
<footer class="footer">
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/posts/index.xml">
|
||||
Feed of Posts
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/essays/index.xml">
|
||||
Feed of Essays
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/categories/syntax/index.xml">
|
||||
Feed of "syntax"
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Copyright <a href="https://creativecommons.org/licenses/by/4.0/">CC BY-4.0</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Powered by <a href="https://gohugo.io">Hugo</a></span>
|
||||
|
||||
|
||||
|
||||
<span class="footer-item">Theme <a href="https://cgit.leafee98.com/hugo-theme-flat.git">hugo-theme-flat</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1,135 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>syntax on Flat theme</title>
|
||||
<link>https://leafee98.github.io/hugo-theme-flat/categories/syntax/</link>
|
||||
<description>Recent content in syntax on Flat theme</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<lastBuildDate>Mon, 11 Mar 2019 00:00:00 +0000</lastBuildDate><atom:link href="https://leafee98.github.io/hugo-theme-flat/categories/syntax/index.xml" rel="self" type="application/rss+xml" />
|
||||
<item>
|
||||
<title>Markdown Syntax Guide</title>
|
||||
<link>https://leafee98.github.io/hugo-theme-flat/posts/markdown-syntax/</link>
|
||||
<pubDate>Mon, 11 Mar 2019 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>https://leafee98.github.io/hugo-theme-flat/posts/markdown-syntax/</guid>
|
||||
<description><p>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.</p>
|
||||
<h2 id="headings">Headings <a href="#headings" class="anchor">🔗</a></h2><p>The following HTML <code>&lt;h1&gt;</code>—<code>&lt;h6&gt;</code> elements represent six levels of section headings. <code>&lt;h1&gt;</code> is the highest section level while <code>&lt;h6&gt;</code> is the lowest.</p>
|
||||
<h1 id="h1">H1 <a href="#h1" class="anchor">🔗</a></h1><h2 id="h2">H2 <a href="#h2" class="anchor">🔗</a></h2><h3 id="h3">H3 <a href="#h3" class="anchor">🔗</a></h3><h4 id="h4">H4 <a href="#h4" class="anchor">🔗</a></h4><h5 id="h5">H5 <a href="#h5" class="anchor">🔗</a></h5><h6 id="h6">H6 <a href="#h6" class="anchor">🔗</a></h6><h2 id="paragraph">Paragraph <a href="#paragraph" class="anchor">🔗</a></h2><p>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.</p>
|
||||
<p>Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.</p>
|
||||
<h2 id="blockquotes">Blockquotes <a href="#blockquotes" class="anchor">🔗</a></h2><p>The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a <code>footer</code> or <code>cite</code> element, and optionally with in-line changes such as annotations and abbreviations.</p>
|
||||
<h4 id="blockquote-without-attribution">Blockquote without attribution <a href="#blockquote-without-attribution" class="anchor">🔗</a></h4><blockquote>
|
||||
<p>Tiam, ad mint andaepu dandae nostion secatur sequo quae.
|
||||
<strong>Note</strong> that you can use <em>Markdown syntax</em> within a blockquote.</p>
|
||||
</blockquote>
|
||||
<h4 id="blockquote-with-attribution">Blockquote with attribution <a href="#blockquote-with-attribution" class="anchor">🔗</a></h4><blockquote>
|
||||
<p>Don&rsquo;t communicate by sharing memory, share memory by communicating.<!-- raw HTML omitted -->
|
||||
— <!-- raw HTML omitted -->Rob Pike<sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup><!-- raw HTML omitted --></p>
|
||||
</blockquote>
|
||||
<h2 id="tables">Tables <a href="#tables" class="anchor">🔗</a></h2><p>Tables aren&rsquo;t part of the core Markdown spec, but Hugo supports supports them out-of-the-box.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Age</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Bob</td>
|
||||
<td>27</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Alice</td>
|
||||
<td>23</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4 id="inline-markdown-within-tables">Inline Markdown within tables <a href="#inline-markdown-within-tables" class="anchor">🔗</a></h4><table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Italics</th>
|
||||
<th>Bold</th>
|
||||
<th>Code</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><em>italics</em></td>
|
||||
<td><strong>bold</strong></td>
|
||||
<td><code>code</code></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="code-blocks">Code Blocks <a href="#code-blocks" class="anchor">🔗</a></h2><h4 id="code-block-with-backticks">Code block with backticks <a href="#code-block-with-backticks" class="anchor">🔗</a></h4><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="cp">&lt;!doctype html&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">html</span> <span class="na">lang</span><span class="o">=</span><span class="s">&#34;en&#34;</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">head</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">meta</span> <span class="na">charset</span><span class="o">=</span><span class="s">&#34;utf-8&#34;</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">title</span><span class="p">&gt;</span>Example HTML5 Document<span class="p">&lt;/</span><span class="nt">title</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">head</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">body</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>Test<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">body</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">html</span><span class="p">&gt;</span>
|
||||
</span></span></code></pre></div><h4 id="code-block-indented-with-four-spaces">Code block indented with four spaces <a href="#code-block-indented-with-four-spaces" class="anchor">🔗</a></h4><pre><code>&lt;!doctype html&gt;
|
||||
&lt;html lang=&quot;en&quot;&gt;
|
||||
&lt;head&gt;
|
||||
&lt;meta charset=&quot;utf-8&quot;&gt;
|
||||
&lt;title&gt;Example HTML5 Document&lt;/title&gt;
|
||||
&lt;/head&gt;
|
||||
&lt;body&gt;
|
||||
&lt;p&gt;Test&lt;/p&gt;
|
||||
&lt;/body&gt;
|
||||
&lt;/html&gt;
|
||||
</code></pre>
|
||||
<h4 id="code-block-with-hugos-internal-highlight-shortcode">Code block with Hugo&rsquo;s internal highlight shortcode <a href="#code-block-with-hugos-internal-highlight-shortcode" class="anchor">🔗</a></h4><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="cp">&lt;!doctype html&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">html</span> <span class="na">lang</span><span class="o">=</span><span class="s">&#34;en&#34;</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">head</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">meta</span> <span class="na">charset</span><span class="o">=</span><span class="s">&#34;utf-8&#34;</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">title</span><span class="p">&gt;</span>Example HTML5 Document<span class="p">&lt;/</span><span class="nt">title</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">head</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">body</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>Test<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">body</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">html</span><span class="p">&gt;</span></span></span></code></pre></div>
|
||||
<h2 id="list-types">List Types <a href="#list-types" class="anchor">🔗</a></h2><h4 id="ordered-list">Ordered List <a href="#ordered-list" class="anchor">🔗</a></h4><ol>
|
||||
<li>First item</li>
|
||||
<li>Second item</li>
|
||||
<li>Third item</li>
|
||||
</ol>
|
||||
<h4 id="unordered-list">Unordered List <a href="#unordered-list" class="anchor">🔗</a></h4><ul>
|
||||
<li>List item</li>
|
||||
<li>Another item</li>
|
||||
<li>And another item</li>
|
||||
</ul>
|
||||
<h4 id="nested-list">Nested list <a href="#nested-list" class="anchor">🔗</a></h4><ul>
|
||||
<li>Fruit
|
||||
<ul>
|
||||
<li>Apple</li>
|
||||
<li>Orange</li>
|
||||
<li>Banana</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Dairy
|
||||
<ul>
|
||||
<li>Milk</li>
|
||||
<li>Cheese</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<h2 id="other-elements--abbr-sub-sup-kbd-mark">Other Elements — abbr, sub, sup, kbd, mark <a href="#other-elements--abbr-sub-sup-kbd-mark" class="anchor">🔗</a></h2><p><!-- raw HTML omitted -->GIF<!-- raw HTML omitted --> is a bitmap image format.</p>
|
||||
<p>H<!-- raw HTML omitted -->2<!-- raw HTML omitted -->O</p>
|
||||
<p>X<!-- raw HTML omitted -->n<!-- raw HTML omitted --> + Y<!-- raw HTML omitted -->n<!-- raw HTML omitted --> = Z<!-- raw HTML omitted -->n<!-- raw HTML omitted --></p>
|
||||
<p>Press <!-- raw HTML omitted --><!-- raw HTML omitted -->CTRL<!-- raw HTML omitted -->+<!-- raw HTML omitted -->ALT<!-- raw HTML omitted -->+<!-- raw HTML omitted -->Delete<!-- raw HTML omitted --><!-- raw HTML omitted --> to end the session.</p>
|
||||
<p>Most <!-- raw HTML omitted -->salamanders<!-- raw HTML omitted --> are nocturnal, and hunt for insects, worms, and other small creatures.</p>
|
||||
<div class="footnotes" role="doc-endnotes">
|
||||
<hr>
|
||||
<ol>
|
||||
<li id="fn:1">
|
||||
<p>The above quote is excerpted from Rob Pike&rsquo;s <a href="https://www.youtube.com/watch?v=PAAkCSZUG1c">talk</a> during Gopherfest, November 18, 2015.&#160;<a href="#fnref:1" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
|
||||
</li>
|
||||
</ol>
|
||||
</div></description>
|
||||
</item>
|
||||
|
||||
</channel>
|
||||
</rss>
|
|
@ -1,259 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>themes | Flat theme</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,minimum-scale=1">
|
||||
|
||||
<link rel="alternate" type="application/rss+xml" href="https://leafee98.github.io/hugo-theme-flat/categories/themes/index.xml" title="Flat theme" />
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/lib/icofont/icofont.min.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/syntax.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/style.css" />
|
||||
<link rel="shortcut icon" href="/hugo-theme-flat/images/favicon.ico" type="image/x-icon" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="header-wrapper">
|
||||
<div class="header">
|
||||
<a class="site-title" href="https://leafee98.github.io/hugo-theme-flat/">Flat theme</a>
|
||||
|
||||
<ul class="menu">
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/posts/">Posts</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/essays/">Essays</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a>Services↓</a>
|
||||
<ul class="sub-menu">
|
||||
|
||||
<li class="menu-item"><a href="#">Service A</a></li>
|
||||
|
||||
<li class="menu-item"><a href="#">Service B</a></li>
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/about/">About</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="main-wrapper">
|
||||
<div class="main">
|
||||
|
||||
|
||||
<div>
|
||||
|
||||
|
||||
<section id="archive">
|
||||
|
||||
<div class="group">
|
||||
<h3 class="key">
|
||||
2019
|
||||
</h3>
|
||||
|
||||
|
||||
<div class="value">
|
||||
<time class="date" datetime="2019-03-11 00:00:00 +0000 UTC">03/11</time>
|
||||
|
||||
<div class="title">
|
||||
|
||||
<a href="https://leafee98.github.io/hugo-theme-flat/posts/markdown-syntax/">Markdown Syntax Guide</a>
|
||||
|
||||
|
||||
|
||||
<a class="tags" href="/hugo-theme-flat/tags/markdown">markdown</a>
|
||||
|
||||
<a class="tags" href="/hugo-theme-flat/tags/css">css</a>
|
||||
|
||||
<a class="tags" href="/hugo-theme-flat/tags/html">html</a>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="side">
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Posts</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/latex-support/">Latex Support</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/markdown-syntax/">Markdown Syntax Guide</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/placeholder-text/">Placeholder Text</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/math-typesetting/">Math Typesetting</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/emoji-support/">Emoji Support</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Essays</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/essays/what-is-hugo/">What Is Hugo</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-categories">
|
||||
<h2>Categories</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/syntax">syntax(1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/themes">themes(1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="side-tags">
|
||||
<h2>Tags</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/css">css (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/emoji">emoji (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/html">html (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/markdown">markdown (2)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/text">text (1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
<footer class="footer">
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/posts/index.xml">
|
||||
Feed of Posts
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/essays/index.xml">
|
||||
Feed of Essays
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/categories/themes/index.xml">
|
||||
Feed of "themes"
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Copyright <a href="https://creativecommons.org/licenses/by/4.0/">CC BY-4.0</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Powered by <a href="https://gohugo.io">Hugo</a></span>
|
||||
|
||||
|
||||
|
||||
<span class="footer-item">Theme <a href="https://cgit.leafee98.com/hugo-theme-flat.git">hugo-theme-flat</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1,135 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>themes on Flat theme</title>
|
||||
<link>https://leafee98.github.io/hugo-theme-flat/categories/themes/</link>
|
||||
<description>Recent content in themes on Flat theme</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<lastBuildDate>Mon, 11 Mar 2019 00:00:00 +0000</lastBuildDate><atom:link href="https://leafee98.github.io/hugo-theme-flat/categories/themes/index.xml" rel="self" type="application/rss+xml" />
|
||||
<item>
|
||||
<title>Markdown Syntax Guide</title>
|
||||
<link>https://leafee98.github.io/hugo-theme-flat/posts/markdown-syntax/</link>
|
||||
<pubDate>Mon, 11 Mar 2019 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>https://leafee98.github.io/hugo-theme-flat/posts/markdown-syntax/</guid>
|
||||
<description><p>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.</p>
|
||||
<h2 id="headings">Headings <a href="#headings" class="anchor">🔗</a></h2><p>The following HTML <code>&lt;h1&gt;</code>—<code>&lt;h6&gt;</code> elements represent six levels of section headings. <code>&lt;h1&gt;</code> is the highest section level while <code>&lt;h6&gt;</code> is the lowest.</p>
|
||||
<h1 id="h1">H1 <a href="#h1" class="anchor">🔗</a></h1><h2 id="h2">H2 <a href="#h2" class="anchor">🔗</a></h2><h3 id="h3">H3 <a href="#h3" class="anchor">🔗</a></h3><h4 id="h4">H4 <a href="#h4" class="anchor">🔗</a></h4><h5 id="h5">H5 <a href="#h5" class="anchor">🔗</a></h5><h6 id="h6">H6 <a href="#h6" class="anchor">🔗</a></h6><h2 id="paragraph">Paragraph <a href="#paragraph" class="anchor">🔗</a></h2><p>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.</p>
|
||||
<p>Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.</p>
|
||||
<h2 id="blockquotes">Blockquotes <a href="#blockquotes" class="anchor">🔗</a></h2><p>The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a <code>footer</code> or <code>cite</code> element, and optionally with in-line changes such as annotations and abbreviations.</p>
|
||||
<h4 id="blockquote-without-attribution">Blockquote without attribution <a href="#blockquote-without-attribution" class="anchor">🔗</a></h4><blockquote>
|
||||
<p>Tiam, ad mint andaepu dandae nostion secatur sequo quae.
|
||||
<strong>Note</strong> that you can use <em>Markdown syntax</em> within a blockquote.</p>
|
||||
</blockquote>
|
||||
<h4 id="blockquote-with-attribution">Blockquote with attribution <a href="#blockquote-with-attribution" class="anchor">🔗</a></h4><blockquote>
|
||||
<p>Don&rsquo;t communicate by sharing memory, share memory by communicating.<!-- raw HTML omitted -->
|
||||
— <!-- raw HTML omitted -->Rob Pike<sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup><!-- raw HTML omitted --></p>
|
||||
</blockquote>
|
||||
<h2 id="tables">Tables <a href="#tables" class="anchor">🔗</a></h2><p>Tables aren&rsquo;t part of the core Markdown spec, but Hugo supports supports them out-of-the-box.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Age</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Bob</td>
|
||||
<td>27</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Alice</td>
|
||||
<td>23</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4 id="inline-markdown-within-tables">Inline Markdown within tables <a href="#inline-markdown-within-tables" class="anchor">🔗</a></h4><table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Italics</th>
|
||||
<th>Bold</th>
|
||||
<th>Code</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><em>italics</em></td>
|
||||
<td><strong>bold</strong></td>
|
||||
<td><code>code</code></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="code-blocks">Code Blocks <a href="#code-blocks" class="anchor">🔗</a></h2><h4 id="code-block-with-backticks">Code block with backticks <a href="#code-block-with-backticks" class="anchor">🔗</a></h4><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="cp">&lt;!doctype html&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">html</span> <span class="na">lang</span><span class="o">=</span><span class="s">&#34;en&#34;</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">head</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">meta</span> <span class="na">charset</span><span class="o">=</span><span class="s">&#34;utf-8&#34;</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">title</span><span class="p">&gt;</span>Example HTML5 Document<span class="p">&lt;/</span><span class="nt">title</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">head</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">body</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>Test<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">body</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">html</span><span class="p">&gt;</span>
|
||||
</span></span></code></pre></div><h4 id="code-block-indented-with-four-spaces">Code block indented with four spaces <a href="#code-block-indented-with-four-spaces" class="anchor">🔗</a></h4><pre><code>&lt;!doctype html&gt;
|
||||
&lt;html lang=&quot;en&quot;&gt;
|
||||
&lt;head&gt;
|
||||
&lt;meta charset=&quot;utf-8&quot;&gt;
|
||||
&lt;title&gt;Example HTML5 Document&lt;/title&gt;
|
||||
&lt;/head&gt;
|
||||
&lt;body&gt;
|
||||
&lt;p&gt;Test&lt;/p&gt;
|
||||
&lt;/body&gt;
|
||||
&lt;/html&gt;
|
||||
</code></pre>
|
||||
<h4 id="code-block-with-hugos-internal-highlight-shortcode">Code block with Hugo&rsquo;s internal highlight shortcode <a href="#code-block-with-hugos-internal-highlight-shortcode" class="anchor">🔗</a></h4><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="cp">&lt;!doctype html&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">html</span> <span class="na">lang</span><span class="o">=</span><span class="s">&#34;en&#34;</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">head</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">meta</span> <span class="na">charset</span><span class="o">=</span><span class="s">&#34;utf-8&#34;</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">title</span><span class="p">&gt;</span>Example HTML5 Document<span class="p">&lt;/</span><span class="nt">title</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">head</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">body</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>Test<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">body</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">html</span><span class="p">&gt;</span></span></span></code></pre></div>
|
||||
<h2 id="list-types">List Types <a href="#list-types" class="anchor">🔗</a></h2><h4 id="ordered-list">Ordered List <a href="#ordered-list" class="anchor">🔗</a></h4><ol>
|
||||
<li>First item</li>
|
||||
<li>Second item</li>
|
||||
<li>Third item</li>
|
||||
</ol>
|
||||
<h4 id="unordered-list">Unordered List <a href="#unordered-list" class="anchor">🔗</a></h4><ul>
|
||||
<li>List item</li>
|
||||
<li>Another item</li>
|
||||
<li>And another item</li>
|
||||
</ul>
|
||||
<h4 id="nested-list">Nested list <a href="#nested-list" class="anchor">🔗</a></h4><ul>
|
||||
<li>Fruit
|
||||
<ul>
|
||||
<li>Apple</li>
|
||||
<li>Orange</li>
|
||||
<li>Banana</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Dairy
|
||||
<ul>
|
||||
<li>Milk</li>
|
||||
<li>Cheese</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<h2 id="other-elements--abbr-sub-sup-kbd-mark">Other Elements — abbr, sub, sup, kbd, mark <a href="#other-elements--abbr-sub-sup-kbd-mark" class="anchor">🔗</a></h2><p><!-- raw HTML omitted -->GIF<!-- raw HTML omitted --> is a bitmap image format.</p>
|
||||
<p>H<!-- raw HTML omitted -->2<!-- raw HTML omitted -->O</p>
|
||||
<p>X<!-- raw HTML omitted -->n<!-- raw HTML omitted --> + Y<!-- raw HTML omitted -->n<!-- raw HTML omitted --> = Z<!-- raw HTML omitted -->n<!-- raw HTML omitted --></p>
|
||||
<p>Press <!-- raw HTML omitted --><!-- raw HTML omitted -->CTRL<!-- raw HTML omitted -->+<!-- raw HTML omitted -->ALT<!-- raw HTML omitted -->+<!-- raw HTML omitted -->Delete<!-- raw HTML omitted --><!-- raw HTML omitted --> to end the session.</p>
|
||||
<p>Most <!-- raw HTML omitted -->salamanders<!-- raw HTML omitted --> are nocturnal, and hunt for insects, worms, and other small creatures.</p>
|
||||
<div class="footnotes" role="doc-endnotes">
|
||||
<hr>
|
||||
<ol>
|
||||
<li id="fn:1">
|
||||
<p>The above quote is excerpted from Rob Pike&rsquo;s <a href="https://www.youtube.com/watch?v=PAAkCSZUG1c">talk</a> during Gopherfest, November 18, 2015.&#160;<a href="#fnref:1" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
|
||||
</li>
|
||||
</ol>
|
||||
</div></description>
|
||||
</item>
|
||||
|
||||
</channel>
|
||||
</rss>
|
|
@ -1,85 +0,0 @@
|
|||
/* Background */ .bg { color: #272822; }
|
||||
/* PreWrapper */ .chroma { color: #272822; }
|
||||
/* Other */ .chroma .x { }
|
||||
/* Error */ .chroma .err { color: #960050; background-color: #1e0010 }
|
||||
/* CodeLine */ .chroma .cl { }
|
||||
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
|
||||
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
|
||||
/* LineHighlight */ .chroma .hl { background-color: #ffffcc }
|
||||
/* LineNumbersTable */ .chroma .lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
||||
/* LineNumbers */ .chroma .ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
||||
/* Line */ .chroma .line { display: flex; }
|
||||
/* Keyword */ .chroma .k { color: #00a8c8 }
|
||||
/* KeywordConstant */ .chroma .kc { color: #00a8c8 }
|
||||
/* KeywordDeclaration */ .chroma .kd { color: #00a8c8 }
|
||||
/* KeywordNamespace */ .chroma .kn { color: #f92672 }
|
||||
/* KeywordPseudo */ .chroma .kp { color: #00a8c8 }
|
||||
/* KeywordReserved */ .chroma .kr { color: #00a8c8 }
|
||||
/* KeywordType */ .chroma .kt { color: #00a8c8 }
|
||||
/* Name */ .chroma .n { color: #111111 }
|
||||
/* NameAttribute */ .chroma .na { color: #75af00 }
|
||||
/* NameBuiltin */ .chroma .nb { color: #111111 }
|
||||
/* NameBuiltinPseudo */ .chroma .bp { color: #111111 }
|
||||
/* NameClass */ .chroma .nc { color: #75af00 }
|
||||
/* NameConstant */ .chroma .no { color: #00a8c8 }
|
||||
/* NameDecorator */ .chroma .nd { color: #75af00 }
|
||||
/* NameEntity */ .chroma .ni { color: #111111 }
|
||||
/* NameException */ .chroma .ne { color: #75af00 }
|
||||
/* NameFunction */ .chroma .nf { color: #75af00 }
|
||||
/* NameFunctionMagic */ .chroma .fm { color: #111111 }
|
||||
/* NameLabel */ .chroma .nl { color: #111111 }
|
||||
/* NameNamespace */ .chroma .nn { color: #111111 }
|
||||
/* NameOther */ .chroma .nx { color: #75af00 }
|
||||
/* NameProperty */ .chroma .py { color: #111111 }
|
||||
/* NameTag */ .chroma .nt { color: #f92672 }
|
||||
/* NameVariable */ .chroma .nv { color: #111111 }
|
||||
/* NameVariableClass */ .chroma .vc { color: #111111 }
|
||||
/* NameVariableGlobal */ .chroma .vg { color: #111111 }
|
||||
/* NameVariableInstance */ .chroma .vi { color: #111111 }
|
||||
/* NameVariableMagic */ .chroma .vm { color: #111111 }
|
||||
/* Literal */ .chroma .l { color: #ae81ff }
|
||||
/* LiteralDate */ .chroma .ld { color: #d88200 }
|
||||
/* LiteralString */ .chroma .s { color: #d88200 }
|
||||
/* LiteralStringAffix */ .chroma .sa { color: #d88200 }
|
||||
/* LiteralStringBacktick */ .chroma .sb { color: #d88200 }
|
||||
/* LiteralStringChar */ .chroma .sc { color: #d88200 }
|
||||
/* LiteralStringDelimiter */ .chroma .dl { color: #d88200 }
|
||||
/* LiteralStringDoc */ .chroma .sd { color: #d88200 }
|
||||
/* LiteralStringDouble */ .chroma .s2 { color: #d88200 }
|
||||
/* LiteralStringEscape */ .chroma .se { color: #8045ff }
|
||||
/* LiteralStringHeredoc */ .chroma .sh { color: #d88200 }
|
||||
/* LiteralStringInterpol */ .chroma .si { color: #d88200 }
|
||||
/* LiteralStringOther */ .chroma .sx { color: #d88200 }
|
||||
/* LiteralStringRegex */ .chroma .sr { color: #d88200 }
|
||||
/* LiteralStringSingle */ .chroma .s1 { color: #d88200 }
|
||||
/* LiteralStringSymbol */ .chroma .ss { color: #d88200 }
|
||||
/* 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 }
|
||||
/* Punctuation */ .chroma .p { color: #111111 }
|
||||
/* 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 }
|
||||
/* Generic */ .chroma .g { }
|
||||
/* GenericDeleted */ .chroma .gd { }
|
||||
/* GenericEmph */ .chroma .ge { font-style: italic }
|
||||
/* GenericError */ .chroma .gr { }
|
||||
/* GenericHeading */ .chroma .gh { }
|
||||
/* GenericInserted */ .chroma .gi { }
|
||||
/* GenericOutput */ .chroma .go { }
|
||||
/* GenericPrompt */ .chroma .gp { }
|
||||
/* GenericStrong */ .chroma .gs { font-weight: bold }
|
||||
/* GenericSubheading */ .chroma .gu { }
|
||||
/* GenericTraceback */ .chroma .gt { }
|
||||
/* GenericUnderline */ .chroma .gl { }
|
||||
/* TextWhitespace */ .chroma .w { }
|
|
@ -1,245 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Essays | Flat theme</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,minimum-scale=1">
|
||||
|
||||
<link rel="alternate" type="application/rss+xml" href="https://leafee98.github.io/hugo-theme-flat/essays/index.xml" title="Flat theme" />
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/lib/icofont/icofont.min.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/syntax.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/style.css" />
|
||||
<link rel="shortcut icon" href="/hugo-theme-flat/images/favicon.ico" type="image/x-icon" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="header-wrapper">
|
||||
<div class="header">
|
||||
<a class="site-title" href="https://leafee98.github.io/hugo-theme-flat/">Flat theme</a>
|
||||
|
||||
<ul class="menu">
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/posts/">Posts</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/essays/">Essays</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a>Services↓</a>
|
||||
<ul class="sub-menu">
|
||||
|
||||
<li class="menu-item"><a href="#">Service A</a></li>
|
||||
|
||||
<li class="menu-item"><a href="#">Service B</a></li>
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/about/">About</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="main-wrapper">
|
||||
<div class="main">
|
||||
|
||||
|
||||
<div>
|
||||
|
||||
<div class="content archive-hint"><p><em>There are some short articles.</em></p></div>
|
||||
|
||||
|
||||
<section id="archive">
|
||||
|
||||
<div class="group">
|
||||
<h3 class="key">
|
||||
2022
|
||||
</h3>
|
||||
|
||||
|
||||
<div class="value">
|
||||
<time class="date" datetime="2022-05-16 21:57:50 +0800 CST">05/16</time>
|
||||
|
||||
<div class="title">
|
||||
|
||||
<a href="https://leafee98.github.io/hugo-theme-flat/essays/what-is-hugo/">What Is Hugo</a>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="side">
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Posts</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/latex-support/">Latex Support</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/markdown-syntax/">Markdown Syntax Guide</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/placeholder-text/">Placeholder Text</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/math-typesetting/">Math Typesetting</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/emoji-support/">Emoji Support</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Essays</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/essays/what-is-hugo/">What Is Hugo</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-categories">
|
||||
<h2>Categories</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/syntax">syntax(1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/themes">themes(1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="side-tags">
|
||||
<h2>Tags</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/css">css (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/emoji">emoji (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/html">html (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/markdown">markdown (2)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/text">text (1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
<footer class="footer">
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/posts/index.xml">
|
||||
Feed of Posts
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/essays/index.xml">
|
||||
Feed of Essays
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Copyright <a href="https://creativecommons.org/licenses/by/4.0/">CC BY-4.0</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Powered by <a href="https://gohugo.io">Hugo</a></span>
|
||||
|
||||
|
||||
|
||||
<span class="footer-item">Theme <a href="https://cgit.leafee98.com/hugo-theme-flat.git">hugo-theme-flat</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1,24 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>Essays on Flat theme</title>
|
||||
<link>https://leafee98.github.io/hugo-theme-flat/essays/</link>
|
||||
<description>Recent content in Essays on Flat theme</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<lastBuildDate>Wed, 18 May 2022 11:19:08 +0800</lastBuildDate><atom:link href="https://leafee98.github.io/hugo-theme-flat/essays/index.xml" rel="self" type="application/rss+xml" />
|
||||
<item>
|
||||
<title>What Is Hugo</title>
|
||||
<link>https://leafee98.github.io/hugo-theme-flat/essays/what-is-hugo/</link>
|
||||
<pubDate>Mon, 16 May 2022 21:57:50 +0800</pubDate>
|
||||
|
||||
<guid>https://leafee98.github.io/hugo-theme-flat/essays/what-is-hugo/</guid>
|
||||
<description><p>Hugo is a static site generator written in Go. Originally created by Steve Francia in 2013, Hugo has seen a great increase in both features and performance thanks to current lead developer Bjørn Erik Pedersen (since v0.14 in 2015[4]) and other contributors. Hugo is an open source project licensed under the Apache License 2.0.[5]</p>
|
||||
<p>Being able to generate most websites within seconds (at &lt; 1 ms per page), Hugo&rsquo;s official website states it is &ldquo;the world’s fastest framework for building websites&rdquo;. In July 2015, Netlify began providing Hugo hosting,[6] and in 2017, Smashing Magazine completed its redesign of their website, migrating from WordPress to a JAMstack solution with Hugo.[7]</p>
|
||||
<blockquote>
|
||||
<p>Source: <a href="https://en.wikipedia.org/wiki/Hugo_(software)">https://en.wikipedia.org/wiki/Hugo_(software)</a></p>
|
||||
<p>License: <a href="https://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License">CC-BY-SA 3.0</a></p>
|
||||
</blockquote></description>
|
||||
</item>
|
||||
|
||||
</channel>
|
||||
</rss>
|
|
@ -1,248 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>What Is Hugo | Flat theme</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,minimum-scale=1">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/lib/icofont/icofont.min.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/syntax.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/style.css" />
|
||||
<link rel="shortcut icon" href="/hugo-theme-flat/images/favicon.ico" type="image/x-icon" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="header-wrapper">
|
||||
<div class="header">
|
||||
<a class="site-title" href="https://leafee98.github.io/hugo-theme-flat/">Flat theme</a>
|
||||
|
||||
<ul class="menu">
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/posts/">Posts</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/essays/">Essays</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a>Services↓</a>
|
||||
<ul class="sub-menu">
|
||||
|
||||
<li class="menu-item"><a href="#">Service A</a></li>
|
||||
|
||||
<li class="menu-item"><a href="#">Service B</a></li>
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/about/">About</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="main-wrapper">
|
||||
<div class="main">
|
||||
|
||||
|
||||
<section class="single">
|
||||
<h1 class="title">What Is Hugo</h1>
|
||||
|
||||
<div class="tip">
|
||||
<time datetime="2022-05-16 21:57:50 +0800 CST">2022/05/16</time>
|
||||
<span class="split">·</span>
|
||||
<span> 114 words </span>
|
||||
<span class="split">·</span>
|
||||
<span>
|
||||
1 minutes to read
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="taxonomies">
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="content">
|
||||
<p>Hugo is a static site generator written in Go. Originally created by Steve Francia in 2013, Hugo has seen a great increase in both features and performance thanks to current lead developer Bjørn Erik Pedersen (since v0.14 in 2015[4]) and other contributors. Hugo is an open source project licensed under the Apache License 2.0.[5]</p>
|
||||
<p>Being able to generate most websites within seconds (at < 1 ms per page), Hugo’s official website states it is “the world’s fastest framework for building websites”. In July 2015, Netlify began providing Hugo hosting,[6] and in 2017, Smashing Magazine completed its redesign of their website, migrating from WordPress to a JAMstack solution with Hugo.[7]</p>
|
||||
<blockquote>
|
||||
<p>Source: <a href="https://en.wikipedia.org/wiki/Hugo_(software)">https://en.wikipedia.org/wiki/Hugo_(software)</a></p>
|
||||
<p>License: <a href="https://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License">CC-BY-SA 3.0</a></p>
|
||||
</blockquote>
|
||||
</div>
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="side">
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Posts</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/latex-support/">Latex Support</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/markdown-syntax/">Markdown Syntax Guide</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/placeholder-text/">Placeholder Text</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/math-typesetting/">Math Typesetting</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/emoji-support/">Emoji Support</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Essays</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/essays/what-is-hugo/">What Is Hugo</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-categories">
|
||||
<h2>Categories</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/syntax">syntax(1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/themes">themes(1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="side-tags">
|
||||
<h2>Tags</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/css">css (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/emoji">emoji (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/html">html (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/markdown">markdown (2)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/text">text (1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
<footer class="footer">
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/posts/index.xml">
|
||||
Feed of Posts
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/essays/index.xml">
|
||||
Feed of Essays
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Copyright <a href="https://creativecommons.org/licenses/by/4.0/">CC BY-4.0</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Powered by <a href="https://gohugo.io">Hugo</a></span>
|
||||
|
||||
|
||||
|
||||
<span class="footer-item">Theme <a href="https://cgit.leafee98.com/hugo-theme-flat.git">hugo-theme-flat</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
83
exampleSite/config.toml
Normal file
83
exampleSite/config.toml
Normal file
|
@ -0,0 +1,83 @@
|
|||
title = "Flat theme"
|
||||
theme = "hugo-theme-flat"
|
||||
themesDir = "../.."
|
||||
enableRobotsTXT = true
|
||||
hasCJKLanguage = true
|
||||
paginate = 4
|
||||
baseURL = ""
|
||||
|
||||
# these values are hugo built in markup config
|
||||
[markup.highlight]
|
||||
anchorLineNos = false
|
||||
codeFences = true
|
||||
guessSyntax = false
|
||||
hl_Lines = ''
|
||||
lineAnchors = ''
|
||||
lineNoStart = 1
|
||||
lineNos = false
|
||||
lineNumbersInTable = false
|
||||
noClasses = false
|
||||
noHl = false
|
||||
style = 'monokailight'
|
||||
tabWidth = 4
|
||||
|
||||
[params]
|
||||
description = "Example site for hugo-theme-flat"
|
||||
mainSections = ['posts']
|
||||
|
||||
## uncomment belows and set proper values to enable remark42
|
||||
# [params.remark42]
|
||||
# host=''
|
||||
# site_id=''
|
||||
# max_shown_comments=100
|
||||
# theme='light'
|
||||
# locale='en'
|
||||
# show_email_subscription=false
|
||||
# simple_view=true
|
||||
|
||||
|
||||
# you can set multi row of footers like these
|
||||
[[params.footer_rows]]
|
||||
[[params.footer_rows.items]]
|
||||
name = "Creative Commons Attribution 4.0 International"
|
||||
url = "https://creativecommons.org/licenses/by/4.0/"
|
||||
pre = "Copyright <a href=\"https://creativecommons.org/licenses/by/4.0/\">CC BY-4.0</a>"
|
||||
|
||||
[[params.footer_rows]]
|
||||
[[params.footer_rows.items]]
|
||||
name = "Hugo"
|
||||
url = "https://gohugo.io"
|
||||
pre = "Powered by <a href=\"https://gohugo.io\">Hugo</a>"
|
||||
[[params.footer_rows.items]]
|
||||
name = "theme flat"
|
||||
url = "https://cgit.leafee98.com/hugo-theme-flat.git"
|
||||
pre = "Theme <a href=\"https://git.leafee98.com/leafee98/hugo-theme-flat.git\">hugo-theme-flat</a>"
|
||||
|
||||
|
||||
[[menus.main]]
|
||||
name = "Posts"
|
||||
url = "/posts/"
|
||||
weight = 30
|
||||
|
||||
[[menus.main]]
|
||||
name = "Essays"
|
||||
url = "/essays/"
|
||||
weight = 40
|
||||
|
||||
[[menus.main]]
|
||||
pageref = "about"
|
||||
name = "About"
|
||||
weight = 80
|
||||
|
||||
# 2-level sub menus are supported
|
||||
[[menus.main]]
|
||||
name = "Services"
|
||||
weight = 60
|
||||
[[menus.main]]
|
||||
parent = "Services"
|
||||
name = "Service A"
|
||||
url = "#"
|
||||
[[menus.main]]
|
||||
parent = "Services"
|
||||
name = "Service B"
|
||||
url = "#"
|
40
exampleSite/content/about.md
Normal file
40
exampleSite/content/about.md
Normal file
|
@ -0,0 +1,40 @@
|
|||
---
|
||||
title: "About"
|
||||
date: 2022-04-27T21:01:43+08:00
|
||||
draft: false
|
||||
---
|
||||
|
||||
## About this demo site
|
||||
|
||||
This is the *about page* of this theme. The content of this demo site is come from [hugo-theme-mini](https://github.com/nodejh/hugo-theme-mini/), whose license is [MIT](https://github.com/nodejh/hugo-theme-mini/blob/39be4727b355bc8cabd919c6684d79064690a5c6/LICENSE.md)
|
||||
|
||||
This site is built by hugo, which is a fast static site generator writen in go. You can go to its [offical site](https://gohugo.io) to get more information.
|
||||
|
||||
## CJK supported
|
||||
|
||||
This hugo theme support CJK language, but some right to left language may not act as expected. Let's just test CJK layout!
|
||||
|
||||
这一句话是用中文写的,一般情况下,中英文排版如果字体设置不当,显示出来的字号会有相当的差距,即便实际上的字号是相同的。这个问题暂时看来无法彻底解决,唯一能做的就是挑选合适的字体,使相同字号下,中英文在展示出来后肉眼感官大小差别不大。
|
||||
|
||||
Try another typography, which make English and Chinese lay down in a single line. The word *Chinese* in Chinese is "中文".
|
||||
|
||||
## What is hugo
|
||||
|
||||
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).
|
||||
|
17
exampleSite/content/essays/What-Is-Hugo.md
Normal file
17
exampleSite/content/essays/What-Is-Hugo.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
title: "What Is Hugo"
|
||||
date: 2022-05-16T21:57:50+08:00
|
||||
tags: []
|
||||
categories: []
|
||||
draft: false
|
||||
---
|
||||
|
||||
Hugo is a static site generator written in Go. Originally created by Steve Francia in 2013, Hugo has seen a great increase in both features and performance thanks to current lead developer Bjørn Erik Pedersen (since v0.14 in 2015[4]) and other contributors. Hugo is an open source project licensed under the Apache License 2.0.[5]
|
||||
|
||||
<!--more-->
|
||||
|
||||
Being able to generate most websites within seconds (at < 1 ms per page), Hugo's official website states it is "the world’s fastest framework for building websites". In July 2015, Netlify began providing Hugo hosting,[6] and in 2017, Smashing Magazine completed its redesign of their website, migrating from WordPress to a JAMstack solution with Hugo.[7]
|
||||
|
||||
> Source: https://en.wikipedia.org/wiki/Hugo_(software)
|
||||
>
|
||||
> License: [CC-BY-SA 3.0](https://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License)
|
12
exampleSite/content/essays/_index.md
Normal file
12
exampleSite/content/essays/_index.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
title: "Essays"
|
||||
date: 2022-05-18T11:19:08+08:00
|
||||
tags: []
|
||||
categories: []
|
||||
weight: 70
|
||||
draft: false
|
||||
---
|
||||
|
||||
<!--more-->
|
||||
|
||||
*There are some short articles.*
|
BIN
exampleSite/content/essays/add-picture-in-post/TEIDE.JPG
Normal file
BIN
exampleSite/content/essays/add-picture-in-post/TEIDE.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 MiB |
38
exampleSite/content/essays/add-picture-in-post/index.md
Normal file
38
exampleSite/content/essays/add-picture-in-post/index.md
Normal file
|
@ -0,0 +1,38 @@
|
|||
---
|
||||
title: "Add Picture In Blog"
|
||||
date: 2023-01-24T20:04:07+08:00
|
||||
tags: []
|
||||
categories: []
|
||||
weight: 50
|
||||
show_comments: true
|
||||
katex: false
|
||||
draft: false
|
||||
---
|
||||
|
||||
In this essay, we will talk about how to add a picture in blog.
|
||||
|
||||
<!--more-->
|
||||
|
||||
There are many ways to add a picture, the one to use pure markdown syntax is `![](./path/to/picture)`.
|
||||
|
||||
Now I will show you a BIG picture (3600x2180):
|
||||
|
||||
![Big picture](./TEIDE.JPG)
|
||||
|
||||
And a small picture (30x20):
|
||||
|
||||
![Small markdown mark](./markdown-30x20.png)
|
||||
|
||||
Here is a inline markdown mark ![Small markdown mark](./markdown-30x20.png).
|
||||
|
||||
## Some other things
|
||||
|
||||
**Note** that due to the *big picture* is from [Wikipedia][wikipedia] who use [CC-BY-SA 3.0][cc-by-sa-3] as license, so this essay also use [CC-BY-SA 3.0] as license.
|
||||
|
||||
The *big picture* is from <https://en.wikipedia.org/wiki/Image>.
|
||||
|
||||
The small markdown mark has been dedicated to the public domain.
|
||||
|
||||
[wikipedia]: https://wikipedia.org/ "Wikipedia"
|
||||
[cc-by-sa-3]: https://en.wikipedia.org/wiki/Wikipedia:Text_of_the_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License "Creative Commons Attribution-ShareAlike License 3.0"
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 223 B |
10
exampleSite/content/posts/_index.md
Normal file
10
exampleSite/content/posts/_index.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
title: "Posts"
|
||||
date: 2022-05-18T11:22:44+08:00
|
||||
tags: []
|
||||
categories: []
|
||||
weight: 30
|
||||
draft: false
|
||||
---
|
||||
|
||||
<!--more-->
|
47
exampleSite/content/posts/emoji-support.md
Normal file
47
exampleSite/content/posts/emoji-support.md
Normal file
|
@ -0,0 +1,47 @@
|
|||
+++
|
||||
author = "Hugo Authors"
|
||||
title = "Emoji Support"
|
||||
date = "2019-03-05"
|
||||
description = "Guide to emoji usage in Hugo"
|
||||
tags = [
|
||||
"emoji",
|
||||
]
|
||||
|
||||
+++
|
||||
|
||||
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 >}}
|
30
exampleSite/content/posts/latex-support.md
Normal file
30
exampleSite/content/posts/latex-support.md
Normal file
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
title: "Latex Support"
|
||||
date: 2022-09-20T09:36:26+08:00
|
||||
tags: []
|
||||
categories: []
|
||||
weight: 50
|
||||
show_comments: true
|
||||
katex: true
|
||||
draft: false
|
||||
---
|
||||
|
||||
This article contians some test for latex support.
|
||||
Currently the lib used for rendering LaTeX is [\\(\KaTeX\\)](https://katex.org/)
|
||||
|
||||
<!--more-->
|
||||
|
||||
$$
|
||||
\pi=\int_{-\infty}^\infty\frac{dx}{1+x^2}
|
||||
$$
|
||||
|
||||
## The code which render the above
|
||||
|
||||
```
|
||||
This article contians some test for latex support.
|
||||
Currently the lib used for rendering LaTeX is [\\(\KaTeX\\)](https://katex.org/)
|
||||
|
||||
$$
|
||||
\pi=\int_{-\infty}^\infty\frac{dx}{1+x^2}
|
||||
$$
|
||||
```
|
148
exampleSite/content/posts/markdown-syntax.md
Normal file
148
exampleSite/content/posts/markdown-syntax.md
Normal file
|
@ -0,0 +1,148 @@
|
|||
+++
|
||||
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"]
|
||||
+++
|
||||
|
||||
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.
|
49
exampleSite/content/posts/math-typesetting.md
Normal file
49
exampleSite/content/posts/math-typesetting.md
Normal file
|
@ -0,0 +1,49 @@
|
|||
---
|
||||
author: Hugo Authors
|
||||
title: Math Typesetting
|
||||
date: 2019-03-08
|
||||
description: A brief guide to setup KaTeX
|
||||
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 [KaTeX](https://katex.org/)
|
||||
|
||||
- Create a partial under `/layouts/partials/math.html`
|
||||
- Within this partial reference the [Auto-render Extension](https://katex.org/docs/autorender.html) or host these scripts locally.
|
||||
- Include the partial in your templates like so:
|
||||
|
||||
```bash
|
||||
{{ if or .Params.math .Site.Params.math }}
|
||||
{{ partial "math.html" . }}
|
||||
{{ end }}
|
||||
```
|
||||
|
||||
- To enable KaTex 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://katex.org/docs/supported.html)
|
||||
|
||||
{{< math.inline >}}
|
||||
{{ if or .Page.Params.math .Site.Params.math }}
|
||||
<!-- KaTeX -->
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js" integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script>
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
|
||||
{{ end }}
|
||||
{{</ math.inline >}}
|
||||
|
||||
### Examples
|
||||
|
||||
{{< math.inline >}}
|
||||
<p>
|
||||
Inline math: \(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\)
|
||||
</p>
|
||||
{{</ math.inline >}}
|
||||
|
||||
Block math:
|
||||
$$
|
||||
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
|
||||
$$
|
45
exampleSite/content/posts/placeholder-text.md
Normal file
45
exampleSite/content/posts/placeholder-text.md
Normal file
|
@ -0,0 +1,45 @@
|
|||
+++
|
||||
author = "Hugo Authors"
|
||||
title = "Placeholder Text"
|
||||
date = "2019-03-09"
|
||||
description = "Lorem Ipsum Dolor Si Amet"
|
||||
tags = [
|
||||
"markdown",
|
||||
"text",
|
||||
]
|
||||
+++
|
||||
|
||||
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 >}}
|
35
exampleSite/content/posts/rich-content.md
Normal file
35
exampleSite/content/posts/rich-content.md
Normal file
|
@ -0,0 +1,35 @@
|
|||
+++
|
||||
author = "Hugo Authors"
|
||||
title = "Rich Content"
|
||||
date = "2019-03-10"
|
||||
description = "A brief description of Hugo Shortcodes"
|
||||
tags = [
|
||||
"shortcodes",
|
||||
"privacy",
|
||||
]
|
||||
draft = 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 >}}
|
84
exampleSite/content/posts/test.md
Normal file
84
exampleSite/content/posts/test.md
Normal file
|
@ -0,0 +1,84 @@
|
|||
+++
|
||||
author = "Test"
|
||||
title = "Code Content"
|
||||
date = "2021-03-10"
|
||||
description = "A brief description of Hugo Shortcodes"
|
||||
tags = [
|
||||
"shortcodes",
|
||||
"privacy",
|
||||
]
|
||||
draft = true
|
||||
+++
|
||||
|
||||
## t1
|
||||
|
||||
aaaa
|
||||
|
||||
|
||||
Test [aaa](http://example.com) text.
|
||||
|
||||
### t1.1
|
||||
|
||||
aaaa
|
||||
|
||||
|
||||
### t1.2
|
||||
|
||||
aaaa
|
||||
|
||||
|
||||
#### t1.2.1
|
||||
|
||||
aaaa
|
||||
|
||||
|
||||
#### t1.2.2
|
||||
|
||||
aaaa
|
||||
|
||||
|
||||
## t2
|
||||
|
||||
aaaa
|
||||
|
||||
## t3
|
||||
|
||||
1. One<br><br>
|
||||
|
||||
/```
|
||||
testing
|
||||
some
|
||||
code
|
||||
/```
|
||||
|
||||
2. Two<br><br>
|
||||
3. Three<br><br>
|
||||
|
||||
超宽显示 `var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";var a = "text";` 超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示超宽显示 `var a = "text";`
|
||||
|
||||
```
|
||||
2021-08-02 17:51:23.718 ERROR org.apache.flink.runtime.entrypoint.ClusterEntrypoint [] - Fatal error occurred in the cluster entrypoint.
|
||||
org.apache.flink.util.FlinkException: Application failed unexpectedly.
|
||||
at org.apache.flink.client.deployment.application.ApplicationDispatcherBootstrap.lambda$runApplicationAndShutdownClusterAsync$0(ApplicationDispatcherBootstrap.java:170) ~[flink-dist_2.12-1.13.1.jar:1.13.1]
|
||||
at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:836) ~[?:1.8.0_292]
|
||||
at java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:811) ~[?:1.8.0_292]
|
||||
at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488) ~[?:1.8.0_292]
|
||||
at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1990) ~[?:1.8.0_292]
|
||||
at org.apache.flink.client.deployment.application.ApplicationDispatcherBootstrap.runApplicationEntryPoint(ApplicationDispatcherBootstrap.java:257) ~[flink-dist_2.12-1.13.1.jar:1.13.1]
|
||||
at org.apache.flink.client.deployment.application.ApplicationDispatcherBootstrap.lambda$runApplicationAsync$1(ApplicationDispatcherBootstrap.java:212) ~[flink-dist_2.12-1.13.1.jar:1.13.1]
|
||||
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_292]
|
||||
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_292]
|
||||
at org.apache.flink.runtime.concurrent.akka.ActorSystemScheduledExecutorAdapter$ScheduledFutureTask.run(ActorSystemScheduledExecutorAdapter.java:159) [flink-dist_2.12-1.13.1.jar:1.13.1]
|
||||
at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:40) [flink-dist_2.12-1.13.1.jar:1.13.1]
|
||||
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(ForkJoinExecutorConfigurator.scala:44) [flink-dist_2.12-1.13.1.jar:1.13.1]
|
||||
at akka.dispatch.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) [flink-dist_2.12-1.13.1.jar:1.13.1]
|
||||
at akka.dispatch.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) [flink-dist_2.12-1.13.1.jar:1.13.1]
|
||||
at akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) [flink-dist_2.12-1.13.1.jar:1.13.1]
|
||||
```
|
||||
|
||||
|
||||
```
|
||||
test
|
||||
test
|
||||
test
|
||||
```
|
BIN
images/screenshot.png
Normal file
BIN
images/screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 360 KiB |
BIN
images/tn.png
Normal file
BIN
images/tn.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 90 KiB |
359
index.html
359
index.html
|
@ -1,359 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="generator" content="Hugo 0.102.3" />
|
||||
<title>Flat theme</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,minimum-scale=1">
|
||||
|
||||
<link rel="alternate" type="application/rss+xml" href="https://leafee98.github.io/hugo-theme-flat/index.xml" title="Flat theme" />
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/lib/icofont/icofont.min.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/syntax.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/style.css" />
|
||||
<link rel="shortcut icon" href="/hugo-theme-flat/images/favicon.ico" type="image/x-icon" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="header-wrapper">
|
||||
<div class="header">
|
||||
<a class="site-title" href="https://leafee98.github.io/hugo-theme-flat/">Flat theme</a>
|
||||
|
||||
<ul class="menu">
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/posts/">Posts</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/essays/">Essays</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a>Services↓</a>
|
||||
<ul class="sub-menu">
|
||||
|
||||
<li class="menu-item"><a href="#">Service A</a></li>
|
||||
|
||||
<li class="menu-item"><a href="#">Service B</a></li>
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/about/">About</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="main-wrapper">
|
||||
<div class="main">
|
||||
|
||||
|
||||
<div class="max-wrapper">
|
||||
<div id="list-page">
|
||||
|
||||
|
||||
|
||||
<section class="list-item">
|
||||
<h1 class="title"><a href="/hugo-theme-flat/posts/latex-support/">Latex Support</a></h1>
|
||||
|
||||
<div class="tips">
|
||||
<div class="date">
|
||||
<time datetime="2022-09-20 09:36:26 +0800 CST">2022/09/20</time>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="summary"><p>This article contians some test for latex support. Currently the lib used for rendering LaTeX is <a href="https://katex.org/">\(\KaTeX\)</a></p></div>
|
||||
</section>
|
||||
|
||||
<section class="list-item">
|
||||
<h1 class="title"><a href="/hugo-theme-flat/posts/markdown-syntax/">Markdown Syntax Guide</a></h1>
|
||||
|
||||
<div class="tips">
|
||||
<div class="date">
|
||||
<time datetime="2019-03-11 00:00:00 +0000 UTC">2019/03/11</time>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="categories">
|
||||
<span>Categories:</span>
|
||||
|
||||
<a href="/hugo-theme-flat/categories/themes">themes</a>
|
||||
|
||||
<a href="/hugo-theme-flat/categories/syntax">syntax</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="tags">
|
||||
<span>Tags:</span>
|
||||
|
||||
<a href="/hugo-theme-flat/tags/markdown">markdown</a>
|
||||
|
||||
<a href="/hugo-theme-flat/tags/css">css</a>
|
||||
|
||||
<a href="/hugo-theme-flat/tags/html">html</a>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="summary"><p>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.</p></div>
|
||||
</section>
|
||||
|
||||
<section class="list-item">
|
||||
<h1 class="title"><a href="/hugo-theme-flat/posts/placeholder-text/">Placeholder Text</a></h1>
|
||||
|
||||
<div class="tips">
|
||||
<div class="date">
|
||||
<time datetime="2019-03-09 00:00:00 +0000 UTC">2019/03/09</time>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="tags">
|
||||
<span>Tags:</span>
|
||||
|
||||
<a href="/hugo-theme-flat/tags/markdown">markdown</a>
|
||||
|
||||
<a href="/hugo-theme-flat/tags/text">text</a>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="summary"><p>Lorem est tota propiore conpellat pectoribus de pectora summo.</p></div>
|
||||
</section>
|
||||
|
||||
<section class="list-item">
|
||||
<h1 class="title"><a href="/hugo-theme-flat/posts/math-typesetting/">Math Typesetting</a></h1>
|
||||
|
||||
<div class="tips">
|
||||
<div class="date">
|
||||
<time datetime="2019-03-08 00:00:00 +0000 UTC">2019/03/08</time>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="summary"><p>Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries.</p></div>
|
||||
</section>
|
||||
|
||||
<section class="list-item">
|
||||
<h1 class="title"><a href="/hugo-theme-flat/posts/emoji-support/">Emoji Support</a></h1>
|
||||
|
||||
<div class="tips">
|
||||
<div class="date">
|
||||
<time datetime="2019-03-05 00:00:00 +0000 UTC">2019/03/05</time>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="tags">
|
||||
<span>Tags:</span>
|
||||
|
||||
<a href="/hugo-theme-flat/tags/emoji">emoji</a>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="summary"><p>Emoji can be enabled in a Hugo project in a number of ways.</p></div>
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<nav class="pagination">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a class="enabled current" href="/hugo-theme-flat/">1</a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="side">
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Posts</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/latex-support/">Latex Support</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/markdown-syntax/">Markdown Syntax Guide</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/placeholder-text/">Placeholder Text</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/math-typesetting/">Math Typesetting</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/emoji-support/">Emoji Support</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Essays</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/essays/what-is-hugo/">What Is Hugo</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-categories">
|
||||
<h2>Categories</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/syntax">syntax(1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/themes">themes(1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="side-tags">
|
||||
<h2>Tags</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/css">css (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/emoji">emoji (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/html">html (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/markdown">markdown (2)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/text">text (1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
<footer class="footer">
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/posts/index.xml">
|
||||
Feed of Posts
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/essays/index.xml">
|
||||
Feed of Essays
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Copyright <a href="https://creativecommons.org/licenses/by/4.0/">CC BY-4.0</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Powered by <a href="https://gohugo.io">Hugo</a></span>
|
||||
|
||||
|
||||
|
||||
<span class="footer-item">Theme <a href="https://cgit.leafee98.com/hugo-theme-flat.git">hugo-theme-flat</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
245
index.xml
245
index.xml
|
@ -1,245 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>Flat theme</title>
|
||||
<link>https://leafee98.github.io/hugo-theme-flat/</link>
|
||||
<description>Recent content on Flat theme</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<lastBuildDate>Tue, 20 Sep 2022 09:36:26 +0800</lastBuildDate><atom:link href="https://leafee98.github.io/hugo-theme-flat/index.xml" rel="self" type="application/rss+xml" />
|
||||
<item>
|
||||
<title>Latex Support</title>
|
||||
<link>https://leafee98.github.io/hugo-theme-flat/posts/latex-support/</link>
|
||||
<pubDate>Tue, 20 Sep 2022 09:36:26 +0800</pubDate>
|
||||
|
||||
<guid>https://leafee98.github.io/hugo-theme-flat/posts/latex-support/</guid>
|
||||
<description><p>This article contians some test for latex support. Currently the lib used for rendering LaTeX is <a href="https://katex.org/">\(\KaTeX\)</a></p>
|
||||
<p>$$
|
||||
\pi=\int_{-\infty}^\infty\frac{dx}{1+x^2}
|
||||
$$</p>
|
||||
<h2 id="the-code-which-render-the-above">The code which render the above <a href="#the-code-which-render-the-above" class="anchor">🔗</a></h2><pre tabindex="0"><code>This article contians some test for latex support. Currently the lib used for rendering LaTeX is [\\(\KaTeX\\)](https://katex.org/)
|
||||
|
||||
$$
|
||||
\pi=\int_{-\infty}^\infty\frac{dx}{1+x^2}
|
||||
$$
|
||||
|
||||
We support \\(\LaTeX\\) now!
|
||||
</code></pre></description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>What Is Hugo</title>
|
||||
<link>https://leafee98.github.io/hugo-theme-flat/essays/what-is-hugo/</link>
|
||||
<pubDate>Mon, 16 May 2022 21:57:50 +0800</pubDate>
|
||||
|
||||
<guid>https://leafee98.github.io/hugo-theme-flat/essays/what-is-hugo/</guid>
|
||||
<description><p>Hugo is a static site generator written in Go. Originally created by Steve Francia in 2013, Hugo has seen a great increase in both features and performance thanks to current lead developer Bjørn Erik Pedersen (since v0.14 in 2015[4]) and other contributors. Hugo is an open source project licensed under the Apache License 2.0.[5]</p>
|
||||
<p>Being able to generate most websites within seconds (at &lt; 1 ms per page), Hugo&rsquo;s official website states it is &ldquo;the world’s fastest framework for building websites&rdquo;. In July 2015, Netlify began providing Hugo hosting,[6] and in 2017, Smashing Magazine completed its redesign of their website, migrating from WordPress to a JAMstack solution with Hugo.[7]</p>
|
||||
<blockquote>
|
||||
<p>Source: <a href="https://en.wikipedia.org/wiki/Hugo_(software)">https://en.wikipedia.org/wiki/Hugo_(software)</a></p>
|
||||
<p>License: <a href="https://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License">CC-BY-SA 3.0</a></p>
|
||||
</blockquote></description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Markdown Syntax Guide</title>
|
||||
<link>https://leafee98.github.io/hugo-theme-flat/posts/markdown-syntax/</link>
|
||||
<pubDate>Mon, 11 Mar 2019 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>https://leafee98.github.io/hugo-theme-flat/posts/markdown-syntax/</guid>
|
||||
<description><p>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.</p>
|
||||
<h2 id="headings">Headings <a href="#headings" class="anchor">🔗</a></h2><p>The following HTML <code>&lt;h1&gt;</code>—<code>&lt;h6&gt;</code> elements represent six levels of section headings. <code>&lt;h1&gt;</code> is the highest section level while <code>&lt;h6&gt;</code> is the lowest.</p>
|
||||
<h1 id="h1">H1 <a href="#h1" class="anchor">🔗</a></h1><h2 id="h2">H2 <a href="#h2" class="anchor">🔗</a></h2><h3 id="h3">H3 <a href="#h3" class="anchor">🔗</a></h3><h4 id="h4">H4 <a href="#h4" class="anchor">🔗</a></h4><h5 id="h5">H5 <a href="#h5" class="anchor">🔗</a></h5><h6 id="h6">H6 <a href="#h6" class="anchor">🔗</a></h6><h2 id="paragraph">Paragraph <a href="#paragraph" class="anchor">🔗</a></h2><p>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.</p>
|
||||
<p>Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.</p>
|
||||
<h2 id="blockquotes">Blockquotes <a href="#blockquotes" class="anchor">🔗</a></h2><p>The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a <code>footer</code> or <code>cite</code> element, and optionally with in-line changes such as annotations and abbreviations.</p>
|
||||
<h4 id="blockquote-without-attribution">Blockquote without attribution <a href="#blockquote-without-attribution" class="anchor">🔗</a></h4><blockquote>
|
||||
<p>Tiam, ad mint andaepu dandae nostion secatur sequo quae.
|
||||
<strong>Note</strong> that you can use <em>Markdown syntax</em> within a blockquote.</p>
|
||||
</blockquote>
|
||||
<h4 id="blockquote-with-attribution">Blockquote with attribution <a href="#blockquote-with-attribution" class="anchor">🔗</a></h4><blockquote>
|
||||
<p>Don&rsquo;t communicate by sharing memory, share memory by communicating.<!-- raw HTML omitted -->
|
||||
— <!-- raw HTML omitted -->Rob Pike<sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup><!-- raw HTML omitted --></p>
|
||||
</blockquote>
|
||||
<h2 id="tables">Tables <a href="#tables" class="anchor">🔗</a></h2><p>Tables aren&rsquo;t part of the core Markdown spec, but Hugo supports supports them out-of-the-box.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Age</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Bob</td>
|
||||
<td>27</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Alice</td>
|
||||
<td>23</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4 id="inline-markdown-within-tables">Inline Markdown within tables <a href="#inline-markdown-within-tables" class="anchor">🔗</a></h4><table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Italics</th>
|
||||
<th>Bold</th>
|
||||
<th>Code</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><em>italics</em></td>
|
||||
<td><strong>bold</strong></td>
|
||||
<td><code>code</code></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="code-blocks">Code Blocks <a href="#code-blocks" class="anchor">🔗</a></h2><h4 id="code-block-with-backticks">Code block with backticks <a href="#code-block-with-backticks" class="anchor">🔗</a></h4><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="cp">&lt;!doctype html&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">html</span> <span class="na">lang</span><span class="o">=</span><span class="s">&#34;en&#34;</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">head</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">meta</span> <span class="na">charset</span><span class="o">=</span><span class="s">&#34;utf-8&#34;</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">title</span><span class="p">&gt;</span>Example HTML5 Document<span class="p">&lt;/</span><span class="nt">title</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">head</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">body</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>Test<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">body</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">html</span><span class="p">&gt;</span>
|
||||
</span></span></code></pre></div><h4 id="code-block-indented-with-four-spaces">Code block indented with four spaces <a href="#code-block-indented-with-four-spaces" class="anchor">🔗</a></h4><pre><code>&lt;!doctype html&gt;
|
||||
&lt;html lang=&quot;en&quot;&gt;
|
||||
&lt;head&gt;
|
||||
&lt;meta charset=&quot;utf-8&quot;&gt;
|
||||
&lt;title&gt;Example HTML5 Document&lt;/title&gt;
|
||||
&lt;/head&gt;
|
||||
&lt;body&gt;
|
||||
&lt;p&gt;Test&lt;/p&gt;
|
||||
&lt;/body&gt;
|
||||
&lt;/html&gt;
|
||||
</code></pre>
|
||||
<h4 id="code-block-with-hugos-internal-highlight-shortcode">Code block with Hugo&rsquo;s internal highlight shortcode <a href="#code-block-with-hugos-internal-highlight-shortcode" class="anchor">🔗</a></h4><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="cp">&lt;!doctype html&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">html</span> <span class="na">lang</span><span class="o">=</span><span class="s">&#34;en&#34;</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">head</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">meta</span> <span class="na">charset</span><span class="o">=</span><span class="s">&#34;utf-8&#34;</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">title</span><span class="p">&gt;</span>Example HTML5 Document<span class="p">&lt;/</span><span class="nt">title</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">head</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">body</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>Test<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">body</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">html</span><span class="p">&gt;</span></span></span></code></pre></div>
|
||||
<h2 id="list-types">List Types <a href="#list-types" class="anchor">🔗</a></h2><h4 id="ordered-list">Ordered List <a href="#ordered-list" class="anchor">🔗</a></h4><ol>
|
||||
<li>First item</li>
|
||||
<li>Second item</li>
|
||||
<li>Third item</li>
|
||||
</ol>
|
||||
<h4 id="unordered-list">Unordered List <a href="#unordered-list" class="anchor">🔗</a></h4><ul>
|
||||
<li>List item</li>
|
||||
<li>Another item</li>
|
||||
<li>And another item</li>
|
||||
</ul>
|
||||
<h4 id="nested-list">Nested list <a href="#nested-list" class="anchor">🔗</a></h4><ul>
|
||||
<li>Fruit
|
||||
<ul>
|
||||
<li>Apple</li>
|
||||
<li>Orange</li>
|
||||
<li>Banana</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Dairy
|
||||
<ul>
|
||||
<li>Milk</li>
|
||||
<li>Cheese</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<h2 id="other-elements--abbr-sub-sup-kbd-mark">Other Elements — abbr, sub, sup, kbd, mark <a href="#other-elements--abbr-sub-sup-kbd-mark" class="anchor">🔗</a></h2><p><!-- raw HTML omitted -->GIF<!-- raw HTML omitted --> is a bitmap image format.</p>
|
||||
<p>H<!-- raw HTML omitted -->2<!-- raw HTML omitted -->O</p>
|
||||
<p>X<!-- raw HTML omitted -->n<!-- raw HTML omitted --> + Y<!-- raw HTML omitted -->n<!-- raw HTML omitted --> = Z<!-- raw HTML omitted -->n<!-- raw HTML omitted --></p>
|
||||
<p>Press <!-- raw HTML omitted --><!-- raw HTML omitted -->CTRL<!-- raw HTML omitted -->+<!-- raw HTML omitted -->ALT<!-- raw HTML omitted -->+<!-- raw HTML omitted -->Delete<!-- raw HTML omitted --><!-- raw HTML omitted --> to end the session.</p>
|
||||
<p>Most <!-- raw HTML omitted -->salamanders<!-- raw HTML omitted --> are nocturnal, and hunt for insects, worms, and other small creatures.</p>
|
||||
<div class="footnotes" role="doc-endnotes">
|
||||
<hr>
|
||||
<ol>
|
||||
<li id="fn:1">
|
||||
<p>The above quote is excerpted from Rob Pike&rsquo;s <a href="https://www.youtube.com/watch?v=PAAkCSZUG1c">talk</a> during Gopherfest, November 18, 2015.&#160;<a href="#fnref:1" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
|
||||
</li>
|
||||
</ol>
|
||||
</div></description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Placeholder Text</title>
|
||||
<link>https://leafee98.github.io/hugo-theme-flat/posts/placeholder-text/</link>
|
||||
<pubDate>Sat, 09 Mar 2019 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>https://leafee98.github.io/hugo-theme-flat/posts/placeholder-text/</guid>
|
||||
<description><p>Lorem est tota propiore conpellat pectoribus de pectora summo.</p>
|
||||
<p>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.</p>
|
||||
<ol>
|
||||
<li>Exierant elisi ambit vivere dedere</li>
|
||||
<li>Duce pollice</li>
|
||||
<li>Eris modo</li>
|
||||
<li>Spargitque ferrea quos palude</li>
|
||||
</ol>
|
||||
<p>Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis.</p>
|
||||
<ol>
|
||||
<li>Comas hunc haec pietate fetum procerum dixit</li>
|
||||
<li>Post torum vates letum Tiresia</li>
|
||||
<li>Flumen querellas</li>
|
||||
<li>Arcanaque montibus omnes</li>
|
||||
<li>Quidem et</li>
|
||||
</ol>
|
||||
<h1 id="vagus-elidunt">Vagus elidunt <a href="#vagus-elidunt" class="anchor">🔗</a></h1><p><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --></p>
|
||||
<p><a href="https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon">The Van de Graaf Canon</a></p>
|
||||
<h2 id="mane-refeci-capiebant-unda-mulcebat">Mane refeci capiebant unda mulcebat <a href="#mane-refeci-capiebant-unda-mulcebat" class="anchor">🔗</a></h2><p>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. <strong>Faces illo pepulere</strong> tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis.</p>
|
||||
<p>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.</p>
|
||||
<p>Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel <strong>mitis temploque</strong> vocatus, inque alis, <em>oculos nomen</em> 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 <strong>parte</strong>.</p></description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Math Typesetting</title>
|
||||
<link>https://leafee98.github.io/hugo-theme-flat/posts/math-typesetting/</link>
|
||||
<pubDate>Fri, 08 Mar 2019 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>https://leafee98.github.io/hugo-theme-flat/posts/math-typesetting/</guid>
|
||||
<description><p>Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries.</p>
|
||||
<p>In this example we will be using <a href="https://katex.org/">KaTeX</a></p>
|
||||
<ul>
|
||||
<li>Create a partial under <code>/layouts/partials/math.html</code></li>
|
||||
<li>Within this partial reference the <a href="https://katex.org/docs/autorender.html">Auto-render Extension</a> or host these scripts locally.</li>
|
||||
<li>Include the partial in your templates like so:</li>
|
||||
</ul>
|
||||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="o">{{</span> <span class="k">if</span> or .Params.math .Site.Params.math <span class="o">}}</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="o">{{</span> partial <span class="s2">&#34;math.html&#34;</span> . <span class="o">}}</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="o">{{</span> end <span class="o">}}</span>
|
||||
</span></span></code></pre></div><ul>
|
||||
<li>To enable KaTex globally set the parameter <code>math</code> to <code>true</code> in a project&rsquo;s configuration</li>
|
||||
<li>To enable KaTex on a per page basis include the parameter <code>math: true</code> in content files</li>
|
||||
</ul>
|
||||
<p><strong>Note:</strong> Use the online reference of <a href="https://katex.org/docs/supported.html">Supported TeX Functions</a></p>
|
||||
|
||||
<h3 id="examples">Examples <a href="#examples" class="anchor">🔗</a></h3>
|
||||
<p>Block math:
|
||||
$$
|
||||
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
|
||||
$$</p></description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Emoji Support</title>
|
||||
<link>https://leafee98.github.io/hugo-theme-flat/posts/emoji-support/</link>
|
||||
<pubDate>Tue, 05 Mar 2019 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>https://leafee98.github.io/hugo-theme-flat/posts/emoji-support/</guid>
|
||||
<description><p>Emoji can be enabled in a Hugo project in a number of ways.</p>
|
||||
<p>The <a href="https://gohugo.io/functions/emojify/"><code>emojify</code></a> function can be called directly in templates or <a href="https://gohugo.io/templates/shortcode-templates/#inline-shortcodes">Inline Shortcodes</a>.</p>
|
||||
<p>To enable emoji globally, set <code>enableEmoji</code> to <code>true</code> in your site&rsquo;s <a href="https://gohugo.io/getting-started/configuration/">configuration</a> and then you can type emoji shorthand codes directly in content files; e.g.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<p>The <a href="http://www.emoji-cheat-sheet.com/">Emoji cheat sheet</a> is a useful reference for emoji shorthand codes.</p>
|
||||
<hr>
|
||||
<p><strong>N.B.</strong> 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.</p>
|
||||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl">.emoji {
|
||||
</span></span><span class="line"><span class="cl"> font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
|
||||
</span></span><span class="line"><span class="cl">}</span></span></code></pre></div></description>
|
||||
</item>
|
||||
|
||||
</channel>
|
||||
</rss>
|
4
layouts/_default/_markup/render-codeblock-mermaid.html
Normal file
4
layouts/_default/_markup/render-codeblock-mermaid.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
<div class="mermaid">
|
||||
{{- .Inner | safeHTML }}
|
||||
</div>
|
||||
{{ .Page.Store.Set "hasMermaid" true }}
|
1
layouts/_default/_markup/render-heading.html
Normal file
1
layouts/_default/_markup/render-heading.html
Normal file
|
@ -0,0 +1 @@
|
|||
<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }} <a href="#{{ .Anchor | safeURL }}" class="anchor">🔗</a></h{{ .Level }}>
|
23
layouts/_default/baseof.html
Normal file
23
layouts/_default/baseof.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
{{ partial "head.html" . }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{{ partial "header.html" . }}
|
||||
<main class="main-wrapper">
|
||||
<div class="main">
|
||||
{{ block "main" . }}{{ end }}
|
||||
</div>
|
||||
<div class="side">
|
||||
{{ range .Site.Sections }}
|
||||
{{ partial "side-recent.html" . }}
|
||||
{{ end }}
|
||||
{{ partial "side-categories.html" . }}
|
||||
{{ partial "side-tags.html" . }}
|
||||
</div>
|
||||
</main>
|
||||
{{ partial "footer.html" . }}
|
||||
</body>
|
||||
</html>
|
39
layouts/_default/list.html
Normal file
39
layouts/_default/list.html
Normal file
|
@ -0,0 +1,39 @@
|
|||
{{ define "main" }}
|
||||
|
||||
<div>
|
||||
{{ if trim .Content " \n" }}
|
||||
<div class="content archive-hint">{{ .Content }}</div>
|
||||
{{ end }}
|
||||
|
||||
<section id="archive">
|
||||
{{ range .Data.Pages.GroupByDate "2006" }}
|
||||
<div class="group">
|
||||
<h3 class="key">
|
||||
{{ .Key }}
|
||||
</h3>
|
||||
|
||||
{{ range .Pages }}
|
||||
<div class="value">
|
||||
<time class="date" datetime="{{ .PublishDate }}">{{ .PublishDate.Format "01/02" }}</time>
|
||||
|
||||
<div class="title">
|
||||
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
|
||||
{{ with .Params.tags }}
|
||||
{{ range . }}
|
||||
<a class="tags" href="{{ "tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
</section>
|
||||
</div>
|
||||
|
||||
{{ end }}
|
45
layouts/_default/rss.xml
Normal file
45
layouts/_default/rss.xml
Normal file
|
@ -0,0 +1,45 @@
|
|||
{{- $pctx := . -}}
|
||||
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
|
||||
{{- $pages := slice -}}
|
||||
|
||||
{{- if or $.IsHome -}}
|
||||
{{/* remove page at top level from RSS, for exmaple "about" page */}}
|
||||
{{- $pages = where $pctx.RegularPages "Type" "ne" "page" -}}
|
||||
{{- else if $.IsSection -}}
|
||||
{{- $pages = $pctx.RegularPages -}}
|
||||
{{- else -}}
|
||||
{{- $pages = $pctx.Pages -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
||||
{{- if ge $limit 1 -}}
|
||||
{{- $pages = $pages | first $limit -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
||||
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
|
||||
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
|
||||
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
|
||||
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
|
||||
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
|
||||
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
||||
{{- with .OutputFormats.Get "RSS" -}}
|
||||
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
||||
{{- end -}}
|
||||
{{ range $pages }}
|
||||
<item>
|
||||
<title>{{ .Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
||||
<guid>{{ .Permalink }}</guid>
|
||||
<description>{{ .Content | html }}</description>
|
||||
</item>
|
||||
{{ end }}
|
||||
</channel>
|
||||
</rss>
|
48
layouts/_default/single.html
Normal file
48
layouts/_default/single.html
Normal file
|
@ -0,0 +1,48 @@
|
|||
{{ define "main" }}
|
||||
|
||||
<section class="single">
|
||||
<h1 class="title">{{ .Title }}</h1>
|
||||
|
||||
<div class="tip">
|
||||
<time datetime="{{ .PublishDate }}">{{ .PublishDate.Format "2006/01/02" }}</time>
|
||||
<span class="split">·</span>
|
||||
<span> {{ .WordCount }} words </span>
|
||||
<span class="split">·</span>
|
||||
<span>
|
||||
{{ .ReadingTime }} minutes to read
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="taxonomies">
|
||||
{{ with .Params.categories }}
|
||||
<div>
|
||||
Categories:
|
||||
{{ range . }}
|
||||
<a href="{{ "categories/" | relURL }}{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Params.tags }}
|
||||
<div>
|
||||
Tags:
|
||||
{{ range . }}
|
||||
<a href="{{ "tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
{{ with and .Site.Params.remark42 .Params.show_comments }}
|
||||
<hr />
|
||||
{{ partial "comment.html" . }}
|
||||
{{ end }}
|
||||
</section>
|
||||
|
||||
{{ end }}
|
14
layouts/_default/taxonomy.html
Normal file
14
layouts/_default/taxonomy.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
{{ define "main" }}
|
||||
<section id="tags">
|
||||
{{ $data := .Data }}
|
||||
{{ range $key, $value := .Data.Terms.ByCount }}
|
||||
{{ if $value.Name}}
|
||||
<span class="tag">
|
||||
<a href="{{ $value.Name | urlize }}">
|
||||
{{ $value.Name }} <span>({{ $value.Count }})</span>
|
||||
</a>
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ end }}
|
39
layouts/_default/term.html
Normal file
39
layouts/_default/term.html
Normal file
|
@ -0,0 +1,39 @@
|
|||
{{ define "main" }}
|
||||
|
||||
<div>
|
||||
{{ if trim .Content " \n" }}
|
||||
<div class="content archive-hint">{{ .Content }}</div>
|
||||
{{ end }}
|
||||
|
||||
<section id="archive">
|
||||
{{ range .Data.Pages.GroupByDate "2006" }}
|
||||
<div class="group">
|
||||
<h3 class="key">
|
||||
{{ .Key }}
|
||||
</h3>
|
||||
|
||||
{{ range .Pages }}
|
||||
<div class="value">
|
||||
<time class="date" datetime="{{ .PublishDate }}">{{ .PublishDate.Format "01/02" }}</time>
|
||||
|
||||
<div class="title">
|
||||
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
|
||||
{{ with .Params.tags }}
|
||||
{{ range . }}
|
||||
<a class="tags" href="{{ "tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
</section>
|
||||
</div>
|
||||
|
||||
{{ end }}
|
48
layouts/index.html
Normal file
48
layouts/index.html
Normal file
|
@ -0,0 +1,48 @@
|
|||
{{ define "main" }}
|
||||
|
||||
<div class="max-wrapper">
|
||||
<div id="list-page">
|
||||
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
|
||||
{{ $paginator := .Paginate $pages }}
|
||||
{{ range $paginator.Pages }}
|
||||
<section class="list-item">
|
||||
<h1 class="title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h1>
|
||||
|
||||
<div class="tips">
|
||||
<div class="date">
|
||||
<time datetime="{{ .PublishDate }}">{{ .PublishDate.Format "2006/01/02" }}</time>
|
||||
</div>
|
||||
|
||||
{{ with .Params.Categories }}
|
||||
<div class="categories">
|
||||
<span>Categories:</span>
|
||||
{{ range first 2 . }}
|
||||
<a href="{{ "categories/" | relURL }}{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Params.Tags }}
|
||||
<div class="tags">
|
||||
<span>Tags:</span>
|
||||
{{ range first 5 . }}
|
||||
<a href="{{ "tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="summary">
|
||||
{{ with .Description }}
|
||||
{{ . }}
|
||||
{{ else }}
|
||||
{{ .Summary }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
{{ partial "pagination.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
1
layouts/partials/comment.html
Normal file
1
layouts/partials/comment.html
Normal file
|
@ -0,0 +1 @@
|
|||
<div class="commenting" id="remark42"></div>
|
35
layouts/partials/footer.html
Normal file
35
layouts/partials/footer.html
Normal file
|
@ -0,0 +1,35 @@
|
|||
<footer class="footer">
|
||||
<div class="footer-row">
|
||||
{{ range .Site.Sections }}
|
||||
{{ $section := . }}
|
||||
{{ with .OutputFormats.Get "rss" }}
|
||||
<a class="footer-item" href="{{ .Permalink }}">
|
||||
Feed of {{ $section.Section | humanize }}
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if not (or .IsHome .IsSection) }}
|
||||
{{ $term := . }}
|
||||
{{ with .OutputFormats.Get "rss" }}
|
||||
<a class="footer-item" href="{{ .Permalink }}">
|
||||
Feed of "{{ $term.Title }}"
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ range .Site.Params.footer_rows }}
|
||||
<div class="footer-row">
|
||||
{{ range .items }}
|
||||
{{ with .pre }}
|
||||
<span class="footer-item">{{ . | safeHTML }}</span>
|
||||
{{ else }}
|
||||
<a class="footer-item" href="{{ .url }}">{{ .name }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</footer>
|
80
layouts/partials/head.html
Normal file
80
layouts/partials/head.html
Normal file
|
@ -0,0 +1,80 @@
|
|||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,minimum-scale=1">
|
||||
|
||||
|
||||
{{ $title := .Site.Title -}}
|
||||
{{ if .Params.Title -}}
|
||||
{{ $title = printf "%s | %s" .Params.Title $title -}}
|
||||
{{ end -}}
|
||||
|
||||
{{ $description := "" -}}
|
||||
{{ if .IsHome -}}
|
||||
{{ with .Site.Params.description }}{{ $description = . }}{{ end -}}
|
||||
{{ else if .IsPage -}}
|
||||
{{ if .Description -}}
|
||||
{{ $description = .Description -}}
|
||||
{{ else -}}
|
||||
{{ $description = .Summary -}}
|
||||
{{ end -}}
|
||||
{{ end }}
|
||||
|
||||
<title>{{ $title }}</title>
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
{{ if $description -}}
|
||||
<meta name="description" content="{{ $description }}" />
|
||||
{{ end -}}
|
||||
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:title" content="{{ $title }}" />
|
||||
<meta property="og:url" content="{{ .Permalink }}" />
|
||||
{{ if $description -}}
|
||||
<meta property="og:description" content="{{ $description }}" />
|
||||
{{ end -}}
|
||||
|
||||
|
||||
{{ range .AlternativeOutputFormats -}}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end -}}
|
||||
|
||||
{{/* load mermaid if any mermaid code block */}}
|
||||
{{ if .Page.Store.Get "hasMermaid" }}
|
||||
<script src="{{ "js/meraid-9.0.0.min.js" | relURL }}"></script>
|
||||
<script>mermaid.initialize({ startOnLoad: true });</script>
|
||||
{{ end }}
|
||||
|
||||
{{/* load katex if enabled on front matter */}}
|
||||
{{ if .Params.katex }}
|
||||
<link rel="stylesheet" href="{{ "lib/katex/katex.min.css" | relURL }}">
|
||||
|
||||
<!-- The loading of KaTeX is deferred to speed up page rendering -->
|
||||
<script defer src="{{ "lib/katex/katex.min.js" | relURL }}"></script>
|
||||
|
||||
<!-- To automatically render math in text elements, include the auto-render extension: -->
|
||||
<script defer src="{{ "lib/katex/contrib/auto-render.min.js" | relURL }}"
|
||||
onload="renderMathInElement(document.querySelector('body .single .content'));"></script>
|
||||
{{ end }}
|
||||
|
||||
{{ with and .Site.Params.remark42 .Params.show_comments }}
|
||||
{{ $remark42 := $.Site.Params.remark42 }}
|
||||
<script>
|
||||
var remark_config = {
|
||||
host: '{{ $remark42.host }}',
|
||||
site_id: '{{ $remark42.site_id }}',
|
||||
components: ['embed', 'last-comments'],
|
||||
max_shown_comments: {{ $remark42.max_shown_comments }},
|
||||
theme: '{{ $remark42.theme }}',
|
||||
page_title: '{{ $remark42.Title }}',
|
||||
locale: '{{ $remark42.locale }}',
|
||||
show_email_subscription: {{ $remark42.show_email_subscription }},
|
||||
simple_view: {{ $remark42.simple_view }}
|
||||
};
|
||||
|
||||
!function(e,n){for(var o=0;o<e.length;o++){var r=n.createElement("script"),c=".js",d=n.head||n.body;"noModule"in r?(r.type="module",c=".mjs"):r.async=!0,r.defer=!0,r.src=remark_config.host+"/web/"+e[o]+c,d.appendChild(r)}}(remark_config.components||["embed"],document);
|
||||
</script>
|
||||
{{ end }}
|
||||
|
||||
<link rel="stylesheet" href="{{ "lib/icofont/icofont.min.css" | relURL }}" />
|
||||
<link rel="stylesheet" href="{{ "css/syntax.css" | relURL }}" />
|
||||
<link rel="stylesheet" href="{{ "css/style.css" | relURL }}" />
|
||||
<script src="{{ "js/copy-code-block.js" | relURL }}"></script>
|
||||
<link rel="shortcut icon" href="{{ "images/favicon.ico" | relURL }}" type="image/x-icon" />
|
22
layouts/partials/header.html
Normal file
22
layouts/partials/header.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<header class="header-wrapper">
|
||||
<div class="header">
|
||||
<a class="site-title" href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
|
||||
|
||||
<nav class="menu">
|
||||
{{ range .Site.Menus.main }}
|
||||
<div class="menu-item">
|
||||
{{ if not .Children }}
|
||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||
{{ else }}
|
||||
<a>{{ .Name }}↓</a>
|
||||
<nav class="sub-menu">
|
||||
{{ range .Children }}
|
||||
<div class="menu-item"><a href="{{ .URL }}">{{ .Name }}</a></div>
|
||||
{{ end }}
|
||||
</nav>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
31
layouts/partials/pagination.html
Normal file
31
layouts/partials/pagination.html
Normal file
|
@ -0,0 +1,31 @@
|
|||
{{ $pag := $.Paginator }}
|
||||
|
||||
<nav class="pagination">
|
||||
|
||||
{{ $size := 2 }}
|
||||
{{ $current := $pag.PageNumber}}
|
||||
{{ $total := $pag.TotalPages}}
|
||||
{{ $prev := 0 }}
|
||||
{{ range $pag.Pagers }}
|
||||
{{ if or ( and ( ge .PageNumber (sub $current $size) )
|
||||
( le .PageNumber (add $current $size) )
|
||||
)
|
||||
(or (eq .PageNumber 1)
|
||||
(eq .PageNumber $total)
|
||||
)
|
||||
}}
|
||||
{{ if not (eq .PageNumber (add $prev 1) ) }}
|
||||
<span>··</span>
|
||||
{{ end }}
|
||||
{{ $prev = .PageNumber }}
|
||||
|
||||
{{ if eq .PageNumber $current }}
|
||||
<a class="enabled current" href="{{ .URL }}">{{ .PageNumber }}</a>
|
||||
{{ else }}
|
||||
<a class="enabled" href="{{ .URL }}">{{ .PageNumber }}</a>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
</nav>
|
12
layouts/partials/side-categories.html
Normal file
12
layouts/partials/side-categories.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<div class="side-categories">
|
||||
<h2>Categories</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
{{ range $key, $_ := .Site.Taxonomies.categories }}
|
||||
<li>
|
||||
<a href="{{ "categories/" | relURL }}{{ $key | urlize }}">{{ $key }}({{ .Count }})</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
14
layouts/partials/side-recent.html
Normal file
14
layouts/partials/side-recent.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<div class="side-recent">
|
||||
<h2 class="side-title">
|
||||
<a href="{{ .RelPermalink }}">Recent {{ .Section | humanize }}</a>
|
||||
</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
{{ range first 5 .RegularPages.ByDate.Reverse }}
|
||||
<li>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
12
layouts/partials/side-tags.html
Normal file
12
layouts/partials/side-tags.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<div class="side-tags">
|
||||
<h2>Tags</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
{{ range .Site.Taxonomies.tags.Alphabetical }}
|
||||
<li>
|
||||
<a href="{{ "tags/" | relURL }}{{ .Name | urlize }}">{{ .Name }} ({{ .Count }})</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
4
layouts/robots.txt
Normal file
4
layouts/robots.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
User-agent: *
|
||||
Allow: *
|
||||
|
||||
Sitemap: {{ .Site.BaseURL }}sitemap.xml
|
|
@ -1,10 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>https://leafee98.github.io/hugo-theme-flat/</title>
|
||||
<link rel="canonical" href="https://leafee98.github.io/hugo-theme-flat/">
|
||||
<meta name="robots" content="noindex">
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="refresh" content="0; url=https://leafee98.github.io/hugo-theme-flat/">
|
||||
</head>
|
||||
</html>
|
|
@ -1,259 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Emoji Support | Flat theme</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,minimum-scale=1">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/lib/icofont/icofont.min.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/syntax.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/style.css" />
|
||||
<link rel="shortcut icon" href="/hugo-theme-flat/images/favicon.ico" type="image/x-icon" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="header-wrapper">
|
||||
<div class="header">
|
||||
<a class="site-title" href="https://leafee98.github.io/hugo-theme-flat/">Flat theme</a>
|
||||
|
||||
<ul class="menu">
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/posts/">Posts</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/essays/">Essays</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a>Services↓</a>
|
||||
<ul class="sub-menu">
|
||||
|
||||
<li class="menu-item"><a href="#">Service A</a></li>
|
||||
|
||||
<li class="menu-item"><a href="#">Service B</a></li>
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/about/">About</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="main-wrapper">
|
||||
<div class="main">
|
||||
|
||||
|
||||
<section class="single">
|
||||
<h1 class="title">Emoji Support</h1>
|
||||
|
||||
<div class="tip">
|
||||
<time datetime="2019-03-05 00:00:00 +0000 UTC">2019/03/05</time>
|
||||
<span class="split">·</span>
|
||||
<span> 123 words </span>
|
||||
<span class="split">·</span>
|
||||
<span>
|
||||
1 minutes to read
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="taxonomies">
|
||||
|
||||
|
||||
|
||||
<div>
|
||||
Tags:
|
||||
|
||||
<a href="/hugo-theme-flat/tags/emoji">emoji</a>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="content">
|
||||
<p>Emoji can be enabled in a Hugo project in a number of ways.</p>
|
||||
<p>The <a href="https://gohugo.io/functions/emojify/"><code>emojify</code></a> function can be called directly in templates or <a href="https://gohugo.io/templates/shortcode-templates/#inline-shortcodes">Inline Shortcodes</a>.</p>
|
||||
<p>To enable emoji globally, set <code>enableEmoji</code> to <code>true</code> in your site’s <a href="https://gohugo.io/getting-started/configuration/">configuration</a> and then you can type emoji shorthand codes directly in content files; e.g.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<p>The <a href="http://www.emoji-cheat-sheet.com/">Emoji cheat sheet</a> is a useful reference for emoji shorthand codes.</p>
|
||||
<hr>
|
||||
<p><strong>N.B.</strong> 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.</p>
|
||||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl">.emoji {
|
||||
</span></span><span class="line"><span class="cl"> font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
|
||||
</span></span><span class="line"><span class="cl">}</span></span></code></pre></div>
|
||||
</div>
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="side">
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Posts</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/latex-support/">Latex Support</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/markdown-syntax/">Markdown Syntax Guide</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/placeholder-text/">Placeholder Text</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/math-typesetting/">Math Typesetting</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/emoji-support/">Emoji Support</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Essays</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/essays/what-is-hugo/">What Is Hugo</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-categories">
|
||||
<h2>Categories</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/syntax">syntax(1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/themes">themes(1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="side-tags">
|
||||
<h2>Tags</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/css">css (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/emoji">emoji (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/html">html (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/markdown">markdown (2)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/text">text (1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
<footer class="footer">
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/posts/index.xml">
|
||||
Feed of Posts
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/essays/index.xml">
|
||||
Feed of Essays
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Copyright <a href="https://creativecommons.org/licenses/by/4.0/">CC BY-4.0</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Powered by <a href="https://gohugo.io">Hugo</a></span>
|
||||
|
||||
|
||||
|
||||
<span class="footer-item">Theme <a href="https://cgit.leafee98.com/hugo-theme-flat.git">hugo-theme-flat</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
318
posts/index.html
318
posts/index.html
|
@ -1,318 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Posts | Flat theme</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,minimum-scale=1">
|
||||
|
||||
<link rel="alternate" type="application/rss+xml" href="https://leafee98.github.io/hugo-theme-flat/posts/index.xml" title="Flat theme" />
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/lib/icofont/icofont.min.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/syntax.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/style.css" />
|
||||
<link rel="shortcut icon" href="/hugo-theme-flat/images/favicon.ico" type="image/x-icon" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="header-wrapper">
|
||||
<div class="header">
|
||||
<a class="site-title" href="https://leafee98.github.io/hugo-theme-flat/">Flat theme</a>
|
||||
|
||||
<ul class="menu">
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/posts/">Posts</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/essays/">Essays</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a>Services↓</a>
|
||||
<ul class="sub-menu">
|
||||
|
||||
<li class="menu-item"><a href="#">Service A</a></li>
|
||||
|
||||
<li class="menu-item"><a href="#">Service B</a></li>
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/about/">About</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="main-wrapper">
|
||||
<div class="main">
|
||||
|
||||
|
||||
<div>
|
||||
|
||||
|
||||
<section id="archive">
|
||||
|
||||
<div class="group">
|
||||
<h3 class="key">
|
||||
2022
|
||||
</h3>
|
||||
|
||||
|
||||
<div class="value">
|
||||
<time class="date" datetime="2022-09-20 09:36:26 +0800 CST">09/20</time>
|
||||
|
||||
<div class="title">
|
||||
|
||||
<a href="https://leafee98.github.io/hugo-theme-flat/posts/latex-support/">Latex Support</a>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="group">
|
||||
<h3 class="key">
|
||||
2019
|
||||
</h3>
|
||||
|
||||
|
||||
<div class="value">
|
||||
<time class="date" datetime="2019-03-11 00:00:00 +0000 UTC">03/11</time>
|
||||
|
||||
<div class="title">
|
||||
|
||||
<a href="https://leafee98.github.io/hugo-theme-flat/posts/markdown-syntax/">Markdown Syntax Guide</a>
|
||||
|
||||
|
||||
|
||||
<a class="tags" href="/hugo-theme-flat/tags/markdown">markdown</a>
|
||||
|
||||
<a class="tags" href="/hugo-theme-flat/tags/css">css</a>
|
||||
|
||||
<a class="tags" href="/hugo-theme-flat/tags/html">html</a>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="value">
|
||||
<time class="date" datetime="2019-03-09 00:00:00 +0000 UTC">03/09</time>
|
||||
|
||||
<div class="title">
|
||||
|
||||
<a href="https://leafee98.github.io/hugo-theme-flat/posts/placeholder-text/">Placeholder Text</a>
|
||||
|
||||
|
||||
|
||||
<a class="tags" href="/hugo-theme-flat/tags/markdown">markdown</a>
|
||||
|
||||
<a class="tags" href="/hugo-theme-flat/tags/text">text</a>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="value">
|
||||
<time class="date" datetime="2019-03-08 00:00:00 +0000 UTC">03/08</time>
|
||||
|
||||
<div class="title">
|
||||
|
||||
<a href="https://leafee98.github.io/hugo-theme-flat/posts/math-typesetting/">Math Typesetting</a>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="value">
|
||||
<time class="date" datetime="2019-03-05 00:00:00 +0000 UTC">03/05</time>
|
||||
|
||||
<div class="title">
|
||||
|
||||
<a href="https://leafee98.github.io/hugo-theme-flat/posts/emoji-support/">Emoji Support</a>
|
||||
|
||||
|
||||
|
||||
<a class="tags" href="/hugo-theme-flat/tags/emoji">emoji</a>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="side">
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Posts</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/latex-support/">Latex Support</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/markdown-syntax/">Markdown Syntax Guide</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/placeholder-text/">Placeholder Text</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/math-typesetting/">Math Typesetting</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/emoji-support/">Emoji Support</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Essays</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/essays/what-is-hugo/">What Is Hugo</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-categories">
|
||||
<h2>Categories</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/syntax">syntax(1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/themes">themes(1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="side-tags">
|
||||
<h2>Tags</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/css">css (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/emoji">emoji (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/html">html (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/markdown">markdown (2)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/text">text (1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
<footer class="footer">
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/posts/index.xml">
|
||||
Feed of Posts
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/essays/index.xml">
|
||||
Feed of Essays
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Copyright <a href="https://creativecommons.org/licenses/by/4.0/">CC BY-4.0</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Powered by <a href="https://gohugo.io">Hugo</a></span>
|
||||
|
||||
|
||||
|
||||
<span class="footer-item">Theme <a href="https://cgit.leafee98.com/hugo-theme-flat.git">hugo-theme-flat</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
231
posts/index.xml
231
posts/index.xml
|
@ -1,231 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>Posts on Flat theme</title>
|
||||
<link>https://leafee98.github.io/hugo-theme-flat/posts/</link>
|
||||
<description>Recent content in Posts on Flat theme</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<lastBuildDate>Wed, 18 May 2022 11:22:44 +0800</lastBuildDate><atom:link href="https://leafee98.github.io/hugo-theme-flat/posts/index.xml" rel="self" type="application/rss+xml" />
|
||||
<item>
|
||||
<title>Latex Support</title>
|
||||
<link>https://leafee98.github.io/hugo-theme-flat/posts/latex-support/</link>
|
||||
<pubDate>Tue, 20 Sep 2022 09:36:26 +0800</pubDate>
|
||||
|
||||
<guid>https://leafee98.github.io/hugo-theme-flat/posts/latex-support/</guid>
|
||||
<description><p>This article contians some test for latex support. Currently the lib used for rendering LaTeX is <a href="https://katex.org/">\(\KaTeX\)</a></p>
|
||||
<p>$$
|
||||
\pi=\int_{-\infty}^\infty\frac{dx}{1+x^2}
|
||||
$$</p>
|
||||
<h2 id="the-code-which-render-the-above">The code which render the above <a href="#the-code-which-render-the-above" class="anchor">🔗</a></h2><pre tabindex="0"><code>This article contians some test for latex support. Currently the lib used for rendering LaTeX is [\\(\KaTeX\\)](https://katex.org/)
|
||||
|
||||
$$
|
||||
\pi=\int_{-\infty}^\infty\frac{dx}{1+x^2}
|
||||
$$
|
||||
|
||||
We support \\(\LaTeX\\) now!
|
||||
</code></pre></description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Markdown Syntax Guide</title>
|
||||
<link>https://leafee98.github.io/hugo-theme-flat/posts/markdown-syntax/</link>
|
||||
<pubDate>Mon, 11 Mar 2019 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>https://leafee98.github.io/hugo-theme-flat/posts/markdown-syntax/</guid>
|
||||
<description><p>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.</p>
|
||||
<h2 id="headings">Headings <a href="#headings" class="anchor">🔗</a></h2><p>The following HTML <code>&lt;h1&gt;</code>—<code>&lt;h6&gt;</code> elements represent six levels of section headings. <code>&lt;h1&gt;</code> is the highest section level while <code>&lt;h6&gt;</code> is the lowest.</p>
|
||||
<h1 id="h1">H1 <a href="#h1" class="anchor">🔗</a></h1><h2 id="h2">H2 <a href="#h2" class="anchor">🔗</a></h2><h3 id="h3">H3 <a href="#h3" class="anchor">🔗</a></h3><h4 id="h4">H4 <a href="#h4" class="anchor">🔗</a></h4><h5 id="h5">H5 <a href="#h5" class="anchor">🔗</a></h5><h6 id="h6">H6 <a href="#h6" class="anchor">🔗</a></h6><h2 id="paragraph">Paragraph <a href="#paragraph" class="anchor">🔗</a></h2><p>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.</p>
|
||||
<p>Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.</p>
|
||||
<h2 id="blockquotes">Blockquotes <a href="#blockquotes" class="anchor">🔗</a></h2><p>The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a <code>footer</code> or <code>cite</code> element, and optionally with in-line changes such as annotations and abbreviations.</p>
|
||||
<h4 id="blockquote-without-attribution">Blockquote without attribution <a href="#blockquote-without-attribution" class="anchor">🔗</a></h4><blockquote>
|
||||
<p>Tiam, ad mint andaepu dandae nostion secatur sequo quae.
|
||||
<strong>Note</strong> that you can use <em>Markdown syntax</em> within a blockquote.</p>
|
||||
</blockquote>
|
||||
<h4 id="blockquote-with-attribution">Blockquote with attribution <a href="#blockquote-with-attribution" class="anchor">🔗</a></h4><blockquote>
|
||||
<p>Don&rsquo;t communicate by sharing memory, share memory by communicating.<!-- raw HTML omitted -->
|
||||
— <!-- raw HTML omitted -->Rob Pike<sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup><!-- raw HTML omitted --></p>
|
||||
</blockquote>
|
||||
<h2 id="tables">Tables <a href="#tables" class="anchor">🔗</a></h2><p>Tables aren&rsquo;t part of the core Markdown spec, but Hugo supports supports them out-of-the-box.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Age</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Bob</td>
|
||||
<td>27</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Alice</td>
|
||||
<td>23</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4 id="inline-markdown-within-tables">Inline Markdown within tables <a href="#inline-markdown-within-tables" class="anchor">🔗</a></h4><table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Italics</th>
|
||||
<th>Bold</th>
|
||||
<th>Code</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><em>italics</em></td>
|
||||
<td><strong>bold</strong></td>
|
||||
<td><code>code</code></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="code-blocks">Code Blocks <a href="#code-blocks" class="anchor">🔗</a></h2><h4 id="code-block-with-backticks">Code block with backticks <a href="#code-block-with-backticks" class="anchor">🔗</a></h4><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="cp">&lt;!doctype html&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">html</span> <span class="na">lang</span><span class="o">=</span><span class="s">&#34;en&#34;</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">head</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">meta</span> <span class="na">charset</span><span class="o">=</span><span class="s">&#34;utf-8&#34;</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">title</span><span class="p">&gt;</span>Example HTML5 Document<span class="p">&lt;/</span><span class="nt">title</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">head</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">body</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>Test<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">body</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">html</span><span class="p">&gt;</span>
|
||||
</span></span></code></pre></div><h4 id="code-block-indented-with-four-spaces">Code block indented with four spaces <a href="#code-block-indented-with-four-spaces" class="anchor">🔗</a></h4><pre><code>&lt;!doctype html&gt;
|
||||
&lt;html lang=&quot;en&quot;&gt;
|
||||
&lt;head&gt;
|
||||
&lt;meta charset=&quot;utf-8&quot;&gt;
|
||||
&lt;title&gt;Example HTML5 Document&lt;/title&gt;
|
||||
&lt;/head&gt;
|
||||
&lt;body&gt;
|
||||
&lt;p&gt;Test&lt;/p&gt;
|
||||
&lt;/body&gt;
|
||||
&lt;/html&gt;
|
||||
</code></pre>
|
||||
<h4 id="code-block-with-hugos-internal-highlight-shortcode">Code block with Hugo&rsquo;s internal highlight shortcode <a href="#code-block-with-hugos-internal-highlight-shortcode" class="anchor">🔗</a></h4><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="cp">&lt;!doctype html&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">html</span> <span class="na">lang</span><span class="o">=</span><span class="s">&#34;en&#34;</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">head</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">meta</span> <span class="na">charset</span><span class="o">=</span><span class="s">&#34;utf-8&#34;</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">title</span><span class="p">&gt;</span>Example HTML5 Document<span class="p">&lt;/</span><span class="nt">title</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">head</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">body</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span>Test<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">body</span><span class="p">&gt;</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">html</span><span class="p">&gt;</span></span></span></code></pre></div>
|
||||
<h2 id="list-types">List Types <a href="#list-types" class="anchor">🔗</a></h2><h4 id="ordered-list">Ordered List <a href="#ordered-list" class="anchor">🔗</a></h4><ol>
|
||||
<li>First item</li>
|
||||
<li>Second item</li>
|
||||
<li>Third item</li>
|
||||
</ol>
|
||||
<h4 id="unordered-list">Unordered List <a href="#unordered-list" class="anchor">🔗</a></h4><ul>
|
||||
<li>List item</li>
|
||||
<li>Another item</li>
|
||||
<li>And another item</li>
|
||||
</ul>
|
||||
<h4 id="nested-list">Nested list <a href="#nested-list" class="anchor">🔗</a></h4><ul>
|
||||
<li>Fruit
|
||||
<ul>
|
||||
<li>Apple</li>
|
||||
<li>Orange</li>
|
||||
<li>Banana</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Dairy
|
||||
<ul>
|
||||
<li>Milk</li>
|
||||
<li>Cheese</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<h2 id="other-elements--abbr-sub-sup-kbd-mark">Other Elements — abbr, sub, sup, kbd, mark <a href="#other-elements--abbr-sub-sup-kbd-mark" class="anchor">🔗</a></h2><p><!-- raw HTML omitted -->GIF<!-- raw HTML omitted --> is a bitmap image format.</p>
|
||||
<p>H<!-- raw HTML omitted -->2<!-- raw HTML omitted -->O</p>
|
||||
<p>X<!-- raw HTML omitted -->n<!-- raw HTML omitted --> + Y<!-- raw HTML omitted -->n<!-- raw HTML omitted --> = Z<!-- raw HTML omitted -->n<!-- raw HTML omitted --></p>
|
||||
<p>Press <!-- raw HTML omitted --><!-- raw HTML omitted -->CTRL<!-- raw HTML omitted -->+<!-- raw HTML omitted -->ALT<!-- raw HTML omitted -->+<!-- raw HTML omitted -->Delete<!-- raw HTML omitted --><!-- raw HTML omitted --> to end the session.</p>
|
||||
<p>Most <!-- raw HTML omitted -->salamanders<!-- raw HTML omitted --> are nocturnal, and hunt for insects, worms, and other small creatures.</p>
|
||||
<div class="footnotes" role="doc-endnotes">
|
||||
<hr>
|
||||
<ol>
|
||||
<li id="fn:1">
|
||||
<p>The above quote is excerpted from Rob Pike&rsquo;s <a href="https://www.youtube.com/watch?v=PAAkCSZUG1c">talk</a> during Gopherfest, November 18, 2015.&#160;<a href="#fnref:1" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
|
||||
</li>
|
||||
</ol>
|
||||
</div></description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Placeholder Text</title>
|
||||
<link>https://leafee98.github.io/hugo-theme-flat/posts/placeholder-text/</link>
|
||||
<pubDate>Sat, 09 Mar 2019 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>https://leafee98.github.io/hugo-theme-flat/posts/placeholder-text/</guid>
|
||||
<description><p>Lorem est tota propiore conpellat pectoribus de pectora summo.</p>
|
||||
<p>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.</p>
|
||||
<ol>
|
||||
<li>Exierant elisi ambit vivere dedere</li>
|
||||
<li>Duce pollice</li>
|
||||
<li>Eris modo</li>
|
||||
<li>Spargitque ferrea quos palude</li>
|
||||
</ol>
|
||||
<p>Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis.</p>
|
||||
<ol>
|
||||
<li>Comas hunc haec pietate fetum procerum dixit</li>
|
||||
<li>Post torum vates letum Tiresia</li>
|
||||
<li>Flumen querellas</li>
|
||||
<li>Arcanaque montibus omnes</li>
|
||||
<li>Quidem et</li>
|
||||
</ol>
|
||||
<h1 id="vagus-elidunt">Vagus elidunt <a href="#vagus-elidunt" class="anchor">🔗</a></h1><p><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --></p>
|
||||
<p><a href="https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon">The Van de Graaf Canon</a></p>
|
||||
<h2 id="mane-refeci-capiebant-unda-mulcebat">Mane refeci capiebant unda mulcebat <a href="#mane-refeci-capiebant-unda-mulcebat" class="anchor">🔗</a></h2><p>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. <strong>Faces illo pepulere</strong> tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis.</p>
|
||||
<p>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.</p>
|
||||
<p>Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel <strong>mitis temploque</strong> vocatus, inque alis, <em>oculos nomen</em> 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 <strong>parte</strong>.</p></description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Math Typesetting</title>
|
||||
<link>https://leafee98.github.io/hugo-theme-flat/posts/math-typesetting/</link>
|
||||
<pubDate>Fri, 08 Mar 2019 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>https://leafee98.github.io/hugo-theme-flat/posts/math-typesetting/</guid>
|
||||
<description><p>Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries.</p>
|
||||
<p>In this example we will be using <a href="https://katex.org/">KaTeX</a></p>
|
||||
<ul>
|
||||
<li>Create a partial under <code>/layouts/partials/math.html</code></li>
|
||||
<li>Within this partial reference the <a href="https://katex.org/docs/autorender.html">Auto-render Extension</a> or host these scripts locally.</li>
|
||||
<li>Include the partial in your templates like so:</li>
|
||||
</ul>
|
||||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="o">{{</span> <span class="k">if</span> or .Params.math .Site.Params.math <span class="o">}}</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="o">{{</span> partial <span class="s2">&#34;math.html&#34;</span> . <span class="o">}}</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="o">{{</span> end <span class="o">}}</span>
|
||||
</span></span></code></pre></div><ul>
|
||||
<li>To enable KaTex globally set the parameter <code>math</code> to <code>true</code> in a project&rsquo;s configuration</li>
|
||||
<li>To enable KaTex on a per page basis include the parameter <code>math: true</code> in content files</li>
|
||||
</ul>
|
||||
<p><strong>Note:</strong> Use the online reference of <a href="https://katex.org/docs/supported.html">Supported TeX Functions</a></p>
|
||||
|
||||
<h3 id="examples">Examples <a href="#examples" class="anchor">🔗</a></h3>
|
||||
<p>Block math:
|
||||
$$
|
||||
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
|
||||
$$</p></description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Emoji Support</title>
|
||||
<link>https://leafee98.github.io/hugo-theme-flat/posts/emoji-support/</link>
|
||||
<pubDate>Tue, 05 Mar 2019 00:00:00 +0000</pubDate>
|
||||
|
||||
<guid>https://leafee98.github.io/hugo-theme-flat/posts/emoji-support/</guid>
|
||||
<description><p>Emoji can be enabled in a Hugo project in a number of ways.</p>
|
||||
<p>The <a href="https://gohugo.io/functions/emojify/"><code>emojify</code></a> function can be called directly in templates or <a href="https://gohugo.io/templates/shortcode-templates/#inline-shortcodes">Inline Shortcodes</a>.</p>
|
||||
<p>To enable emoji globally, set <code>enableEmoji</code> to <code>true</code> in your site&rsquo;s <a href="https://gohugo.io/getting-started/configuration/">configuration</a> and then you can type emoji shorthand codes directly in content files; e.g.</p>
|
||||
<!-- raw HTML omitted -->
|
||||
<p>The <a href="http://www.emoji-cheat-sheet.com/">Emoji cheat sheet</a> is a useful reference for emoji shorthand codes.</p>
|
||||
<hr>
|
||||
<p><strong>N.B.</strong> 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.</p>
|
||||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl">.emoji {
|
||||
</span></span><span class="line"><span class="cl"> font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
|
||||
</span></span><span class="line"><span class="cl">}</span></span></code></pre></div></description>
|
||||
</item>
|
||||
|
||||
</channel>
|
||||
</rss>
|
|
@ -1,263 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Latex Support | Flat theme</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,minimum-scale=1">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/lib/katex/katex.min.css">
|
||||
|
||||
|
||||
<script defer src="/hugo-theme-flat/lib/katex/katex.min.js"></script>
|
||||
|
||||
|
||||
<script defer src="/hugo-theme-flat/lib/katex/contrib/auto-render.min.js"
|
||||
onload="renderMathInElement(document.body);"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/lib/icofont/icofont.min.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/syntax.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/style.css" />
|
||||
<link rel="shortcut icon" href="/hugo-theme-flat/images/favicon.ico" type="image/x-icon" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="header-wrapper">
|
||||
<div class="header">
|
||||
<a class="site-title" href="https://leafee98.github.io/hugo-theme-flat/">Flat theme</a>
|
||||
|
||||
<ul class="menu">
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/posts/">Posts</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/essays/">Essays</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a>Services↓</a>
|
||||
<ul class="sub-menu">
|
||||
|
||||
<li class="menu-item"><a href="#">Service A</a></li>
|
||||
|
||||
<li class="menu-item"><a href="#">Service B</a></li>
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/about/">About</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="main-wrapper">
|
||||
<div class="main">
|
||||
|
||||
|
||||
<section class="single">
|
||||
<h1 class="title">Latex Support</h1>
|
||||
|
||||
<div class="tip">
|
||||
<time datetime="2022-09-20 09:36:26 +0800 CST">2022/09/20</time>
|
||||
<span class="split">·</span>
|
||||
<span> 50 words </span>
|
||||
<span class="split">·</span>
|
||||
<span>
|
||||
1 minutes to read
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="taxonomies">
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="content">
|
||||
<p>This article contians some test for latex support. Currently the lib used for rendering LaTeX is <a href="https://katex.org/">\(\KaTeX\)</a></p>
|
||||
<p>$$
|
||||
\pi=\int_{-\infty}^\infty\frac{dx}{1+x^2}
|
||||
$$</p>
|
||||
<h2 id="the-code-which-render-the-above">The code which render the above <a href="#the-code-which-render-the-above" class="anchor">🔗</a></h2><pre tabindex="0"><code>This article contians some test for latex support. Currently the lib used for rendering LaTeX is [\\(\KaTeX\\)](https://katex.org/)
|
||||
|
||||
$$
|
||||
\pi=\int_{-\infty}^\infty\frac{dx}{1+x^2}
|
||||
$$
|
||||
|
||||
We support \\(\LaTeX\\) now!
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="side">
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Posts</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/latex-support/">Latex Support</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/markdown-syntax/">Markdown Syntax Guide</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/placeholder-text/">Placeholder Text</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/math-typesetting/">Math Typesetting</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/emoji-support/">Emoji Support</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Essays</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/essays/what-is-hugo/">What Is Hugo</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-categories">
|
||||
<h2>Categories</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/syntax">syntax(1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/themes">themes(1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="side-tags">
|
||||
<h2>Tags</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/css">css (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/emoji">emoji (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/html">html (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/markdown">markdown (2)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/text">text (1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
<footer class="footer">
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/posts/index.xml">
|
||||
Feed of Posts
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/essays/index.xml">
|
||||
Feed of Essays
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Copyright <a href="https://creativecommons.org/licenses/by/4.0/">CC BY-4.0</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Powered by <a href="https://gohugo.io">Hugo</a></span>
|
||||
|
||||
|
||||
|
||||
<span class="footer-item">Theme <a href="https://cgit.leafee98.com/hugo-theme-flat.git">hugo-theme-flat</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1,379 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Markdown Syntax Guide | Flat theme</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,minimum-scale=1">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/lib/icofont/icofont.min.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/syntax.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/style.css" />
|
||||
<link rel="shortcut icon" href="/hugo-theme-flat/images/favicon.ico" type="image/x-icon" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="header-wrapper">
|
||||
<div class="header">
|
||||
<a class="site-title" href="https://leafee98.github.io/hugo-theme-flat/">Flat theme</a>
|
||||
|
||||
<ul class="menu">
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/posts/">Posts</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/essays/">Essays</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a>Services↓</a>
|
||||
<ul class="sub-menu">
|
||||
|
||||
<li class="menu-item"><a href="#">Service A</a></li>
|
||||
|
||||
<li class="menu-item"><a href="#">Service B</a></li>
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/about/">About</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="main-wrapper">
|
||||
<div class="main">
|
||||
|
||||
|
||||
<section class="single">
|
||||
<h1 class="title">Markdown Syntax Guide</h1>
|
||||
|
||||
<div class="tip">
|
||||
<time datetime="2019-03-11 00:00:00 +0000 UTC">2019/03/11</time>
|
||||
<span class="split">·</span>
|
||||
<span> 450 words </span>
|
||||
<span class="split">·</span>
|
||||
<span>
|
||||
3 minutes to read
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="taxonomies">
|
||||
|
||||
<div>
|
||||
Categories:
|
||||
|
||||
<a href="/hugo-theme-flat/categories/themes">themes</a>
|
||||
|
||||
<a href="/hugo-theme-flat/categories/syntax">syntax</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div>
|
||||
Tags:
|
||||
|
||||
<a href="/hugo-theme-flat/tags/markdown">markdown</a>
|
||||
|
||||
<a href="/hugo-theme-flat/tags/css">css</a>
|
||||
|
||||
<a href="/hugo-theme-flat/tags/html">html</a>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="content">
|
||||
<p>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.</p>
|
||||
<h2 id="headings">Headings <a href="#headings" class="anchor">🔗</a></h2><p>The following HTML <code><h1></code>—<code><h6></code> elements represent six levels of section headings. <code><h1></code> is the highest section level while <code><h6></code> is the lowest.</p>
|
||||
<h1 id="h1">H1 <a href="#h1" class="anchor">🔗</a></h1><h2 id="h2">H2 <a href="#h2" class="anchor">🔗</a></h2><h3 id="h3">H3 <a href="#h3" class="anchor">🔗</a></h3><h4 id="h4">H4 <a href="#h4" class="anchor">🔗</a></h4><h5 id="h5">H5 <a href="#h5" class="anchor">🔗</a></h5><h6 id="h6">H6 <a href="#h6" class="anchor">🔗</a></h6><h2 id="paragraph">Paragraph <a href="#paragraph" class="anchor">🔗</a></h2><p>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.</p>
|
||||
<p>Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.</p>
|
||||
<h2 id="blockquotes">Blockquotes <a href="#blockquotes" class="anchor">🔗</a></h2><p>The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a <code>footer</code> or <code>cite</code> element, and optionally with in-line changes such as annotations and abbreviations.</p>
|
||||
<h4 id="blockquote-without-attribution">Blockquote without attribution <a href="#blockquote-without-attribution" class="anchor">🔗</a></h4><blockquote>
|
||||
<p>Tiam, ad mint andaepu dandae nostion secatur sequo quae.
|
||||
<strong>Note</strong> that you can use <em>Markdown syntax</em> within a blockquote.</p>
|
||||
</blockquote>
|
||||
<h4 id="blockquote-with-attribution">Blockquote with attribution <a href="#blockquote-with-attribution" class="anchor">🔗</a></h4><blockquote>
|
||||
<p>Don’t communicate by sharing memory, share memory by communicating.<!-- raw HTML omitted -->
|
||||
— <!-- raw HTML omitted -->Rob Pike<sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup><!-- raw HTML omitted --></p>
|
||||
</blockquote>
|
||||
<h2 id="tables">Tables <a href="#tables" class="anchor">🔗</a></h2><p>Tables aren’t part of the core Markdown spec, but Hugo supports supports them out-of-the-box.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Age</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Bob</td>
|
||||
<td>27</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Alice</td>
|
||||
<td>23</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h4 id="inline-markdown-within-tables">Inline Markdown within tables <a href="#inline-markdown-within-tables" class="anchor">🔗</a></h4><table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Italics</th>
|
||||
<th>Bold</th>
|
||||
<th>Code</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><em>italics</em></td>
|
||||
<td><strong>bold</strong></td>
|
||||
<td><code>code</code></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h2 id="code-blocks">Code Blocks <a href="#code-blocks" class="anchor">🔗</a></h2><h4 id="code-block-with-backticks">Code block with backticks <a href="#code-block-with-backticks" class="anchor">🔗</a></h4><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="cp"><!doctype html></span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p"><</span><span class="nt">html</span> <span class="na">lang</span><span class="o">=</span><span class="s">"en"</span><span class="p">></span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p"><</span><span class="nt">head</span><span class="p">></span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">meta</span> <span class="na">charset</span><span class="o">=</span><span class="s">"utf-8"</span><span class="p">></span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">title</span><span class="p">></span>Example HTML5 Document<span class="p"></</span><span class="nt">title</span><span class="p">></span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p"></</span><span class="nt">head</span><span class="p">></span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p"><</span><span class="nt">body</span><span class="p">></span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">p</span><span class="p">></span>Test<span class="p"></</span><span class="nt">p</span><span class="p">></span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p"></</span><span class="nt">body</span><span class="p">></span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p"></</span><span class="nt">html</span><span class="p">></span>
|
||||
</span></span></code></pre></div><h4 id="code-block-indented-with-four-spaces">Code block indented with four spaces <a href="#code-block-indented-with-four-spaces" class="anchor">🔗</a></h4><pre><code><!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Example HTML5 Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Test</p>
|
||||
</body>
|
||||
</html>
|
||||
</code></pre>
|
||||
<h4 id="code-block-with-hugos-internal-highlight-shortcode">Code block with Hugo’s internal highlight shortcode <a href="#code-block-with-hugos-internal-highlight-shortcode" class="anchor">🔗</a></h4><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="cp"><!doctype html></span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p"><</span><span class="nt">html</span> <span class="na">lang</span><span class="o">=</span><span class="s">"en"</span><span class="p">></span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p"><</span><span class="nt">head</span><span class="p">></span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">meta</span> <span class="na">charset</span><span class="o">=</span><span class="s">"utf-8"</span><span class="p">></span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">title</span><span class="p">></span>Example HTML5 Document<span class="p"></</span><span class="nt">title</span><span class="p">></span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p"></</span><span class="nt">head</span><span class="p">></span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p"><</span><span class="nt">body</span><span class="p">></span>
|
||||
</span></span><span class="line"><span class="cl"> <span class="p"><</span><span class="nt">p</span><span class="p">></span>Test<span class="p"></</span><span class="nt">p</span><span class="p">></span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p"></</span><span class="nt">body</span><span class="p">></span>
|
||||
</span></span><span class="line"><span class="cl"><span class="p"></</span><span class="nt">html</span><span class="p">></span></span></span></code></pre></div>
|
||||
<h2 id="list-types">List Types <a href="#list-types" class="anchor">🔗</a></h2><h4 id="ordered-list">Ordered List <a href="#ordered-list" class="anchor">🔗</a></h4><ol>
|
||||
<li>First item</li>
|
||||
<li>Second item</li>
|
||||
<li>Third item</li>
|
||||
</ol>
|
||||
<h4 id="unordered-list">Unordered List <a href="#unordered-list" class="anchor">🔗</a></h4><ul>
|
||||
<li>List item</li>
|
||||
<li>Another item</li>
|
||||
<li>And another item</li>
|
||||
</ul>
|
||||
<h4 id="nested-list">Nested list <a href="#nested-list" class="anchor">🔗</a></h4><ul>
|
||||
<li>Fruit
|
||||
<ul>
|
||||
<li>Apple</li>
|
||||
<li>Orange</li>
|
||||
<li>Banana</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Dairy
|
||||
<ul>
|
||||
<li>Milk</li>
|
||||
<li>Cheese</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<h2 id="other-elements--abbr-sub-sup-kbd-mark">Other Elements — abbr, sub, sup, kbd, mark <a href="#other-elements--abbr-sub-sup-kbd-mark" class="anchor">🔗</a></h2><p><!-- raw HTML omitted -->GIF<!-- raw HTML omitted --> is a bitmap image format.</p>
|
||||
<p>H<!-- raw HTML omitted -->2<!-- raw HTML omitted -->O</p>
|
||||
<p>X<!-- raw HTML omitted -->n<!-- raw HTML omitted --> + Y<!-- raw HTML omitted -->n<!-- raw HTML omitted --> = Z<!-- raw HTML omitted -->n<!-- raw HTML omitted --></p>
|
||||
<p>Press <!-- raw HTML omitted --><!-- raw HTML omitted -->CTRL<!-- raw HTML omitted -->+<!-- raw HTML omitted -->ALT<!-- raw HTML omitted -->+<!-- raw HTML omitted -->Delete<!-- raw HTML omitted --><!-- raw HTML omitted --> to end the session.</p>
|
||||
<p>Most <!-- raw HTML omitted -->salamanders<!-- raw HTML omitted --> are nocturnal, and hunt for insects, worms, and other small creatures.</p>
|
||||
<div class="footnotes" role="doc-endnotes">
|
||||
<hr>
|
||||
<ol>
|
||||
<li id="fn:1">
|
||||
<p>The above quote is excerpted from Rob Pike’s <a href="https://www.youtube.com/watch?v=PAAkCSZUG1c">talk</a> during Gopherfest, November 18, 2015. <a href="#fnref:1" class="footnote-backref" role="doc-backlink">↩︎</a></p>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="side">
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Posts</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/latex-support/">Latex Support</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/markdown-syntax/">Markdown Syntax Guide</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/placeholder-text/">Placeholder Text</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/math-typesetting/">Math Typesetting</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/emoji-support/">Emoji Support</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Essays</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/essays/what-is-hugo/">What Is Hugo</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-categories">
|
||||
<h2>Categories</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/syntax">syntax(1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/themes">themes(1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="side-tags">
|
||||
<h2>Tags</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/css">css (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/emoji">emoji (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/html">html (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/markdown">markdown (2)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/text">text (1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
<footer class="footer">
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/posts/index.xml">
|
||||
Feed of Posts
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/essays/index.xml">
|
||||
Feed of Essays
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Copyright <a href="https://creativecommons.org/licenses/by/4.0/">CC BY-4.0</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Powered by <a href="https://gohugo.io">Hugo</a></span>
|
||||
|
||||
|
||||
|
||||
<span class="footer-item">Theme <a href="https://cgit.leafee98.com/hugo-theme-flat.git">hugo-theme-flat</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1,263 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Math Typesetting | Flat theme</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,minimum-scale=1">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/lib/icofont/icofont.min.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/syntax.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/style.css" />
|
||||
<link rel="shortcut icon" href="/hugo-theme-flat/images/favicon.ico" type="image/x-icon" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="header-wrapper">
|
||||
<div class="header">
|
||||
<a class="site-title" href="https://leafee98.github.io/hugo-theme-flat/">Flat theme</a>
|
||||
|
||||
<ul class="menu">
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/posts/">Posts</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/essays/">Essays</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a>Services↓</a>
|
||||
<ul class="sub-menu">
|
||||
|
||||
<li class="menu-item"><a href="#">Service A</a></li>
|
||||
|
||||
<li class="menu-item"><a href="#">Service B</a></li>
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/about/">About</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="main-wrapper">
|
||||
<div class="main">
|
||||
|
||||
|
||||
<section class="single">
|
||||
<h1 class="title">Math Typesetting</h1>
|
||||
|
||||
<div class="tip">
|
||||
<time datetime="2019-03-08 00:00:00 +0000 UTC">2019/03/08</time>
|
||||
<span class="split">·</span>
|
||||
<span> 115 words </span>
|
||||
<span class="split">·</span>
|
||||
<span>
|
||||
1 minutes to read
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="taxonomies">
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="content">
|
||||
<p>Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries.</p>
|
||||
<p>In this example we will be using <a href="https://katex.org/">KaTeX</a></p>
|
||||
<ul>
|
||||
<li>Create a partial under <code>/layouts/partials/math.html</code></li>
|
||||
<li>Within this partial reference the <a href="https://katex.org/docs/autorender.html">Auto-render Extension</a> or host these scripts locally.</li>
|
||||
<li>Include the partial in your templates like so:</li>
|
||||
</ul>
|
||||
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="o">{{</span> <span class="k">if</span> or .Params.math .Site.Params.math <span class="o">}}</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="o">{{</span> partial <span class="s2">"math.html"</span> . <span class="o">}}</span>
|
||||
</span></span><span class="line"><span class="cl"><span class="o">{{</span> end <span class="o">}}</span>
|
||||
</span></span></code></pre></div><ul>
|
||||
<li>To enable KaTex globally set the parameter <code>math</code> to <code>true</code> in a project’s configuration</li>
|
||||
<li>To enable KaTex on a per page basis include the parameter <code>math: true</code> in content files</li>
|
||||
</ul>
|
||||
<p><strong>Note:</strong> Use the online reference of <a href="https://katex.org/docs/supported.html">Supported TeX Functions</a></p>
|
||||
|
||||
<h3 id="examples">Examples <a href="#examples" class="anchor">🔗</a></h3>
|
||||
<p>Block math:
|
||||
$$
|
||||
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
|
||||
$$</p>
|
||||
</div>
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="side">
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Posts</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/latex-support/">Latex Support</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/markdown-syntax/">Markdown Syntax Guide</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/placeholder-text/">Placeholder Text</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/math-typesetting/">Math Typesetting</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/emoji-support/">Emoji Support</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Essays</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/essays/what-is-hugo/">What Is Hugo</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-categories">
|
||||
<h2>Categories</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/syntax">syntax(1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/themes">themes(1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="side-tags">
|
||||
<h2>Tags</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/css">css (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/emoji">emoji (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/html">html (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/markdown">markdown (2)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/text">text (1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
<footer class="footer">
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/posts/index.xml">
|
||||
Feed of Posts
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/essays/index.xml">
|
||||
Feed of Essays
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Copyright <a href="https://creativecommons.org/licenses/by/4.0/">CC BY-4.0</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Powered by <a href="https://gohugo.io">Hugo</a></span>
|
||||
|
||||
|
||||
|
||||
<span class="footer-item">Theme <a href="https://cgit.leafee98.com/hugo-theme-flat.git">hugo-theme-flat</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1,10 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>https://leafee98.github.io/hugo-theme-flat/posts/markdown-syntax/</title>
|
||||
<link rel="canonical" href="https://leafee98.github.io/hugo-theme-flat/posts/markdown-syntax/">
|
||||
<meta name="robots" content="noindex">
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="refresh" content="0; url=https://leafee98.github.io/hugo-theme-flat/posts/markdown-syntax/">
|
||||
</head>
|
||||
</html>
|
|
@ -1,272 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Placeholder Text | Flat theme</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,minimum-scale=1">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/lib/icofont/icofont.min.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/syntax.css" />
|
||||
<link rel="stylesheet" href="/hugo-theme-flat/css/style.css" />
|
||||
<link rel="shortcut icon" href="/hugo-theme-flat/images/favicon.ico" type="image/x-icon" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="header-wrapper">
|
||||
<div class="header">
|
||||
<a class="site-title" href="https://leafee98.github.io/hugo-theme-flat/">Flat theme</a>
|
||||
|
||||
<ul class="menu">
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/posts/">Posts</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/essays/">Essays</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a>Services↓</a>
|
||||
<ul class="sub-menu">
|
||||
|
||||
<li class="menu-item"><a href="#">Service A</a></li>
|
||||
|
||||
<li class="menu-item"><a href="#">Service B</a></li>
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="menu-item">
|
||||
|
||||
<a href="/hugo-theme-flat/about/">About</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="main-wrapper">
|
||||
<div class="main">
|
||||
|
||||
|
||||
<section class="single">
|
||||
<h1 class="title">Placeholder Text</h1>
|
||||
|
||||
<div class="tip">
|
||||
<time datetime="2019-03-09 00:00:00 +0000 UTC">2019/03/09</time>
|
||||
<span class="split">·</span>
|
||||
<span> 270 words </span>
|
||||
<span class="split">·</span>
|
||||
<span>
|
||||
2 minutes to read
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="taxonomies">
|
||||
|
||||
|
||||
|
||||
<div>
|
||||
Tags:
|
||||
|
||||
<a href="/hugo-theme-flat/tags/markdown">markdown</a>
|
||||
|
||||
<a href="/hugo-theme-flat/tags/text">text</a>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="content">
|
||||
<p>Lorem est tota propiore conpellat pectoribus de pectora summo.</p>
|
||||
<p>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.</p>
|
||||
<ol>
|
||||
<li>Exierant elisi ambit vivere dedere</li>
|
||||
<li>Duce pollice</li>
|
||||
<li>Eris modo</li>
|
||||
<li>Spargitque ferrea quos palude</li>
|
||||
</ol>
|
||||
<p>Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis.</p>
|
||||
<ol>
|
||||
<li>Comas hunc haec pietate fetum procerum dixit</li>
|
||||
<li>Post torum vates letum Tiresia</li>
|
||||
<li>Flumen querellas</li>
|
||||
<li>Arcanaque montibus omnes</li>
|
||||
<li>Quidem et</li>
|
||||
</ol>
|
||||
<h1 id="vagus-elidunt">Vagus elidunt <a href="#vagus-elidunt" class="anchor">🔗</a></h1><p><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --><!-- raw HTML omitted --></p>
|
||||
<p><a href="https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon">The Van de Graaf Canon</a></p>
|
||||
<h2 id="mane-refeci-capiebant-unda-mulcebat">Mane refeci capiebant unda mulcebat <a href="#mane-refeci-capiebant-unda-mulcebat" class="anchor">🔗</a></h2><p>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. <strong>Faces illo pepulere</strong> tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis.</p>
|
||||
<p>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.</p>
|
||||
<p>Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel <strong>mitis temploque</strong> vocatus, inque alis, <em>oculos nomen</em> 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 <strong>parte</strong>.</p>
|
||||
</div>
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="side">
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Posts</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/latex-support/">Latex Support</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/markdown-syntax/">Markdown Syntax Guide</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/placeholder-text/">Placeholder Text</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/math-typesetting/">Math Typesetting</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/posts/emoji-support/">Emoji Support</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-recent">
|
||||
<h2 class="side-title">Recent Essays</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/essays/what-is-hugo/">What Is Hugo</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="side-categories">
|
||||
<h2>Categories</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/syntax">syntax(1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/categories/themes">themes(1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="side-tags">
|
||||
<h2>Tags</h2>
|
||||
<hr />
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/css">css (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/emoji">emoji (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/html">html (1)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/markdown">markdown (2)</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/hugo-theme-flat/tags/text">text (1)</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
<footer class="footer">
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/posts/index.xml">
|
||||
Feed of Posts
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
<a class="footer-item" href="https://leafee98.github.io/hugo-theme-flat/essays/index.xml">
|
||||
Feed of Essays
|
||||
<i class="icofont-rss"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Copyright <a href="https://creativecommons.org/licenses/by/4.0/">CC BY-4.0</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="footer-row">
|
||||
|
||||
|
||||
<span class="footer-item">Powered by <a href="https://gohugo.io">Hugo</a></span>
|
||||
|
||||
|
||||
|
||||
<span class="footer-item">Theme <a href="https://cgit.leafee98.com/hugo-theme-flat.git">hugo-theme-flat</a></span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1,4 +0,0 @@
|
|||
User-agent: *
|
||||
Allow: *
|
||||
|
||||
Sitemap: https://leafee98.github.io/hugo-theme-flat/sitemap.xml
|
62
sitemap.xml
62
sitemap.xml
|
@ -1,62 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||
<url>
|
||||
<loc>https://leafee98.github.io/hugo-theme-flat/posts/</loc>
|
||||
<lastmod>2022-05-18T11:22:44+08:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://leafee98.github.io/hugo-theme-flat/posts/latex-support/</loc>
|
||||
<lastmod>2022-09-20T09:36:26+08:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://leafee98.github.io/hugo-theme-flat/essays/</loc>
|
||||
<lastmod>2022-05-18T11:19:08+08:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://leafee98.github.io/hugo-theme-flat/</loc>
|
||||
<lastmod>2022-09-20T09:36:26+08:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://leafee98.github.io/hugo-theme-flat/essays/what-is-hugo/</loc>
|
||||
<lastmod>2022-05-16T21:57:50+08:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://leafee98.github.io/hugo-theme-flat/about/</loc>
|
||||
<lastmod>2022-04-27T21:01:43+08:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://leafee98.github.io/hugo-theme-flat/categories/</loc>
|
||||
<lastmod>2019-03-11T00:00:00+00:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://leafee98.github.io/hugo-theme-flat/tags/css/</loc>
|
||||
<lastmod>2019-03-11T00:00:00+00:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://leafee98.github.io/hugo-theme-flat/tags/html/</loc>
|
||||
<lastmod>2019-03-11T00:00:00+00:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://leafee98.github.io/hugo-theme-flat/tags/markdown/</loc>
|
||||
<lastmod>2019-03-11T00:00:00+00:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://leafee98.github.io/hugo-theme-flat/posts/markdown-syntax/</loc>
|
||||
<lastmod>2019-03-11T00:00:00+00:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://leafee98.github.io/hugo-theme-flat/categories/syntax/</loc>
|
||||
<lastmod>2019-03-11T00:00:00+00:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://leafee98.github.io/hugo-theme-flat/tags/</loc>
|
||||
<lastmod>2019-03-11T00:00:00+00:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://leafee98.github.io/hugo-theme-flat/categories/themes/</loc>
|
||||
<lastmod>2019-03-11T00:00:00+00:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://leafee98.github.io/hugo-theme-flat/posts/placeholder-text/</loc>
|
||||
<lastmod>2019-03-09T00:00:00+00:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://leafee98.github.io/hugo-theme-flat/tags/text/</loc>
|
||||
<lastmod>2019-03-09T00:00:00+00:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://leafee98.github.io/hugo-theme-flat/posts/math-typesetting/</loc>
|
||||
<lastmod>2019-03-08T00:00:00+00:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://leafee98.github.io/hugo-theme-flat/tags/emoji/</loc>
|
||||
<lastmod>2019-03-05T00:00:00+00:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://leafee98.github.io/hugo-theme-flat/posts/emoji-support/</loc>
|
||||
<lastmod>2019-03-05T00:00:00+00:00</lastmod>
|
||||
</url>
|
||||
</urlset>
|
|
@ -1,39 +1,96 @@
|
|||
/* defines light color */
|
||||
:root {
|
||||
--fonts-sans-serif: Roboto, Helvetica, Tahoma, Arial,
|
||||
"DejaVu Sans", "Liberation Sans",
|
||||
--color-light-bg-page: #EBEBEB;
|
||||
--color-light-bg-content: #F4F4F4;
|
||||
--color-light-bg-block: #EBEBEB;
|
||||
--color-light-bg-shadow: #E0E0E0;
|
||||
--color-light-fg-font-normal: #4E403E;
|
||||
--color-light-fg-font-hover: #555555;
|
||||
--color-light-fg-font-quote: #57606A;
|
||||
--color-light-fg-tiny-line: #e0e0e0;
|
||||
--color-light-fg-marker-quote: #BFBFBF;
|
||||
--color-light-fg-font-hyper: #4E403E;
|
||||
--color-light-fg-font-hyper-hover: #DE629E;
|
||||
--color-light-fg-hyperlink: #DE629E;
|
||||
--color-light-fg-hyperlink-hover: #CB3E50;
|
||||
--color-light-bg-pager-normal: #D4D4D4;
|
||||
--color-light-bg-pager-current: #E4E4E4;
|
||||
--color-light-bg-pager-hover: #ECECEC;
|
||||
}
|
||||
|
||||
"WenQuanYi Zen Hei", "WenQuanYi Micro Hei",
|
||||
"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
|
||||
"Noto Sans CJK",
|
||||
sans-serif;
|
||||
/* defines dark color */
|
||||
:root {
|
||||
--color-dark-bg-page: #202124;
|
||||
--color-dark-bg-content: #262628;
|
||||
--color-dark-bg-block: #2B2B2B;
|
||||
--color-dark-bg-shadow: #505050;
|
||||
--color-dark-fg-font-normal: #C2C2B6;
|
||||
--color-dark-fg-font-hover: #D2D2D3;
|
||||
--color-dark-fg-font-quote: #8B8680;
|
||||
--color-dark-fg-tiny-line: #3B3B3B;
|
||||
--color-dark-fg-marker-quote: #6F6B66;
|
||||
--color-dark-fg-font-hyper: #C2C2B6;
|
||||
--color-dark-fg-font-hyper-hover: #DE629E;
|
||||
--color-dark-fg-hyperlink: #DE629E;
|
||||
--color-dark-fg-hyperlink-hover: #CB3E50;
|
||||
--color-dark-bg-pager-normal: #303030;
|
||||
--color-dark-bg-pager-current: #3A3A3E;
|
||||
--color-dark-bg-pager-hover: #444446;
|
||||
}
|
||||
|
||||
--fonts-serif: PMingLiu, "Times New Roman",
|
||||
"Noto Serif CJK", STSong, SimSun,
|
||||
serif;
|
||||
:root {
|
||||
--color-bg-page: var(--color-light-bg-page);
|
||||
--color-bg-content: var(--color-light-bg-content);
|
||||
--color-bg-block: var(--color-light-bg-block);
|
||||
--color-bg-shadow: var(--color-light-bg-shadow);
|
||||
--color-fg-font-normal: var(--color-light-fg-font-normal);
|
||||
--color-fg-font-hover: var(--color-light-fg-font-hover);
|
||||
--color-fg-font-quote: var(--color-light-fg-font-quote);
|
||||
--color-fg-tiny-line: var(--color-light-fg-tiny-line);
|
||||
--color-fg-marker-quote: var(--color-light-fg-marker-quote);
|
||||
--color-fg-font-hyper: var(--color-light-fg-font-hyper);
|
||||
--color-fg-font-hyper-hover: var(--color-light-fg-font-hyper-hover);
|
||||
--color-fg-hyperlink: var(--color-light-fg-hyperlink);
|
||||
--color-fg-hyperlink-hover: var(--color-light-fg-hyperlink-hover);
|
||||
--color-bg-pager-normal: var(--color-light-bg-pager-normal);
|
||||
--color-bg-pager-current: var(--color-light-bg-pager-current);
|
||||
--color-bg-pager-hover: var(--color-light-bg-pager-hover);
|
||||
}
|
||||
|
||||
--fonts-mono: "DejaVu Sans Mono", "Liberation Mono", "Noto Sans Mono", "Consolas", "Courier",
|
||||
"Noto Sans Mono CJK",
|
||||
"WenQuanYi Zen Hei Mono",
|
||||
"WenQuanYi Micro Hei Mono",
|
||||
monospace;
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--color-bg-page: var(--color-dark-bg-page);
|
||||
--color-bg-content: var(--color-dark-bg-content);
|
||||
--color-bg-block: var(--color-dark-bg-block);
|
||||
--color-bg-shadow: var(--color-dark-bg-shadow);
|
||||
--color-fg-font-normal: var(--color-dark-fg-font-normal);
|
||||
--color-fg-font-hover: var(--color-dark-fg-font-hover);
|
||||
--color-fg-font-quote: var(--color-dark-fg-font-quote);
|
||||
--color-fg-tiny-line: var(--color-dark-fg-tiny-line);
|
||||
--color-fg-marker-quote: var(--color-dark-fg-marker-quote);
|
||||
--color-fg-font-hyper: var(--color-dark-fg-font-hyper);
|
||||
--color-fg-font-hyper-hover: var(--color-dark-fg-font-hyper-hover);
|
||||
--color-fg-hyperlink: var(--color-dark-fg-hyperlink);
|
||||
--color-fg-hyperlink-hover: var(--color-dark-fg-hyperlink-hover);
|
||||
--color-bg-pager-normal: var(--color-dark-bg-pager-normal);
|
||||
--color-bg-pager-current: var(--color-dark-bg-pager-current);
|
||||
--color-bg-pager-hover: var(--color-dark-bg-pager-hover);
|
||||
}
|
||||
}
|
||||
|
||||
--color-light-1: #e0e0e0;
|
||||
--color-light-2: #e8e8e8;
|
||||
--color-light-3: #f0f0f0;
|
||||
--color-light-4: #f4f4f4;
|
||||
--color-light-5: #fefefe;
|
||||
:root {
|
||||
--fonts-sans-en: "Noto Sans", "Droid Sans", "Calibri", "Arial";
|
||||
--fonts-sans-zh: "WenQuanYi Zen Hei", "WenQuanYi Micro Hei",
|
||||
"Noto Sans CJK", "Microsoft YaHei", "PingFang SC";
|
||||
--fonts-sans: var(--fonts-sans-en), var(--fonts-sans-zh), sans-serif;
|
||||
|
||||
--color-black-0: #909090;
|
||||
--color-black-1: #686868;
|
||||
--color-black-2: #404040;
|
||||
--color-black-3: #282828;
|
||||
--color-black-4: #101010;
|
||||
--color-black-5: #020202;
|
||||
--fonts-serif-en: "Noto Serif", "Times New Roman";
|
||||
--fonts-serif-zh: "Noto Serif CJK", SimSun, STSong;
|
||||
--fonts-serif: var(--fonts-serif-en), var(--fonts-serif-zh), serif;
|
||||
|
||||
--color-fav-0: #EDD5DD;
|
||||
--color-fav-1: #F0B3B2;
|
||||
--color-fav-2: #DE629E;
|
||||
--color-fav-3: #CB3E50;
|
||||
--fonts-mono-en: "DejaVu Sans Mono", "Noto Sans Mono", "Consolas", "Courier";
|
||||
--fonts-mono-zh: "Noto Sans Mono CJK", "WenQuanYi Zen Hei Mono", "WenQuanYi Micro Hei Mono";
|
||||
--fonts-mono: var(--fonts-mono-en), var(--fonts-mono-zh), monospace;
|
||||
|
||||
--len-0: 0.00rem;
|
||||
--len-1: 0.25rem;
|
||||
|
@ -51,15 +108,16 @@
|
|||
--font-size-6: 2.000rem;
|
||||
}
|
||||
|
||||
|
||||
*, ::before, ::after {
|
||||
font-family: inherit;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
font-family: var(--fonts-sans-serif);
|
||||
font-family: var(--fonts-sans);
|
||||
font-size: 16px;
|
||||
color: var(--color-black-3);
|
||||
color: var(--color-fg-font-normal);
|
||||
}
|
||||
|
||||
/**************************************************************/
|
||||
|
@ -75,7 +133,7 @@ body {
|
|||
|
||||
align-items: center;
|
||||
|
||||
background-color: var(--color-light-4);
|
||||
background-color: var(--color-bg-page);
|
||||
}
|
||||
|
||||
/* set up padding and margin of some main elements */
|
||||
|
@ -92,6 +150,7 @@ body {
|
|||
.main { flex: 0 0 72%; width: 72%; }
|
||||
.side { flex: 0 0 28%; width: 28%; }
|
||||
|
||||
/* mobile layout: place side to bottom */
|
||||
@media (max-width: 991px) {
|
||||
.main { padding: var(--len-4); }
|
||||
.side { padding-left: 0; padding-top: var(--len-4); }
|
||||
|
@ -106,7 +165,9 @@ body {
|
|||
.side-recent,
|
||||
.side-categories,
|
||||
.side-tags
|
||||
{ background-color: var(--color-light-5); }
|
||||
{
|
||||
background-color: var(--color-bg-content);
|
||||
}
|
||||
|
||||
/* place header in the center of header-wrapper */
|
||||
.header-wrapper {
|
||||
|
@ -123,8 +184,7 @@ body {
|
|||
|
||||
/********** set up break point **********/
|
||||
|
||||
.main-wrapper, .header { max-width: 1320px; }
|
||||
@media (max-width: 1399px) { .main-wrapper, .header { max-width: 1140px; } }
|
||||
.main-wrapper, .header { max-width: 1140px; }
|
||||
@media (max-width: 1199px) { .main-wrapper, .header { max-width: 960px; } }
|
||||
@media (max-width: 991px) { .main-wrapper, .header { max-width: 720px; } }
|
||||
@media (max-width: 767px) { .main-wrapper, .header { max-width: 540px; } }
|
||||
|
@ -169,7 +229,7 @@ body {
|
|||
|
||||
margin-top: var(--len-3);
|
||||
padding-top: var(--len-3);
|
||||
border-top: 1px solid var(--color-light-1);
|
||||
border-top: 1px solid var(--color-fg-tiny-line);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -199,10 +259,6 @@ body {
|
|||
align-items: flex-start;
|
||||
}
|
||||
|
||||
/* remove the unwanted default css in menus */
|
||||
.header ul { list-style: none; margin: 0; padding: 0; }
|
||||
.header li { list-style: none; }
|
||||
|
||||
/* set up spacing of menu items in menu and sub-menu */
|
||||
.header .menu > * { margin-right: var(--len-3); }
|
||||
.header .menu > *:last-child { margin-right: 0; }
|
||||
|
@ -211,9 +267,9 @@ body {
|
|||
|
||||
/* beautify sub menu style */
|
||||
.header .sub-menu {
|
||||
background-color: var(--color-light-5);
|
||||
background-color: var(--color-bg-content);
|
||||
padding: var(--len-2) var(--len-4);
|
||||
box-shadow: var(--color-light-1) 0px 0px 3px 1px;
|
||||
box-shadow: var(--color-bg-shadow) 0px 0px 3px 1px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
|
@ -224,8 +280,8 @@ body {
|
|||
font-weight: bold;
|
||||
}
|
||||
|
||||
.header a { color: var(--color-black-3); text-decoration: none; }
|
||||
.header a:hover { color: var(--color-fav-2); }
|
||||
.header a { color: var(--color-fg-font-normal); text-decoration: none; }
|
||||
.header a:hover { color: var(--color-fg-font-hover); }
|
||||
|
||||
/************************/
|
||||
/* set up footer layout */
|
||||
|
@ -248,16 +304,10 @@ body {
|
|||
.footer .footer-item:last-child { margin-right: 0; }
|
||||
|
||||
/* beautify hyper link style */
|
||||
.footer { color: var(--color-black-1) }
|
||||
.footer { color: var(--color-fg-font-normal) }
|
||||
|
||||
.footer a { color: var(--color-fav-2); text-decoration: none; }
|
||||
.footer a:hover { color: var(--color-fav-3); }
|
||||
|
||||
.footer img {
|
||||
display: inline;
|
||||
height: var(--font-size-1);
|
||||
color: var(--color-fav-2);
|
||||
}
|
||||
.footer a { color: var(--color-fg-hyperlink); text-decoration: none; }
|
||||
.footer a:hover { color: var(--color-fg-hyperlink-hover); }
|
||||
|
||||
/**********************************/
|
||||
/* set up home page's list layout */
|
||||
|
@ -270,16 +320,16 @@ body {
|
|||
align-items: flex-start;
|
||||
|
||||
font-size: var(--font-size-1);
|
||||
color: var(--color-black-1);
|
||||
color: var(--color-fg-font-quote);
|
||||
}
|
||||
|
||||
.list-item .tips > * { margin-right: var(--len-3); }
|
||||
.list-item .tips > *:last-child { margin-right: 0; }
|
||||
|
||||
.list-item .title a { text-decoration: none; color: var(--color-black-2); }
|
||||
.list-item .title a:hover { color: var(--color-fav-2); }
|
||||
.list-item .tips a { text-decoration: none; color: var(--color-fav-2) }
|
||||
.list-item .tips a:hover { color: var(--color-fav-3) }
|
||||
.list-item .title a { text-decoration: none; color: var(--color-fg-font-normal); }
|
||||
.list-item .title a:hover { color: var(--color-fg-font-hover); }
|
||||
.list-item .tips a { text-decoration: none; color: var(--color-fg-hyperlink); }
|
||||
.list-item .tips a:hover { color: var(--color-fg-hyperlink-hover); }
|
||||
|
||||
.list-item .title { margin: var(--len-2) 0 var(--len-3) 0; }
|
||||
|
||||
|
@ -291,7 +341,7 @@ body {
|
|||
.list-item .title { margin: 0 0 var(--len-2) 0; }
|
||||
.list-item .tips { margin: 0 0 var(--len-3) 0; }
|
||||
|
||||
.list-item { border-bottom: 1px solid var(--color-light-2); }
|
||||
.list-item { border-bottom: 1px solid var(--color-fg-tiny-line); }
|
||||
.list-item:last-child { border-bottom: 0; }
|
||||
|
||||
.list-item:first-child { padding-top: 0;}
|
||||
|
@ -312,7 +362,7 @@ body {
|
|||
.side hr {
|
||||
border: none;
|
||||
height: 1px;
|
||||
background-color: var(--color-light-2);
|
||||
background-color: var(--color-bg-content);
|
||||
|
||||
margin: var(--len-2) 0;
|
||||
}
|
||||
|
@ -322,8 +372,8 @@ body {
|
|||
.side > * { margin-bottom: var(--len-3); }
|
||||
.side > *:last-child { margin-bottom: 0; }
|
||||
|
||||
.side a { color: var(--color-black-3); text-decoration: none; }
|
||||
.side a:hover { color: var(--color-fav-2); }
|
||||
.side a { color: var(--color-fg-font-normal); text-decoration: none; }
|
||||
.side a:hover { color: var(--color-fg-hyperlink); }
|
||||
|
||||
/* horizontally place tags */
|
||||
.side .side-tags li { display: inline-block; margin: var(--len-1) var(--len-1); }
|
||||
|
@ -338,8 +388,8 @@ body {
|
|||
align-items: center;
|
||||
}
|
||||
|
||||
.single a { text-decoration: none; color: var(--color-fav-2); }
|
||||
.single a:hover { color: var(--color-fav-3); }
|
||||
.single a { text-decoration: none; color: var(--color-fg-hyperlink); }
|
||||
.single a:hover { color: var(--color-fg-hyperlink-hover); }
|
||||
|
||||
.single .title,
|
||||
.single .tip,
|
||||
|
@ -351,7 +401,7 @@ body {
|
|||
|
||||
.single > hr {
|
||||
border: none;
|
||||
background-color: var(--color-fav-1);
|
||||
background-color: var(--color-fg-tiny-line);
|
||||
height: 1px;
|
||||
|
||||
width: 90%;
|
||||
|
@ -365,7 +415,7 @@ body {
|
|||
|
||||
.single .tip,
|
||||
.single .taxonomies
|
||||
{ color: var(--color-black-1)}
|
||||
{ color: var(--color-fg-font-normal)}
|
||||
|
||||
.single .taxonomies > * { display: inline-block; }
|
||||
|
||||
|
@ -380,31 +430,40 @@ body {
|
|||
|
||||
/***** set up content style *****/
|
||||
|
||||
.content p code {
|
||||
.content {
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.content code {
|
||||
font-family: var(--fonts-mono);
|
||||
|
||||
background-color: var(--color-light-4);
|
||||
background-color: var(--color-bg-block);
|
||||
|
||||
padding: 0 2px;
|
||||
border: 1px solid var(--color-light-1);
|
||||
border: 1px solid var(--color-fg-tiny-line);
|
||||
border-radius: 2px;
|
||||
line-height: inherit;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
/* keep in style with highlighting */
|
||||
.content pre { padding: 7px; }
|
||||
|
||||
.content pre code {
|
||||
font-family: var(--fonts-mono);
|
||||
|
||||
display: inline-block;
|
||||
|
||||
padding: var(--len-3);
|
||||
|
||||
background-color: var(--color-light-4);
|
||||
.content pre {
|
||||
background-color: var(--color-bg-block);
|
||||
border-radius: 3px;
|
||||
|
||||
/* The copy button with absolute position need this.
|
||||
* https://developer.mozilla.org/en-US/docs/Web/CSS/position
|
||||
* https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
||||
*/
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.content pre code {
|
||||
display: block;
|
||||
|
||||
padding: var(--len-3);
|
||||
border: none;
|
||||
background-color: unset;
|
||||
overflow: auto;
|
||||
width: 100%;
|
||||
}
|
||||
|
@ -414,14 +473,14 @@ body {
|
|||
margin-bottom: 5px;
|
||||
padding-left: 1em;
|
||||
margin-left: 0px;
|
||||
border-left: 3px solid #eee;
|
||||
color: var(--color-black-1);
|
||||
border-left: 3px solid var(--color-fg-marker-quote);
|
||||
color: var(--color-fg-font-quote);
|
||||
}
|
||||
|
||||
.content hr {
|
||||
border: none;
|
||||
height: 2px;
|
||||
background-color: var(--color-light-4);
|
||||
background-color: var(--color-fg-tiny-line);
|
||||
|
||||
width: 80%;
|
||||
margin: var(--len-2) auto;
|
||||
|
@ -434,19 +493,22 @@ body {
|
|||
line-height: 1.5em;
|
||||
}
|
||||
|
||||
.content th, td {
|
||||
.content th,
|
||||
.content td {
|
||||
text-align: left;
|
||||
padding-right: 20px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.content table td, td {
|
||||
.content table td,
|
||||
.content table td {
|
||||
border-spacing: none;
|
||||
border-style: solid;
|
||||
padding: 10px 15px;
|
||||
border-width: 1px 0 0 0;
|
||||
}
|
||||
.content thead th, th {
|
||||
.content thead th,
|
||||
.content thead th {
|
||||
text-align: left;
|
||||
padding: 10px 15px;
|
||||
height: 20px;
|
||||
|
@ -475,12 +537,14 @@ body {
|
|||
word-break: normal;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.content .markdown-image img {
|
||||
max-width: 100%;
|
||||
.content img {
|
||||
max-width: 92%;
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.content .anchor {
|
||||
visibility: hidden;
|
||||
color: var(--color-fav-2);
|
||||
}
|
||||
.content h1:hover a,
|
||||
.content h2:hover a,
|
||||
|
@ -489,7 +553,6 @@ body {
|
|||
{ visibility: visible }
|
||||
|
||||
.highlight pre {
|
||||
padding: 7px;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
|
@ -498,6 +561,24 @@ body {
|
|||
overflow-x: auto;
|
||||
}
|
||||
|
||||
/* the copy button added by /js/copy-code-button.js */
|
||||
pre .copyCodeButton {
|
||||
position: absolute;
|
||||
top: var(--len-1);
|
||||
right: var(--len-3);
|
||||
|
||||
font-family: var(--fonts-mono);
|
||||
color: var(--color-fg-hyperlink);
|
||||
cursor: pointer;
|
||||
visibility: hidden;
|
||||
}
|
||||
pre:hover .copyCodeButton {
|
||||
visibility: visible;
|
||||
}
|
||||
pre .copyCodeButton:hover {
|
||||
color: var(--color-fg-hyperlink-hover);
|
||||
}
|
||||
|
||||
/**************************/
|
||||
/* setup list page layout */
|
||||
/**************************/
|
||||
|
@ -523,19 +604,19 @@ body {
|
|||
#archive .group .value .date { display: inline-block; width: 60px; }
|
||||
#archive .group .value .title { display: inline; }
|
||||
|
||||
#archive .group .value .date { color: var(--color-black-0); }
|
||||
#archive .group .value .date { color: var(--color-fg-font-normal); }
|
||||
|
||||
#archive .group .value a { text-decoration: none; }
|
||||
|
||||
#archive .group .value a { color: var(--color-black-3); }
|
||||
#archive .group .value a:hover { color: var(--color-fav-2); }
|
||||
#archive .group .value a { color: var(--color-fg-font-hyper); }
|
||||
#archive .group .value a:hover { color: var(--color-fg-font-hyper-hover); }
|
||||
|
||||
#archive .group .value .tags {
|
||||
display: inline-block;
|
||||
margin-left: 7px;
|
||||
}
|
||||
#archive .group .value .tags {
|
||||
background: var(--color-light-4);
|
||||
background: var(--color-bg-block);
|
||||
border-radius: 2px;
|
||||
padding: 4px 7px;
|
||||
font-size: var(--font-size-1);
|
||||
|
@ -604,20 +685,20 @@ body {
|
|||
|
||||
text-decoration: none;
|
||||
|
||||
color: var(--color-black-2);
|
||||
background-color: var(--color-light-3);
|
||||
color: var(--color-fg-font-normal);
|
||||
background-color: var(--color-bg-pager-normal);
|
||||
|
||||
transition: background-color 0.25s;
|
||||
}
|
||||
|
||||
.pagination a:hover {
|
||||
background-color: var(--color-fav-0);
|
||||
background-color: var(--color-bg-pager-hover);
|
||||
}
|
||||
|
||||
.pagination a.current {
|
||||
background-color: var(--color-fav-1);
|
||||
background-color: var(--color-bg-pager-current);
|
||||
pointer-events: none;
|
||||
color: var(--color-black-1);
|
||||
color: var(--color-fg-font-normal);
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
|
@ -629,19 +710,13 @@ body {
|
|||
width: 85%;
|
||||
}
|
||||
|
||||
/* keep content style from being affected by remark42 style */
|
||||
.content pre {
|
||||
background-color: transparent;
|
||||
color: var(--color-black-3)
|
||||
}
|
||||
|
||||
/**********/
|
||||
/** misc **/
|
||||
/**********/
|
||||
|
||||
.archive-hint {
|
||||
padding-left: var(--len-4);
|
||||
color: var(--color-fav-1);
|
||||
color: var(--color-fg-font-quote);
|
||||
}
|
||||
|
||||
.max-wrapper {
|
177
static/css/syntax.css
Normal file
177
static/css/syntax.css
Normal file
|
@ -0,0 +1,177 @@
|
|||
@media (prefers-color-scheme: light) {
|
||||
/* Background */ .bg { color: #272822; }
|
||||
/* PreWrapper */ .chroma { color: #272822; }
|
||||
/* Other */ .chroma .x { }
|
||||
/* Error */ .chroma .err { color: #960050; background-color: #1e0010 }
|
||||
/* CodeLine */ .chroma .cl { }
|
||||
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
|
||||
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
|
||||
/* LineHighlight */ .chroma .hl { background-color: #ffffcc }
|
||||
/* LineNumbersTable */ .chroma .lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
||||
/* LineNumbers */ .chroma .ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
||||
/* Line */ .chroma .line { display: flex; }
|
||||
/* Keyword */ .chroma .k { color: #00a8c8 }
|
||||
/* KeywordConstant */ .chroma .kc { color: #00a8c8 }
|
||||
/* KeywordDeclaration */ .chroma .kd { color: #00a8c8 }
|
||||
/* KeywordNamespace */ .chroma .kn { color: #f92672 }
|
||||
/* KeywordPseudo */ .chroma .kp { color: #00a8c8 }
|
||||
/* KeywordReserved */ .chroma .kr { color: #00a8c8 }
|
||||
/* KeywordType */ .chroma .kt { color: #00a8c8 }
|
||||
/* Name */ .chroma .n { color: #111111 }
|
||||
/* NameAttribute */ .chroma .na { color: #75af00 }
|
||||
/* NameBuiltin */ .chroma .nb { color: #111111 }
|
||||
/* NameBuiltinPseudo */ .chroma .bp { color: #111111 }
|
||||
/* NameClass */ .chroma .nc { color: #75af00 }
|
||||
/* NameConstant */ .chroma .no { color: #00a8c8 }
|
||||
/* NameDecorator */ .chroma .nd { color: #75af00 }
|
||||
/* NameEntity */ .chroma .ni { color: #111111 }
|
||||
/* NameException */ .chroma .ne { color: #75af00 }
|
||||
/* NameFunction */ .chroma .nf { color: #75af00 }
|
||||
/* NameFunctionMagic */ .chroma .fm { color: #111111 }
|
||||
/* NameLabel */ .chroma .nl { color: #111111 }
|
||||
/* NameNamespace */ .chroma .nn { color: #111111 }
|
||||
/* NameOther */ .chroma .nx { color: #75af00 }
|
||||
/* NameProperty */ .chroma .py { color: #111111 }
|
||||
/* NameTag */ .chroma .nt { color: #f92672 }
|
||||
/* NameVariable */ .chroma .nv { color: #111111 }
|
||||
/* NameVariableClass */ .chroma .vc { color: #111111 }
|
||||
/* NameVariableGlobal */ .chroma .vg { color: #111111 }
|
||||
/* NameVariableInstance */ .chroma .vi { color: #111111 }
|
||||
/* NameVariableMagic */ .chroma .vm { color: #111111 }
|
||||
/* Literal */ .chroma .l { color: #ae81ff }
|
||||
/* LiteralDate */ .chroma .ld { color: #d88200 }
|
||||
/* LiteralString */ .chroma .s { color: #d88200 }
|
||||
/* LiteralStringAffix */ .chroma .sa { color: #d88200 }
|
||||
/* LiteralStringBacktick */ .chroma .sb { color: #d88200 }
|
||||
/* LiteralStringChar */ .chroma .sc { color: #d88200 }
|
||||
/* LiteralStringDelimiter */ .chroma .dl { color: #d88200 }
|
||||
/* LiteralStringDoc */ .chroma .sd { color: #d88200 }
|
||||
/* LiteralStringDouble */ .chroma .s2 { color: #d88200 }
|
||||
/* LiteralStringEscape */ .chroma .se { color: #8045ff }
|
||||
/* LiteralStringHeredoc */ .chroma .sh { color: #d88200 }
|
||||
/* LiteralStringInterpol */ .chroma .si { color: #d88200 }
|
||||
/* LiteralStringOther */ .chroma .sx { color: #d88200 }
|
||||
/* LiteralStringRegex */ .chroma .sr { color: #d88200 }
|
||||
/* LiteralStringSingle */ .chroma .s1 { color: #d88200 }
|
||||
/* LiteralStringSymbol */ .chroma .ss { color: #d88200 }
|
||||
/* 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 }
|
||||
/* Punctuation */ .chroma .p { color: #111111 }
|
||||
/* 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 }
|
||||
/* Generic */ .chroma .g { }
|
||||
/* GenericDeleted */ .chroma .gd { }
|
||||
/* GenericEmph */ .chroma .ge { font-style: italic }
|
||||
/* GenericError */ .chroma .gr { }
|
||||
/* GenericHeading */ .chroma .gh { }
|
||||
/* GenericInserted */ .chroma .gi { }
|
||||
/* GenericOutput */ .chroma .go { }
|
||||
/* GenericPrompt */ .chroma .gp { }
|
||||
/* GenericStrong */ .chroma .gs { font-weight: bold }
|
||||
/* GenericSubheading */ .chroma .gu { }
|
||||
/* GenericTraceback */ .chroma .gt { }
|
||||
/* GenericUnderline */ .chroma .gl { }
|
||||
/* TextWhitespace */ .chroma .w { }
|
||||
}
|
||||
|
||||
/* use monokai highlight theme in dark */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
/* Background */ .bg { color: #f8f8f2; background-color: #272822; }
|
||||
/* PreWrapper */ .chroma { color: #f8f8f2; background-color: #272822; }
|
||||
/* Other */ .chroma .x { }
|
||||
/* Error */ .chroma .err { color: #960050; background-color: #1e0010 }
|
||||
/* CodeLine */ .chroma .cl { }
|
||||
/* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit }
|
||||
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
|
||||
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
|
||||
/* LineHighlight */ .chroma .hl { background-color: #ffffcc }
|
||||
/* LineNumbersTable */ .chroma .lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
||||
/* LineNumbers */ .chroma .ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
||||
/* Line */ .chroma .line { display: flex; }
|
||||
/* 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 }
|
||||
/* Name */ .chroma .n { }
|
||||
/* NameAttribute */ .chroma .na { color: #a6e22e }
|
||||
/* NameBuiltin */ .chroma .nb { }
|
||||
/* NameBuiltinPseudo */ .chroma .bp { }
|
||||
/* NameClass */ .chroma .nc { color: #a6e22e }
|
||||
/* NameConstant */ .chroma .no { color: #66d9ef }
|
||||
/* NameDecorator */ .chroma .nd { color: #a6e22e }
|
||||
/* NameEntity */ .chroma .ni { }
|
||||
/* NameException */ .chroma .ne { color: #a6e22e }
|
||||
/* NameFunction */ .chroma .nf { color: #a6e22e }
|
||||
/* NameFunctionMagic */ .chroma .fm { }
|
||||
/* NameLabel */ .chroma .nl { }
|
||||
/* NameNamespace */ .chroma .nn { }
|
||||
/* NameOther */ .chroma .nx { color: #a6e22e }
|
||||
/* NameProperty */ .chroma .py { }
|
||||
/* NameTag */ .chroma .nt { color: #f92672 }
|
||||
/* NameVariable */ .chroma .nv { }
|
||||
/* NameVariableClass */ .chroma .vc { }
|
||||
/* NameVariableGlobal */ .chroma .vg { }
|
||||
/* NameVariableInstance */ .chroma .vi { }
|
||||
/* NameVariableMagic */ .chroma .vm { }
|
||||
/* 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 }
|
||||
/* Punctuation */ .chroma .p { }
|
||||
/* 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 }
|
||||
/* Generic */ .chroma .g { }
|
||||
/* GenericDeleted */ .chroma .gd { color: #f92672 }
|
||||
/* GenericEmph */ .chroma .ge { font-style: italic }
|
||||
/* GenericError */ .chroma .gr { }
|
||||
/* GenericHeading */ .chroma .gh { }
|
||||
/* GenericInserted */ .chroma .gi { color: #a6e22e }
|
||||
/* GenericOutput */ .chroma .go { }
|
||||
/* GenericPrompt */ .chroma .gp { }
|
||||
/* GenericStrong */ .chroma .gs { font-weight: bold }
|
||||
/* GenericSubheading */ .chroma .gu { color: #75715e }
|
||||
/* GenericTraceback */ .chroma .gt { }
|
||||
/* GenericUnderline */ .chroma .gl { }
|
||||
/* TextWhitespace */ .chroma .w { }
|
||||
}
|
36
static/js/copy-code-block.js
Normal file
36
static/js/copy-code-block.js
Normal file
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
* Every codeblock has "pre > code" structure, some highlighted codeblocks have
|
||||
* "div.highlight > pre.chroma > code" structure. So, use the simple CSS selector
|
||||
* to query all codeblocks.
|
||||
*/
|
||||
document.addEventListener("DOMContentLoaded",
|
||||
() => {
|
||||
var codeblocks = document.querySelectorAll(".single .content pre code");
|
||||
|
||||
console.log("codeblocks length:", codeblocks.length);
|
||||
|
||||
codeblocks.forEach(
|
||||
(codeblock) => {
|
||||
let elementPre = codeblock.parentElement;
|
||||
|
||||
let button = document.createElement("div");
|
||||
button.classList.add("copyCodeButton");
|
||||
button.innerHTML = "copy";
|
||||
button.addEventListener("click",
|
||||
() => {
|
||||
navigator.clipboard.writeText(codeblock.textContent);
|
||||
|
||||
button.innerHTML = "copied!";
|
||||
setTimeout(
|
||||
() => { button.innerHTML = "copy"; },
|
||||
1000
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
elementPre.appendChild(button);
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
|
Before Width: | Height: | Size: 707 B After Width: | Height: | Size: 707 B |
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue