diff options
Diffstat (limited to 'themes/danix-xyz-hacker/layouts/partials/article-list-item.html')
| -rw-r--r-- | themes/danix-xyz-hacker/layouts/partials/article-list-item.html | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/themes/danix-xyz-hacker/layouts/partials/article-list-item.html b/themes/danix-xyz-hacker/layouts/partials/article-list-item.html index 652e171..1065f0b 100644 --- a/themes/danix-xyz-hacker/layouts/partials/article-list-item.html +++ b/themes/danix-xyz-hacker/layouts/partials/article-list-item.html @@ -1,8 +1,6 @@ {{ $articleType := .Params.type | default "life" }} {{ $typeConfig := .Site.Params.articleTypes }} {{ $typeData := index $typeConfig $articleType }} -{{ $isDark := strings.Contains (os.Getenv "THEME") "dark" }} -{{ $color := cond $isDark $typeData.color_dark $typeData.color_light }} <a href="{{ .RelPermalink }}" @@ -30,8 +28,7 @@ <!-- Type badge --> {{ if $typeData }} <span - class="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium transition-colors" - style="color: {{ $color }}; background-color: {{ $color }}20;" + class="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium transition-colors type-{{ $articleType }}" > {{ i18n $articleType }} </span> |
