Welcome to mirror list, hosted at ThFree Co, Russian Federation.

README.md - github.com/ThemeTony/hugo-theme-tony.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cb5fbae6463e10c0d8132537bc4eff328756a9ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<div align="center">
  <h1>hugo-theme-tony</h1>
  <p>An Elegant Hugo Theme Based on WordPress Theme Tony </p>
  <img alt="GitHub All Releases" src="https://img.shields.io/github/downloads/ThemeTony/hugo-theme-tony/total?style=for-the-badge">
  <img alt="GitHub" src="https://img.shields.io/github/license/ThemeTony/hugo-theme-tony?style=for-the-badge">
  <img alt="GitHub release (latest by date)" src="https://img.shields.io/github/v/release/ThemeTony/hugo-theme-tony?style=for-the-badge">
  <img alt="GitHub stars" src="https://img.shields.io/github/stars/ThemeTony/hugo-theme-tony?style=for-the-badge">
  <img alt="GitHub forks" src="https://img.shields.io/github/forks/ThemeTony/hugo-theme-tony?style=for-the-badge">
  <img alt="GitHub forks" src="https://img.shields.io/github/watchers/ThemeTony/hugo-theme-tony?style=for-the-badge">
  <p>English |
    <a href="https://github.com/ThemeTony/hugo-theme-tony/blob/master/README.zh-cn.md">简体中文</a>
  </p>
</div>



### Screenshot

![](https://raw.githubusercontent.com/ThemeTony/hugo-theme-tony/master/images/screenshot.png)

### Related repository

https://github.com/ThemeTony/tony_wordpress

### Author

The front end is mainly made by [HelipengTony](https://github.com/HelipengTony)
[FFRaycoder](https://github.com/FFRaycoder) transplantation

### Feature

- Medium Zoom
- Social links
- Thumbnail
- Based on Bootstrap
- Tags (Page)
- Categories (Page)
- Reading Bar
- Google Analytics
- Google Site Verification
- Comments
  - Valine
- Baidu Push
- Pinned Pages
- JQuery
- Remixicon https://remixicon.cn/
- Archives Page

### Document

<https://htony.js.org/docs-of-hugo-theme-tony/>

### Demo

- <https://htony.js.org/>

- [Ray's Blog](https://www.raycoder.me)

---

### Requirements

- Hugo: extended 0.59.1

### Installation and Usage

#### Download

```bash
$ git init
$ git git submodule add --depth 1 https://github.com/ThemeTony/hugo-theme-tony.git themes/tony
```

#### Usage

1. Replace `config.toml` with [config examples](https://github.com/ThemeTony/hugo-theme-tony/blob/master/exampleSite/config.toml).

   ```bash
   $ rm config.toml && cp themes/tony/exampleSite/config.toml config.toml
   ```

2. Create a new post and the about page:

   ```bash
   $ hugo new "posts/hello-world.md"
   $ hugo new "about/index.md"
   ```

3. Now:

   ```
   ~/blog $ hugo server -D
   ```

### Update

```bash
$ git submodule update --rebase --remote
```

Customize

See <https://github.com/ThemeTony/hugo-theme-tony/tree/master/layouts/partials/custom>

## ShortCode`pageLink`

```
{{< pageLink "title" "link" "bio" >}}
```

## Archives Page

```bash
$ hugo new archives/_index.md
```

`archives/_index.md`

```markdown
---
title: "Archives"
date: 2020-05-09T15:50:35+08:00
draft: false
type: archives
adjacentPost: false
---
```

## Links Page

```bash
$ hugo new links/_index.md
```

`links/_index.md`

```markdown
---
title: "Links"
date: 2020-05-09T15:50:35+08:00
draft: false
type: links
adjacentPost: false
---
```

Copy `themes/tony/data/links.toml` to` blog/data/links.toml` and modify it.

## Supported Front Matter

|                             Name                             |     Description     |                           Example                            |
| :----------------------------------------------------------: | :-----------------: | :----------------------------------------------------------: |
|                            title                             |          *          |                   title: "Hugo Theme Tony"                   |
|                             date                             |          *          |               date: 2020-05-07T09:51:27+08:00                |
|                            `slug`                            |          *          |              `slug: "docs-of-hugo-theme-tony"`               |
|                            draft                             |          *          |                         draft: false                         |
|                           keywords                           |          *          |                      keywords: ["Blog"]                      |
|                          categories                          |          *          |                     categories: ["Blog"]                     |
|                             tags                             |          *          |                        tags: ["Blog"]                        |
|                           noclick                            |      no click       |                       notclick: false                        |
|                         categoryLink                         |    categoryLink     |                      categoryLink: "/"                       |
|                             toc                              |     enable toc      |                          toc: true                           |
| buy: false<br/>buyLink: ""<br/>buyName: ""<br/>buyInfo: ""<br/>buyImage: ""<br/>buyButtonText: "" |      Buy link       | buyLink: "https://htony.js.org"<br/>buyName: "hugo-theme-tony"<br/>buyInfo: "WP-Theme-Tony in hugo"<br/>buyImage: "/images/t.jpg"<br/>buyButtonText: "Website" |
|                          thumbnail                           |      thumbnail      | thumbnail: "https://cdn.jsdelivr.net/gh/FFRaycoder/cdn/imgs/20200507094721.png" |
|                            weight                            |       weight        |                          weight: 2                           |
|                          readingBar                          | enable reading bar  |                       readingBar: true                       |
|                         adjacentPost                         | show adjacent post? |                      adjacentPost: true                      |