Skip to content

Commit

Permalink
Change configuration to avoid deprecated names (EmielH#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv authored Aug 27, 2024
1 parent 1184888 commit 807a27b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ This partial is included at the top of the list of posts on the index page, allo
The copyright message in the footer uses the name of the author of the site, as defined in `config.toml`. For example:

```
[Author]
name = "Emiel"
[Params]
author = { name = "Emiel" }
```

### Additional CSS files
Expand Down
8 changes: 4 additions & 4 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
</div>

<div class="pagination">
{{- if .PrevPage }}
<a href="{{ .PrevPage.RelPermalink }}" class="left arrow">&#8592;</a>
{{- if .Page.Prev }}
<a href="{{ .Page.Prev.RelPermalink }}" class="left arrow">&#8592;</a>
{{- end }}
{{- if .NextPage }}
<a href="{{ .NextPage.RelPermalink }}" class="right arrow">&#8594;</a>
{{- if .Page.Next }}
<a href="{{ .Page.Next.RelPermalink }}" class="right arrow">&#8594;</a>
{{- end }}

<a href="#" class="top">Top</a>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
</figure>
{{ end }}
<span>
&copy; <time datetime="{{ now }}">{{ now.Format "2006" }}</time> {{ .Site.Author.name }}. {{ i18n "generator" | safeHTML }}
&copy; <time datetime="{{ now }}">{{ now.Format "2006" }}</time> {{ .Site.Params.Author.name }}. {{ i18n "generator" | safeHTML }}
</span>
</footer>
2 changes: 1 addition & 1 deletion layouts/partials/single/post-info.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{- if .Params.Author }}
{{ .Params.Author }}
{{- else }}
{{ .Site.Author.name }}
{{ .Site.Params.Author.name }}
{{- end }}

{{- if .PublishDate }}
Expand Down
5 changes: 2 additions & 3 deletions theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ tags = ["minimal", "clean", "responsive", "simple", "personal", "blog", "starter
features = ["pagination"]
min_version = "0.50"

[author]
name = "Emiel Hollander"
homepage = "https://www.emielhollander.nl"
[params]
author = { name = "Emiel Hollander", homepage = "https://www.emielhollander.nl" }

# If porting an existing theme
[original]
Expand Down

0 comments on commit 807a27b

Please sign in to comment.