Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.
/ hugo-theme-tony Public archive

【不更新新内容了 / Not Maintaining】An Elegant Hugo Theme Based on WordPress Theme Tony ✌️ | 一个简洁强大的 Hugo 博客主题

License

Notifications You must be signed in to change notification settings

ThemeTony/hugo-theme-tony

Repository files navigation

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

  • 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


Requirements

  • Hugo: extended 0.59.1

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

About

【不更新新内容了 / Not Maintaining】An Elegant Hugo Theme Based on WordPress Theme Tony ✌️ | 一个简洁强大的 Hugo 博客主题

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published