hugo-theme-tony

An Elegant Hugo Theme Based on WordPress Theme Tony

GitHub All Releases GitHub GitHub release (latest by date) GitHub stars GitHub forks GitHub forks

English | 简体中文

### 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 ### Demo - - [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 ## 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
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 |