All Projects → danielkvist → hugo-piercer-theme

danielkvist / hugo-piercer-theme

Licence: MIT license
Piercer is a very customizable, fast and simple Hugo theme designed under the mobile-first philosophy.

Programming Languages

HTML
75241 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language
Makefile
30231 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to hugo-piercer-theme

hugo-lime
Hugo Lime is a business theme for GoHugo by https://uicard.io
Stars: ✭ 31 (+14.81%)
Mutual labels:  hugo-theme, css3, hugo
Gohugo Amp
⚡ AMP starter theme for gohugo https://gohugo-amp.gohugohq.com
Stars: ✭ 207 (+666.67%)
Mutual labels:  hugo-theme, hugo
Bilberry Hugo Theme
Premium theme for the hugo site builder. DEMO:
Stars: ✭ 205 (+659.26%)
Mutual labels:  hugo-theme, hugo
Hugo Future Imperfect Slim
Multilingual Blogging Theme for Hugo | Check the Wiki for Documentation
Stars: ✭ 233 (+762.96%)
Mutual labels:  hugo-theme, hugo
Hugo Theme Bootstrap4 Blog
A blogging-centric Bootstrap v4 theme for the Hugo static site generator.
Stars: ✭ 191 (+607.41%)
Mutual labels:  hugo-theme, hugo
Hugo Clarity
A theme for Hugo based on VMware Clarity
Stars: ✭ 189 (+600%)
Mutual labels:  hugo-theme, hugo
Hugo Orbit Theme
Great looking resume/CV theme designed for developers.
Stars: ✭ 217 (+703.7%)
Mutual labels:  hugo-theme, hugo
Hugo Agency Theme
Port of Startbootstrap's Agency theme to Hugo
Stars: ✭ 155 (+474.07%)
Mutual labels:  hugo-theme, hugo
distillpub
Hugo Theme for Distill
Stars: ✭ 31 (+14.81%)
Mutual labels:  hugo-theme, hugo
academia-hugo
Academia is a Hugo resume theme. You can showcase your academic resume, publications and talks using this theme.
Stars: ✭ 165 (+511.11%)
Mutual labels:  hugo-theme, hugo
hugo-kiera
Kiera - A Hugo Theme for writing
Stars: ✭ 61 (+125.93%)
Mutual labels:  hugo-theme, hugo
Hugo Serif Theme
Serif is a modern business theme for Hugo.
Stars: ✭ 168 (+522.22%)
Mutual labels:  hugo-theme, hugo
Hugo theme pickles
Modern, Simple and beautiful Hugo theme
Stars: ✭ 168 (+522.22%)
Mutual labels:  hugo-theme, hugo
Hugo Theme Pure
A pure theme for Hugo
Stars: ✭ 198 (+633.33%)
Mutual labels:  hugo-theme, hugo
Hugo Sustain
🦁 Personal blog theme built with Bootstrap, powered by Hugo.
Stars: ✭ 165 (+511.11%)
Mutual labels:  hugo-theme, hugo
Hugo Ink
Crisp, minimal personal website and blog theme for Hugo
Stars: ✭ 209 (+674.07%)
Mutual labels:  hugo-theme, hugo
restaurant-hugo
The restaurant is a creative and responsive restaurant website theme in Hugo environment. It is very well decorated theme which will make your website building easier.
Stars: ✭ 50 (+85.19%)
Mutual labels:  hugo-theme, hugo
Hugo Theme Bleak
Bleak Ghost theme ported to Hugo
Stars: ✭ 153 (+466.67%)
Mutual labels:  hugo-theme, hugo
Allinone
All in one Hugo theme
Stars: ✭ 155 (+474.07%)
Mutual labels:  hugo-theme, hugo
Hugo Eureka
Eureka is a feature-rich and highly customizable Hugo theme.
Stars: ✭ 239 (+785.19%)
Mutual labels:  hugo-theme, hugo

Hugo Piercer Theme

Piercer is a very customizable, fast and simple Hugo theme designed under the mobile-first philosophy.

Hugo Piercer theme screenshot

Archived

I have decided to archive the project as I have been and am unable to give it the necessary support. Over time I have had to move on to working with other technologies and on other projects and have never had enough time to re-familiarise myself with the code and continue working on the project.

Many thanks to all the people who have installed Piercer and who have sent PRs.

Dracula

Piercer's default color palette is based on the Dracula theme. You can see more of it here.

Features

Some of the basic features of Piercer are:

  • Highly customizable (color palette, font size, font family and more).
  • Support for custom CSS.
  • Hamburger menu without JavaScript.
  • Great SEO by default.
  • Mobile-first philosophy.
  • PostCSS can be used if desired.
  • Service Workers for optional caching resources.
  • Fast.

Some of the things that are not planned to add for the moment are:

  • Dropdown menus or nested menus.

Some of the things I would like to add or improve in the future:

  • Accessibility.
  • List pages.

Installation

To install Piercer run the following commands inside your Hugo site:

cd themes
git clone https://github.com/danielkvist/hugo-piercer-theme.git piercer

Or if you prefer Git submodules:

cd themes
git submodule add https://github.com/danielkvist/hugo-piercer-theme.git piercer

Then, add on your config.toml file:

theme = "piercer"

Configuration

You can find an example of the final configuration here.

Basic

