feat: add data-allow-dupe and data-navigator-ignore

these can be used by plugins like q&n to dupe a post
instead of relying on magic -1 index
This commit is contained in:
Barış Soner Uşaklı
2023-09-02 00:07:35 -04:00
parent bdeca04951
commit 92f5c146fd
3 changed files with 8 additions and 8 deletions

View File

@@ -1 +1 @@
data-index="{posts.index}" data-pid="{posts.pid}" data-uid="{posts.uid}" data-timestamp="{posts.timestamp}" data-username="{posts.user.username}" data-userslug="{posts.user.userslug}" itemscope itemtype="http://schema.org/Comment"
data-index="{posts.index}" data-pid="{posts.pid}" data-uid="{posts.uid}" data-timestamp="{posts.timestamp}" data-username="{posts.user.username}" data-userslug="{posts.user.userslug}"{{{ if posts.allowDupe }}} data-allow-dupe="1"{{{ end }}}{{{ if posts.navigatorIgnore }}} data-navigator-ignore="1"{{{ end }}} itemscope itemtype="http://schema.org/Comment"