Skip to content

pattespatte/hugo-wd-theme

Repository files navigation

WD Theme

This theme is very much based on the theme Highlights. It is a simple one page site originally created by HTML5UP. My addition is mostly accessibility and changing form provider to a totally free service.

All the information for creating the site is stored at the config.toml. This theme provides the following features

  • contact form Simple Form (via getsimpleform.com)
  • Google Analytics
  • responsive
  • fast loading (use minified build for best result)

Hugo WD Theme screenshot

Expect great performance if you use the optimization script for images -- resize-images-wd-theme.sh

Performance test from https://web.dev/measure/

PageSpeed on wastlund.net

Installation

Inside the folder of your Hugo site run:

$ cd themes

$ git clone https://github.com/pattespatte/hugo-wd-theme

For more information read the official setup guide of Hugo.

Getting started

After installing the Hugo WD Theme there are just a few more steps to get your site running.

The config file

Take a look inside the exampleSite folder of this theme. You'll find a file called config.toml

Change the background images

It's possible to change the background files for every section (about, services, ... ). To do this you could set every image in the config.toml of your site. The files are stored at static/images/.

Present your skills

This section should show your capabilities and skills. You can change this content at [[params.services]] in the config.toml.

All icons are part of Fontawesome's icon font. Look at the website of Fontawesome for more icons. The icons are represented by their corresponding CSS class of Fontawesome.

Since version 5 of Font Awesome the prefix changes, so you have to decide which style you wont to use.

The icontype could be:

  • fab (Font Awesome Brands)
  • fas or fa (Font Awesome Solid)
  • far (Font Aweseome Regular)
  • fal (Font Aweseome Light)
  • fad (Font Aweseome Duotone)

far, fal and fad are only available for Pro

A skill is defined like this example:

[[params.services]]
  icontype = "fas"
  icon = "fa-camera-retro"
  title = "Magna Etiam"

Make the contact form working

Since this page will be static, you can use getsimpleform.com as proxy to send the actual email. The service is free. Set it up by following the steps below:

  1. Create an api at getsimpleform.com
  2. Add your api under 'form_api' in the config.toml
  3. Upload the generated site to your server
  4. Send a dummy email to yourself to confirm that you receive the form data
  5. That's all. Enjoy mailing!

Nearly finished

In order to see your site in action, run Hugo's built-in local server.

$ hugo server

Now enter localhost:1313 in the address bar of your browser.

Contributing

Have you found a bug or got an idea for features? Feel free to use the issue tracker to let me know.

License

The theme is licensed under the Creative Commons Attribution 3.0 Unported

Acknowledgements

Thanks to

About

A theme for Hugo based on Highlights

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published