diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-11-20 03:20:47 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-11-20 03:20:47 +0300 |
commit | 8b78390987476352a6459460e00d5c4cdc0717c2 (patch) | |
tree | 77fd218ddd7203b10b4e4969ed8ede2fb4753d24 /themes/neonxp/layouts/partials | |
parent | 74b65dd83f7c66d1f67f961b1fee65400b1fc334 (diff) |
Обновил стиль
Diffstat (limited to 'themes/neonxp/layouts/partials')
-rw-r--r-- | themes/neonxp/layouts/partials/icon.html | 6 | ||||
-rw-r--r-- | themes/neonxp/layouts/partials/list.html | 16 |
2 files changed, 15 insertions, 7 deletions
diff --git a/themes/neonxp/layouts/partials/icon.html b/themes/neonxp/layouts/partials/icon.html new file mode 100644 index 0000000..72162e8 --- /dev/null +++ b/themes/neonxp/layouts/partials/icon.html @@ -0,0 +1,6 @@ +{{- $iconFile := resources.GetMatch (printf "icons/%s.svg" .) -}} +{{- if $iconFile -}} + {{- $iconFile.Content | safeHTML -}} +{{- else -}} + {{- errorf "Error: icon '%s.svg' is not found under 'assets/icons' folder" . -}} +{{- end -}}
\ No newline at end of file diff --git a/themes/neonxp/layouts/partials/list.html b/themes/neonxp/layouts/partials/list.html index 72d546c..3c5811e 100644 --- a/themes/neonxp/layouts/partials/list.html +++ b/themes/neonxp/layouts/partials/list.html @@ -1,11 +1,13 @@ <article> - <header class="space-between"> - <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a> - {{ if .Date }} - <span> - {{- .Date | time.Format (or .Site.Params.dateFormat.published "02 Jan 2006") -}} - </span> - {{ end }} + <header> + <div class="row between-sm"> + <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a> + {{ if .Date }} + <span> + {{- .Date | time.Format (or .Site.Params.dateFormat.published "02 Jan 2006") -}} + </span> + {{ end }} + </div> </header> {{ if .Description }} {{ .Description }} |