Skip to content

costalfy/hugo-strata-theme

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Strata Theme

The Strata theme is a responsive and minimal one-page-portfolio based on the self-named template made by HTML5UP. Noteworthy features of this Hugo theme are a custom about section, a portfolio with gallery for photographs or client works and a contact form.

Please note that this theme is no longer maintained.

Screenshot

Installation

Inside the folder of your Hugo site run:

$ cd themes
$ git clone https://github.com/digitalcraftsman/hugo-strata-theme.git

For more information read the official setup guide of Hugo.

Getting started

After installing the Strata Theme successfully it requires a just a few more steps to get your site finally running.

The config file

Take a look inside the exampleSite folder of this theme. You'll find a file called config.toml. To use it, copy the config.toml in the root folder of your Hugo site. Feel free to customize this theme as you like.

Sidebar

The sidebar provides a small overview of who you are. One of the first elements that will be spotted is the avatar in the sidebar. Replace it with a nice picture of you by either swapping the avatar.jpg or by setting a new path to an image in config.toml:

[params.sidebar]
    avatar = "avatar.jpg"

The path is relative to ./static/images.

Last but not least add a few words about you and your work.

Build up your portfolio

As photograph or freelancer, your most important piece in the resume is the work you've done. Within the config.toml add the following snippet to add a new item to the gallery:

[params.portfolio]

        # The images and thumbnails are stored under static/images
        # Create and change subfolders as you like
        [[params.portfolio.gallery]]
            image = "fulls/01.jpg"
            thumb = "thumbs/01.jpg"
            title = "Lorem ipsum dolor."
            description = "Lorem ipsum dolor sit amet."

Make the contact form working

Since this page will be static, you can use formspree.io as proxy to send the actual email. Each month, visitors can send you up to one thousand emails without incurring extra charges. Begin the setup by following the steps below:

  1. Enter your email address under 'email' in the config.toml
  2. Upload the generated site to your server
  3. Send a dummy email yourself to confirm your account
  4. Click the confirm link in the email from formspree.io
  5. You're done. Happy mailing!

Menu

You can also define the items menu entries as you like in the left sidebar. E.g. let's link a post that you've written. We can do this in the frontmatter of the post's content file by setting menu to main.

+++
menu = "main"
+++

Alternatively, we can add entries from the config file. Back in the config.toml you'll find a section for the menu:

[[menu.main]]
	name = "Home"
	url  = "/"
	weight = 0

The weight attribute allows your to change the order of the entries. Heavier weighted entries appear further down in the menu.

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.

To be able to access your site from anywhere, use the following:

$ hugo server --bind=[Your IP] --port=80 --baseURL=https://example.com --appendPort=false

Changelog

All modifications to this theme are listed in the Changelog.

Contributing

Did you found a bug or got an idea for a new feature? Feel free to use the issue tracker to let me know. Or make directly a pull request.

License

This theme is released under the Creative Commons Attribution 3.0 Unported License. For more information read the License.

Annotations

Thanks to

About

Port of HTML5UP's Strata theme to Hugo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 61.5%
  • JavaScript 23.1%
  • HTML 15.4%