https://github.com/ThemeTony/tony_wordpress
The front end is mainly made by HelipengTony FFRaycoder transplantation
- 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
https://htony.js.org/docs-of-hugo-theme-tony/
- Hugo: extended 0.59.1
$ git init
$ git git submodule add --depth 1 https://github.com/ThemeTony/hugo-theme-tony.git themes/tony
-
Replace
config.toml
with config examples.$ rm config.toml && cp themes/tony/exampleSite/config.toml config.toml
-
Create a new post and the about page:
$ hugo new "posts/hello-world.md" $ hugo new "about/index.md"
-
Now:
~/blog $ hugo server -D
$ git submodule update --rebase --remote
Customize
See https://github.com/ThemeTony/hugo-theme-tony/tree/master/layouts/partials/custom
{{< pageLink "title" "link" "bio" >}}
$ hugo new archives/_index.md
archives/_index.md
---
title: "Archives"
date: 2020-05-09T15:50:35+08:00
draft: false
type: archives
adjacentPost: false
---
$ hugo new links/_index.md
links/_index.md
---
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.
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 buyLink: "" buyName: "" buyInfo: "" buyImage: "" buyButtonText: "" |
Buy link | buyLink: "https://htony.js.org" buyName: "hugo-theme-tony" buyInfo: "WP-Theme-Tony in hugo" buyImage: "/images/t.jpg" 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 |