Skip to content

Commit

Permalink
Merge branch 'main' into 26-image-tag
Browse files Browse the repository at this point in the history
  • Loading branch information
shivan-s authored Oct 27, 2024
2 parents 98ed1d0 + fcb41a2 commit b7f6934
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 15 deletions.
1 change: 1 addition & 0 deletions content/about/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
My about page
2 changes: 1 addition & 1 deletion content/posts/test-post/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ Lorem `code`
```ts
let name: string;
console.log("Hello World");
```
```
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ define "main" }}
<article>
<header>
<h2>{{ .Title }}</h2>
<h1>{{ .Title }}</h1>
</header>
<div class="content">{{ .Content }}</div>
</article>
Expand Down
10 changes: 4 additions & 6 deletions layouts/partials/posts-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ <h3>{{ .Key }}</h3>
>
<small class="post-metadata">
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format "2 Jan" }}
<span title="{{ .Date | time.Format "January 2, 2006" }}"
{{ $dateHumanSmall := .Date | time.Format "2 Jan" }}
{{ $dateHumanLarge := .Date | time.Format "January 2, 2006" }}
<span title="{{ $dateHumanLarge }}"
><time datetime="{{ $dateMachine }}"
>{{ $dateHuman }}</time
>{{ $dateHumanSmall }}</time
></span
>
<span title="{{ .WordCount }} words">
{{ .ReadingTime }} min</span
></small
></a
>
Expand Down
12 changes: 5 additions & 7 deletions layouts/partials/tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@
$taxonomy
}}
{{- $label := (index . 0).Parent.LinkTitle }}
<div class="tags">
<ul>
{{- range . }}
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
{{- end }}
</ul>
</div>
<ul>
{{- range . }}
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
{{- end }}
</ul>
{{- end }}

0 comments on commit b7f6934

Please sign in to comment.