Giter Site home page Giter Site logo

antomor / manis-hugo-theme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yursan9/manis-hugo-theme

0.0 2.0 0.0 1.43 MB

Sweet little Hugo's theme for personal website

Home Page: https://themes.gohugo.io/manis-hugo-theme/

License: MIT License

HTML 42.03% CSS 57.97%

manis-hugo-theme's Introduction

Manis Hugo Theme

It's a minimalist and responsive theme for Hugo Static Site Generator. It's name taken from Indonesian Language for Sweet.

Manis' Mockup Device

Table of Contents

Features

Like I said, it's really minimal. Its doesn't even have grid or anything nice like that.

  • Configurable color!
  • Code Highlighting (HighlightJS).
  • Print.css (for single post only)
  • Responsive.
  • Social Icon Links.
  • No Grid no worry.
  • Disqus Support.
  • Translatable.

Manis' Homepage view

Get Started

If this is your first time using Hugo, and you want to use this theme. Follow the instruction below:

mkdir name_of_web
cd name_of_web
git clone https://github.com/yursan9/manis-hugo-theme themes/manis
cp themes/manis/exampleSite/config.toml config.toml
hugo new blog/hello.md

Edit the config.toml according to your preference. Then edit content/blog/hello.md to start writing your first post. (Look at the exampleSite/content for example.)

Theme Only

To only install Manis, you can clone this repository. The following command will clone Manis in your site's base directory.

cd path/to/site/dir
git clone https://github.com/yursan9/manis-hugo-theme themes/manis

Ensure you have blog and work sections to make this theme works.

content/
├── blog
│   └── _index.md
└── work
    └── _index.md

Configuration

For configuration example you can look at the exampleSite/config.toml (and copy that too!). I put some commentary to, hopefully, guide you at using this theme.

Change Latest Section

You can edit which sections show up as latest posts and latest works by editing mainSections and workSections. workSections is optional.

# Configure which sections for Latest Posts
mainSections = ["blog", "post"]
# Configure which sections for Latest Works
workSections = ["work"]

Custom CSS

If you want to make a change for this theme, other than forking, you can also supplied custom CSS. Maybe you want to change the font or size of image or icon, then custom CSS is your pal.

First, edit your config.toml, add the custom CSS filenames to custom CSS. You can supplied more than one custom CSS. Just be aware of the CSS load order.

[params]
    customCSS = ["/css/icon.css"]

Then, make a new static/css/icon.css file. After that you can write your custom CSS to that file:

.icon-social {
    width: 2rem;
    height: 2rem;
} 

If you follow the above instruction, you will change the size of icon on footer without forking the theme.

Disqus Configuration

To add Disqus support, edit your site config.toml. Add your discus' shortname to disqusShortname and add list of sections that you want to support disqus to params.disqusSections:

disqusShortname = "your-disqus-shortname"

[params]
    disqusSections = ["blog"]

Making Own Navigation Bar

Top navigation bar in Manis is made by configuring the navigation bar in config.toml with the following code:

[menu]
    [[menu.main]]
        name = "Blog"
        url = "/post/"

    [[menu.main]]
        name = "About"
        url = "/about"

Other Language

Manis already translated to Bahasa Indonesia. But, if you want to translate this theme to your own language, look for the example in i18n/en.yaml and i18n/in.yaml.

And then you edit the site's config.toml like this.

defaultContentLanguage = "en"
[languages.{Your Language Code}]
    lang = "{Your Language Code}"
    languageName = "{Your Language Name. example; Bahasa Indonesia or Japanese}"
    weight = 1

Development

If you found bug, or anything that itch you. Tell me! or maybe make PR.

License

Manis is licensed under the MIT License. Check the LICENSE file for details.

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.