Skip to content

Commit 072c722

Browse files
committed
adding static hugo site demo
1 parent 906136f commit 072c722

File tree

164 files changed

+8513
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+8513
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: "{{ replace .Name "-" " " | title }}"
3+
date: {{ .Date }}
4+
draft: true
5+
---
6+

static_hugo_site/config.yaml

Lines changed: 203 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,203 @@
1+
baseurl: https://example.com
2+
languageCode: en-us
3+
theme: stack
4+
paginate: 5
5+
title: Example Site
6+
7+
# Change it to your Disqus shortname before using
8+
disqusShortname: hugo-theme-stack
9+
10+
# GA Tracking ID
11+
googleAnalytics:
12+
13+
# Theme i18n support
14+
# Available values: en, fr, id, ja, ko, pt-br, zh-cn, es, de, nl, it
15+
DefaultContentLanguage: en
16+
17+
# Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko]
18+
# This will make .Summary and .WordCount behave correctly for CJK languages.
19+
hasCJKLanguage: false
20+
21+
permalinks:
22+
post: /p/:slug/
23+
page: /:slug/
24+
25+
params:
26+
mainSections:
27+
- post
28+
featuredImageField: image
29+
rssFullContent: true
30+
favicon:
31+
32+
footer:
33+
since: 2020
34+
customText:
35+
36+
dateFormat:
37+
published: Jan 02, 2006
38+
lastUpdated: Jan 02, 2006 15:04 MST
39+
40+
sidebar:
41+
emoji: 🍥
42+
subtitle: Lorem ipsum dolor sit amet, consectetur adipiscing elit.
43+
avatar:
44+
enabled: true
45+
local: true
46+
src: img/avatar.png
47+
48+
article:
49+
math: false
50+
toc: true
51+
readingTime: true
52+
license:
53+
enabled: true
54+
default: Licensed under CC BY-NC-SA 4.0
55+
56+
comments:
57+
enabled: true
58+
provider: disqus
59+
60+
disqusjs:
61+
shortname:
62+
apiUrl:
63+
apiKey:
64+
admin:
65+
adminLabel:
66+
67+
utterances:
68+
repo:
69+
issueTerm: pathname
70+
label:
71+
72+
remark42:
73+
host:
74+
site:
75+
locale:
76+
77+
vssue:
78+
platform:
79+
owner:
80+
repo:
81+
clientId:
82+
clientSecret:
83+
autoCreateIssue: false
84+
85+
# Waline client configuration see: https://waline.js.org/en/reference/client.html
86+
waline:
87+
serverURL:
88+
lang:
89+
visitor:
90+
avatar:
91+
emoji:
92+
- https://cdn.jsdelivr.net/gh/walinejs/emojis/weibo
93+
requiredMeta:
94+
- name
95+
- email
96+
- url
97+
placeholder:
98+
locale:
99+
admin: Admin
100+
101+
twikoo:
102+
envId:
103+
region:
104+
path:
105+
lang:
106+
107+
giscus:
108+
repo:
109+
repoID:
110+
category:
111+
categoryID:
112+
mapping:
113+
lightTheme:
114+
darkTheme:
115+
reactionsEnabled: 1
116+
emitMetadata: 0
117+
118+
gitalk:
119+
owner:
120+
admin:
121+
repo:
122+
clientID:
123+
clientSecret:
124+
125+
cusdis:
126+
host:
127+
id:
128+
129+
widgets:
130+
enabled:
131+
- search
132+
- archives
133+
- tag-cloud
134+
135+
archives:
136+
limit: 5
137+
138+
tagCloud:
139+
limit: 10
140+
141+
opengraph:
142+
twitter:
143+
# Your Twitter username
144+
site:
145+
146+
# Available values: summary, summary_large_image
147+
card: summary_large_image
148+
149+
defaultImage:
150+
opengraph:
151+
enabled: false
152+
local: false
153+
src:
154+
155+
colorScheme:
156+
# Display toggle
157+
toggle: true
158+
159+
# Available values: auto, light, dark
160+
default: auto
161+
162+
imageProcessing:
163+
cover:
164+
enabled: true
165+
content:
166+
enabled: true
167+
168+
### Custom menu
169+
### See https://docs.stack.jimmycai.com/configuration/custom-menu.html
170+
### To remove about, archive and search page menu item, remove `menu` field from their FrontMatter
171+
menu:
172+
main:
173+
- identifier: home
174+
name: Home
175+
url: /
176+
weight: -100
177+
pre: home
178+
params:
179+
### For demonstration purpose, the home link will be open in a new tab
180+
newTab: true
181+
182+
related:
183+
includeNewer: true
184+
threshold: 60
185+
toLower: false
186+
indices:
187+
- name: tags
188+
weight: 100
189+
190+
- name: categories
191+
weight: 200
192+
193+
markup:
194+
goldmark:
195+
renderer:
196+
## Set to true if you have HTML content inside Markdown
197+
unsafe: false
198+
tableOfContents:
199+
endLevel: 4
200+
ordered: true
201+
startLevel: 2
202+
highlight:
203+
noClasses: false
Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
+++
2+
author = "Hugo Authors"
3+
title = "Markdown Syntax Guide"
4+
date = "2019-03-11"
5+
description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
6+
tags = [
7+
"markdown",
8+
"css",
9+
"html",
10+
"themes",
11+
]
12+
categories = [
13+
"themes",
14+
"syntax",
15+
]
16+
series = ["Themes Guide"]
17+
aliases = ["migrate-from-jekyl"]
18+
image = "pawel-czerwinski-8uZPynIu-rQ-unsplash.jpg"
19+
+++
20+
21+
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.
22+
<!--more-->
23+
24+
## Headings
25+
26+
The following HTML `<h1>``<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest.
27+
28+
# H1
29+
## H2
30+
### H3
31+
#### H4
32+
##### H5
33+
###### H6
34+
35+
## Paragraph
36+
37+
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.
38+
39+
Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
40+
41+
## Blockquotes
42+
43+
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.
44+
45+
#### Blockquote without attribution
46+
47+
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
48+
> **Note** that you can use *Markdown syntax* within a blockquote.
49+
50+
#### Blockquote with attribution
51+
52+
> Don't communicate by sharing memory, share memory by communicating.<br>
53+
> — <cite>Rob Pike[^1]</cite>
54+
55+
[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
56+
57+
## Tables
58+
59+
Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box.
60+
61+
Name | Age
62+
--------|------
63+
Bob | 27
64+
Alice | 23
65+
66+
#### Inline Markdown within tables
67+
68+
| Italics | Bold | Code |
69+
| -------- | -------- | ------ |
70+
| *italics* | **bold** | `code` |
71+
72+
## Code Blocks
73+
74+
#### Code block with backticks
75+
76+
```html
77+
<!doctype html>
78+
<html lang="en">
79+
<head>
80+
<meta charset="utf-8">
81+
<title>Example HTML5 Document</title>
82+
</head>
83+
<body>
84+
<p>Test</p>
85+
</body>
86+
</html>
87+
```
88+
89+
#### Code block indented with four spaces
90+
91+
<!doctype html>
92+
<html lang="en">
93+
<head>
94+
<meta charset="utf-8">
95+
<title>Example HTML5 Document</title>
96+
</head>
97+
<body>
98+
<p>Test</p>
99+
</body>
100+
</html>
101+
102+
#### Code block with Hugo's internal highlight shortcode
103+
{{< highlight html >}}
104+
<!doctype html>
105+
<html lang="en">
106+
<head>
107+
<meta charset="utf-8">
108+
<title>Example HTML5 Document</title>
109+
</head>
110+
<body>
111+
<p>Test</p>
112+
</body>
113+
</html>
114+
{{< /highlight >}}
115+
116+
## List Types
117+
118+
#### Ordered List
119+
120+
1. First item
121+
2. Second item
122+
3. Third item
123+
124+
#### Unordered List
125+
126+
* List item
127+
* Another item
128+
* And another item
129+
130+
#### Nested list
131+
132+
* Fruit
133+
* Apple
134+
* Orange
135+
* Banana
136+
* Dairy
137+
* Milk
138+
* Cheese
139+
140+
## Other Elements — abbr, sub, sup, kbd, mark
141+
142+
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
143+
144+
H<sub>2</sub>O
145+
146+
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
147+
148+
Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session.
149+
150+
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
Loading

0 commit comments

Comments
 (0)