GithubHelp home page GithubHelp logo

dayofdoom / hugo-theme-one Goto Github PK

View Code? Open in Web Editor NEW

This project forked from resugary/hugo-theme-one

0.0 1.0 0.0 439 KB

A minimal blog theme for Hugo.

Home Page: https://resugary.github.io/hugo-theme-one/

License: MIT License

HTML 56.78% CSS 43.22%

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

Differences from original onetwothree

It provides some new features and simplifications. 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 instead of the whole
  • Sytax highlighting with highlight.js
  • Google Analytics support
  • Full-text RSS support

Some simplifications:

  • Fix critical bugs such as relative URL managent etc
  • Remove the style "2" and "3" in adittion
  • Remove PREVIOUS and NEXT links at bottom of posts
  • Remove twitter components integrated
  • Remove round edges style of images
  • Remove tags displayed following each titles at homepage
  • Change preformatted style of hyperlinks, code block and blockquote
  • Change posts location to content/posts as hugo Quick Start

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

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