Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoxihui committed Sep 11, 2024
0 parents commit 0597f40
Show file tree
Hide file tree
Showing 58 changed files with 3,007 additions and 0 deletions.
6 changes: 6 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

3 changes: 3 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
baseURL = "http://example.org/"
languageCode = "en-us"
title = "My New Hugo Site"
340 changes: 340 additions & 0 deletions themes/hugo-theme-den/LICENSE

Large diffs are not rendered by default.

49 changes: 49 additions & 0 deletions themes/hugo-theme-den/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# hugo-theme-den

A simple theme for Hugo

> It's a port of the [Nest](https://github.com/molivier/nest) Pelican theme.
## Screenshots

![den-showcase](https://raw.githubusercontent.com/shaform/hugo-theme-den/master/images/tn.png)

## Installation

```bash
$ git clone https://github.com/shaform/hugo-theme-den themes/den
```

**Important:** Take a look inside the [`exampleSite`](https://github.com/shaform/hugo-theme-den/tree/master/exampleSite) directory of this theme.
You'll find a file called [`config.toml`](https://github.com/shaform/hugo-theme-den/blob/master/exampleSite/config.toml).
**To use it, copy the [`config.toml`](https://github.com/shaform/hugo-theme-den/blob/master/exampleSite/config.toml) in the root directory of your Hugo site.**
You can customize it for your site.

## Language Support

> Translations are collected from the [`themes/den/i18n/`](https://github.com/shaform/hugo-theme-den/tree/master/i18n) directory (built into the theme), as well as translations present in `i18n/` at the root of your project. The translations will be merged and take precedence over what is in the theme folder.
Set the default language using `defaultContentLanguage`:
```toml
defaultContentLanguage = "en" # en / zh-tw / other...
```

## Update Theme

```bash
cd ./themes/den/
git pull
```

## License

Released under the [GPLv2](https://github.com/shaform/hugo-theme-den/blob/master/LICENSE) License.

## Acknowledgements

- [Nest](https://github.com/molivier/nest)
- [hugo-theme-jane](https://github.com/xianmin/hugo-theme-jane)

## Websites that use Den

- [翼之都](https://city.shaform.com/)
2 changes: 2 additions & 0 deletions themes/hugo-theme-den/archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
+++
+++
170 changes: 170 additions & 0 deletions themes/hugo-theme-den/exampleSite/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
# ------------------------------------- #
# ---- General Settings --------------- #
# ------------------------------------- #
baseURL = "https://example.com"
title = "Den"
theme = "hugo-theme-den"
#enableRobotsTXT = true # generate robots.txt
enableEmoji = true # use emoji support
hasCJKLanguage = true # detect CJK languages for word count etc.
preserveTaxonomyNames = true # do not make tag names lowercase
# uglyURLs = true # more info: https://gohugo.io/content-management/urls/#ugly-urls
rssLimit = 20 # limit number of entries in RSS feeds

# Copyright, appears in the footer
# copyright = "" # default: author.name

# Pagination
# number of entries per page for archives, tags and categories
# since we don't have list view, recommend a large value
paginate = 20
paginatePath = "page"

# Syntax Hightlight
PygmentsCodeFences = true
PygmentsUseClasses = true # required for shhighlight shortcode

# service plugins
disqusShortname = "" # disqus_shortname
googleAnalytics = "" # UA-XXXXXXXX-X

# language support # en / zh-tw / other... translations present in i18n/
defaultContentLanguage = "en" # Default language to use
defaultContentLanguageInSubdir = true

# Links format
[permalinks]
posts = "/:year/:month/:day/:slug/"
categories = "/category/:slug/" # required
tags = "/tag/:slug/" # required
pages = "/:slug/"

[author] # required
name = "Jane Doe"

[sitemap] # required
changefreq = "weekly"
priority = 0.5
filename = "sitemap.xml"

# ------------------------------------- #
# ---- Other Params ------------------- #
# ------------------------------------- #

[params]
since = "2017" # Site creation time
rssFullContent = true # set true to use full content instead of summary

# site info (optional)
keywords = ["Hugo", "theme","den"]
description = "A simple theme for Hugo"
logoTitle = "Den" # shown on top-left, default: title
siteLogoImage = "images/globe.svg" # shown besides logoTitle
# headerTitle = "Den" # default: title
headerImage = "images/background.jpg"
showAuthorCard = true # Whether to show author information below the article

showMenuLanguages = true

autoLoadComments = false # auto load comment when scrolling down

# paginate style, default use numbered pagination links
# if true, use original "Previous" and "Next" links.
# paginateOriginalStyle = true

# The date format to use; for a list of valid formats, see https://gohugo.io/functions/format/
dateFormatToUse = "2006-01-02"

google_verification = "" # Google_Verification

# Link custom CSS and JS assets
# (relative to /static/css and /static/js respectively)
customCSS = [] # if ['custom.css'], load '/static/css/custom.css' file
customJS = [] # if ['custom.js'], load '/static/js/custom.js' file

# ------------------------------------- #
# ---- Related Articles --------------- #
# ------------------------------------- #
[related]
# Only include matches with rank >= threshold. This is a normalized rank between 0 and 100.
threshold = 50

# To get stable "See also" sections we, by default, exclude newer related pages.
includeNewer = true

# Will lower case keywords in both queries and in the indexes.
toLower = false

[[related.indices]]
name = "categories"
weight = 200

[[related.indices]]
name = "keywords"
weight = 150

[[related.indices]]
name = "tags"
weight = 100


[languages.en]
languageCode = "en"
languageName = "English"
contentDir = "content/en"
weight = 1

[[languages.en.menu.main]]
name = "Notes"
weight = 10
identifier = "notes"
url = "category/notes/"
[[languages.en.menu.main]]
name = "Demos"
weight = 20
identifier = "demos"
url = "category/demos/"

[[languages.en.menu.social]]
name = "GitHub"
weight = 10
identifier = "github"
url = "https://github.com/shaform/hugo-theme-den/"

[[languages.en.menu.links]]
name = "About Me"
weight = 10
identifier = "about-me"
url = "https://github.com/shaform/hugo-theme-den/"

[languages.zh-tw]
languageCode = "zh-tw"
languageName = "繁體中文"
contentDir = "content/zh-tw"
weight = 2

[languages.zh-tw.params]
description = "一個簡單的佈景。"

[[languages.zh-tw.menu.main]]
name = "筆記"
weight = 10
identifier = "notes"
url = "category/notes/"
[[languages.zh-tw.menu.main]]
name = "展示"
weight = 20
identifier = "demos"
url = "category/demos/"

[[languages.zh-tw.menu.social]]
name = "GitHub"
weight = 10
identifier = "github"
url = "https://github.com/shaform/hugo-theme-den/"

[[languages.zh-tw.menu.links]]
name = "關於我"
weight = 10
identifier = "about-me"
url = "https://github.com/shaform/hugo-theme-den/"
19 changes: 19 additions & 0 deletions themes/hugo-theme-den/exampleSite/content/en/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: "About"
date: 2017-08-20T21:38:52+08:00
lastmod: 2017-08-28T21:41:52+08:00
menu: "main"
weight: 50
---

Hugo is a static site engine written in Go.


It makes use of a variety of open source projects including:

* [Cobra](https://github.com/spf13/cobra)
* [Viper](https://github.com/spf13/viper)
* [J Walter Weatherman](https://github.com/spf13/jWalterWeatherman)
* [Cast](https://github.com/spf13/cast)

Learn more and contribute on [GitHub](https://github.com/gohugoio).
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
---
title: "Den Theme Preview"
date: 2018-03-06T16:01:23+08:00
lastmod: 2018-03-07T16:01:23+08:00
draft: false
tags: ["preview", "shortcodes", "tutorial"]
categories: ["Notes"]
authors:
- "Shaform"
- "Jan Doe"
---

This is a simple preview for styles in Den.

<!--more-->

## Header

A paragraph is like this.

A paragraph might be very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very long.

### Headers
#### Headers



## Code blocks


text code blocks
text code blocks
text code blocks
text code blocks

## Highlighted Code Blocks

```python
print('hello world')
```

## Blockquotes


> This is a blockquote with two paragraphs. This is first paragraph.
>
> This is second pragraph.
>
## Lists


* Red
* Green
* Blue

1. Red
2. Green
3. Blue
* A
* B
* C
1. D
2. E
3. F


## Task List

- [ ] a task list item
- [ ] list syntax ~~required~~
- [ ] normal **formatting**
- [ ] incomplete
- [x] completed


## Formatted Texts

| Name | Markdown | HTML tag |
| ----------------- | --------------------- | -------------------- |
| *Emphasis* | \*Emphasis\* | `<em></em>` |
| **Strong** | \*\*Strong\*\* | `<strong></strong>` |
| `code` | \`code\` | `<code></code>` |
| ~~Strikethrough~~ | \~\~Strikethrough\~\~ | `<del></del` |
| __Underline__ | \_\_underline\_\_ | `<u></u>` |
| <kbd>Key</kbd> | \<kbd\>Key\</kbd\> | `<kbd></kbd>` |

## Tables

| A | B | C |
| ----- | ----- | ----- |
| a | b | c |
| d | e | f |

## Footnotes

You can create footnotes like this[^footnote].

[^footnote]: Here is the *text* of the **footnote**.


## Horizontal Rules

A rule.

------

A rule.

******

## Links

This is [an example](http://example.com/"Title") inline link.

## Images


![Globe](https://upload.wikimedia.org/wikipedia/commons/thumb/6/67/Octicons-globe.svg/240px-Octicons-globe.svg.png)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: "Header Image"
date: 2018-03-05T16:01:23+08:00
lastmod: 2018-03-05T16:01:23+08:00
draft: false
tags: ["images"]
categories: ["Demos"]
authors:
- "Shaform"
resources:
- name: header
src: 'header.jpg'
---

This is a simple note.
Loading

0 comments on commit 0597f40

Please sign in to comment.