GithubHelp home page GithubHelp logo

draveness / hugo-lithium Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yihui/hugo-lithium

0.0 1.0 4.0 448 KB

Lithium - A simple responsive Hugo theme

License: MIT License

HTML 52.56% CSS 41.56% JavaScript 5.88%

hugo-lithium's Introduction

Hugo Lithium

A simple responsive blog theme for Hugo forked from https://github.com/jrutheiser/hugo-lithium-theme with modifications to make it work better with blogdown.

The easiest way to get started is to create a new (empty) RStudio project, then

devtools::install_github('rstudio/blogdown')  # install blogdown
blogdown::new_site(theme = 'yihui/hugo-lithium')

Then you should be able to see an example website launched in the RStudio Viewer.

For the full documentation, please see this section in the blogdown book: https://bookdown.org/yihui/blogdown/themes.html

Features

  • Blog
  • Responsive
  • Disqus
  • Google Analytics
  • Google web fonts (Merriweather and Lato)
  • MathJax
  • highlight.js

Changes

The main changes I made to the original hugo-lithium-theme are:

  1. Added support for MathJax (for rendering LaTeX math expressions) and highlight.js (for syntax highlighting).

    • For both libraries, you can specify the CDN host (e.g., CloudFlare, BootCDN, ...).

    • For highlight.js, you can specify additional languages (e.g., r, yaml, tex, ...).

  2. Added Google web fonts (embedded in the theme so that visitors from countries where Google is banned can still see the typefaces).

  3. Improved Hugo's built-in Disqus template, so that you can actually the comments even when you are previewing the website locally.

  4. Replaced the variable .Permalink with .RelPermalink, and function absURL with relURL where necessary. It is a bad idea to use full absolute links (with the protocol and domain) in general. For example, .Permalink and absURL may generate URLs of the form http://www.example.com/foo/bar.html, but /foo/bar.html is more portable.

License

The original hugo-lithium-theme was released by Jonathan Rutheiser under the MIT License. The modified version in this repository is also released under MIT.

hugo-lithium's People

Contributors

ad-si avatar bep avatar jrutheiser avatar justinclift avatar katharinemarielee avatar nikovacevic avatar reverseturing avatar shiva avatar yihui avatar

Watchers

 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.