我正尝试在Hugo Academic主题中创建一个空白小部件,以显示我的艺术作品的某些图像。我想要两列,以便在空白窗口小部件中显示两个图像。我下面有以下代码。请注意,我已经使小部件处于活动状态并更新了菜单以显示小部件...确实如此。但是,不显示图像。任何帮助表示赞赏!
+++
# Blank widget.
widget = "blank"
headless = true
active = true
weight = 25
title = "Art Work"
[design]
columns = "2"
[[item]]
title = ""
content = ""
align = "left" # Choose `center`, `left`, or `right`.
overlay_img = "static/img/AMELIORATE.jpeg"
[[item]]
title = ""
content = ""
align = "right"
overlay_img = "static/img/THROUGH.jpeg" # Image path relative to your `static/img/` folder.
[[item]]
title = ""
content = ""
align = "left"
overlay_img = "static/img/USE ME UP.jpeg" # Image path relative to your `static/img/` folder.
[[item]]
title = ""
content = ""
align = "right"
overlay_img = "static/img/VENOM.jpeg" # Image path relative to your `static/img/` folder.
[[item]]
title = ""
content = ""
align = "left"
overlay_img = "static/img/CHAOS.jpeg" # Image path relative to your `static/img/` folder.
[[item]]
title = ""
content = ""
align = "right"
overlay_img = "static/img/ROSE.jpeg" # Image path relative to your `static/img/` folder.
+++