Code Monkey home page Code Monkey logo

charaka-hugo-theme's Introduction

Charaka (ಚರಕ)

Minimalistic and Responsive blog theme for hugo. Uses css framework Bulma.

Getting Started

Clone this repository to your hugo theme directory.

mkdir themes
cd themes
git clone https://github.com/natarajmb/charaka-hugo-theme.git

Configuration

Take a look in the exampleSite folder.

This directory contains an example config file and the content for the demo. It serves as an example setup for your documentation.

Copy the config.toml in the root directory of your website. Overwrite the existing config file if necessary.

config.toml:

baseurl = "https://example.com"
languageCode = "en"
title = "Charaka"
theme = "charaka-hugo-theme"
copyright = "&copy; <a href=\"https://github.com/natarajmb\">Nataraj Basappa</a> 2018"
disqusShortname = ""
googleAnalytics = ""

[params]

[params.highlight]
  style = "zenburn"

[[params.social]]
  url = "about.html"
  fa_icon = "fas fa-info" 

[[params.social]]
  url = "https://github.com/natarajmb"
  fa_icon = "fab fa-github"

[[params.social]]
  url = "https://www.linkedin.com/in/natarajmb/"
  fa_icon = "fab fa-linkedin-in"

[[params.social]]
  url = "https://twitter.com/natarajmb"
  fa_icon = "fab fa-twitter"

Build

hugo server

You can go to localhost:1313 and this theme should be visible.

Inspirations

How to tweak

  • Once you have activated the theme as above and running hugo in server mode
  • Install npm
  • Get inside checked-out theme directory and run npm install
  • Make required changes to style.scss and run npm run css-build && npm run css-watch to live update your changes

License

Charaka is licensed under the MIT License.

Author

Nataraj Basappa

charaka-hugo-theme's People

Contributors

0xflotus avatar abduwaly avatar natarajmb avatar tommorris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

charaka-hugo-theme's Issues

How to hide the description of article?

The theme is excellent and I want to know how to customize the description of the article ?

In default format, it shows 4 lines of the article, and it seems so long .

So how to set the theme doesn't show the description or customize the count of lines to show?

Thanks!

config.toml to show list post and show icon ? help

My config.toml

baseurl = "https://example.com"
languageCode = "en-us"
title = "Desawarna"
theme = "charaka-hugo-theme"
copyright = "&copy; <a href=\"https://github.com/desawarna\">Desawarna</a> 2018"
disqusShortname = ""
googleAnalytics = ""

[params]

[params.highlight]
  style = "zenburn"

[[params.social]]
  url = "about.html"
  fa _icon = "fas fa-info" 

[[params.social]]
  url = "https://github.com/desawarna"
  fa_icon = "fab fa-github"

[[params.social]]
  url = "https://www.linkedin.com/in/desawarna/"
  fa_icon = "fab fa-linkedin-in"

[[params.social]]
  url = "https://twitter.com/desawarna"
  fa_icon = "fab fa-twitter"

And eror in terminal 😄


ERROR 2018/10/15 16:09:33 Failed to reload config: While parsing config: (16, 6): was expecting token =, but got "_icon" instead
ERROR 2018/10/15 16:13:06 Failed to reload config: While parsing config: (16, 6): was expecting token =, but got "_icon" instead
ERROR 2018/10/15 16:13:30 Failed to reload config: While parsing config: (16, 6): was expecting token =, but got "_icon" instead
ERROR 2018/10/15 16:13:38 Failed to reload config: While parsing config: (16, 6): was expecting token =, but got "_icon" instead
ERROR 2018/10/15 16:14:03 Failed to reload config: While parsing config: (16, 6): was expecting token =, but got "_icon" instead

cannot convert type hugolib.PagesGroup to Pages

$hugo
Building sites … ERROR 2018/10/02 20:07:56 Error while rendering "home" in "": template: index.html:5:14: executing "index.html" at <.Paginate>: error calling Paginate: cannot convert type hugolib.PagesGroup to Pages

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.