Skip to content

juntakano/basic-design-personal-blog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hugo Theme Basic Design Personal Blog

This is a simple blog theme. It has a plain design for easy customization.

Features

  • HTML5
  • SCSS
  • AMP
  • Responsive
  • Hierarchy Categories
  • Tags
  • Featured Images
  • Global Menu

Installation

$ cd themes
$ git clone [email protected]:nasust/basic-design-personal-blog.git

Configuration

Output AMP

[outputs]
    page = [ "HTML" , "AMP"  ]

Profile Avatar Image

[Params]
    profile_image = "images/avatar_image.jpg"

put assets/images/avatar_image.jpg

Author

[Params]
    author = "Your Name"

Featured Image

[Params]
    featured_image = "images/featured_image.jpg"

Specifies the default image if no featured image is specified in Markdown.

put assets/images/featured_image.jpg

Global Menu

[menu]
    [[menu.global_header]]
        name = "Home"
        url = "/"
        weight = 1
    [[menu.global_header]]
        name = "Blog"
        url = "/post"
        weight = 2
    [[menu.global_header]]
        name = "About"
        url = "/about"
        weight = 3

Example

baseURL = "http://example.org/"
title = "Basic Design Personal Blog"
languageCode = "en-us"
defaultContentLanguage = "en"
disablePathToLower = true
pluralizeListTitles = false
pygmentsUseClasses = true
pygmentsCodefences = true
theme = "basic-design-personal-blog"

[outputs]
    page = [ "HTML" , "AMP"  ]

[Params]
    author = "Hoge"
    profile_image = "images/profile.jpg"
    featured_image = "images/featured_image.jpg"

[taxonomies]
    tag = "tags"

[permalinks]
    post = "/:section/:year/:month/:filename"

[blackfriday]
    hrefTargetBlank = true
    nofollowLinks = true
    extensionsmask = ["autolink"]

[menu]
    [[menu.global_header]]
        name = "Home"
        url = "/"
        weight = 1
    [[menu.global_header]]
        name = "Blog"
        url = "/post"
        weight = 2
    [[menu.global_header]]
        name = "About"
        url = "/about"
        weight = 3

Recommended permalink format

[permalinks]
    post = "/:section/:year/:month/:filename"

By default, subsections are included in the path, so if you move an article to another subsection, the URL will change.

Hierarchy Categories

content
└── post
    ├── general --------------- category
    ├── cateogry_1 ------------ category
    │   ├── sub_category_1 --- sub category
    │   └── sub_category_2 --- sub category
    └── cateogry_2 -------------category

Supports hierarchical categories. The subsections are treated as categories. Sections further down the subsection are treated as subcategories.

Markdown Front Matter

featured image

featured_image: "featured_images.jpg"

set featured image

featured image lookup order

  1. page bundles
  2. assets

tags

tags: ["tag 1" , "tag 2"]

Example

title: "blog title"
date: 2019-06-17
draft: false
featured_image: "featured_images.jpg"
tags: ["general" , "poem" ]

About

Hugo Theme Basic Design Personal Blog

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 62.4%
  • CSS 37.6%