mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve av https://github.com/siyuan-note/siyuan/issues/14511
This commit is contained in:
parent
aaf1d9896a
commit
de8eb72393
6 changed files with 35 additions and 36 deletions
|
|
@ -91,8 +91,13 @@ func renderView(attrView *av.AttributeView, view *av.View, query string, depth *
|
|||
func RenderTemplateField(ial map[string]string, keyValues []*av.KeyValues, tplContent string) (ret string, err error) {
|
||||
if "" == ial["id"] {
|
||||
block := getBlockValue(keyValues)
|
||||
if nil != block && nil != block.Block {
|
||||
ial["id"] = block.Block.ID
|
||||
if nil != block {
|
||||
if nil != block.Block {
|
||||
ial["id"] = block.Block.ID
|
||||
}
|
||||
if "" == ial["id"] {
|
||||
ial["id"] = block.BlockID
|
||||
}
|
||||
}
|
||||
}
|
||||
if "" == ial["updated"] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue