├── exampleSite
├── layouts
│ └── .gitkeep
├── static
│ └── .gitignore
├── .gitignore
├── README.md
├── config-example.yaml
├── content
│ ├── posts
│ │ ├── rich-content.md
│ │ ├── emoji-support.md
│ │ ├── math-typesetting.md
│ │ ├── placeholder-text.md
│ │ ├── test.md
│ │ └── markdown-syntax.md
│ └── about
│ │ └── _index.md
├── LICENSE
└── config.yaml
├── images
├── tn.png
└── screenshot.png
├── static
├── images
│ ├── avatar.png
│ └── favicon.ico
└── css
│ └── style.css
├── archetypes
└── default.md
├── layouts
├── _default
│ ├── _markup
│ │ ├── render-heading.html
│ │ ├── render-image.html
│ │ └── render-link.html
│ ├── baseof.html
│ ├── terms.html
│ ├── single.html
│ ├── list.html
│ └── taxonomy.html
├── section
│ └── about.html
├── partials
│ ├── comment.html
│ ├── social.html
│ ├── svgs
│ │ ├── heart.svg
│ │ ├── linkedin.svg
│ │ ├── facebook.svg
│ │ ├── twitter.svg
│ │ ├── stackoverflow.svg
│ │ └── github.svg
│ ├── toc.html
│ ├── profile.html
│ ├── math.html
│ ├── navigation.html
│ ├── footer.html
│ └── head.html
├── 404.html
└── index.html
├── data
├── months_da.yaml
├── months_fr.yaml
└── months_nl.yaml
├── .gitignore
├── CHANGELOG
├── theme.toml
├── i18n
├── zh.yaml
├── da.yaml
├── en.yaml
├── sv.yaml
├── de.yaml
├── es.yaml
├── nl.yaml
└── fr.yaml
├── LICENSE.md
├── README-zh_CN.md
└── README.md
/exampleSite/layouts/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/exampleSite/static/.gitignore:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/images/tn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nodejh/hugo-theme-mini/HEAD/images/tn.png
--------------------------------------------------------------------------------
/images/screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nodejh/hugo-theme-mini/HEAD/images/screenshot.png
--------------------------------------------------------------------------------
/static/images/avatar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nodejh/hugo-theme-mini/HEAD/static/images/avatar.png
--------------------------------------------------------------------------------
/static/images/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nodejh/hugo-theme-mini/HEAD/static/images/favicon.ico
--------------------------------------------------------------------------------
/archetypes/default.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: "{{ replace .TranslationBaseName "-" " " | title }}"
3 | date: {{ .Date }}
4 | tags:
5 | categories:
6 | draft: false
7 |
8 | ---
9 |
--------------------------------------------------------------------------------
/layouts/_default/_markup/render-heading.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
🙈 :see_no_evil: 🙉 :hear_no_evil: 🙊 :speak_no_evil:
42 | Inline math: \(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\) 43 |
44 | {{ math.inline >}} 45 | 46 | Block math: 47 | $$ 48 | \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } 49 | $$ 50 | -------------------------------------------------------------------------------- /layouts/partials/svgs/github.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /exampleSite/config.yaml: -------------------------------------------------------------------------------- 1 | baseURL: https://example.com 2 | languageCode: en-us 3 | title: Hugo 4 | theme: hugo-theme-mini 5 | 6 | # Default content language, support en (English) / zh (Chinese) / nl (Dutch) / fr (French) / es (Spanish) / da (Danish), default 'en' 7 | defaultContentLanguage: en 8 | 9 | # !!! exampleSite only, you may need to delete the line: `themesDir: ../../` 10 | themesDir: ../../ 11 | 12 | hasCJKLanguage: true 13 | permalinks: 14 | posts: /posts/:title/ 15 | 16 | paginate: 3 17 | 18 | googleAnalytics: your-google-analytics-id 19 | disqusShortname: your-disqus-shortname 20 | 21 | # Hugo Configure Markup 22 | # More info: https://gohugo.io/getting-started/configuration-markup# 23 | markup: 24 | highlight: 25 | guessSyntax: true 26 | style: emacs 27 | tableOfContents: 28 | endLevel: 3 29 | ordered: false 30 | startLevel: 2 31 | # needed to render raw HTML (e.g. , , , ) 32 | goldmark: 33 | renderer: 34 | unsafe: true 35 | 36 | # Social links in footer, support github,twitter,stackoverflow,facebook 37 | social: 38 | # e.g. 39 | github: your-github-link 40 | twitter: your-twitter-link 41 | stackoverflow: your-stackoverflow-link 42 | # facebook: your-facebook-link 43 | 44 | 45 | # Site parameters 46 | params: 47 | # Site Author 48 | author: Author 49 | # Author biography 50 | bio: Software Engineer 51 | # Site Description, used in HTML meat 52 | description: My Blog 53 | 54 | 55 | ########################################### 56 | # Optional Configuration 57 | ########################################### 58 | 59 | # To enable RSS, you could set `enableRSS: true`, default is `true` 60 | enableRSS: true 61 | # To enable comments, you may need to set `disqusShortname` 62 | enableComments: true 63 | # To enable comments, you may need to set `googleAnalytics` 64 | enableGoogleAnalytics: true 65 | # To enable table of content, you could set `showToc: true`, default is `false` 66 | showToc: true 67 | # To hidden powerBy message in the page footer, you could set: `showPowerBy: false`, default is `true` 68 | showPowerBy: true 69 | # To enable math typesetting , you could set `math: true`, default is `false` 70 | math: false 71 | # To hidden post summary in home page, you could set `hiddenPostSummaryInHomePage: true`, default is `false` 72 | hiddenPostSummaryInHomePage: false 73 | # Website copyright, default: '© Copyright 2021 ❤️ {params.author}' 74 | copyright: '' 75 | 76 | # Extra links in navigation 77 | links: 78 | ## e.g. 79 | # - name: Project 80 | # path: /project 81 | 82 | # You can put your custom css and js to `static` directory, or use remote css and js files which start with `http://` or `https://` 83 | customCSS: 84 | ## e.g. 85 | # - css/custom.css # local css in `static/css/custom.css` 86 | # - https://example.com/custom.css # remote css 87 | customJS: 88 | ## e.g. 89 | # - js/custom.js # local js in `static/js/custom.js` 90 | # - https://example.com/custom.js # remote js 91 | -------------------------------------------------------------------------------- /exampleSite/content/posts/placeholder-text.md: -------------------------------------------------------------------------------- 1 | +++ 2 | author = "Hugo Authors" 3 | title = "Placeholder Text" 4 | date = "2019-03-09" 5 | description = "Lorem Ipsum Dolor Si Amet" 6 | tags = [ 7 | "markdown", 8 | "text", 9 | ] 10 | +++ 11 | 12 | Lorem est tota propiore conpellat pectoribus de pectora summo. 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. 13 | 14 | 1. Exierant elisi ambit vivere dedere 15 | 2. Duce pollice 16 | 3. Eris modo 17 | 4. Spargitque ferrea quos palude 18 | 19 | Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis. 20 | 21 | 1. Comas hunc haec pietate fetum procerum dixit 22 | 2. Post torum vates letum Tiresia 23 | 3. Flumen querellas 24 | 4. Arcanaque montibus omnes 25 | 5. Quidem et 26 | 27 | # Vagus elidunt 28 | 29 | 30 | 31 | [The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon) 32 | 33 | ## Mane refeci capiebant unda mulcebat 34 | 35 | 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. 36 | 37 | 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. 38 | 39 | 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**. 40 | 41 | {{< css.inline >}} 42 | 45 | {{< /css.inline >}} 46 | -------------------------------------------------------------------------------- /exampleSite/content/posts/test.md: -------------------------------------------------------------------------------- 1 | +++ 2 | author = "Test" 3 | title = "Code Content" 4 | date = "2021-03-10" 5 | description = "A brief description of Hugo Shortcodes" 6 | tags = [ 7 | "shortcodes", 8 | "privacy", 9 | ] 10 | draft = true 11 | +++ 12 | 13 | ## t1 14 | 15 | aaaa 16 | 17 | 18 | Test [aaa](http://example.com) text. 19 | 20 | ### t1.1 21 | 22 | aaaa 23 | 24 | 25 | ### t1.2 26 | 27 | aaaa 28 | 29 | 30 | #### t1.2.1 31 | 32 | aaaa 33 | 34 | 35 | #### t1.2.2 36 | 37 | aaaa 38 | 39 | 40 | ## t2 41 | 42 | aaaa 43 | 44 | ## t3 45 | 46 | 1. OneTest
83 | 84 | 85 | ``` 86 | 87 | #### Code block indented with four spaces 88 | 89 | 90 | 91 | 92 | 93 |Test
97 | 98 | 99 | 100 | #### Code block with Hugo's internal highlight shortcode 101 | {{< highlight html >}} 102 | 103 | 104 | 105 | 106 |Test
110 | 111 | 112 | {{< /highlight >}} 113 | 114 | ## List Types 115 | 116 | #### Ordered List 117 | 118 | 1. First item 119 | 2. Second item 120 | 3. Third item 121 | 122 | #### Unordered List 123 | 124 | * List item 125 | * Another item 126 | * And another item 127 | 128 | #### Nested list 129 | 130 | * Fruit 131 | * Apple 132 | * Orange 133 | * Banana 134 | * Dairy 135 | * Milk 136 | * Cheese 137 | 138 | ## Other Elements — abbr, sub, sup, kbd, mark 139 | 140 | GIF is a bitmap image format. 141 | 142 | H2O 143 | 144 | Xn + Yn = Zn 145 | 146 | Press CTRL+ALT+Delete to end the session. 147 | 148 | Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures. 149 | -------------------------------------------------------------------------------- /README-zh_CN.md: -------------------------------------------------------------------------------- 1 | # Hugo Theme Mini 2 | 3 | [English](https://github.com/nodejh/hugo-theme-mini/tree/master/README.md) | 简体中文 4 | 5 | 一个简约的响应式 Hugo 主题。 6 | 7 |  8 | 9 | - [在线 Demo](https://nodejh.github.io/hugo-theme-mini) 10 | - [示例网站源码](https://github.com/nodejh/hugo-theme-mini/tree/master/exampleSite) 11 | 12 | 特性: 13 | 14 | - 快 15 | - 简约 16 | - 响应式 17 | - 归档页 18 | - 标签页 19 | 20 | 21 | ## 1. 安装 22 | 23 | 24 | ### 1.1 使用 Hugo 模块安装 (推荐) 25 | 26 | > ⚠️ 如果你使用的是 [二进制包](https://gohugo.io/getting-started/installing/#binary-cross-platform) 安装的 Hugo,那么你需要在电脑上安装 Go 语言。 你可以使用下面的命令检查是否安装 Go: 27 | > ``` 28 | > $ go version 29 | > ``` 30 | > Go 语言从 v1.14 开始支持模块. [下载 Go](https://golang.org/dl/)。 31 | 32 | 1. 在项目目录初始化 hugo 模块系统,如果之前已经执行过则忽略此步骤: 33 | 34 | ```bash 35 | $ hugo mod init github.com/