config file added to exampleSite, media file compressed,

This commit is contained in:
zzossig 2019-11-05 00:00:41 +09:00
parent cc3078ede0
commit 07200cf8fd
17 changed files with 161 additions and 267 deletions

View File

@ -11,7 +11,7 @@ $hacker: (
body-color: $primary-color,
hr-color: $secondary-color,
body-background-color: #151715,
backdrop-background-color: #333333,
backdrop-background-color: #111,
dropdown-border-color: #7B4D94,
dropdown-border-top-color: #6B6B6B,
dropdown-item-active-background-color: lighten(#151715, 12%),

View File

@ -1,139 +0,0 @@
baseURL = "/"
archetypeDir = "archetypes"
assetDir = "assets"
contentDir = "content"
dataDir = "data"
layoutDir = "layouts"
publishDir = "public"
staticDir = "static"
themesDir = "themes"
languageCode = "en-us"
languageName = "English"
defaultContentLanguage = "en"
defaultContentLanguageInSubdir = true
hasCJKLanguage = false
summaryLength = 70
googleAnalytics = ""
copyright = "MIT©zzossig"
timeout = 10000
buildDrafts = false
buildExpired = false
buildFuture = false
canonifyURLs = false
disableAliases = false
disableHugoGeneratorInject = false
disableKinds = []
disableLiveReload = false
disablePathToLower = false
enableEmoji = true
enableGitInfo = false
enableInlineShortcodes = true
enableMissingTranslationPlaceholders = false
enableRobotsTXT = true
footnoteAnchorPrefix = ""
footnoteReturnLinkContents = ""
log = false
logFile = ""
newContentEditor = ""
noChmod = false
noTimes = false
paginate = 7
paginatePath = "page"
pluralizeListTitles = true
pygmentsCodeFencesGuessSyntax = true
pygmentsUseClasses = true
pygmentsStyle = "monokai"
relativeURLs = false
refLinksErrorLevel = "ERROR"
rssLimit = 100
sectionPagesMenu = ""
titleCaseStyle = "AP"
uglyURLs = false
verbose = false
verboseLog = false
watch = false
[outputs]
home = [ "HTML", "RSS", "JSON" ]
[taxonomies]
category = "categories"
tag = "tags"
series = "series"
[blackfriday]
taskLists = true
smartypants = true
smartypantsQuotesNBSP = false
angledQuotes = false
fractions = true
smartDashes = true
latexDashes = true
hrefTargetBlank = false
nofollowLinks = false
noreferrerLinks = false
plainIDAnchors = true
# enable extensions
extensions = ["noIntraEmphasis", "tables", "fencedCode", "autolink", "strikethrough", "spaceHeaders", "footnotes", "headerIds", "autoHeaderIds", "backslashLineBreak", "definitionLists", "joinLines"]
# disable extensions
extensionsmask = ["laxHtmlBlocks", "hardLineBreak", "tabSizeEight", "noEmptyLineBeforeBlock", "titleblock"]
skipHTML = false
[caches]
[caches.getjson]
dir = ":cacheDir/:project"
maxAge = -1
[caches.getcsv]
dir = ":cacheDir/:project"
maxAge = -1
[caches.images]
dir = ":resourceDir/_gen"
maxAge = -1
[caches.assets]
dir = ":resourceDir/_gen"
maxAge = -1
[caches.modules]
dir = ":cacheDir/modules"
maxAge = -1
[frontmatter]
date = ["date", "publishDate", "lastmod"]
lastmod = [":git", "lastmod", "date", "publishDate"]
publishDate = ["publishDate", "date"]
expiryDate = ["expiryDate"]
[imaging]
resampleFilter = "box"
quality = 75
anchor = "smart"
[imaging.exif]
includeFields = ""
excludeFields = ""
disableDate = false
disableLatLong = false
[module]
noProxy = "none"
private = "*.*"
proxy = "direct"
[module.hugoVersion]
extended = false
max = ""
min = ""
[sitemap]
changefreq = "monthly"
filename = "sitemap.xml"
priority = 0.5

View File

@ -1,9 +0,0 @@
[en]
title = "Hugo Zzo Theme"
languageName = "English"
weight = 1
[ko]
title = "Hugo Zzo Theme"
languageName = "한국어"
weight = 2

View File

@ -1,39 +0,0 @@
[[main]]
identifier = "about"
name = "about"
url = "/en/about/"
weight = 1
[[main]]
identifier = "archive"
name = "archive"
url = "/en/archive/"
weight = 2
[[main]]
identifier = "gallery"
name = "gallery"
url = "/en/gallery"
weight = 3
[[main]]
parent = "gallery"
name = "cartoon"
url = "/en/gallery/cartoon"
[[main]]
parent = "gallery"
name = "photo"
url = "/en/gallery/photo"
[[main]]
identifier = "posts"
name = "posts"
url = "/en/posts/"
weight = 4
[[main]]
identifier = "notes"
name = "notes"
url = "/en/notes/"
weight = 5

View File

@ -1,39 +0,0 @@
[[main]]
identifier = "about"
name = "about"
url = "/ko/about/"
weight = 1
[[main]]
identifier = "archive"
name = "archive"
url = "/ko/archive/"
weight = 2
[[main]]
identifier = "gallery"
name = "gallery"
url = "/ko/gallery/"
weight = 3
[[main]]
parent = "gallery"
name = "cartoon"
url = "/ko/gallery/cartoon/"
[[main]]
parent = "gallery"
name = "photo"
url = "/ko/gallery/photo/"
[[main]]
identifier = "posts"
name = "posts"
url = "/ko/posts/"
weight = 4
[[main]]
identifier = "notes"
name = "notes"
url = "/ko/notes/"
weight = 5

View File

@ -1,35 +0,0 @@
description = "The Zzo theme for Hugo example site."
# body
enableToc = true
enableBreadcrumb = true
enableCustomScrollbar = true
enablePhotoSwipe = true
enableSearch = true
enableMark = true
# sidebar
enableSidebarTags = true
enableSidebarSeries = true
enableSidebarCategories = true
# footer
showPoweredBy = true
showFeedLinks = true
showSocialLinks = true
enableLangChange = true
enableThemeChange = true
themeOptions = ["dark", "light", "hacker", "solarized"]
[socialOptions]
facebook = "http://example.org/"
twitter = "http://example.org/"
github = "http://example.org/"
stack-overflow = ""
instagram = ""
google-plus = ""
youtube = ""
medium = ""
tumblr = ""
linkedin = ""
pinterest = "http://example.org/"
stack-exchange = ""

153
exampleSite/config.toml Normal file
View File

@ -0,0 +1,153 @@
baseURL = "http://example.org/"
title = "Hugo Zzo Theme"
theme = "zzo"
defaultContentLanguage = "en"
defaultContentLanguageInSubdir = false
hasCJKLanguage = false
summaryLength = 70
googleAnalytics = ""
copyright = "MIT©zzossig"
timeout = 10000
enableEmoji = true
paginate = 7
rssLimit = 100
[outputs]
home = [ "HTML", "RSS", "JSON" ]
[taxonomies]
category = "categories"
tag = "tags"
series = "series"
[params]
description = "The Zzo theme for Hugo example site."
# body
enableToc = true
enableBreadcrumb = true
enableCustomScrollbar = true
enablePhotoSwipe = true
enableSearch = true
enableMark = true
# sidebar
enableSidebarTags = true
enableSidebarSeries = true
enableSidebarCategories = true
# footer
showPoweredBy = true
showFeedLinks = true
showSocialLinks = true
enableLangChange = true
enableThemeChange = true
themeOptions = ["dark", "light", "hacker", "solarized"]
[params.socialOptions]
facebook = "http://example.org/"
twitter = "http://example.org/"
github = "http://example.org/"
stack-overflow = ""
instagram = ""
google-plus = ""
youtube = ""
medium = ""
tumblr = ""
linkedin = ""
pinterest = "http://example.org/"
stack-exchange = ""
[languages]
[languages.en]
title = "Hugo Zzo Theme"
languageName = "English"
weight = 1
[[languages.en.menu.main]]
url = "/about/"
identifier = "about"
name = "about"
weight = 10
[[languages.en.menu.main]]
identifier = "archive"
name = "archive"
url = "/archive/"
weight = 11
[[languages.en.menu.main]]
identifier = "gallery"
name = "gallery"
url = "/gallery"
weight = 12
[[languages.en.menu.main]]
parent = "gallery"
name = "cartoon"
url = "/gallery/cartoon"
[[languages.en.menu.main]]
parent = "gallery"
name = "photo"
url = "/gallery/photo"
[[languages.en.menu.main]]
identifier = "posts"
name = "posts"
url = "/posts/"
weight = 13
[[languages.en.menu.main]]
identifier = "notes"
name = "notes"
url = "/notes/"
weight = 14
[languages.ko]
title = "Hugo Zzo Theme"
languageName = "한국어"
weight = 2
[[languages.ko.menu.main]]
identifier = "about"
name = "about"
url = "/about/"
weight = 20
[[languages.ko.menu.main]]
identifier = "archive"
name = "archive"
url = "/archive/"
weight = 21
[[languages.ko.menu.main]]
identifier = "gallery"
name = "gallery"
url = "/gallery/"
weight = 22
[[languages.ko.menu.main]]
parent = "gallery"
name = "cartoon"
url = "/gallery/cartoon/"
[[languages.ko.menu.main]]
parent = "gallery"
name = "photo"
url = "/gallery/photo/"
[[languages.ko.menu.main]]
identifier = "posts"
name = "posts"
url = "/posts/"
weight = 23
[[languages.ko.menu.main]]
identifier = "notes"
name = "notes"
url = "/notes/"
weight = 24

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{"Target":"css/zzo.min.482b4a01de2708df3b4da421506778b1eed61d455ac41e74012b909fee94c6bc.css","MediaType":"text/css","Data":{"Integrity":"sha256-SCtKAd4nCN87TaQhUGd4se7WHUVaxB50ASuQn+6Uxrw="}}

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

View File

Before

Width:  |  Height:  |  Size: 126 KiB

After

Width:  |  Height:  |  Size: 126 KiB

View File

Before

Width:  |  Height:  |  Size: 137 KiB

After

Width:  |  Height:  |  Size: 137 KiB

View File

@ -15,10 +15,10 @@
<span aria-hidden="true"></span>
</a>
<div class="navbar__menu">
{{ range .Site.Menus.main }}
{{ range .Site.Menus.main -}}
{{ if .HasChildren }}
<div class="navbar__dropdown">
<a href="{{ .URL }}" class="navbar__menu-item">
<a href="{{ .URL | absLangURL }}" class="navbar__menu-item">
{{ .Name }}
<span class="navbar__menu-icon">
{{ partial "svgs/arrow/keyboard-arrow-down.svg" (dict "width" 18 "height" 18) }}
@ -26,12 +26,12 @@
</a>
<div class="navbar__dropdown--content">
{{ range .Children }}
<a href="{{ .URL }}" class="navbar__dropdown--item">{{ .Name }}</a>
<a href="{{ .URL | absLangURL }}" class="navbar__dropdown--item">{{ .Name }}</a>
{{ end }}
</div>
</div>
{{ else }}
<a href="{{ .URL }}" class="navbar__menu-item">{{ .Name }}</a>
<a href="{{ .URL | absLangURL }}" class="navbar__menu-item">{{ .Name }}</a>
{{ end }}
{{ end }}
</div>