Coder Social home page Coder Social logo

hugo-classic's Introduction

Hugo.io - Classic Theme

Classic is a stylized fork of the XMin theme, written by Yihui Xie.

Provides highlight.js for syntax highlighting, emoji support, Inter and optional darkmode.

View live demo

Instructions

1: Install Hugo.

brew install hugo

2: Create a new site.

hugo new site classic

3: Change to themes dir.

cd classic/themes

4: Clone the repo

git clone [email protected]:goodroot/hugo-classic.git

5: Copy files within the exampleSite directory

cp -a hugo-classic/exampleSite/. ../

6: Run hugo server within classic/

cd .. && hugo server

New Posts

Make new posts:

hugo new post/good-to-great.md

Header Colour

Adjust header colour within static/css/style.css

header {
    background: #613DC1;
}

... background: to any colour value you'd like!

For header font:

header a {
    color: #fff;
}

Change color: to a nice matching colour.

Darkmode

Match or over-ride system-wide dark/light settings

  1. Open static/css/style.css

  2. Edit the following attributes to match light/dark

/* darkmode */
@media (prefers-color-scheme: dark) {
    ...
}

/* lightmode */
@media (prefers-color-scheme: light) {
    ...
}

Screenshot

Hugo Classic dark mode Hugo Classic light mode

Blog Posts

hugo-classic has appeared in...

15 Hugo Framework blog themes by paskal

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.