ThemeTony / hugo-theme-tony

【不更新新内容了 / Not Maintaining】An Elegant Hugo Theme Based on WordPress Theme Tony ✌️ | 一个简洁强大的 Hugo 博客主题
https://htony.js.org/
GNU General Public License v3.0
27 stars 4 forks source link
hugo hugo-theme hugo-theme-tony site static theme tony

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

Related repository

https://github.com/ThemeTony/tony_wordpress

Author

The front end is mainly made by HelipengTony FFRaycoder transplantation

Feature

Document

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

Demo


Requirements

Installation and Usage

Download

$ 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.

    $ rm config.toml && cp themes/tony/exampleSite/config.toml config.toml
  2. Create a new post and the about page:

    $ hugo new "posts/hello-world.md"
    $ hugo new "about/index.md"
  3. Now:

    ~/blog $ hugo server -D

Update

$ git submodule update --rebase --remote

Customize

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

ShortCodepageLink

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

Archives Page

$ hugo new archives/_index.md

archives/_index.md

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

Links Page

$ 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 toblog/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