Skip to content

Commit 8e7c766

Browse files
Add theme
1 parent 6ae5c3a commit 8e7c766

File tree

160 files changed

+9637
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+9637
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# see https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates
2+
version: 2
3+
updates:
4+
# Maintain dependencies for GitHub Actions
5+
- package-ecosystem: "github-actions"
6+
directory: "/"
7+
schedule:
8+
interval: "daily"
9+
10+
# Maintain dependencies for npm
11+
- package-ecosystem: "npm"
12+
directory: "/"
13+
schedule:
14+
interval: "daily"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 90
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 30
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- pinned
8+
- security
9+
- bug
10+
- priority-high
11+
exemptProjects: true
12+
exemptMilestones: true
13+
# Label to use when marking an issue as stale
14+
staleLabel: no-activity
15+
# Comment to post when marking an issue as stale. Set to `false` to disable
16+
markComment: false
17+
# Comment to post when closing a stale issue. Set to `false` to disable
18+
closeComment: false
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-22.04
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Hugo
20+
uses: peaceiris/actions-hugo@v3.0.0
21+
with:
22+
hugo-version: latest
23+
extended: true
24+
25+
- name: Build local ./exampleSite
26+
run: hugo --minify --gc --destination ../public --source ./exampleSite --themesDir ../.. --baseURL https://zjedi.github.io/hugo-scroll/
27+
28+
- name: Deploy to GitHub Pages
29+
if: github.event_name == 'push'
30+
uses: peaceiris/actions-gh-pages@v4.0.0
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
publish_dir: ./public

themes/hugo-scroll/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
public
2+
exampleSite/public
3+
exampleSite/resources
4+
node_modules
5+
*.lock
6+
hugo-scroll.code-workspace

themes/hugo-scroll/.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
assets/css/fontawesome
2+
assets/css/normalize.css
3+
layouts/_default/index.html
4+
public
5+
resources
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"overrides": [
3+
{
4+
"files": ["*.html"],
5+
"options": {
6+
"parser": "go-template"
7+
}
8+
}
9+
]
10+
}

themes/hugo-scroll/CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
* Added for new features.
9+
* Changed for changes in existing functionality.
10+
* Deprecated for soon-to-be removed features.
11+
* Removed for now removed features.
12+
* Fixed for any bug fixes.
13+
* Security in case of vulnerabilities.
14+
15+
## [Unreleased](https://github.com/zjedi/hugo-scroll/compare/v.1.0.0...master)
16+
17+
* **JS cleanup / CSS refactoring**, possibly causing some pain if you have extensive CSS customisations in screen.css #4, #61, #102. For backwards compatibility, a released tag `v1.0.0` was created just in case some projects needed to fix the legacy version. However, I won't actively support the legacy branch.
18+
* New features: #70 , #46 , #118
19+
* More features #116 , #119
20+
21+
## [1.0.0 Legacy Snapshot](https://github.com/zjedi/hugo-scroll/releases/tag/v.1.0.0)
22+
23+
## Template for new releases
24+
25+
## [x.y.z](https://github.com/zjedi/hugo-scroll/compare/v1.0.0...vx.y.z)
26+
27+
### Added
28+
29+
### Changed
30+
31+
### Deprecated
32+
33+
### Removed
34+
35+
### Fixed
36+
37+
### Security

themes/hugo-scroll/LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2020 Jan Raasch
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

