Back to V2

Item Meta

internal/template/templates/common/item_meta.html

2.2.191.2 KB
Original Source

{{ define "item_meta" -}}

  • {{ truncate .entry.Feed.Title 35 }}

  • {{ elapsed .user.Timezone .entry.Date }} {{ if and .user.ShowReadingTime (gt .entry.ReadingTime 0) -}} - {{ plural "entry.estimated_reading_time" .entry.ReadingTime .entry.ReadingTime }} {{ end -}}

  • {{ if eq .entry.Status "read" }}{{ icon "unread" }}{{ else }}{{ icon "read" }}{{ end }}{{ if eq .entry.Status "read" }}{{ t "entry.status.mark_as_unread" }}{{ else }}{{ t "entry.status.mark_as_read" }}{{ end }}

  • {{ if .entry.Starred }}{{ icon "unstar" }}{{ else }}{{ icon "star" }}{{ end }}{{ if .entry.Starred }}{{ t "entry.starred.toggle.off" }}{{ else }}{{ t "entry.starred.toggle.on" }}{{ end }} {{ if .entry.ShareCode }} - {{ icon "share" }}{{ t "entry.shared_entry.label" }}

  • {{ icon "delete" }}{{ t "entry.unshare.label" }} {{ end -}} {{ if .hasSaveEntry }} - {{ icon "save" }}{{ t "entry.save.label" }} {{ end -}} - {{ icon "external-link" }}{{ t "entry.external_link.label" }} {{ if .entry.CommentsURL }} - {{ icon "comment" }}{{ t "entry.comments.label" }} {{ end -}}

{{ end }}