Initial commit
This commit is contained in:
commit
41560d9dd4
|
@ -0,0 +1,3 @@
|
|||
[submodule "themes/zzo"]
|
||||
path = themes/zzo
|
||||
url = https://github.com/zzossig/hugo-theme-zzo.git
|
|
@ -0,0 +1,53 @@
|
|||
baseURL = "http://example.org"
|
||||
title = "Devoalda"
|
||||
theme = "zzo"
|
||||
|
||||
defaultContentLanguage = "en"
|
||||
defaultContentLanguageInSubdir = true
|
||||
hasCJKLanguage = true
|
||||
|
||||
summaryLength = 70
|
||||
buildFuture = true
|
||||
|
||||
copyright = "©{year}, All Rights Reserved"
|
||||
timeout = 10000
|
||||
enableEmoji = true
|
||||
paginate = 13
|
||||
rssLimit = 100
|
||||
|
||||
enableGitInfo = false
|
||||
googleAnalytics = ""
|
||||
|
||||
[markup]
|
||||
[markup.goldmark]
|
||||
[markup.goldmark.renderer]
|
||||
hardWraps = true
|
||||
unsafe = true
|
||||
xHTML = true
|
||||
[markup.highlight]
|
||||
codeFences = true
|
||||
lineNos = true
|
||||
lineNumbersInTable = true
|
||||
noClasses = false
|
||||
[markup.tableOfContents]
|
||||
endLevel = 4
|
||||
ordered = false
|
||||
startLevel = 2
|
||||
|
||||
[outputs]
|
||||
home = ["HTML", "RSS", "SearchIndex"]
|
||||
section = ["HTML", "RSS", "SearchIndex"]
|
||||
taxonomyTerm = ["HTML", "RSS", "SearchIndex"]
|
||||
taxonomy = ["HTML", "RSS", "SearchIndex"]
|
||||
|
||||
[outputFormats]
|
||||
[outputFormats.SearchIndex]
|
||||
mediaType = "application/json"
|
||||
baseName = "index"
|
||||
isPlainText = true
|
||||
notAlternative = true
|
||||
|
||||
[taxonomies]
|
||||
category = "categories"
|
||||
tag = "tags"
|
||||
series = "series"
|
|
@ -0,0 +1,6 @@
|
|||
[en]
|
||||
title = "Devoalda"
|
||||
languageName = "English"
|
||||
weight = 1
|
||||
languagedir = "ltr"
|
||||
contentdir = "content/en"
|
|
@ -0,0 +1,45 @@
|
|||
[[main]]
|
||||
identifier = "about"
|
||||
name = "About"
|
||||
url = "about"
|
||||
weight = 1
|
||||
|
||||
[[main]]
|
||||
identifier = "archive"
|
||||
name = "Archive"
|
||||
url = "archive"
|
||||
weight = 2
|
||||
|
||||
[[main]]
|
||||
identifier = "gallery"
|
||||
name = "Gallery"
|
||||
url = "gallery"
|
||||
weight = 4
|
||||
|
||||
[[main]]
|
||||
parent = "gallery"
|
||||
name = "Cartoon"
|
||||
url = "gallery/cartoon"
|
||||
|
||||
[[main]]
|
||||
parent = "gallery"
|
||||
name = "Photo"
|
||||
url = "gallery/photo"
|
||||
|
||||
[[main]]
|
||||
identifier = "posts"
|
||||
name = "Posts"
|
||||
url = "posts"
|
||||
weight = 5
|
||||
|
||||
[[main]]
|
||||
identifier = "showcase"
|
||||
name = "Showcase"
|
||||
url = "showcase"
|
||||
weight = 6
|
||||
|
||||
[[main]]
|
||||
identifier = "publication"
|
||||
name = "Pub"
|
||||
url = "publication"
|
||||
weight = 7
|
|
@ -0,0 +1,172 @@
|
|||
logoText = "Devoalda"
|
||||
logoType = "short" # long, short
|
||||
description = "A Website for Tutorials"
|
||||
custom_css = []
|
||||
custom_js = []
|
||||
useFaviconGenerator = true # https://www.favicon-generator.org/
|
||||
meta_image = ""
|
||||
themecolor = ""
|
||||
|
||||
themeOptions = ["dark", "light", "hacker", "solarized", "kimbie"]
|
||||
notAllowedTypesInHome = ["contact", "talks", "about", "showcase", "publication", "presentation", "resume"]
|
||||
notAllowedTypesInHomeSidebar = ["about", "archive", "showcase", "publication", "presentation", "resume"]
|
||||
notAllowedTypesInArchive = ["about", "talks", "showcase", "publication", "presentation", "resume"]
|
||||
notAllowedTypesInHomeFeed = ["about", "archive", "contact", "talks", "showcase", "publication", "presentation", "resume", "gallery"]
|
||||
|
||||
viewportSize = "normal" # widest, wider, wide, normal, narrow
|
||||
enableUiAnimation = true
|
||||
hideSingleContentsWhenJSDisabled = false
|
||||
enablePinnedPosts = true
|
||||
minItemsToShowInTagCloud = 1 # Minimum items to show in tag cloud
|
||||
|
||||
# header
|
||||
homeHeaderType = "text" # text, img, slide
|
||||
|
||||
# menu
|
||||
showMobileMenuTerms = ["tags", "categories", "series"]
|
||||
|
||||
# body
|
||||
enableBreadcrumb = true
|
||||
enablePhotoSwipe = true
|
||||
enableSearch = true
|
||||
enableSearchHighlight = true
|
||||
enableGoToTop = true
|
||||
enableWhoami = true
|
||||
summaryShape = "classic" # card, classic, compact
|
||||
searchResultPosition = "main" # side, main
|
||||
archiveGroupByDate = "2006" # "2006-01": group by month, "2006": group by year
|
||||
archivePaginate = 13
|
||||
paginateWindow = 1
|
||||
talksPaginate = 5
|
||||
talksGroupByDate = "2006"
|
||||
pubPaginate = 20
|
||||
|
||||
# whoami
|
||||
myname = "Devoalda"
|
||||
email = "woonjunwei@gmail.com"
|
||||
whoami = "Web Developer"
|
||||
bioImageUrl = ""
|
||||
useGravatar = false
|
||||
location = ""
|
||||
organization = ""
|
||||
link = ""
|
||||
|
||||
# sidebar
|
||||
enableBio = true
|
||||
enableBioImage = true
|
||||
enableSidebar = true
|
||||
enableSidebarTags = true
|
||||
enableSidebarSeries = true
|
||||
enableSidebarCategories = true
|
||||
enableHomeSidebarTitles = true
|
||||
enableListSidebarTitles = true
|
||||
enableToc = true
|
||||
hideToc = false
|
||||
tocFolding = true
|
||||
tocPosition = "inner" # inner, outer
|
||||
enableTocSwitch = true
|
||||
itemsPerCategory = 5
|
||||
sidebarPosition = "right"
|
||||
tocLevels = ["h2", "h3", "h4"]
|
||||
enableSidebarPostsByOrder = false
|
||||
|
||||
# footer
|
||||
showPoweredBy = true
|
||||
showFeedLinks = true
|
||||
showSocialLinks = true
|
||||
enableLangChange = true
|
||||
enableThemeChange = true
|
||||
|
||||
# service
|
||||
googleTagManager = "" # GTM-XXXXXX
|
||||
baiduAnalytics = ""
|
||||
enableBusuanzi = false
|
||||
busuanziSiteUV = true
|
||||
busuanziSitePV = true
|
||||
busuanziPagePV = true
|
||||
|
||||
# rss
|
||||
updatePeriod = "weekly" # Possible values: 'hourly', 'daily', 'weekly', 'monthly', or 'yearly'.
|
||||
updateFrequency = ""
|
||||
fullContents = false
|
||||
|
||||
# comment
|
||||
enableComment = true
|
||||
disqus_shortname = ""
|
||||
commento = false
|
||||
|
||||
[telegram]
|
||||
enable = false
|
||||
siteId = ""
|
||||
dataLimit = 5
|
||||
|
||||
[gitment] # Gitment is a comment system based on GitHub issues. see https://github.com/imsun/gitment
|
||||
owner = "" # Your GitHub ID
|
||||
repo = "" # The repo to store comments
|
||||
clientId = "" # Your client ID
|
||||
clientSecret = "" # Your client secret
|
||||
|
||||
[utterances] # https://utteranc.es/
|
||||
owner = "" # Your GitHub ID
|
||||
repo = "" # The repo to store comments
|
||||
|
||||
[gitalk] # Gitalk is a comment system based on GitHub issues. see https://github.com/gitalk/gitalk
|
||||
owner = "" # Your GitHub ID
|
||||
repo = "" # The repo to store comments
|
||||
clientId = "" # Your client ID
|
||||
clientSecret = "" # Your client secret
|
||||
|
||||
[socialOptions]
|
||||
email = "woonjunwei@gmail.com"
|
||||
phone = ""
|
||||
facebook = ""
|
||||
twitter = ""
|
||||
github = "https://github.com/Devoalda"
|
||||
gitlab = "https://gitlab.com/devoalda"
|
||||
stack-overflow = ""
|
||||
instagram = ""
|
||||
google-plus = ""
|
||||
youtube = ""
|
||||
medium = ""
|
||||
tumblr = ""
|
||||
linkedin = ""
|
||||
pinterest = ""
|
||||
stack-exchange = ""
|
||||
telegram = ""
|
||||
steam = ""
|
||||
weibo = ""
|
||||
douban = ""
|
||||
csdn = ""
|
||||
mastodon = ""
|
||||
jianshu = ""
|
||||
zhihu = ""
|
||||
signal = ""
|
||||
whatsapp = ""
|
||||
matrix = ""
|
||||
xmpp = ""
|
||||
dev-to = ""
|
||||
gitea = ""
|
||||
google-scholar = ""
|
||||
|
||||
[donationOptions]
|
||||
enable = false
|
||||
alipay = ""
|
||||
wechat = ""
|
||||
paypal = ""
|
||||
patreon = ""
|
||||
|
||||
# possible share name: ["facebook","twitter", "reddit", "linkedin", "tumblr", "weibo", "douban", "line"]
|
||||
[[share]]
|
||||
name = "facebook"
|
||||
username = ""
|
||||
[[share]]
|
||||
name = "twitter"
|
||||
[[share]]
|
||||
name = "linkedin"
|
||||
|
||||
[[footerLinks]]
|
||||
name = ""
|
||||
link = ""
|
||||
[[footerLinks]]
|
||||
name = ""
|
||||
link = ""
|
|
@ -0,0 +1,96 @@
|
|||
---
|
||||
header:
|
||||
- type: text
|
||||
height: 200
|
||||
paddingX: 50
|
||||
paddingY: 0
|
||||
align: center
|
||||
title:
|
||||
- HUGO
|
||||
subtitle:
|
||||
- The world’s fastest framework for building websites
|
||||
titleColor:
|
||||
titleShadow: true
|
||||
titleFontSize: 44
|
||||
subtitleColor:
|
||||
subtitleCursive: true
|
||||
subtitleFontSize: 18
|
||||
spaceBetweenTitleSubtitle: 16
|
||||
|
||||
- type: img
|
||||
imageSrc: images/header/background.jpg
|
||||
imageSize: cover
|
||||
imageRepeat: no-repeat
|
||||
imagePosition: center
|
||||
height: 235
|
||||
paddingX: 50
|
||||
paddingY: 0
|
||||
align: center
|
||||
title:
|
||||
-
|
||||
subtitle:
|
||||
-
|
||||
titleColor:
|
||||
titleShadow: false
|
||||
titleFontSize: 44
|
||||
subtitleColor:
|
||||
subtitleCursive: false
|
||||
subtitleFontSize: 16
|
||||
spaceBetweenTitleSubtitle: 20
|
||||
|
||||
- type: slide
|
||||
height: 235
|
||||
options:
|
||||
startSlide: 0
|
||||
auto: 5000
|
||||
draggable: true
|
||||
autoRestart: true
|
||||
continuous: true
|
||||
disableScroll: true
|
||||
stopPropagation: true
|
||||
slide:
|
||||
- paddingX: 50
|
||||
paddingY: 0
|
||||
align: left
|
||||
imageSrc: images/header/background.jpg
|
||||
imageSize: cover
|
||||
imageRepeat: no-repeat
|
||||
imagePosition: center
|
||||
title:
|
||||
- header title1
|
||||
subtitle:
|
||||
- header subtitle1
|
||||
titleFontSize: 44
|
||||
subtitleFontSize: 16
|
||||
spaceBetweenTitleSubtitle: 20
|
||||
|
||||
- paddingX: 50
|
||||
paddingY: 0
|
||||
align: center
|
||||
imageSrc: images/header/background.jpg
|
||||
imageSize: cover
|
||||
imageRepeat: no-repeat
|
||||
imagePosition: center
|
||||
title:
|
||||
- header title2
|
||||
subtitle:
|
||||
- header subtitle2
|
||||
titleFontSize: 44
|
||||
subtitleFontSize: 16
|
||||
spaceBetweenTitleSubtitle: 20
|
||||
|
||||
- paddingX: 50
|
||||
paddingY: 0
|
||||
align: right
|
||||
imageSrc: images/header/background.jpg
|
||||
imageSize: cover
|
||||
imageRepeat: no-repeat
|
||||
imagePosition: center
|
||||
title:
|
||||
- header title3
|
||||
subtitle:
|
||||
- header subtitle3
|
||||
titleFontSize: 44
|
||||
subtitleFontSize: 16
|
||||
spaceBetweenTitleSubtitle: 20
|
||||
---
|
|
@ -0,0 +1,27 @@
|
|||
+++
|
||||
title = "About"
|
||||
description = "Hugo, the world’s fastest framework for building websites"
|
||||
type = "about"
|
||||
date = "2019-02-28"
|
||||
+++
|
||||
|
||||
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/russross/blackfriday
|
||||
* 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 extremelly 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).
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
title: "Archive"
|
||||
date: 2019-10-19T11:44:14+09:00
|
||||
type: "archive"
|
||||
description: Archive Page
|
||||
titleWrap: wrap
|
||||
---
|
||||
|
||||
archive page
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
title: "Cartoon"
|
||||
date: 2019-10-31T10:20:16+09:00
|
||||
type: "gallery"
|
||||
mode: "at-once" # at-once is a default value
|
||||
description: "cartoon gallery"
|
||||
image: images/feature2/bam.png
|
||||
---
|
||||
|
||||
Sample images from [Pixabay](https://pixabay.com)
|
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
title: Photo
|
||||
date: 2019-10-31T10:20:16+09:00
|
||||
description: Photo Gallery
|
||||
type: gallery
|
||||
mode: one-by-one
|
||||
description: "photo gallery"
|
||||
images:
|
||||
- image: beach.jpg
|
||||
caption: beach, women, car
|
||||
- image: beautiful.jpg
|
||||
caption: beautiful women
|
||||
- image: people.jpg
|
||||
caption: man
|
||||
- image: child.jpg
|
||||
caption: child
|
||||
image: images/feature2/gallery.png
|
||||
---
|
||||
|
||||
Sample images from [Pixabay](https://pixabay.com)
|
|
@ -0,0 +1,7 @@
|
|||
+++
|
||||
aliases = ["posts","articles","blog","showcase","docs"]
|
||||
title = "Posts"
|
||||
author = "Hugo Authors"
|
||||
tags = ["index"]
|
||||
description = "Post page"
|
||||
+++
|
|
@ -0,0 +1,56 @@
|
|||
---
|
||||
author: "Hugo Authors"
|
||||
title: "Emoji Support"
|
||||
date: 2019-12-16T12:00:06+09:00
|
||||
description: "Guide to emoji usage in Hugo"
|
||||
draft: false
|
||||
hideToc: false
|
||||
enableToc: true
|
||||
enableTocContent: false
|
||||
author: Kim
|
||||
authorEmoji: 👻
|
||||
tags:
|
||||
- emoji
|
||||
- gamoji
|
||||
- namoji
|
||||
- bamoji
|
||||
- amoji
|
||||
---
|
||||
|
||||
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 >}}
|
|
@ -0,0 +1,151 @@
|
|||
---
|
||||
title: Markdown Syntax Guide
|
||||
date: 2019-12-20T12:00:06+09:00
|
||||
description: Sample article showcasing basic Markdown syntax and formatting for HTML elements.
|
||||
draft: false
|
||||
hideToc: false
|
||||
enableToc: true
|
||||
enableTocContent: true
|
||||
author: Choi
|
||||
authorEmoji: 🤖
|
||||
tags:
|
||||
- markdown
|
||||
- css
|
||||
- html
|
||||
- themes
|
||||
categories:
|
||||
- themes
|
||||
- syntax
|
||||
series:
|
||||
- Themes Guide
|
||||
image: images/feature1/markdown.png
|
||||
---
|
||||
|
||||
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.</p>
|
||||
> — <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
|
||||
|
||||
| Inline | Markdown | In | Table |
|
||||
| ---------- | --------- | ----------------- | ---------- |
|
||||
| *italics* | **bold** | ~~strikethrough~~ | `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
|
||||
|
||||
* Item
|
||||
1. First Sub-item
|
||||
2. Second Sub-item
|
||||
|
||||
## 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.
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
---
|
||||
author: Hugo Authors
|
||||
title: Math Typesetting
|
||||
date: 2019-12-17T12:00:06+09:00
|
||||
description: A brief guide to setup KaTeX
|
||||
draft: false
|
||||
hideToc: false
|
||||
enableToc: true
|
||||
enableTocContent: false
|
||||
author: Park
|
||||
authorEmoji: 👽
|
||||
libraries:
|
||||
- katex
|
||||
---
|
||||
|
||||
{{< box >}}
|
||||
We need goldmark katex entension which is not yet we have:
|
||||
[https://github.com/gohugoio/hugo/issues/6544](https://github.com/gohugoio/hugo/issues/6544)
|
||||
{{< /box >}}
|
||||
|
||||
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:
|
||||
|
||||
```
|
||||
{{ 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)
|
||||
|
||||
### Examples
|
||||
|
||||
Inline math: $$ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $$
|
||||
|
||||
Block math:
|
||||
|
||||
$$
|
||||
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
|
||||
$$
|
|
@ -0,0 +1,47 @@
|
|||
---
|
||||
title: "Rich Content"
|
||||
date: 2019-12-19T12:00:06+09:00
|
||||
description: "A brief description of Hugo Shortcodes"
|
||||
draft: false
|
||||
hideToc: false
|
||||
enableToc: true
|
||||
enableTocContent: false
|
||||
author: Lee
|
||||
authorEmoji: 👺
|
||||
tags:
|
||||
- shortcodes
|
||||
- privacy
|
||||
image: images/feature2/content.png
|
||||
---
|
||||
|
||||
Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-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-->
|
||||
---
|
||||
|
||||
## Instagram Simple Shortcode
|
||||
|
||||
{{< instagram_simple BGvuInzyFAe hidecaption >}}
|
||||
|
||||
<br>
|
||||
|
||||
---
|
||||
|
||||
## YouTube Privacy Enhanced Shortcode
|
||||
|
||||
{{< youtube ZJthWmvUzzc >}}
|
||||
|
||||
<br>
|
||||
|
||||
---
|
||||
|
||||
## Twitter Simple Shortcode
|
||||
|
||||
{{< twitter_simple 1085870671291310081 >}}
|
||||
|
||||
<br>
|
||||
|
||||
---
|
||||
|
||||
## Vimeo Simple Shortcode
|
||||
|
||||
{{< vimeo_simple 48912912 >}}
|
|
@ -0,0 +1,135 @@
|
|||
---
|
||||
title: "Shortcodes"
|
||||
date: 2020-01-25T06:40:51+09:00
|
||||
description: tabs, code-tabs, expand, alert, warning, notice, img, box
|
||||
draft: false
|
||||
hideToc: false
|
||||
enableToc: true
|
||||
enableTocContent: true
|
||||
tocPosition: inner
|
||||
tags:
|
||||
- shortcode
|
||||
series:
|
||||
-
|
||||
categories:
|
||||
-
|
||||
image: images/feature3/code-file.png
|
||||
---
|
||||
|
||||
## Markdownify box
|
||||
|
||||
{{< boxmd >}}
|
||||
This is **boxmd** shortcode
|
||||
{{< /boxmd >}}
|
||||
|
||||
## Simple box
|
||||
|
||||
{{< box >}}
|
||||
This is **box** shortcode
|
||||
{{< /box >}}
|
||||
|
||||
## Code tabs
|
||||
|
||||
Make it easy to switch between different code
|
||||
|
||||
{{< codes java javascript >}}
|
||||
{{< code >}}
|
||||
|
||||
```java
|
||||
System.out.println('Hello World!');
|
||||
```
|
||||
|
||||
{{< /code >}}
|
||||
|
||||
{{< code >}}
|
||||
|
||||
```javascript
|
||||
console.log('Hello World!');
|
||||
```
|
||||
|
||||
{{< /code >}}
|
||||
{{< /codes >}}
|
||||
|
||||
## Tabs for general purpose
|
||||
|
||||
{{< tabs Windows MacOS Ubuntu >}}
|
||||
{{< tab >}}
|
||||
|
||||
### Windows section
|
||||
|
||||
```javascript
|
||||
console.log('Hello World!');
|
||||
```
|
||||
|
||||
⚠️Becareful that the content in the tab should be different from each other. The tab makes unique id hashes depending on the tab contents. So, If you just copy-paste the tabs with multiple times, since it has the same contents, the tab will not work.
|
||||
|
||||
{{< /tab >}}
|
||||
{{< tab >}}
|
||||
|
||||
### MacOS section
|
||||
|
||||
Hello world!
|
||||
{{< /tab >}}
|
||||
{{< tab >}}
|
||||
|
||||
### Ubuntu section
|
||||
|
||||
Great!
|
||||
{{< /tab >}}
|
||||
{{< /tabs >}}
|
||||
|
||||
## Expand
|
||||
|
||||
{{< expand "Expand me" >}}
|
||||
|
||||
### Title
|
||||
|
||||
contents
|
||||
|
||||
{{< /expand >}}
|
||||
|
||||
{{< expand "Expand me2" >}}
|
||||
|
||||
### Title2
|
||||
|
||||
contents2
|
||||
|
||||
{{< /expand >}}
|
||||
|
||||
## Alert
|
||||
|
||||
Colored box
|
||||
|
||||
{{< alert theme="warning" >}}
|
||||
**this** is a text
|
||||
{{< /alert >}}
|
||||
|
||||
{{< alert theme="info" >}}
|
||||
**this** is a text
|
||||
{{< /alert >}}
|
||||
|
||||
{{< alert theme="success" >}}
|
||||
**this** is a text
|
||||
{{< /alert >}}
|
||||
|
||||
{{< alert theme="danger" >}}
|
||||
**this** is a text
|
||||
{{< /alert >}}
|
||||
|
||||
## Notice
|
||||
|
||||
{{< notice success >}}
|
||||
success text
|
||||
{{< /notice >}}
|
||||
|
||||
{{< notice info >}}
|
||||
info text
|
||||
{{< /notice >}}
|
||||
|
||||
{{< notice warning >}}
|
||||
warning text
|
||||
{{< /notice >}}
|
||||
|
||||
{{< notice error >}}
|
||||
error text
|
||||
{{< /notice >}}
|
|
@ -0,0 +1,326 @@
|
|||
---
|
||||
title: "Syntax highlighting"
|
||||
date: 2019-12-18T10:33:41+09:00
|
||||
description: "Syntax highlighting test"
|
||||
draft: false
|
||||
hideToc: false
|
||||
enableToc: true
|
||||
enableTocContent: false
|
||||
author: Jeus
|
||||
authorEmoji: 🎅
|
||||
pinned: true
|
||||
tags:
|
||||
- hugo
|
||||
series:
|
||||
-
|
||||
categories:
|
||||
- hugo
|
||||
image: images/feature2/color-palette.png
|
||||
---
|
||||
|
||||
## Code Syntax Highlighting
|
||||
|
||||
Verify the following code blocks render as code blocks and highlight properly.
|
||||
|
||||
More about tuning syntax highlighting is the [Hugo documentation](https://gohugo.io/content-management/syntax-highlighting/).
|
||||
|
||||
### Diff
|
||||
|
||||
``` diff {hl_lines=[4,"6-7"]}
|
||||
*** /path/to/original ''timestamp''
|
||||
--- /path/to/new ''timestamp''
|
||||
***************
|
||||
*** 1 ****
|
||||
! This is a line.
|
||||
--- 1 ---
|
||||
! This is a replacement line.
|
||||
It is important to spell
|
||||
-removed line
|
||||
+new line
|
||||
```
|
||||
|
||||
```diff {hl_lines=[4,"6-7"], linenos=false}
|
||||
*** /path/to/original ''timestamp''
|
||||
--- /path/to/new ''timestamp''
|
||||
***************
|
||||
*** 1 ****
|
||||
! This is a line.
|
||||
--- 1 ---
|
||||
! This is a replacement line.
|
||||
It is important to spell
|
||||
-removed line
|
||||
+new line
|
||||
```
|
||||
|
||||
### Makefile
|
||||
|
||||
``` makefile {linenos=false}
|
||||
CC=gcc
|
||||
CFLAGS=-I.
|
||||
|
||||
hellomake: hellomake.o hellofunc.o
|
||||
$(CC) -o hellomake hellomake.o hellofunc.o -I.
|
||||
```
|
||||
|
||||
``` makefile
|
||||
CC=gcc
|
||||
CFLAGS=-I.
|
||||
|
||||
hellomake: hellomake.o hellofunc.o
|
||||
$(CC) -o hellomake hellomake.o hellofunc.o -I.
|
||||
```
|
||||
|
||||
### JSON
|
||||
|
||||
``` json
|
||||
{"employees":[
|
||||
{"firstName":"John", "lastName":"Doe"},
|
||||
]}
|
||||
```
|
||||
|
||||
### Markdown
|
||||
|
||||
``` markdown
|
||||
**bold**
|
||||
*italics*
|
||||
[link](www.example.com)
|
||||
```
|
||||
|
||||
### JavaScript
|
||||
|
||||
``` javascript
|
||||
document.write('Hello, world!');
|
||||
```
|
||||
|
||||
### CSS
|
||||
|
||||
``` css
|
||||
body {
|
||||
background-color: red;
|
||||
}
|
||||
```
|
||||
|
||||
### Objective C
|
||||
|
||||
``` objectivec
|
||||
#import <stdio.h>
|
||||
|
||||
int main (void)
|
||||
{
|
||||
printf ("Hello world!\n");
|
||||
}
|
||||
```
|
||||
|
||||
### Python
|
||||
|
||||
``` python
|
||||
print "Hello, world!"
|
||||
```
|
||||
|
||||
### XML
|
||||
|
||||
``` xml
|
||||
<employees>
|
||||
<employee>
|
||||
<firstName>John</firstName> <lastName>Doe</lastName>
|
||||
</employee>
|
||||
</employees>
|
||||
```
|
||||
|
||||
### Perl
|
||||
|
||||
``` perl
|
||||
print "Hello, World!\n";
|
||||
```
|
||||
|
||||
### Bash
|
||||
|
||||
``` bash
|
||||
echo "Hello World"
|
||||
```
|
||||
|
||||
### PHP
|
||||
|
||||
``` php
|
||||
<?php echo '<p>Hello World</p>'; ?>
|
||||
```
|
||||
|
||||
### CoffeeScript
|
||||
|
||||
``` coffeescript
|
||||
console.log(“Hello world!”);
|
||||
```
|
||||
|
||||
### C#
|
||||
|
||||
``` cs
|
||||
using System;
|
||||
class Program
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Hello, world!");
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### C++
|
||||
|
||||
``` cpp
|
||||
#include <iostream.h>
|
||||
|
||||
main()
|
||||
{
|
||||
cout << "Hello World!";
|
||||
return 0;
|
||||
}
|
||||
```
|
||||
|
||||
### SQL
|
||||
|
||||
``` sql
|
||||
SELECT column_name,column_name
|
||||
FROM table_name;
|
||||
```
|
||||
|
||||
### Go
|
||||
|
||||
``` go
|
||||
package main
|
||||
import "fmt"
|
||||
func main() {
|
||||
fmt.Println("Hello, 世界")
|
||||
}
|
||||
```
|
||||
|
||||
### Ruby
|
||||
|
||||
```ruby
|
||||
puts "Hello, world!"
|
||||
```
|
||||
|
||||
### Java
|
||||
|
||||
```java
|
||||
import javax.swing.JFrame; //Importing class JFrame
|
||||
import javax.swing.JLabel; //Importing class JLabel
|
||||
public class HelloWorld {
|
||||
public static void main(String[] args) {
|
||||
JFrame frame = new JFrame(); //Creating frame
|
||||
frame.setTitle("Hi!"); //Setting title frame
|
||||
frame.add(new JLabel("Hello, world!"));//Adding text to frame
|
||||
frame.pack(); //Setting size to smallest
|
||||
frame.setLocationRelativeTo(null); //Centering frame
|
||||
frame.setVisible(true); //Showing frame
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Latex Equation
|
||||
|
||||
```latex
|
||||
\frac{d}{dx}\left( \int_{0}^{x} f(u)\,du\right)=f(x).
|
||||
```
|
||||
|
||||
```javascript
|
||||
import {x, y} as p from 'point';
|
||||
const ANSWER = 42;
|
||||
|
||||
class Car extends Vehicle {
|
||||
constructor(speed, cost) {
|
||||
super(speed);
|
||||
|
||||
var c = Symbol('cost');
|
||||
this[c] = cost;
|
||||
|
||||
this.intro = `This is a car runs at
|
||||
${speed}.`;
|
||||
}
|
||||
}
|
||||
|
||||
for (let num of [1, 2, 3]) {
|
||||
console.log(num + 0b111110111);
|
||||
}
|
||||
|
||||
function $initHighlight(block, flags) {
|
||||
try {
|
||||
if (block.className.search(/\bno\-highlight\b/) != -1)
|
||||
return processBlock(block.function, true, 0x0F) + ' class=""';
|
||||
} catch (e) {
|
||||
/* handle exception */
|
||||
var e4x =
|
||||
<div>Example
|
||||
<p>1234</p></div>;
|
||||
}
|
||||
for (var i = 0 / 2; i < classes.length; i++) {
|
||||
// "0 / 2" should not be parsed as regexp
|
||||
if (checkCondition(classes[i]) === undefined)
|
||||
return /\d+[\s/]/g;
|
||||
}
|
||||
console.log(Array.every(classes, Boolean));
|
||||
}
|
||||
|
||||
export $initHighlight;
|
||||
```
|
||||
|
||||
```html
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Hello world</title>
|
||||
<link href='http://fonts.googleapis.com/css?family=Roboto:400,400italic,700,700italic' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" href="index.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/less.js/2.5.1/less.min.js"></script>
|
||||
<script src="vendor/prism.js"></script>
|
||||
<script src="examples.bundle.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
```css
|
||||
/*********************************************************
|
||||
* General
|
||||
*/
|
||||
pre[class*="language-"],
|
||||
code {
|
||||
color: #5c6e74;
|
||||
font-size: 13px;
|
||||
text-shadow: none;
|
||||
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
||||
direction: ltr;
|
||||
text-align: left;
|
||||
white-space: pre;
|
||||
word-spacing: normal;
|
||||
word-break: normal;
|
||||
line-height: 1.5;
|
||||
tab-size: 4;
|
||||
hyphens: none;
|
||||
}
|
||||
pre[class*="language-"]::selection,
|
||||
code::selection {
|
||||
text-shadow: none;
|
||||
background: #b3d4fc;
|
||||
}
|
||||
@media print {
|
||||
pre[class*="language-"],
|
||||
code {
|
||||
text-shadow: none;
|
||||
}
|
||||
}
|
||||
pre[class*="language-"] {
|
||||
padding: 1em;
|
||||
margin: .5em 0;
|
||||
overflow: auto;
|
||||
background: #f8f5ec;
|
||||
}
|
||||
:not(pre) > code {
|
||||
padding: .1em .3em;
|
||||
border-radius: .3em;
|
||||
color: #db4c69;
|
||||
background: #f9f2f4;
|
||||
}
|
||||
```
|
|
@ -0,0 +1,54 @@
|
|||
---
|
||||
title: "Chart support"
|
||||
date: 2019-11-18T12:00:06+09:00
|
||||
description: "Simple yet flexible JavaScript charting for designers & developers"
|
||||
draft: false
|
||||
enableToc: false
|
||||
enableTocContent: false
|
||||
tags:
|
||||
-
|
||||
series:
|
||||
-
|
||||
categories:
|
||||
- diagram
|
||||
libraries:
|
||||
- chart
|
||||
image: images/feature1/graph.png
|
||||
---
|
||||
|
||||
```chart
|
||||
{
|
||||
"type": "bar",
|
||||
"data":
|
||||
{
|
||||
"labels": ["One", "Two", "Three", "Four", "Five", "Six"],
|
||||
"datasets": [{
|
||||
"label": "# of Votes",
|
||||
"data": [12, 19, 3, 5, 3, 8]
|
||||
}]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
```chart
|
||||
{
|
||||
"type": "line",
|
||||
"data": {
|
||||
"labels": ["One", "Two", "Three", "Four", "Five", "Six"],
|
||||
"datasets": [
|
||||
{
|
||||
"label": "# of Votes",
|
||||
"data": [12, 19, 3, 5, 2, 3],
|
||||
"backgroundColor":"transparent",
|
||||
"borderColor":"orange"
|
||||
},
|
||||
{
|
||||
"label": "Some other set",
|
||||
"data": [15, 8, 13, 5, 5, 9],
|
||||
"backgroundColor":"transparent",
|
||||
"borderColor":"#44ccff"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
|
@ -0,0 +1,36 @@
|
|||
---
|
||||
title: "Flowchart support"
|
||||
date: 2019-11-14T12:00:06+09:00
|
||||
description: "flowchart.js is a flowchart DSL and SVG render that runs in the browser and terminal.
|
||||
Nodes and connections are defined in separately so that nodes can be reused and connections can be quickly changed."
|
||||
draft: false
|
||||
enableToc: false
|
||||
enableTocContent: false
|
||||
tags:
|
||||
-
|
||||
series:
|
||||
-
|
||||
categories:
|
||||
- diagram
|
||||
libraries:
|
||||
- flowchartjs
|
||||
image: images/feature1/flowchart.png
|
||||
---
|
||||
|
||||
```flowchart
|
||||
st=>start: Start|past:>http://www.google.com[blank]
|
||||
e=>end: End|future:>http://www.google.com
|
||||
op1=>operation: My Operation|past
|
||||
op2=>operation: Stuff|current
|
||||
sub1=>subroutine: My Subroutine|invalid
|
||||
cond=>condition: Yes
|
||||
or No?|approved:>http://www.google.com
|
||||
c2=>condition: Good idea|rejected
|
||||
io=>inputoutput: catch something...|future
|
||||
|
||||
st->op1(right)->cond
|
||||
cond(yes, right)->c2
|
||||
cond(no)->sub1(left)->op1
|
||||
c2(yes)->io->e
|
||||
c2(no)->op2->e
|
||||
```
|
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
title: "JS Sequence Diagram support"
|
||||
date: 2019-11-18T12:00:06+09:00
|
||||
description: "Generates UML sequence diagrams from simple text"
|
||||
draft: false
|
||||
enableToc: false
|
||||
enableTocContent: false
|
||||
tags:
|
||||
-
|
||||
series:
|
||||
-
|
||||
categories:
|
||||
- diagram
|
||||
libraries:
|
||||
- msc
|
||||
image: images/feature2/transfer.png
|
||||
---
|
||||
|
||||
```msc
|
||||
Alice->Bob: Hello Bob, how are you?
|
||||
Note right of Bob: Bob thinks
|
||||
Bob-->Alice: I am good thanks!
|
||||
```
|
||||
|
||||
```msc
|
||||
Title: Here is a title
|
||||
A->B: Normal line
|
||||
B-->C: Dashed line
|
||||
C->>D: Open arrow
|
||||
D-->>A: Dashed open arrow
|
||||
```
|
|
@ -0,0 +1,47 @@
|
|||
---
|
||||
title: "Katex support"
|
||||
date: 2019-11-15T12:00:06+09:00
|
||||
description: "KaTeX is a fast, easy-to-use JavaScript library for TeX math rendering on the web."
|
||||
draft: false
|
||||
enableToc: false
|
||||
enableTocContent: false
|
||||
tags:
|
||||
-
|
||||
series:
|
||||
-
|
||||
categories:
|
||||
- math
|
||||
libraries:
|
||||
- katex
|
||||
image: images/feature2/mathbook.png
|
||||
---
|
||||
|
||||
The following
|
||||
|
||||
$$ \int_{a}^{b} x^2 dx $$
|
||||
|
||||
Is an integral
|
||||
|
||||
$$ \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } $$
|
||||
|
||||
Enable Katex in the config file by setting the `katex` param to `true`. This will import the necessary Katex CSS/JS.
|
||||
|
||||
See the online reference of [supported TeX functions](https://katex.org/docs/supported.html).
|
||||
|
||||
**Note:** For inline math to render correctly, your content file extension must be `.mmark`. See the [official mmark site](https://mmark.nl/).
|
||||
|
||||
```
|
||||
Inline math: $ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $
|
||||
```
|
||||
|
||||
Inline math: $ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $
|
||||
|
||||
```
|
||||
Block math:
|
||||
|
||||
$$ \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } $$
|
||||
```
|
||||
|
||||
Block math:
|
||||
|
||||
$$ \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } $$
|
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
title: "MathJax support"
|
||||
date: 2019-11-16T12:00:06+09:00
|
||||
description: "A JavaScript display engine for mathematics that works in all browsers.No more setup for readers. It just works."
|
||||
draft: false
|
||||
enableToc: false
|
||||
enableTocContent: false
|
||||
tags:
|
||||
-
|
||||
series:
|
||||
-
|
||||
categories:
|
||||
- math
|
||||
libraries:
|
||||
- mathjax
|
||||
image: images/feature1/infinity.png
|
||||
---
|
||||
|
||||
When $a \ne 0$, there are two solutions to $\(ax^2 + bx + c = 0\)\$ and they are
|
||||
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
|
|
@ -0,0 +1,94 @@
|
|||
---
|
||||
title: "Mermaid support"
|
||||
date: 2019-11-17T12:00:06+09:00
|
||||
description: "Generate diagrams, charts, graphs or flows from markdown-like text via javascript."
|
||||
draft: false
|
||||
enableToc: false
|
||||
enableTocContent: false
|
||||
tags:
|
||||
- diagram
|
||||
series:
|
||||
-
|
||||
categories:
|
||||
- diagram
|
||||
libraries:
|
||||
- mermaid
|
||||
image: images/feature2/workflow.png
|
||||
---
|
||||
|
||||
```mermaid
|
||||
graph TD;
|
||||
A-->B;
|
||||
A-->C;
|
||||
B-->D;
|
||||
C-->D;
|
||||
```
|
||||
|
||||
```mermaid
|
||||
sequenceDiagram
|
||||
participant Alice
|
||||
participant Bob
|
||||
Alice->John: Hello John, how are you?
|
||||
loop Healthcheck
|
||||
John->John: Fight against hypochondria
|
||||
end
|
||||
Note right of John: Rational thoughts <br/>prevail...
|
||||
John-->Alice: Great!
|
||||
John->Bob: How about you?
|
||||
Bob-->John: Jolly good!
|
||||
```
|
||||
|
||||
```mermaid
|
||||
graph TD
|
||||
A[Hard] -->|Text| B(Round)
|
||||
B --> C{Decision}
|
||||
C -->|One| D[Result 1]
|
||||
C -->|Two| E[Result 2]
|
||||
```
|
||||
|
||||
```mermaid
|
||||
gantt
|
||||
section Section
|
||||
Completed :done, des1, 2014-01-06,2014-01-08
|
||||
Active :active, des2, 2014-01-07, 3d
|
||||
Parallel 1 : des3, after des1, 1d
|
||||
Parallel 2 : des4, after des1, 1d
|
||||
Parallel 3 : des5, after des3, 1d
|
||||
Parallel 4 : des6, after des4, 1d
|
||||
```
|
||||
|
||||
```mermaid
|
||||
classDiagram
|
||||
Class01 <|-- AveryLongClass : Cool
|
||||
<<interface>> Class01
|
||||
Class09 --> C2 : Where am i?
|
||||
Class09 --* C3
|
||||
Class09 --|> Class07
|
||||
Class07 : equals()
|
||||
Class07 : Object[] elementData
|
||||
Class01 : size()
|
||||
Class01 : int chimp
|
||||
Class01 : int gorilla
|
||||
class Class10 {
|
||||
<<service>>
|
||||
int id
|
||||
size()
|
||||
}
|
||||
```
|
||||
|
||||
```mermaid
|
||||
stateDiagram
|
||||
[*] --> Still
|
||||
Still --> [*]
|
||||
Still --> Moving
|
||||
Moving --> Still
|
||||
Moving --> Crash
|
||||
Crash --> [*]
|
||||
```
|
||||
|
||||
```mermaid
|
||||
pie
|
||||
"Dogs" : 386
|
||||
"Cats" : 85
|
||||
"Rats" : 15
|
||||
```
|
|
@ -0,0 +1,48 @@
|
|||
---
|
||||
title: "Viz support"
|
||||
date: 2019-11-18T21:00:06+09:00
|
||||
description: "A hack to put Graphviz on the web."
|
||||
draft: false
|
||||
enableToc: false
|
||||
enableTocContent: false
|
||||
tags:
|
||||
-
|
||||
series:
|
||||
-
|
||||
categories:
|
||||
- diagram
|
||||
libraries:
|
||||
- viz
|
||||
image: images/feature2/graph.png
|
||||
---
|
||||
|
||||
```viz-dot
|
||||
digraph G {
|
||||
|
||||
subgraph cluster_0 {
|
||||
style=filled;
|
||||
color=lightgrey;
|
||||
node [style=filled,color=white];
|
||||
a0 -> a1 -> a2 -> a3;
|
||||
label = "process #1";
|
||||
}
|
||||
|
||||
subgraph cluster_1 {
|
||||
node [style=filled];
|
||||
b0 -> b1 -> b2 -> b3;
|
||||
label = "process #2";
|
||||
color=blue
|
||||
}
|
||||
start -> a0;
|
||||
start -> b0;
|
||||
a1 -> b3;
|
||||
b2 -> a3;
|
||||
a3 -> a0;
|
||||
a3 -> end;
|
||||
b3 -> end;
|
||||
|
||||
start [shape=Mdiamond];
|
||||
end [shape=Msquare];
|
||||
}
|
||||
|
||||
```
|
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
title: "Wavedrom support"
|
||||
date: 2019-11-18T18:00:06+09:00
|
||||
description: "WaveDrom is a Free and Open Source online digital timing diagram (waveform) rendering engine that uses javascript, HTML5 and SVG to convert a WaveJSON input text description into SVG vector graphics."
|
||||
draft: false
|
||||
enableToc: false
|
||||
enableTocContent: false
|
||||
tags:
|
||||
-
|
||||
series:
|
||||
-
|
||||
categories:
|
||||
- diagram
|
||||
libraries:
|
||||
- wavedrom
|
||||
image: images/feature1/wave.png
|
||||
---
|
||||
|
||||
```wave
|
||||
{
|
||||
"signal": [ {"name": "CLK", "wave": "p.....|..."},
|
||||
{"name":"DAT", "wave":"x.345x|=.x", "data":["A","B","C","D"]},
|
||||
{"name": "REQ", "wave": "0.1..0|1.0"},
|
||||
{},
|
||||
{"name": "ACK", "wave": "1.....|01."}
|
||||
]}
|
||||
```
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: "Presentations"
|
||||
description: "Presentation list with reveal.js"
|
||||
---
|
|
@ -0,0 +1,87 @@
|
|||
---
|
||||
title: "Fourth"
|
||||
date: 2019-10-30T20:48:10+09:00
|
||||
description: "My fourth presentation"
|
||||
tags:
|
||||
-
|
||||
series:
|
||||
-
|
||||
categories:
|
||||
-
|
||||
image: images/feature1/number-four.png
|
||||
plugins:
|
||||
- highlight
|
||||
- zoom
|
||||
- notes
|
||||
- math
|
||||
highlightTheme: monokai
|
||||
revealTheme: bagie
|
||||
revealBackgroundColor: "" # #fff or rgba() or hsl()
|
||||
revealBackgroundImage: "" # /images/myImage.png <= static folder path
|
||||
revealBackgroundPosition: "" # left top, left center, left bottom, right top, right center ...
|
||||
revealBackgroundRepeat: "" # repeat, repeat-x, repeat-y, no-repeat, inherit
|
||||
revealBackgroundOpacity: "" # 0~1
|
||||
revealBackgroundVideo: "" # /videos/myVideo.mp4 <= static folder path, A single video source, or a comma separated list of video sources.
|
||||
revealBackgroundVideoLoop: false # true, false
|
||||
revealBackgroundVideoMuted: false # true, false
|
||||
revealBackgroundSize: "" # cover, contain, ...
|
||||
reveal:
|
||||
- main:
|
||||
- sub:
|
||||
- |
|
||||
# Hugo
|
||||
## The world’s fastest framework for building websites
|
||||
|
||||
- sub:
|
||||
- |
|
||||
Hugo is one of the most popular open-source static site generators. With its amazing speed and flexibility, Hugo makes building websites fun again.
|
||||
- main:
|
||||
- sub:
|
||||
- |
|
||||
# Reveal.js
|
||||
## A framework for easily creating beautiful presentations using HTML.
|
||||
- [Check out the live demo](https://revealjs.com/#/)
|
||||
- main:
|
||||
- sub:
|
||||
- |
|
||||
You can easily create presentation documents using Markdown.
|
||||
- fragment:
|
||||
- sub:
|
||||
- |
|
||||
# here
|
||||
- sub:
|
||||
- |
|
||||
#### you
|
||||
- sub:
|
||||
- |
|
||||
#### go
|
||||
- main:
|
||||
- sub:
|
||||
- |
|
||||
# POINT OF VIEW
|
||||
|
||||
Press *ESC* to enter the slide overview.
|
||||
|
||||
Hold down the alt key (ctrl in Linux) and click on any element to zoom towards it using zoom.js. click again to zoom back out.
|
||||
|
||||
(NOTE\: Use ctrl + click in Linux)
|
||||
- fragment:
|
||||
- sub:
|
||||
- |
|
||||
## FRAGMENTS
|
||||
- sub:
|
||||
- |
|
||||
Hit the next arrow...
|
||||
- sub:
|
||||
- |
|
||||
... to step through ...
|
||||
- sub:
|
||||
- |
|
||||
.. a
|
||||
- sub:
|
||||
- |
|
||||
.. a fragmented
|
||||
- sub:
|
||||
- |
|
||||
.. a fragmented slide.
|
||||
---
|
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
title: "First"
|
||||
date: 2019-10-30T19:45:20+09:00
|
||||
description: "My first presentation"
|
||||
tags:
|
||||
-
|
||||
series:
|
||||
-
|
||||
categories:
|
||||
-
|
||||
image: images/feature1/number-one.png
|
||||
revealBackgroundColor: "" # #fff or rgba() or hsl()
|
||||
revealBackgroundImage: "" # /images/myImage.png <= static folder path
|
||||
revealBackgroundPosition: "" # left top, left center, left bottom, right top, right center ...
|
||||
revealBackgroundRepeat: "" # repeat, repeat-x, repeat-y, no-repeat, inherit
|
||||
revealBackgroundOpacity: "" # 0~1
|
||||
revealBackgroundVideo: "" # /videos/myVideo.mp4 <= static folder path, A single video source, or a comma separated list of video sources.
|
||||
revealBackgroundVideoLoop: false # true, false
|
||||
revealBackgroundVideoMuted: false # true, false
|
||||
revealBackgroundSize: "" # cover, contain, ...
|
||||
reveal:
|
||||
- main:
|
||||
- sub:
|
||||
- |
|
||||
test 1
|
||||
- main:
|
||||
- sub:
|
||||
- |
|
||||
test 2
|
||||
---
|
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
title: "Second"
|
||||
date: 2019-10-30T20:45:24+09:00
|
||||
description: "My second presentation"
|
||||
tags:
|
||||
-
|
||||
series:
|
||||
-
|
||||
categories:
|
||||
-
|
||||
image: images/feature1/number-two.png
|
||||
revealBackgroundColor: "" # #fff or rgba() or hsl()
|
||||
revealBackgroundImage: "" # /images/myImage.png <= static folder path
|
||||
revealBackgroundPosition: "" # left top, left center, left bottom, right top, right center ...
|
||||
revealBackgroundRepeat: "" # repeat, repeat-x, repeat-y, no-repeat, inherit
|
||||
revealBackgroundOpacity: "" # 0~1
|
||||
revealBackgroundVideo: "" # /videos/myVideo.mp4 <= static folder path, A single video source, or a comma separated list of video sources.
|
||||
revealBackgroundVideoLoop: false # true, false
|
||||
revealBackgroundVideoMuted: false # true, false
|
||||
revealBackgroundSize: "" # cover, contain, ...
|
||||
reveal:
|
||||
- main:
|
||||
- sub:
|
||||
- |
|
||||
test 1
|
||||
- main:
|
||||
- sub:
|
||||
- |
|
||||
test 2
|
||||
---
|
|
@ -0,0 +1,75 @@
|
|||
---
|
||||
title: "Third"
|
||||
date: 2019-10-30T20:46:30+09:00
|
||||
description: "My third presentation"
|
||||
tags:
|
||||
-
|
||||
series:
|
||||
-
|
||||
categories:
|
||||
-
|
||||
image: images/feature1/number-three.png
|
||||
plugins:
|
||||
- highlight
|
||||
- zoom
|
||||
- math
|
||||
highlightTheme: monokai
|
||||
revealBackgroundColor: "" # #fff or rgba() or hsl()
|
||||
revealBackgroundImage: "" # /images/myImage.png <= static folder path
|
||||
revealBackgroundPosition: "" # left top, left center, left bottom, right top, right center ...
|
||||
revealBackgroundRepeat: "" # repeat, repeat-x, repeat-y, no-repeat, inherit
|
||||
revealBackgroundOpacity: "" # 0~1
|
||||
revealBackgroundVideo: "" # /videos/myVideo.mp4 <= static folder path, A single video source, or a comma separated list of video sources.
|
||||
revealBackgroundVideoLoop: false # true, false
|
||||
revealBackgroundVideoMuted: false # true, false
|
||||
revealBackgroundSize: "" # cover, contain, ...
|
||||
revealTheme: league
|
||||
reveal:
|
||||
- main:
|
||||
- sub:
|
||||
- |
|
||||
## Syntax highlighting
|
||||
```go
|
||||
// If an unknown or empty style is provided, AP style is what you get.
|
||||
func GetTitleFunc(style string) func(s string) string {
|
||||
switch strings.ToLower(style) {
|
||||
case "go":
|
||||
return strings.Title
|
||||
case "chicago":
|
||||
return transform.NewTitleConverter(transform.ChicagoStyle)
|
||||
default:
|
||||
return transform.NewTitleConverter(transform.APStyle)
|
||||
}
|
||||
}
|
||||
```
|
||||
- main:
|
||||
- sub:
|
||||
- |
|
||||
## Mathjax 1
|
||||
\\[\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix}
|
||||
\mathbf{i} & \mathbf{j} & \mathbf{k} \\
|
||||
\frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \\
|
||||
\frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0
|
||||
\end{vmatrix} \\]
|
||||
- main:
|
||||
- sub:
|
||||
- |
|
||||
## Mathjax 2
|
||||
\\[\begin{aligned}
|
||||
\dot{x} & = \sigma(y-x) \\
|
||||
\dot{y} & = \rho x - y - xz \\
|
||||
\dot{z} & = -\beta z + xy
|
||||
\end{aligned} \\]
|
||||
- main:
|
||||
- sub:
|
||||
- |
|
||||
## Mathjax 3
|
||||
\\[P(E) = {n \choose k} p^k (1-p)^{ n-k} \\]
|
||||
- main:
|
||||
- sub:
|
||||
- |
|
||||
## Mathjax 4
|
||||
\\[ \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} =
|
||||
1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
|
||||
{1+\frac{e^{-8\pi}} {1+\ldots} } } } \\]
|
||||
---
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: article
|
||||
date: 2020-03-05 14:08:48.459816
|
||||
description: Publication - article
|
||||
---
|
|
@ -0,0 +1,14 @@
|
|||
@article{articleExample1,
|
||||
abstract = {Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.},
|
||||
author = {zzossig},
|
||||
copyright = {Copyright (c) 2018 zzossig},
|
||||
journal = {Lorem},
|
||||
keywords = {⛔ No DOI found},
|
||||
language = {en},
|
||||
month = {June},
|
||||
title = {Crossdressing, {Crossculture}},
|
||||
url = {https://google.com},
|
||||
urldate = {2019-12-13},
|
||||
year = {2018}
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
keywords: ['example']
|
||||
authors: ['zzossig']
|
||||
publication: "abc"
|
||||
abstract: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
||||
links:
|
||||
- name: url
|
||||
link: https://google.com
|
||||
copyright: "Copyright (c) 2018 zzossig"
|
||||
title: "Good Title"
|
||||
ENTRYTYPE: "article"
|
||||
enableToc: False
|
||||
enableWhoami: True
|
||||
pinned: true
|
||||
publishDate: "2018-06-01"
|
||||
---
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: book
|
||||
date: 2020-03-05 14:08:48.402839
|
||||
description: Publication - book
|
||||
---
|
|
@ -0,0 +1,13 @@
|
|||
@book{bookExample1,
|
||||
abstract = {Donec vel ipsum vulputate, dapibus magna quis, auctor mauris. Aliquam ut dapibus risus. Duis sit amet magna posuere, interdum metus sed, maximus tortor. Maecenas tempus ut magna nec facilisis. Pellentesque vel ultrices nunc, eget ultrices mauris. Ut eget ligula quis purus porta rhoncus eget at eros. In id felis ullamcorper, vehicula ante sed, cursus magna. Curabitur libero nibh, posuere in urna in, viverra pulvinar lectus. Pellentesque rutrum tempus elit at hendrerit. Sed enim est, bibendum in augue iaculis, viverra venenatis sapien. Nullam sagittis augue maximus mi interdum maximus. Praesent a cursus massa.},
|
||||
author = {zzossig},
|
||||
copyright = {All rights reserved},
|
||||
isbn = {978-1-311-04245-3},
|
||||
language = {English},
|
||||
month = {June},
|
||||
publisher = {Self-Published},
|
||||
shorttitle = {Donec vel ipsum vulputate},
|
||||
title = {Donec vel ipsum vulputate, dapibus magna quis},
|
||||
year = {2017}
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
authors: ['zzossig']
|
||||
publisher: "Self-Published"
|
||||
abstract: "Donec vel ipsum vulputate, dapibus magna quis, auctor mauris. Aliquam ut dapibus risus. Duis sit amet magna posuere, interdum metus sed, maximus tortor. Maecenas tempus ut magna nec facilisis. Pellentesque vel ultrices nunc, eget ultrices mauris. Ut eget ligula quis purus porta rhoncus eget at eros. In id felis ullamcorper, vehicula ante sed, cursus magna. Curabitur libero nibh, posuere in urna in, viverra pulvinar lectus. Pellentesque rutrum tempus elit at hendrerit. Sed enim est, bibendum in augue iaculis, viverra venenatis sapien. Nullam sagittis augue maximus mi interdum maximus. Praesent a cursus massa."
|
||||
shorttitle: "Donec vel ipsum vulputate"
|
||||
isbn: "978-1-311-04245-3"
|
||||
copyright: "All rights reserved"
|
||||
title: "Donec vel ipsum vulputate, dapibus magna quis"
|
||||
ENTRYTYPE: "book"
|
||||
enableToc: False
|
||||
enableWhoami: True
|
||||
pinned: true
|
||||
publishDate: "2017-06-01"
|
||||
---
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: misc
|
||||
date: 2020-03-05 14:08:48.469815
|
||||
description: Publication - misc
|
||||
---
|
|
@ -0,0 +1,14 @@
|
|||
@misc{miscExample1,
|
||||
abstract = {Review by Katelyn Smith In his first full-length book, Annals of Pornographie: How Porn Became Bad (2016), Brian Watson traces the long history of pornography in the West, reiterating throughout hi…},
|
||||
author = {Clutterbuck-Cook, Anna and Watson, Brian M.},
|
||||
copyright = {All rights reserved},
|
||||
journal = {Dósis},
|
||||
language = {en},
|
||||
month = {November},
|
||||
shorttitle = {Book {Review}},
|
||||
title = {Book {Review}: {Annals} of {Pornographie}},
|
||||
url = {https://medhumdosis.com/2016/11/23/book-review-annals-of-pornographie/},
|
||||
urldate = {2019-12-13},
|
||||
year = {2016}
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
authors: ['zzossig', 'teemo']
|
||||
publication: "abc"
|
||||
abstract: "Duis vulputate odio vitae consectetur lacinia. Vivamus tellus nisi, hendrerit eget tortor eget, rutrum lobortis tellus. Donec convallis scelerisque egestas. Vestibulum ex urna, commodo at interdum vitae, malesuada id arcu. Praesent et enim libero. Proin et felis nisi. Duis imperdiet placerat dapibus."
|
||||
links:
|
||||
- name: url
|
||||
link: https://google.com
|
||||
shorttitle: "Book Review"
|
||||
copyright: "All rights reserved"
|
||||
title: "Book Review: Duis vulputate"
|
||||
ENTRYTYPE: "misc"
|
||||
enableToc: False
|
||||
enableWhoami: True
|
||||
pinned: true
|
||||
publishDate: "2016-11-01"
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: "Showcase overview"
|
||||
date: 2020-01-19T15:43:38+09:00
|
||||
description: My portfolio, repos, works overview page
|
||||
enableBio: false
|
||||
---
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
title: "Hugo"
|
||||
date: 2020-01-19T21:04:11+09:00
|
||||
description: Hugo theme collection
|
||||
category: theme
|
||||
enableBio: false
|
||||
---
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
title: "Hugo zDoc Theme"
|
||||
date: 2020-01-19T21:13:42+09:00
|
||||
description: Make a documentation with hugo zdoc theme!
|
||||
weight: 2
|
||||
link: https://github.com/zzossig/hugo-theme-zdoc
|
||||
repo: https://github.com/zzossig/hugo-theme-zdoc
|
||||
pinned: true
|
||||
thumb: feature3/css3-bare.png
|
||||
---
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
title: "Hugo Zzo Theme"
|
||||
date: 2020-01-19T21:13:42+09:00
|
||||
description: Make a blog with hugo zzo theme!
|
||||
weight: 1
|
||||
link: https://github.com/zzossig/hugo-theme-zzo
|
||||
repo: https://github.com/zzossig/hugo-theme-zzo
|
||||
pinned: true
|
||||
thumb: feature3/css3.png
|
||||
---
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
{"Target":"css/main.min.css","MediaType":"text/css","Data":{}}
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 6757d0f3b1f5a08aff8a4592720e4c3e38b91dc2
|
Loading…
Reference in New Issue