mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Don't yield content if there's not any content_for it
This commit is contained in:
parent
f3175bdb72
commit
ce2ffed705
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ macro content_for(key)
|
|||
end
|
||||
|
||||
macro yield_content(key)
|
||||
CONTENT_FOR_BLOCKS[{{key}}].call
|
||||
CONTENT_FOR_BLOCKS[{{key}}].call if CONTENT_FOR_BLOCKS.has_key?({{key}})
|
||||
end
|
||||
|
||||
macro render(filename, layout)
|
||||
|
|
Loading…
Reference in a new issue