Skip to content

Commit 4b5bee6

Browse files
committed
fix: [layout] Replace address with div
In layout single replace address blocks where only date and author information is present. This is done to use address block on actual contact information such as in CV layout.
1 parent 0756d22 commit 4b5bee6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

layouts/_default/single.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
66
{{- end }}
77

88
{{- if or (.Params.Date) (.Params.Author) }}
9-
<address class="post-meta">
9+
<div class="post-meta">
1010
{{- with .Params.Date }}
1111
<time pubdate datetime="{{ .Format "2006-01-02 15:04:05 IST" }}">
1212
Published on
@@ -21,7 +21,7 @@ <h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
2121
{{- with .Params.LastMod }}
2222
<time pubdate datetime="{{ .Format "2006-01-02 15:04:05 IST" }}"> last modified {{ .Format "2006-01-02 15:04:05 IST" }}. </time>
2323
{{- end }}
24-
</address>
24+
</div>
2525
{{- end }}
2626

2727
{{- if .Params.tags }}

layouts/cv/single.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ <h1 class="cv-title">
1515
</h1>
1616

1717
{{- with .Params.contact }}
18-
<div class="cv-contacts">
18+
<address class="cv-contacts">
1919
<div class="col">
2020
<div>{{ .phone }}</div>
2121
<div>{{ .email }}</div>
2222
</div>
23-
</div>
23+
</address>
2424
{{- end }}
2525
</div>
2626
</header>

layouts/slides/single.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
1717
{{- end }}
1818

1919
{{- if or (.Params.Date) (.Params.Author) }}
20-
<address class="post-meta">
20+
<div class="post-meta">
2121
{{- with .Params.Date }}
2222
<time pubdate datetime="{{ .Format "2006-01-02 15:04:05 IST" }}">
2323
Published on
@@ -32,7 +32,7 @@ <h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
3232
{{- with .Params.LastMod }}
3333
<time pubdate datetime="{{ .Format "2006-01-02 15:04:05 IST" }}"> last modified {{ .Format "2006-01-02 15:04:05 IST" }}. </time>
3434
{{- end }}
35-
</address>
35+
</div>
3636
{{- end }}
3737

3838
{{- with .Params.Description }}

0 commit comments

Comments
 (0)