Skip to content

Commit

Permalink
refactor: has operator can check blank
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Aug 6, 2024
1 parent 5bb191e commit 5dfb32b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/title-caption/view/hasCaptionFilter.tid
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ title: $:/plugins/linonetwo/title-caption/view/hasCaptionFilter
tags: $:/tags/ViewTemplateTitleFilter
list-before: $:/plugins/linonetwo/title-caption/view/isTitlelessFilter

[<currentTiddler>get[caption]!is[blank]then[$:/plugins/linonetwo/title-caption/view/fallbackCaptionView]]
[<currentTiddler>has[caption]then[$:/plugins/linonetwo/title-caption/view/fallbackCaptionView]]
2 changes: 1 addition & 1 deletion src/title-caption/view/isTitlelessFilter.tid
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ title: $:/plugins/linonetwo/title-caption/view/isTitlelessFilter
tags: $:/tags/ViewTemplateTitleFilter
list-before: $:/config/ViewTemplateTitleFilters/default

[<currentTiddler>has[_is_titleless]then[$:/plugins/linonetwo/title-caption/view/useCaptionView]]
[<currentTiddler>has:field[_is_titleless]then[$:/plugins/linonetwo/title-caption/view/useCaptionView]]

0 comments on commit 5dfb32b

Please sign in to comment.