Hugo scroll fork
Find a file
Daniel Holbach 811e1f2b54 Fix language menu in multihost setting
#196 added the flexibility to index.html to be used in subdirectories.

	Unfortunately this broke the language menu in multihost settings.
	Both functionalities are made to work now by checking the
	`hugo.IsMultihost` condition.

	This makes the code somewhat harder to read, but at least ensures
	that the regression is fixed.

	Fixes: #214

Signed-off-by: Daniel Holbach <daniel.holbach@gmail.com>
2025-03-27 22:21:07 +01:00
.github chore(deps): bump peaceiris/actions-gh-pages from 3.9.3 to 4.0.0 2024-04-10 09:28:42 +02:00
archetypes Rename title overwrite properties to header_menu_title and navigation_menu_title 2022-02-06 18:15:49 +01:00
assets Use Font Awesome instead of Fork Awesome 2024-11-05 10:28:30 +01:00
exampleSite Use Font Awesome instead of Fork Awesome 2024-11-05 10:28:30 +01:00
i18n Define contact information in params, add to footer of the page (#166) 2023-12-23 19:08:45 +01:00
images Updated promo image for Hugo themes site (screenshot) 2023-04-01 01:15:16 +02:00
layouts Fix language menu in multihost setting 2025-03-27 22:21:07 +01:00
static/webfonts Use Font Awesome instead of Fork Awesome 2024-11-05 10:28:30 +01:00
.gitignore #162 Scroll to top - attempted fix 2024-04-01 22:09:28 +02:00
.prettierignore Use Font Awesome instead of Fork Awesome 2024-11-05 10:28:30 +01:00
.prettierrc.json style: add & run prettier 2020-09-09 18:00:59 +02:00
CHANGELOG.md fix typos, make markdownlint happy 2024-07-11 09:23:53 +02:00
contributing.md Spellcheck and linter fixes 2024-03-19 21:56:07 +01:00
LICENSE chore: initial commit 2020-07-07 17:50:41 +02:00
netlify.toml Use css.Sass instead of resources.ToCSS 2024-09-16 01:11:15 +02:00
package-lock.json chore(deps-dev): bump prettier from 2.8.6 to 2.8.7 2023-03-24 16:13:06 +00:00
package.json chore(deps-dev): bump prettier from 2.8.6 to 2.8.7 2023-03-24 16:13:06 +00:00
README.md Use Font Awesome instead of Fork Awesome 2024-11-05 10:28:30 +01:00
theme.toml Use Font Awesome instead of Fork Awesome 2024-11-05 10:28:30 +01:00

Hugo Scroll 📜 Demo

Clean, responsive, single-page Hugo website theme.

hugo-scroll Test Netlify Status GitHub code-size

Promo image which may be a bit outdated:
Screenshot Hugo Scroll Theme

Feature highlights

  • Responsive to screen size/shape
  • SEO friendly
  • Customizable
  • Video cover
  • Font Awesome v6.6.0 Icons out of the box
  • Header logo
  • Visual guards to guarantee readability
  • External links
  • JS/CSS Assets optimized (Minification, Fingerprinting, pipeline-processed into single file)
  • git info in footer (opt-in)

🔑 Installation

You need to install Hugo extended version. If you already have a Hugo site on your machine, you can simply add this theme via

git submodule add https://github.com/zjedi/hugo-scroll.git themes/hugo-scroll

Then, adjust the hugo.toml as detailed below & in the file comments.

Playing around with our example site

If you simply want to check out the exampleSite, you can run

git clone https://github.com/zjedi/hugo-scroll.git hugo-scroll
cd hugo-scroll
hugo server --source=exampleSite --themesDir=../..

For more information, read the official Hugo setup guide.

If you are starting fresh, simply copy over the contents of the exampleSite-directory included in this theme to your source directory. That should give you a good idea about how things work, and then you can go on from there to make the site your own.

Please check out the hugo.toml included in the exampleSite of this theme.

You can add a new section to the homepage by running hugo new homepage/my-new-content.md (or craft the file manually)

To create a page separate from the homepage, run hugo new my-new-page.md

🔧 Feature details 🔨

Customizing CSS

Add a custom_head.html file to your layouts/partials directory.

  • You can use <style> tag to embed the overrides (better performance-wise)
  • Alternatively you can <link> your own custom.css

CSS variables var(--some-var-name) from assets\css\variables.scss can be overridden by adding

:root {
  --some-var-name: blue!important;
}

Icons

This theme includes the full set of Font Awesome v6.6.0 icons. Use the {{< icon >}} shortcode with the respective name to use an icon directly in your .md files. For example:

{{< icon name="envelope" >}}

If you want to use one of Font Awesome's brand icons—the ones that have a trademark warning and the fa-brands class—add brand=true. For example:

{{< icon name="github" brand=true >}}

If you want to use these branded icons in your contact list, use the full class names in your hugo.toml:

[[params.contacts]]
  label = "GitHub"
  value = "github.com/zjedi/hugo-scroll"
  url = "https://github.com/zjedi/hugo-scroll"
  icon = "fa-brands fa-github"

Configured in _index.md, see exampleSite: header_logo: "images/chef-hat.png"

Video cover

Set header_use_video: true in /exampleSite/content/_index.md and define video source via custom partial, such as exampleSite/layouts/partials/custom_header_video.html.

In order to see technical version information (extracted from Hugo's GitInfo)) set the following general option in your hugo.toml: enableGitInfo = true

You can add an external link in the menu, see external.md in the exampleSite.

You can also use extlink shortcode to create a link opening in a new tab:

Visit us at {{<extlink text="Instagram" href="https://www.instagram.com/yourInstagramName/">}}

Referencing and showing icons in front of the link text is possible with a new parameter icon:

Visit us at {{<extlink icon="fa fa-instagram" text="Instagram" href="https://www.instagram.com/yourInstagramName/">}}

🐛 Issues / 💡 Feedback / 👑 Contributing

Discussion for Q&A (when unsure), Issues for tracking, Pull Requests for contributions.

See contributing guideline for more.

👏 Special Thanks