Merge pull request #610 from lxndrblz/jules-6727677908916898601-784af47d
🧹 Refactor discouraged isset usage in Hugo templates
| | |
| | | <a class="archive__list-title" href="{{ .RelPermalink }}" title="{{ .Title }}">{{ upper .Title }}</a> |
| | | {{ end }} |
| | | <div class="archive__list-date"> |
| | | {{ if isset .Site.Params "listdateformat" }} |
| | | {{ if .Site.Params.listDateFormat }} |
| | | {{ if .Site.Params.localizedDates }} |
| | | {{ time.Format .Site.Params.listDateFormat .Date }} |
| | | {{ else }} |
| | |
| | | <li class="post__meta-item"> |
| | | <em class="fas fa-calendar-day post__meta-icon"></em> |
| | | <span class="post__meta-text" |
| | | >{{ if isset .Site.Params "singledateformat" }} |
| | | >{{ if .Site.Params.singleDateFormat }} |
| | | {{ if .Site.Params.localizedDates }} |
| | | {{ time.Format .Site.Params.singleDateFormat .Date }} |
| | | {{ else }} |
| | |
| | | <div class="post__footer"> |
| | | <em class="fas fa-calendar-day"></em> |
| | | <span class="post__footer-date" |
| | | >{{ if isset .Site.Params "indexdateformat" }} |
| | | >{{ if .Site.Params.indexDateFormat }} |
| | | {{ if .Site.Params.localizedDates }} |
| | | {{ time.Format .Site.Params.indexDateFormat .Date }} |
| | | {{ else }} |