All Projects → matsuyoshi30 → Harbor

matsuyoshi30 / Harbor

Licence: mit
Simple and minimal personal blog theme.

Programming Languages

golang
3204 projects

Projects that are alternatives of or similar to Harbor

navigator-hugo
Navigator Business theme powered by Hugo. It also could be used for a personal portfolio.
Stars: ✭ 133 (+10.83%)
Mutual labels:  static-site-generator, hugo-theme, hugo
Hugothemes
A curated directory of Hugo themes
Stars: ✭ 1,571 (+1209.17%)
Mutual labels:  static-site-generator, hugo, hugo-theme
influencer-hugo
Influencer is a Hugo theme for book authors and writers. It has also Snipcart supports for order books and payments.
Stars: ✭ 66 (-45%)
Mutual labels:  static-site-generator, hugo-theme, hugo
Hugo Theme Basic
Basic site theme styled with minimal tachyons, syntax highlighting, and blog series configuration. 📦
Stars: ✭ 89 (-25.83%)
Mutual labels:  static-site-generator, hugo, hugo-theme
Hugo Coder
A minimalist blog theme for hugo.
Stars: ✭ 1,374 (+1045%)
Mutual labels:  static-site-generator, hugo, hugo-theme
timer-hugo
Timer is a personal portfolio theme powered by Hugo. It also can be use as a landing page theme.
Stars: ✭ 123 (+2.5%)
Mutual labels:  static-site-generator, hugo-theme, hugo
hugo-initio
Hugo Theme port of Initio bootstrap template by GetTemplate
Stars: ✭ 58 (-51.67%)
Mutual labels:  static-site-generator, hugo-theme, hugo
wowchemy-hugo-themes
🔥 Hugo website builder, Hugo themes & Hugo CMS. No code, easily build with blocks! 创建在线课程,学术简历或初创网站。#OpenScience
Stars: ✭ 6,891 (+5642.5%)
Mutual labels:  static-site-generator, hugo-theme, hugo
Hugo Paper
🥛 A simple, clean, flexible Hugo theme
Stars: ✭ 538 (+348.33%)
Mutual labels:  hugo, hugo-theme, simple
bookworm-light
Bookworm is a clean and modern Hugo blog theme focused on high speed and support multiple authors.
Stars: ✭ 59 (-50.83%)
Mutual labels:  static-site-generator, hugo-theme, hugo
persian-hugo
Persian is a box design personal blog theme based on Bootstrap and powered by Hugo. It is very responsive and perfectly fits on any sized screen device.
Stars: ✭ 32 (-73.33%)
Mutual labels:  static-site-generator, hugo-theme, hugo
Hugo Theme Bootie Docs
A simple Hugo theme for documentation
Stars: ✭ 45 (-62.5%)
Mutual labels:  static-site-generator, hugo, hugo-theme
liva-hugo
Liva is a personal blog template powered by Hugo.
Stars: ✭ 192 (+60%)
Mutual labels:  static-site-generator, hugo-theme, hugo
hugo-minimalist-theme
Port of Raphael Riegger's Minimalistic Ghost theme to Hugo.
Stars: ✭ 25 (-79.17%)
Mutual labels:  static-site-generator, hugo-theme, hugo
twenty-twenty-hugo
Twenty Twenty Hugo is forked from WordPress Twenty Twenty theme. It's fully functional like the WordPress theme.
Stars: ✭ 48 (-60%)
Mutual labels:  static-site-generator, hugo-theme, hugo
forty
Forty theme - Hugo theme ported from HTML5UP origrinal theme called Forty.
Stars: ✭ 116 (-3.33%)
Mutual labels:  static-site-generator, hugo-theme, hugo
Hugo Agency Theme
Port of Startbootstrap's Agency theme to Hugo
Stars: ✭ 155 (+29.17%)
Mutual labels:  static-site-generator, hugo, hugo-theme
Hugo theme pickles
Modern, Simple and beautiful Hugo theme
Stars: ✭ 168 (+40%)
Mutual labels:  static-site-generator, hugo, hugo-theme
hugo-travelify-theme
Port of Aigars Silkalns's Wordpress theme Travelify to Hugo. Demo -
Stars: ✭ 34 (-71.67%)
Mutual labels:  static-site-generator, hugo-theme, hugo
Wowchemy Hugo Modules
🔥 Hugo website builder, Hugo themes & Hugo CMS. No code, build with widgets! 创建在线课程,学术简历或初创网站。
Stars: ✭ 6,093 (+4977.5%)
Mutual labels:  static-site-generator, hugo, hugo-theme