themes/hugo-scroll/README.md

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
<h1 align=center>Hugo Scroll 📜 <a href="https://zjedi.github.io/hugo-scroll/" rel="nofollow">Demo</a></h1>
2+
3+
Clean, responsive, single-page [Hugo](https://gohugo.io/) website theme.
4+
5+
[![hugo-scroll](https://img.shields.io/badge/Hugo--Themes-HugoScroll-blue)](https://themes.gohugo.io/themes/hugo-scroll/)
6+
![Test](https://github.com/zjedi/hugo-scroll/workflows/CI/badge.svg?branch=master&event=push)
7+
[![Netlify Status](https://api.netlify.com/api/v1/badges/a56faf45-76fa-4bdf-b9d4-35cfc7d620cf/deploy-status)](https://app.netlify.com/sites/hugo-scroll/deploys)
8+
[![GitHub](https://img.shields.io/github/license/zjedi/hugo-scroll)](https://github.com/zjedi/hugo-scroll/blob/master/LICENSE)
9+
![code-size](https://img.shields.io/github/languages/code-size/zjedi/hugo-scroll)
10+
11+
Promo image which may be a bit outdated:<br/>
12+
![Screenshot Hugo Scroll Theme](https://raw.githubusercontent.com/zjedi/hugo-scroll/master/images/tn.png)
13+
14+
## ⭐ Feature highlights
15+
16+
- Responsive to screen size/shape
17+
- SEO friendly
18+
- Customizable
19+
- Video cover
20+
- [Font Awesome v6.6.0 Icons][font-awesome-icons] out of the box
21+
- Header logo
22+
- Visual guards to guarantee readability
23+
- External links
24+
- JS/CSS Assets optimized (Minification, Fingerprinting, pipeline-processed
25+
into single file)
26+
- git info in footer (opt-in)
27+
28+
## 🔑 Installation
29+
30+
You need to install Hugo extended version.
31+
If you already have a Hugo site on your machine, you can simply add this theme via
32+
33+
```cli
34+
git submodule add https://github.com/zjedi/hugo-scroll.git themes/hugo-scroll
35+
```
36+
37+
Then, adjust the `hugo.toml` as detailed below & in the file comments.
38+
39+
### Playing around with our example site
40+
41+
If you simply want to check out the `exampleSite`, you can run
42+
43+
```cli
44+
git clone https://github.com/zjedi/hugo-scroll.git hugo-scroll
45+
cd hugo-scroll
46+
hugo server --source=exampleSite --themesDir=../..
47+
```
48+
49+
For more information, read the official [Hugo setup guide][hugo-setup-guide].
50+
51+
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.
52+
53+
Please check out the [hugo.toml](https://github.com/zjedi/hugo-scroll/blob/master/exampleSite/hugo.toml) included in the [exampleSite](https://github.com/zjedi/hugo-scroll/tree/master/exampleSite) of this theme.
54+
55+
You can add **a new section to the homepage** by running `hugo new homepage/my-new-content.md` (or craft the file manually)
56+
57+
To create **a page separate from the homepage**, run `hugo new my-new-page.md`
58+
59+
## 🔧 Feature details 🔨
60+
61+
### Customizing CSS
62+
63+
Add a [`custom_head.html`](https://github.com/zjedi/hugo-scroll/blob/master/exampleSite/layouts/partials/custom_head.html) file to your `layouts/partials` directory.
64+
65+
- You can use `<style>` tag to embed the overrides (better performance-wise)
66+
- Alternatively you can `<link>` your own `custom.css`
67+
68+
`CSS` variables `var(--some-var-name)` from `assets\css\variables.scss` can be overridden by adding
69+
70+
```scss
71+
:root {
72+
--some-var-name: blue!important;
73+
}
74+
```
75+
76+
### Icons
77+
78+
This theme includes the full set of [Font Awesome v6.6.0 icons][font-awesome-icons]. Use the `{{< icon >}}` [shortcode][hugo-shortcodes] with the respective `name` to use an icon directly in your `.md` files. For example:
79+
80+
```html
81+
{{< icon name="envelope" >}}
82+
```
83+
84+
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:
85+
86+
```html
87+
{{< icon name="github" brand=true >}}
88+
```
89+
90+
If you want to use these branded icons in your contact list, use the full class names in your `hugo.toml`:
91+
92+
```toml
93+
[[params.contacts]]
94+
label = "GitHub"
95+
value = "github.com/zjedi/hugo-scroll"
96+
url = "https://github.com/zjedi/hugo-scroll"
97+
icon = "fa-brands fa-github"
98+
```
99+
100+
### Header logo
101+
102+
Configured in `_index.md`, see `exampleSite`: `header_logo: "images/chef-hat.png"`
103+
104+
### Video cover
105+
106+
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`.
107+
108+
### Footer version information
109+
110+
In order to see technical version information (extracted from Hugo's [GitInfo](https://gohugo.io/variables/git/))) set the following general option in your hugo.toml: `enableGitInfo = true`
111+
112+
### External links
113+
114+
You can add an external link in the menu, see `external.md` in the `exampleSite`.
115+
116+
You can also use `extlink` shortcode to create a link opening in a new tab:
117+
118+
```markdown
119+
Visit us at {{<extlink text="Instagram" href="https://www.instagram.com/yourInstagramName/">}}
120+
```
121+
122+
Referencing and showing icons in front of the link text is possible with a new parameter `icon`:
123+
124+
```markdown
125+
Visit us at {{<extlink icon="fa fa-instagram" text="Instagram" href="https://www.instagram.com/yourInstagramName/">}}
126+
```
127+
128+
## 🐛 Issues / 💡 Feedback / 👑 Contributing
129+
130+
[Discussion](https://github.com/zjedi/hugo-scroll/discussions) for Q&A (when unsure),
131+
[Issues](https://github.com/zjedi/hugo-scroll/issues) for tracking,
132+
[Pull Requests](https://github.com/zjedi/hugo-scroll/pulls) for contributions.
133+
134+
See [contributing guideline](https://github.com/zjedi/hugo-scroll/blob/master/contributing.md) for more.
135+
136+
## 👏 Special Thanks
137+
138+
- [Jan Raasch](https://www.janraasch.com), original author of theme
139+
- [Yonatan Wolowelsky](https://github.com/grmmph), author of [GhostScroll](https://github.com/grmmph/GhostScroll) theme, which formed the basis of this [Hugo](https://gohugo.io/) theme.
140+
- [Pexels](https://www.pexels.com), for supplying _free_ stock photos.
141+
142+
[hugo-setup-guide]: https://gohugo.io/getting-started/installing
143+
[font-awesome-icons]: https://fontawesome.com/icons
144+
[hugo-shortcodes]: https://gohugo.io/content-management/shortcodes/
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: '{{ replace .Name "-" " " | title }}'
3+
---
4+
5+
This is a page about »{{ replace .Name "-" " " | title }}«.

0 commit comments

Comments
 (0)