Skip to content

Commit

Permalink
Blocks/feature fix (#1503)
Browse files Browse the repository at this point in the history
  • Loading branch information
fekete-robert authored Feb 8, 2024
1 parent 3640101 commit fe067f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions layouts/shortcodes/blocks/feature.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{ $icon := .Get "icon" | default "fa-lightbulb" -}}
{{ $url_text := .Get "url_text" -}}
<div class="col-lg-4 mb-5 mb-lg-0 text-center">
<div class="mb-4 h1">
<i class="{{ if not (or (hasPrefix $icon "fas ") (hasPrefix $icon "fab ")) }}fas {{ end }}{{ $icon }}"></i>
Expand All @@ -10,5 +9,5 @@ <h4 class="h3">
<div class="mb-0">
{{ .Inner }}
</div>
{{ with .Get "url" }}<p><a href="{{ . }}">{{ with $url_text }}{{ $url_text }}{{ else }}{{ T "ui_read_more" }}{{ end }}</a></p>{{ end }}
{{ with .Get "url" }}<p><a href="{{ . }}">{{ with $.Get "url_text" }}{{ . }}{{ else }}{{ T "ui_read_more" }}{{ end }}</a></p>{{ end }}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ We do a [Pull Request](https://github.com/gohugoio/hugo/pulls) contributions wor
| ---------------- |------------| ------------|
| title | | The title to use.
| url | | The URL to link to.
| url_text | The [language parameter](/docs/language/#internationalization-bundles) value of [`ui_read_more`](https://github.com/google/docsy/blob/main/i18n/en.toml) | The link text to use.
| icon | | The icon class to use.


Expand Down

0 comments on commit fe067f3

Please sign in to comment.