-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1660fcf
commit dc7eaf3
Showing
5 changed files
with
0 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,43 +37,6 @@ You name it. `hugo-hooks` is what you need. This module adds these hooks to your | |
|
||
{{< component-box >}} | ||
|
||
<!--- INSTALLUPDATE BEGIN ---> | ||
|
||
## Installing | ||
|
||
First enable modules in your own repository if you did not already have done so: | ||
|
||
```bash | ||
hugo mod init github.com/username/reponame | ||
``` | ||
|
||
Then add this module to your required modules in `config.toml`. | ||
|
||
```toml | ||
[module] | ||
|
||
[[module.imports]] | ||
path = "github.com/davidsneighbour/hugo-hooks" | ||
disable = false | ||
ignoreConfig = false | ||
ignoreImports = false | ||
|
||
``` | ||
|
||
The next time you run `hugo` it will download the latest version of the module. | ||
|
||
## Updating | ||
|
||
```bash | ||
# update this module | ||
hugo mod get -u github.com/davidsneighbour/hugo-hooks | ||
# update to a specific version | ||
hugo mod get -u github.com/davidsneighbour/[email protected] | ||
# update all modules recursively over the whole project | ||
hugo mod get -u ./... | ||
``` | ||
<!--- INSTALLUPDATE END ---> | ||
|
||
## Hook principle | ||
|
||
Theme users save hooks to the `layouts/partials/hooks` directory. There are no errors if a hook is not found (some themes or modules might provide a feedback if their hook is unused and usage of them is required to get important features working). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,42 +44,6 @@ This is work in progress and while many parts are already working, some changes | |
- :x: improve configuration of implemented functionality in the service worker | ||
- :x: add detailed documentation for all configuration options | ||
|
||
<!--- INSTALLUPDATE BEGIN ---> | ||
|
||
## Installing | ||
|
||
First enable modules in your own repository if you did not already have done so: | ||
|
||
```bash | ||
hugo mod init github.com/username/reponame | ||
``` | ||
|
||
Then add this module to your required modules in `config.toml`. | ||
|
||
```toml | ||
[module] | ||
|
||
[[module.imports]] | ||
path = "github.com/davidsneighbour/github.com/davidsneighbour/hugo-pwa" | ||
disable = false | ||
ignoreConfig = false | ||
ignoreImports = false | ||
|
||
``` | ||
|
||
The next time you run `hugo` it will download the latest version of the module. | ||
|
||
## Updating | ||
|
||
```bash | ||
# update this module | ||
hugo mod get -u github.com/davidsneighbour/github.com/davidsneighbour/hugo-pwa | ||
# update to a specific version | ||
hugo mod get -u github.com/davidsneighbour/github.com/davidsneighbour/[email protected] | ||
# update all modules recursively over the whole project | ||
hugo mod get -u ./... | ||
``` | ||
<!--- INSTALLUPDATE END ---> | ||
|
||
## Configuration | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,43 +35,6 @@ This module DOES NOT make your website more secure. Just in case you were assumi | |
|
||
{{< component-box >}} | ||
|
||
<!--- INSTALLUPDATE BEGIN ---> | ||
|
||
## Installing | ||
|
||
First enable modules in your own repository if you did not already have done so: | ||
|
||
```bash | ||
hugo mod init github.com/username/reponame | ||
``` | ||
|
||
Then add this module to your required modules in `config.toml`. | ||
|
||
```toml | ||
[module] | ||
|
||
[[module.imports]] | ||
path = "github.com/davidsneighbour/github.com/davidsneighbour/hugo-security" | ||
disable = false | ||
ignoreConfig = false | ||
ignoreImports = false | ||
|
||
``` | ||
|
||
The next time you run `hugo` it will download the latest version of the module. | ||
|
||
## Updating | ||
|
||
```bash | ||
# update this module | ||
hugo mod get -u github.com/davidsneighbour/github.com/davidsneighbour/hugo-security | ||
# update to a specific version | ||
hugo mod get -u github.com/davidsneighbour/github.com/davidsneighbour/[email protected] | ||
# update all modules recursively over the whole project | ||
hugo mod get -u ./... | ||
``` | ||
<!--- INSTALLUPDATE END ---> | ||
|
||
### Usage | ||
|
||
Install this plugin, then add your configuration to `params.dnb.security.txt`. The following configuration parameters are available and correspond to the [values in security.txt](https://securitytxt.org/#genform): | ||
|