A Hugo theme designed for micro-blogging. 专为动态发布设计的Hugo主题
Find a file
2021-08-20 21:55:31 +08:00
archetypes bug fix about reverse 2021-08-11 12:02:44 +08:00
layouts english suport first edition 2021-08-20 21:55:31 +08:00
static add github and bilibili 2021-08-06 18:29:10 +08:00
LICENSE initial commit 2021-08-05 13:38:08 +08:00
README-zh.md english suport first edition 2021-08-20 21:55:31 +08:00
README.md english suport first edition 2021-08-20 21:55:31 +08:00
theme.toml update readme 2021-08-08 18:25:35 +08:00

Hugo Theme Moments | Demo


中文说明

Moments is a Hugo theme for short posts(similar to Twitter posts). It provides a sharing space with privacy.

Screenshot

Quick Start

Install

$ hugo new site my_moments_name
$ cd my_moments_name
$ git clone https://github.com/FarseaSH/hugo-theme-moments themes/moments

Configuration

Copy and paste what is below in the config.toml file.

baseURL = "https://farseash.github.io/demo-hugo-theme-moments/"
languageCode = "zh-Hans"
theme = "moments"
paginate = 10
paginatePath = '.'

[params]
    title = "Moments Demo"
    signature = "The only journey is the one within."
    cover = "https://cdn.pixabay.com/photo/2018/03/13/22/53/puzzle-3223941_1280.jpg"

    name = "Default User"
    avatar = "/img/default_avatar.png"

Create new Moment

hugo new moments/your_moments_name.md

Then, go to the file you just create to

Put your Moments on the Internet

Please refer to Hugo document deploying part https://gohugo.io/hosting-and-deployment/hugo-deploy/

Configuration

Modify the settings in the config.toml to satisfy your own need. Please do not modify the arguments that are not included below.

  • baseURL: The base URL where you deploy your Moments。If the index page is under the subpath (like http://site.com/subpath/), please change this setting.
  • paginate: The number of Moments on a single page.
  • title: The title that is shown on the top.
  • signature: The signature(or the subtitle) that is shown on the top.
  • cover: The cover image that is shown on the top.
  • name: The default name that is shown as the author of Moments where the name is not set.
  • avatar: The default avatar that is shown in Moments where the avatar is not set.