GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - austingebauer/devise: A fast, minimal, responsive Hugo theme for blogs.

BranchesTags
Open more actions menu

Latest commit

 

History

105 Commits
105 Commits

Folders and files

NameName
Last commit message
Last commit date
archetypes
archetypes
 
 
assets/sass
assets/sass
 
 
exampleSite
exampleSite
 
 
images
images
 
 
layouts
layouts
 
 
node_modules
node_modules
 
 
static
static
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
theme.toml
theme.toml
 
 

Repository files navigation

Devise

A fast, minimal, responsive Hugo theme for blogs.

screenshot.png

For a live demo of the theme, see at:

  • themes.gohugo.io/devise
  • austingebauer.com

Features

  • All of Hugo's builtin Content Management
  • Easy installation of Google Analytics via Hugo configuration file
  • Fast loading with a 95-100 score on Google PageSpeed
  • Ability to use Bootstrap 4 CSS classes via HTML/CSS in Markdown
  • Ability to use Font Awesome icons
  • Ability to customize the theme styles via Sass
  • Ability to customize the following items via Hugo configuration file
    • Meta description
    • Title
    • Subtitle
    • Image
    • Image border color
    • Navigation menu
    • Social icons
    • Last 'n' recent posts
    • Background color
    • Font family
    • Font color

Usage

This following guides installation, configuration, and updating of the Devise Hugo theme.

Installation

Before installing this theme, be sure to install Hugo and create a new site.

To install the theme, run the following from the root directory of your Hugo site:

$ git submodule add https://github.com/austingebauer/devise.git themes/devise

Configuration

Next, open the config.toml file in the root of your Hugo site and set the theme:

theme = "devise"

Example config.toml file with all configuration features filled out:

baseURL = "https://example.com"
title = "Your Website Title"
languageCode = "en-us"
theme = "devise"
relativeURLs = true
enableEmoji = true
googleAnalytics = ""
enableRobotsTXT = true
copyright = "© Copyright Year, Your Name"

# Main menu items
[menu]
  [[menu.main]]
    identifier = "about"
    name = "About"
    title = "About"
    url = "/about/"
    weight = -110
  [[menu.main]]
    identifier = "posts"
    name = "Posts"
    title = "Posts"
    url = "/post/"
    weight = -100
  [[menu.main]]
    identifier = "categories"
    name = "Categories"
    title = "Categories"
    url = "/categories/"
    weight = -90

# Configuration Features
[params]
  description = "Your meta description"      # Your meta description of the site
  header_title = "Your Name"                 # Your header title
  header_subtitle = "Your Creative Subtitle" # Your header subtitle
  home_image = "/images/avatar.png"          # Path to header image starting from the static directory (optional)
  recent_posts = 5                           # Max amount of recent posts to show
  mainSections = ["posts", "post", "blog"]   # Main sections to include in recent posts
  [params.style]                             # CSS style overrides
    backgroundColor = "#f8f9fa"
    homeImageBorderColor = "#ffffff"
    fontFamilyBase = "Helvetica Neue"        # First-choice font
    fontColor = "#212529"
  [[params.social]]
    fa_icon = "fab fa-github fa-1x"          # Font Awesome icon class
    href = "http://github.com/youruser"      # Link to associate with icon (http://, https://, mailto:)
  [[params.social]]
    fa_icon = "fab fa-linkedin-in fa-1x"
    href = ""
  [[params.social]]
    fa_icon = "fab fa-twitter fa-1x"
    href = ""
  [[params.social]]
    fa_icon = "fas fa-at fa-1x"
    href = ""

Updating

To get updates to the theme, run the following from the root directory of your Hugo site:

$ git submodule update --remote themes/devise

Adding Custom Styles

Adding custom styles to the devise theme is simple. There are two options available for doing so.

Option 1:

In the config.toml file of your website, you can set the following custom style parameters:

[params.style]
  backgroundColor = "#f8f9fa"
  homeImageBorderColor = "#ffffff"
  fontFamilyBase = "Helvetica Neue"
  fontColor = "#212529"

If you'd like to see other custom styles available as config parameters, please open an issue.

Option 2:

To add custom Sass styles to the devise theme, you'll need to add the following file to the assets directory of your site:

  • assets/sass/custom.scss

In the file, you can use Sass syntax to declare your custom styles. After doing so, you should see custom styling added to your devise based Hugo site.

Demo

To run a live demo of the theme on your laptop, run the following from the exampleSite directory of the devise theme:

hugo server --themesDir ../.. --watch --verbose --cleanDestinationDir --disableFastRender

For a live demo of the theme, see at:

  • themes.gohugo.io/devise
  • austingebauer.com

Contributing

If you have an idea for a new feature or found a bug, please feel free to use Github issues to let me know.

License

MIT

About

A fast, minimal, responsive Hugo theme for blogs.

themes.gohugo.io/devise

Resources

Readme
MIT license
Activity

Stars

123 stars

Watchers

5 watching

Forks

58 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.