Skip to content

A simple, elegant theme for hugo based on jekyll-klisé

License

Notifications You must be signed in to change notification settings

h4r1337/hugo-klise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hugo-Klisé

This is a hugo theme inspired by the original jekyll theme -- Klisé by @piharpi

screen shot

Why?

  • Simply because I use hugo and I love this theme :)
  • Also for my blog

Features

  • Light & Dark Mode support 🌒
  • Customiable (using .scss)
  • Responsive (desktop, tab and mobile)
  • Mobile First Design
  • SEO Optimized
  • Pagination
  • Custom shortcodes
  • FontAwesome icon support
  • Google Analytics

Built-in shortcodes

  • figure(props required: src, props optional: alt, caption)

    • eg:
    {{< figure src="/path/image.png" alt="image" caption="This is an image" >}}
  • image(props required: src, props optional: alt)

    • eg:
    {{< image src="/path/image.png" alt="image" >}}

Code highlighting

  • Add this option to your config.toml file for enabling the custom gruvbox theme for code highlighting.
[markup]
  [markup.highlight]
    noClasses = false
  • The default one is monokai.
  • You can also use other themes provided by hugo by using this:
[markup]
  [markup.highlight]
    style = "gruvbox" # check here for more styles: https://xyproto.github.io/splash/docs/all.html

Google Analytics

  • To enable google analytics to your website add the below snippet to your config.toml file:
[services]
  [services.googleAnalytics]
    id = 'G-XXXXXXXXX' # Add your google analytics id here

Installation

  • Install theme
git submodule add -f https://github.com/h4r1337/hugo-klise themes/hugo-klise
  • Edit your config.toml. Example can be seen here

TODO

Major

  • Add posts search feature
  • Table of Content
  • Comments
  • User customization options
    • Extended headers and footers
    • Custom css
    • More configuration options via config.toml
  • Submit to hugo themes
  • Google Analytics
  • Add FontAwesome supoort
  • Add Shortcodes

Minor

  • GitInfo support
  • Copy code
  • Automatic post summary view (using more tag)
  • Custom code highlight

About

A simple, elegant theme for hugo based on jekyll-klisé

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published