mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-14 00:59:43 +00:00
Update docs and config.toml
- Add instructions for Contact section clock and Plausible - Update README and Theme Features post Close #273
This commit is contained in:
parent
fe776a91c8
commit
2932037152
8 changed files with 59 additions and 18 deletions
|
@ -176,6 +176,14 @@ See the [hugo documentation](https://gohugo.io/content-management/multilingual/)
|
||||||
|
|
||||||
Introduction contains a default menu. If you want to override this, you can do so by defining a `menu.main` in `config.toml`.
|
Introduction contains a default menu. If you want to override this, you can do so by defining a `menu.main` in `config.toml`.
|
||||||
|
|
||||||
|
## Contact section clock
|
||||||
|
|
||||||
|
Introduction can optionally show your current local time in your [contact section](https://hugo-introduction.netlify.app/#contact). This uses vanilla JS and variables you provide. You can set this up by copying the settings in the exampleSite `config.toml` for `localTime`, `timeZone`, and `timeFormat`.
|
||||||
|
|
||||||
|
## Plausible
|
||||||
|
|
||||||
|
You can easily use Plausible.io for analytics by setting `plausible = true` in your `config.toml`. Plausible offers a privacy-friendly alternative to Google Analytics. You'll need your own Plausible account - see [plausible.io](https://plausible.io/) for more.
|
||||||
|
|
||||||
## Google Analytics
|
## Google Analytics
|
||||||
|
|
||||||
Set `googleAnalytics` in `config.toml` to activate Hugo's [internal Google Analytics template](https://gohugo.io/templates/internal/#google-analytics).
|
Set `googleAnalytics` in `config.toml` to activate Hugo's [internal Google Analytics template](https://gohugo.io/templates/internal/#google-analytics).
|
||||||
|
|
|
@ -51,6 +51,20 @@ hr
|
||||||
background-color: $secondary
|
background-color: $secondary
|
||||||
height: 1px
|
height: 1px
|
||||||
|
|
||||||
|
details
|
||||||
|
padding: .5em .5em 0
|
||||||
|
|
||||||
|
summary
|
||||||
|
margin: -.5em -.5em 0
|
||||||
|
padding: .5em
|
||||||
|
cursor: pointer
|
||||||
|
|
||||||
|
details[open]
|
||||||
|
padding: .5em
|
||||||
|
|
||||||
|
details[open] summary
|
||||||
|
margin-bottom: .5em
|
||||||
|
|
||||||
.container
|
.container
|
||||||
max-width: 1000px
|
max-width: 1000px
|
||||||
|
|
||||||
|
@ -78,9 +92,9 @@ pre
|
||||||
border: none
|
border: none
|
||||||
|
|
||||||
.card-thumbnail
|
.card-thumbnail
|
||||||
width: 100%
|
width: 100%
|
||||||
height: 100%
|
height: 100%
|
||||||
object-fit: cover
|
object-fit: cover
|
||||||
|
|
||||||
.bold-title
|
.bold-title
|
||||||
font-size: 6rem
|
font-size: 6rem
|
||||||
|
|
|
@ -5,7 +5,7 @@ DefaultContentLanguage = "en" # Default language fo
|
||||||
# googleAnalytics = "" # https://gohugo.io/templates/internal/#google-analytics
|
# googleAnalytics = "" # https://gohugo.io/templates/internal/#google-analytics
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
themeStyle = "light" # Choose "light" or "dark" or "auto"
|
themeStyle = "auto" # Choose "light" or "dark" or "auto"
|
||||||
favicon = "/img/fav.ico" # Path to favicon file
|
favicon = "/img/fav.ico" # Path to favicon file
|
||||||
showRSSButton = false # Show rss button in navigation
|
showRSSButton = false # Show rss button in navigation
|
||||||
fadeIn = true # Turn on/off the fade-in effect
|
fadeIn = true # Turn on/off the fade-in effect
|
||||||
|
@ -14,6 +14,7 @@ DefaultContentLanguage = "en" # Default language fo
|
||||||
email = "youremail@email.com" # E-mail address for contact section
|
email = "youremail@email.com" # E-mail address for contact section
|
||||||
# customCSS = ["foo.css"] # Include custom css files placed under assets/
|
# customCSS = ["foo.css"] # Include custom css files placed under assets/
|
||||||
# customJS = ["foo.js"] # Include custom JavaScript files placed under assets/
|
# customJS = ["foo.js"] # Include custom JavaScript files placed under assets/
|
||||||
|
# plausible = true # Use Plausible analytics (requires an account at Plausible.io)
|
||||||
|
|
||||||
# Configure the home page
|
# Configure the home page
|
||||||
[params.home]
|
[params.home]
|
||||||
|
|
|
@ -7,6 +7,20 @@ series: ["quickstart"]
|
||||||
|
|
||||||
Here are some helpful tips for setting up this theme.
|
Here are some helpful tips for setting up this theme.
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
Most of what you'll want to configure is demonstrated in the exampleSite `config.toml`. This is [Hugo's configuration file](https://gohugo.io/getting-started/configuration/). You can copy the `config.toml` in the `exampleSite/` to your site root get started.
|
||||||
|
|
||||||
|
<details><summary>Here are all the options included in the configuration file for this example site!</summary>
|
||||||
|
|
||||||
|
```toml
|
||||||
|
{{% md %}}
|
||||||
|
{{< readfile file="config.toml" >}}
|
||||||
|
{{% /md %}}
|
||||||
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
## Syntax Highlighting
|
## Syntax Highlighting
|
||||||
|
|
||||||
Introduction allows the use of Hugo's rich built-in syntax highlighting capabilities. See [Syntax Highlighting](https://gohugo.io/content-management/syntax-highlighting/) in the Hugo docs.
|
Introduction allows the use of Hugo's rich built-in syntax highlighting capabilities. See [Syntax Highlighting](https://gohugo.io/content-management/syntax-highlighting/) in the Hugo docs.
|
||||||
|
@ -45,15 +59,3 @@ defaultMarkdownHandler = "goldmark"
|
||||||
[markup.goldmark.renderer]
|
[markup.goldmark.renderer]
|
||||||
unsafe = true
|
unsafe = true
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configuration
|
|
||||||
|
|
||||||
Introduction can be easily configured using [Hugo's configuration file](https://gohugo.io/getting-started/configuration/). You can copy the `config.toml` in the `exampleSite/` to your site root get started.
|
|
||||||
|
|
||||||
Here are all the options included in the configuration file for this example site!
|
|
||||||
|
|
||||||
```toml
|
|
||||||
{{% md %}}
|
|
||||||
{{< readfile file="config.toml" >}}
|
|
||||||
{{% /md %}}
|
|
||||||
```
|
|
||||||
|
|
|
@ -4,4 +4,4 @@ title: "Contact"
|
||||||
|
|
||||||
In the Contact section of **Introduction**, you may optionally display the current time in your preferred timezone.
|
In the Contact section of **Introduction**, you may optionally display the current time in your preferred timezone.
|
||||||
|
|
||||||
This lets visitors know what sort of response time to expect when they contact you. The timezone is easily set in the `config.toml` file.
|
This lets visitors know what sort of response time to expect when they contact you. The timezone is easily set in the `config.toml` file. See the exampleSite configuration for instructions.
|
||||||
|
|
|
@ -7929,6 +7929,20 @@ hr {
|
||||||
background-color: #dbdbdb;
|
background-color: #dbdbdb;
|
||||||
height: 1px; }
|
height: 1px; }
|
||||||
|
|
||||||
|
details {
|
||||||
|
padding: .5em .5em 0; }
|
||||||
|
|
||||||
|
summary {
|
||||||
|
margin: -.5em -.5em 0;
|
||||||
|
padding: .5em;
|
||||||
|
cursor: pointer; }
|
||||||
|
|
||||||
|
details[open] {
|
||||||
|
padding: .5em; }
|
||||||
|
|
||||||
|
details[open] summary {
|
||||||
|
margin-bottom: .5em; }
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
max-width: 1000px; }
|
max-width: 1000px; }
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
{{ block "head" . }}
|
{{ block "head" . }}
|
||||||
{{ partial "head/metadata.html" . }}
|
{{ partial "head/metadata.html" . }}
|
||||||
|
{{ partial "head/plausible.html" . }}
|
||||||
{{ partial "head/openGraph.html" . }}
|
{{ partial "head/openGraph.html" . }}
|
||||||
{{ partial "head/favicons.html" . }}
|
{{ partial "head/favicons.html" . }}
|
||||||
{{ partial "head/css.html" . }}
|
{{ partial "head/css.html" . }}
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
{{ partial "head/metadata.html" . }}
|
{{ partial "head/metadata.html" . }}
|
||||||
|
{{ if .Site.Params.plausible }}{{ partial "head/plausible.html" . }}{{ end }}
|
||||||
{{ partial "head/openGraph.html" . }}
|
{{ partial "head/openGraph.html" . }}
|
||||||
{{ partial "head/favicons.html" . }}
|
{{ partial "head/favicons.html" . }}
|
||||||
{{ partial "head/css.html" . }}
|
{{ partial "head/css.html" . }}
|
||||||
|
|
Loading…
Reference in a new issue