Source code for tdem.in (formerly blog.tdem.in) https://tdem.in
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Timur Demin 6076a87af0
Promote custom theme changes to top level
2 months ago
..
LICENSE.md Include the theme as a non-submodule 1 year ago
README.md Include the theme as a non-submodule 1 year ago
theme.toml Reformat site config files 2 months ago

README.md

Basics

A minimal theme for those who like to keep it simple. Makes use of bootstrap.

Based on the Elephants theme.

Features

  • Responsive theme
  • High contrast
  • Focus on content and readability

Installation

From your hugo site, run:

git submodule add https://github.com/arjunkrishnababu96/basics.git themes/basics

Writing Posts

Posts that should show up in the home page must be inside contents/post. Or you can change this behavior by tweaking themes/basics/layouts/_default/list.html.

You should also add an about page at contents/about.md.

Your directory should look something like this:

├── archetypes
│   └── default.md
├── config.toml
├── content
│   ├── about.md
│   └── post
│       ├── my-first-post.md
│       └── my-second-post.md
├── data
├── layouts
├── static
│   └── images
└── themes
    └── basics

Configurations

Add author name

Add author name to the .Site.Params.author parameter in your config.toml file.

See below for an example:

baseURL = ""
languageCode = "en-us"
title = "Basics Theme Demo"
theme = "basics"

[params]
    author = "Author Name"

Add GitHub and GitLab usernames to .Site.Params.github and .Site.Params.gitlab parameters in your config.toml file. Links to these accounts would show up in the top navigation bar. If these parameters are not present or is left blank, the links would disappear.

See below for an example:

baseURL = ""
languageCode = "en-us"
title = "Basics Theme Demo"
theme = "basics"

[params]
    author = "Author Name"
    github = "username1"
    gitlab = "username2"

License

Released under the MIT License.