• Stars
    star
    106
  • Rank 325,871 (Top 7 %)
  • Language
    HTML
  • License
    MIT License
  • Created almost 6 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Basic site theme styled with minimal tachyons, syntax highlighting, and blog series configuration. 📦

hugo-theme-basic

Basic personal site theme styled with minimal tachyons, syntax highlighting, and blog series configuration.

Demo

https://hugo-theme-basic.netlify.app/

Screenshot

Features

  • Basic — HTML with a dash of style + emoji
  • 🌯 Extensible — Easily leverage tachyons to add more spice
  • 🗞️ series taxonomy - Automatically group posts and display within an isolated taxonomy type
  • 🥑 Syntax Highlighting - It's there when you need it

Installation

Run this command from the root of your Hugo directory (Git needs to be installed):

$ git clone https://github.com/siegerts/hugo-theme-basic.git

Or, if your Hugo site is already in git, you can include this repository as a git submodule. This makes it easier to update this theme (and for some deployment options i.e. Netlify).

$ git submodule add https://github.com/siegerts/hugo-theme-basic.git themes/hugo-theme-basic

Alternatively, if you are not familiar with git, you can download the theme as a .zip file, unzip the theme contents, and then move the unzipped source into your themes directory.

For more information, read the official documentation of Hugo.

Run example site

From the root of themes/hugo-theme-basic/exampleSite:

hugo server --themesDir ../..

Configuration

Check out the sample config.tomlfile located in the exampleSite directory. Copy the config.toml to the root directory of your Hugo site, then edit as desired.

Content Types

Type Description Command
Post Used for blog posts. Posts are listed on the /post page. hugo new post/<post-name>.md
Page Used for site pages. hugo new <page-name>.md
Project Used for project pages. Extend project list by customizing /layouts/section/project.html. hugo new project/<project-name>.md

Blog post series

An extra taxonomy, series, is added to allow for the grouping of blog posts. A Read More section shows at the bottom of each post within the series when two or more posts are grouped.

[taxonomies]
  category = "categories"
  series = "series"
  tag = "tags"

Series read more

.Params.Menu

Menu links are specified, in order, in the theme configuration.

For example:

[[params.menu]]
  name = "blog"
  url = "blog/"

[[params.menu]]
  name = "post series"
  url = "series/"

[[params.menu]]
  name = "about"
  url = "about/"

Syntax highlighting

Syntax highlighting is provided by highlight.js. The color theme can be changed by modifying the highlight.js stylesheet in layouts/partials/head_includes.html.

Acknowledgments

License

The code is available under the MIT license.

More Repositories

1

vue-component-library-template

Supporting project and code for Vue Component Library post series.
JavaScript
33
star
2

astro-lucia-auth-neon

Astro + Lucia Auth + Neon Serverless Postgres with Prisma + shadcn/ui
Astro
21
star
3

printful

Printful API Client for Python 3
Python
19
star
4

dossi-ext

dossi browser extension: Your own private GitHub notes on every page
TypeScript
15
star
5

plumber-vue

Project structure showing the use of an R-based Plumber API with a Vue frontend, using Vue CLI.
Vue
10
star
6

drip

🚰 Watch and automatically restart Plumber APIs during development.
Go
10
star
7

github-repository-audit

Declarative approach to managing repository changes over time for current and future projects in a GitHub organization.
Python
8
star
8

dossi-app

dossi web app & API: Your own private GitHub notes on every page
TypeScript
7
star
9

neon-branches-amplify-cicd

Neon Postgres Branch for each Amplify Hosting app branch
Shell
4
star
10

release-follow-up-action

Follow up on referenced issues and PRs after a release is published. 📝
JavaScript
4
star
11

amplify-apprunner

React Frontend (with AWS Amplify Auth & Storage) that calls an Express API running on AWS App Runner deployed with AWS Copilot.
JavaScript
2
star
12

pending-response

Update pending response issue labels based on repository membership affiliation. 🏀
JavaScript
2
star
13

rstudio-nord-theme

Nord Polar Dark theme adapted for RStudio
1
star
14

dash-jumpstart

📈Dash Example Stock Tracker
Python
1
star
15

next-amplified

Example Next.js + Amplify Auth & GraphQL API
JavaScript
1
star
16

contributor-metrics

Serverless backend infrastructure to monitor issues, pull requests, issues events, and issue transfers.
Python
1
star