Code Monkey home page Code Monkey logo

hugo-theme-one's Introduction

One

One is a minimal blog theme for Hugo, which is forked from onetwothree. A demo is available here.

Screenshot

It provides some new features and simplifications from original onetwothree. I tried to keep it minimal with less configuration to write a blog rather than play with a theme instead.

Features:

  • Add archives support for all posts in a single page
  • Homepage displayed with 7 latest posts default
  • Sytax highlighting support with highlight.js
  • Google Analytics support
  • Full-text RSS support

Installation

Clone this repository to your hugo theme directory.

git clone https://github.com/resugary/hugo-theme-one.git themes/one
hugo server -t=one

Create New Posts

Posts should generally go under a content/posts directory, you may start like this:

hugo new posts/hello.md

Create a fixed Page

Fixed pages such as an About page should be present at the root of the content directory:

hugo new about.md

To enable Archives, you should create a new file called archives.md:

hugo new archives.md

# then add the following line in the front matter
type: "archives"

Configuration

Copy the config.toml in the root director of your hugo site.

baseURL = "https://example.com"
languageCode = "en-us"
title = "My Hugo Site"

theme = "one"
googleAnalytics = "UA-123-45"

[params]
    navigation = ["archives.md", "about.md"]

Feel free to change the strings in this theme.

License

Licensed under the MIT License.

hugo-theme-one's People

Contributors

schollz avatar resugary avatar

Watchers

James Cloos avatar Lizhou Sha 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.