harbor - Simple Hugo Theme

Quality Gate Status FOSSA Status

Simple and minimal personal blog theme for Hugo.

screenshot

screenshot-dark

Here is the demo link.

Features

  • Support tags, categories and archives
  • Analytics integration (Google or Goatcounter)
  • Responsive
  • Dark mode
  • Syntax Highlight (see Hugo doc)
  • Search entire blog posts
  • Table Of Contents
  • Disqus
  • Most social media

Installation & Update

$ # install
$ cd themes
$ git submodule add https://github.com/matsuyoshi30/harbor.git harbor

$ # update
$ git submodule update --remote --merge

If you want to know more information, see Hugo doc.

Usage

config.toml example

theme = "harbor"
baseurl = "https://example.com/"
title = "Hugo Themes"
paginate = 3
languageCode = "en"
DefaultContentLanguage = "en"
enableInlineShortcodes = true
footnoteReturnLinkContents = "^"

# Optional
# If you use googleAnalytics, you set top-level options in config.toml to the beginning of the config file like other top-level options.
googleAnalytics = "UA-XXXXXXXX-XX"
# and disqus too.
disqusShortName = "yourdisqusshortname"

[params.goatcounter]
  domain="stats.domain.com"

[Author]
  name = "Hugo Author"

[outputs]
  section = ["JSON", "HTML"]

[[params.nav]]
  identifier = "about"
  name = "About"
  icon = "fas fa-user fa-lg"
  url = "/about/"
  weight = 3

[[params.nav]]
  identifier = "tags"
  name = "Tags"
  icon = "fas fa-tag fa-lg"
  url = "tags"
  weight = 3

[[params.nav]]
  identifier = "categories"
  name = "Category"
  icon = "fas fa-folder-open fa-lg"
  url = "categories"
  weight = 3

[[params.nav]]
  identifier = "search"
  name = "Search"
  icon = "fas fa-search fa-lg"
  url = "search"
  weight = 3

[[params.nav]]
  identifier = "archives"
  name = "Archives"
  icon = "fas fa-archive fa-lg"
  url = "archives"
  weight = 3

# copy paste this block and change for each social media to add how many ever social media
# acounts/links you want
[[params.social]]
  name="name of social media"
  url="link to social media"
  icon="A icon from https://fontawesome.com/"

[params.logo]
  url = "icon.png" # static/images/icon.png
  width = 50
  height = 50
  alt = "Logo"

Before you user my theme, don't remember to change favicon (static/favicon.ico) and icon (static/images/icon.png)!

If you don't change them, your favicon and icon are my face :)

Search entire blog posts

You should make search.md in the page directory.

---
title: "Search"
---

{{<search>}}

TOC

If you want to use TableOfContent, you need to write words greater than 400, and set true of the frontmatter toc.

Back To Top Button

If you want to use Back To Top Button, you need to write words greater than 400, and set true of the frontmatter backtotop.

Archives

If you want archive page, generate archive.md file in the content directory.

$ hugo new archives.md
+++
title: "Archive page"
type: myarchivetype
+++

Override CSS

If you want to override CSS, add customCSS param which is path to CSS file to your config.toml.

[params]
  customCSS = ["/css/custom.css"] # in case you use `/static/css/custom.css`

Enable Google Analytics when running as server

If you want to enable google analytics when running hugo as server, add enableGoogleAnalytics param to your config.toml.

[params]
  enableGoogleAnalytics = true

Enable UglyURLs

If you want to enable "Ugly URLs" (e.g. exmaple.com/urls.html), add uglyurls = true to top level and [params] of your config.toml.

uglyurls = true

[params]
  uglyurls = true

Frontmatter example

+++
title = "Article title here"
date = 2020-02-15T20:00:00+09:00
tags = ["tags here"]
draft = false
toc = false
backtotop = false
disable_comments = true <!-- disable disqus -->
+++

# Title

<!-- when toc is true and post wordcounts is greater than 400 -->

## Contents

Contribution

Issues and PRs are very welcome!

Development

If you touch CSS or JavaScript file, you need to build to add your changes following below steps.

  1. Install Node.js and npm (Node.js package manager).

  2. The package.json file in your new sub-theme contains the versions of all the Node.js software you need. To install them run:

    $ npm install
    
  3. After fixing files in static dir, run build command to generate bundle.js

    $ # for development version
    $ npm run build-dev
    
    $ # for production version
    $ npm run build-prod
    

LICENSE

MIT.

FOSSA Status

Author

matsuyoshi30

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].