Coder Social home page Coder Social logo

pankona / purehugo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dplesca/purehugo

0.0 2.0 0.0 563 KB

Hugo theme based on purecss from Yahoo.

Home Page: http://dplesca.github.io/purehugo/

License: MIT License

CSS 15.61% JavaScript 72.64% HTML 11.75%

purehugo's Introduction

purehugo

Hugo theme based on purecss from Yahoo. The theme is based on the purecss blog layout example, is responsive and has a few more features: pagination (if enabled), responsive images (through a shortcode), google analytics, disqus comments and even a mini-asset-pipeline using gulp. If you end up using it, I'd love to see what you do with it so please give me a shout on twitter.

Installation

Navigate to your Hugo site's theme folder

$ cd themes
$ git clone https://github.com/dplesca/purehugo.git

Config file

The config file for the demo site looks like this:

baseurl = "http://dplesca.github.io/purehugo/"
languageCode = "en-us"
title = "purehugo"
theme = "purehugo"
Paginate = 10
disqusShortname = "xxxx"

[params]
  twitterName = "dragos_plesca"
  githubName = "dplesca"
  stackOverflowId = "#######"
  description = "Demo site for a hugo theme"
  google_analytics = "UA-xxxxxx-xx"

Notice the configuration necessary for disqus comments (just setting the disqusShortname); the twitter, github, and stack overflow handlers (for the site sidebar); the site description and enabling Google Analytics reporting.

Syntax Highlighting

Syntax highlighting is enabled by default and it uses the nice rainbow js library. All you need to do is to let rainbow.js the language of the highlighted code, using something like ````go` when writing the code in markdown.

Reponsive Images

For responsive images you could use the built-in responsive image shortcode (without the /**/ characters):

{{%/* img-responsive "http://example.com/image.jpg" */%}}

Hide Share Options

If you would like to hide the share options in the single post view, you can add this option in the params section of your config file.

[params]
  # ... other options ...
  hideShareOptions = true

Screenshot

Screenshot

purehugo's People

Contributors

dplesca avatar pankona avatar dschalla avatar dbriones avatar johnblood avatar positivejam avatar m1keil avatar bep avatar

Watchers

 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.