Skip to content

Commit

Permalink
Merge pull request #830 from gethinode/develop
Browse files Browse the repository at this point in the history
Enable markdown content for card body
  • Loading branch information
markdumay authored Mar 14, 2024
2 parents 65e85e5 + 1c76393 commit aecb6d4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/assets/card.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@
{{- if $href -}}
<a href="{{ $href }}" class="{{ if $color }}link-bg-{{ $color }}{{ else }}card-body-link{{ end }} stretched-link">
<p class="card-title fs-5 fw-bold">{{ $title }}</p>
{{ with $description }}<p class="card-text {{ if $color }}link-bg-{{ $color }}{{ else }}card-body-link{{ end }}">{{ . }}</p>{{ end -}}
{{ with $description }}<div class="card-text {{ if $color }}link-bg-{{ $color }}{{ else }}card-body-link{{ end }}">{{ . | page.RenderString | safeHTML }}</div>{{ end -}}
</a>
{{- else -}}
<div>
{{ with $title }}<p class="card-title fs-5 fw-bold">{{ . }}</p>{{ end -}}
{{ with $description }}<p class="card-text">{{ . }}</p>{{ end -}}
{{ with $description }}<div class="card-text">{{ . | page.RenderString | safeHTML }}</div>{{ end -}}
</div>
{{- end -}}
{{- end -}}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gethinode/hinode",
"version": "0.23.0-rc.1",
"version": "0.23.0-rc.2",
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
"keywords": [
"hugo",
Expand Down

0 comments on commit aecb6d4

Please sign in to comment.