Skip to content

Commit

Permalink
Merge pull request #103 from timfanda35/refactors/only-one-h1
Browse files Browse the repository at this point in the history
refactor(html): only one h1 tag per page
  • Loading branch information
timfanda35 authored Jul 13, 2024
2 parents 931a90d + 45fa9ad commit 9ef0984
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions themes/simplecss/layouts/_default/list.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{{ define "main" }}
{{ $pag := .Paginate (.Pages) }}
<div>
<div>
{{ if .IsHome }}
<h1>Posts</h1>
{{ end }}
</div>
<ul>
{{ range $pag.Pages }}
{{ .Render "li" }}
Expand Down
1 change: 1 addition & 0 deletions themes/simplecss/layouts/_default/terms.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{{ define "main" }}

<div class="taxonomy">
<h1>Categories</h1>
<ul class="taxonomy-list">
{{ $data := .Data }}
{{ range $key, $value := .Data.Terms }}
Expand Down
2 changes: 1 addition & 1 deletion themes/simplecss/layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
{{ end }}
</nav>
<div>
<h1>{{ .Site.Title }}</h1>
<span class="site-header">{{ .Site.Title }}</span>
</div>
</header>
6 changes: 5 additions & 1 deletion themes/simplecss/static/css/customize.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ a {

a:hover {
text-decoration: underline;
}
}

.site-header {
font-size: xx-large;
}

0 comments on commit 9ef0984

Please sign in to comment.