baseurl = "/"                   # The base URL of your Hugo site
title = "titlehere"             # The title of your Hugo site
author = "authorhere"           # The author name
googleAnalytics = ""            # Your Google Analytics tracking ID
enableRobotsTXT = true
defaultContentLanguage = "en"
language = "en-US"
paginate = 7                    # The numbers of posts per page
theme = "piercer"               # Your Hugo theme

There's a lot more information about the basic configuration of an Hugo site here.

Privacy

[privacy]
    [privacy.googleAnalytics]
        anonymizeIP = true
        disable = false
        respectDoNotTrack = true
        useSessionStorage = false
    [privacy.instagram]
        disable = false
        simple = false
    [privacy.twitter]
        disable = false
        enableDNT = true
        simple = false
    [privacy.vimeo]
        disable = false
        simple = false
    [privacy.youtube]
        disable = false
        privacyEnhanced = true

To learn more about privacy configuration check the official documentation.

Description, favicon and logo params

description = "" # Description for the meta description tag
favicon = ""     # Relative URL for your favicon
logo = ""        # Relative URL for your logo

PostCSS

[params.postcss]
    postcss = true

If you want to use PostCSS you have to install the postcss-cli package with npm in your project first. You can find more information here.

Color palette and font sizes

[params.palette]
    text = "#fdfdfd"
    background = "#282a36"
    accent = "#44475a"
    foreground = "#f8f8f2"
    separator = "#6272a4"
    cyan = "#8be9fd"
    green = "#50fa7b"
    orange = "#ffb86c"
    pink = "#ff79c6"
    purple = "#bd93f9"
    red = "#ff5555"
    yellow = "#f1fa8c"

[params.fontsizes]
    base = "1em"
    p = "1.25em"
    h4 = "1.563em"
    h3 = "1.953em"
    h2 = "2.441em"
    h1 = "3.052em"

You can change any of the above values as you like.

Google Fonts

[params.googlefonts]
    font = ""   # Name of the Google Font you want to use

Service Workers

[params.serviceWorker]
    enable = true   # enables or disables service worker for caching resources

Header

[params.header]
    show = true # You can hide the header if you want

CTA

[params.cta]
    show = true
    message = ""
    link = ""

Font Awesome

[params.fa]
    disable = false # Disables or enables Font Awesome (by default is enabled)
    kit = ""  # Your Font Awesome kit's code

Contact form

[params.form]
    show = true
    netlify = false         # Only set to true if you are using Netlify to deploy your site
    action = ""
    method = "POST"
    section = "Contact me!" # Title of the section
    disclaimer = ""
    inputNameName = "Name"
    inputNameLabel = "Your Name"
    inputNamePlaceholder = "Your Name"
    inputEmailName = "Email"
    inputEmailLabel = "Your Email"
    inputEmailPlaceholder = "Your Email"
    SubmitValue = ""        # Let empty to default icon

Contact info

[params.contact]
    show = true
    email = ""
    phone = ""
    skype = ""
    address = ""

Date format on posts

[params.date]
    format = "January 2, 2006"

Social networks

[params.social]
    twitter = ""
    facebook = ""
    github = ""
    gitlab = ""
    codepen = ""
    instagram = ""
    pinterest = ""
    youtube = ""
    linkedin = ""
    weibo = ""
    mastodon = ""
    tumblr = ""
    flickr = ""
    "500px" = ""
    rss = ""

icons for social networks depend on Font Awesome.

Copyright message

[params.copy]
    message = ""

Agreements

[params.agreement]
    message = ""    # You can use HTML tags

404

[params.notfound]
    message = ""

Custom CSS

Thanks to the contributions of @benfreke now you can easily add your own CSS styles.

To do this you have to create a folder called assets in the root of your project. Then, create another folder called css inside assets. An finally a file called custom.css inside css with your styles.

mkdir -p ./assets/css/

You can check out the example site if you have any doubts.

Archetypes

Piercer includes three archetypes:

  • The default archetype for single pages which you can see here.
  • The post archetype for posts which you can see here.
  • The section archetype for the home page sections which you can see here.

Home

The Front Matter of you index page should look like this:

---
title: "Home"
description: ""
images: []
draft: false
menu: main
weight: 1
---

# Your title

A simple description.

As you can see, you can add a background image with the images param to the hero of your Home page. Which will also display the content of your file. And the CTA if you have specified so. Here is an example.

Home sections

To add sections to your Home page use the section archetype.

---
title: "Dracula"
draft: false
weight: 1
images: []
borderColor: "yellow"
---

Content

You can specify the order of the sections as the color of the bottom border (the value needs to be one of the variables defined in the main configuration file, for example "yellow" or "green"). Here is an example.

Single pages

The Front Matter of your single pages should look like this:

---
title: "About"
description: "About me."
draft: false
images: []
menu: main
weight: 2
---

Content

If you specify a background image, the height of the header will increase. Here is an example.

In the case of the Single pages the description is used as a subtitle.

List pages

The Front Matter of your list pages should look like this:

---
title: "Blog"
description: ""
draft: false
images: []
menu: main
weight: 3
---

Here is an example.

In the case of list pages the entries will be displayed in cards with the title, the author (if any), the date of publication (also if any), a description (again if any) and a list of tags (if any).

Posts

The Front Matter of your posts should look like this:

---
title: "Emojis"
description: "Emoji can be enabled in a Hugo project in a number of ways."
date: 2019-03-28T12:24:47+01:00
publishDate: 2019-03-28T12:24:47+01:00
author: "Myself"
draft: false
images: []
tags: ["emojis", "hugo"]
---

Here is an example.

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].