Skip to content

Commit

Permalink
Merge pull request #866 from gethinode/develop
Browse files Browse the repository at this point in the history
Fix alignment of card buttons
  • Loading branch information
markdumay authored Mar 31, 2024
2 parents 5356483 + 05e1f58 commit 1a58530
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions exampleSite/hugo_stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@
"fs-5",
"fs-6",
"fs-md-5",
"fw-30",
"fw-bold",
"fw-semibold",
"g-0",
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/assets/card.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
{{ if $page }}<div>{{ partial "card-caption.html" (dict "page" $page "keywords" $footer "color" $color) }}</div>{{ end }}
{{ if $button }}
{{ $label := (or $buttonLabel $title) | default (T "readMore") }}
<div>{{ partial "assets/button.html" (dict "title" $label "icon" "fas chevron-right" "href" $href "outline" true "size" "sm" "class" "card-button mb-n4") }}</div>
<div class="d-flex align-items-end">{{ partial "assets/button.html" (dict "title" $label "icon" "fas chevron-right" "href" $href "outline" true "size" "sm" "class" "card-button mb-n4") }}</div>
{{ end }}
</div>
</div>
Expand All @@ -172,7 +172,7 @@
{{ $label := (or $buttonLabel $title) | default (T "readMore") }}
<div class="row p-{{ $padding }}" >
<div class="{{ if eq $orientation "horizontal-sm" }}col-4 col-md-2{{ else if eq $orientation "horizontal" }}col-4{{ end }}"></div>
<div class="col {{ if eq $orientation "horizontal-sm" }}px-2{{ else if eq $orientation "horizontal"}}px-1 {{ else }}px-2 pt-1{{ end }}">
<div class="col d-flex align-items-end {{ if eq $orientation "horizontal-sm" }}px-2{{ else if eq $orientation "horizontal"}}px-1 {{ else }}px-2 pt-1{{ end }}">
{{ partial "assets/button.html" (dict "title" $label "href" $href "outline" true "size" "sm" "class" "card-button") }}
</div>
</div>
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.5",
"version": "0.23.6",
"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 1a58530

Please sign in to comment.