Giter Site home page Giter Site logo

maupassant-hugo's Introduction

Maupassant

It is a hugo theme forked from maupassant-hugo.

是我对 maupassant-hugo 这个主题的个人客制化

原本起个名字叫 simpale(simple+pale),但是懒得自己从头写,小改一下别人的样式就改名字感觉不太好,所以还是 fork 一下比较合适.

Theme Preview

Features

相比 maupassant-hugo 添加了 TOC 功能,去掉了我不想要的功能.

本来想 fork 之后提个 PR,但是发现除了增加 TOC 之外其他地方也有不少改动已经很难 merge 了就作罢了

因为功能的减少,主页资源 gzip 传输只有 20kB,文章页要大一点.

Installation

In your hugo site folder, run

git clone https://github.com/wlh320/maupassant-hugo themes/maupassant

Then configure it in config.toml as the following part suggesting.

To write new blog, run hugo new posts/your-title.md.

To enable Arhives and About columns, run hugo new archives/index.md and hugo new about/index.md respectively.

Config

我主要自己用,可配置项就很少,如果真有人用的话会增加.

Basic config.toml file

# base config
baseURL = "https://example.org"
languageCode = "zh-CN"
title = "Blog"
theme = "maupassant"

# config
enableRobotsTXT = true
paginate = 6
googleAnalytics = ""

[params]
  author = "xxx"
  subtitle = "xxx"
  keywords = "xxx"
  description = "xxx"

  # 本主题的配置项
  toc = true
  autoCollapseToc = true
  mathjax = true # front-matter 也可以单独设置

[menu]

  [[menu.main]]
    identifier = "archives"
    name = "归档"
    url = "/archives/"
    weight = 3

  [[menu.main]]
    identifier = "about"
    name = "关于"
    url = "/about/"
    weight = 4

Besides, you can change theme color in asserts/css/style.scss.

TODO

  • i18n 国际化
  • higher configurability 高可配置性
  • better typography 更好的文档排版

maupassant-hugo's People

Contributors

zilch40 avatar flysnoworg avatar jokerqyou avatar guader avatar wlh320 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.