dillonzq / LoveIt

❤️A clean, elegant but advanced blog theme for Hugo 一个简洁、优雅且高效的 Hugo 主题
https://hugoloveit.com
MIT License
3.38k stars 1.07k forks source link

[BUG] Huge spacing around image #713

Closed SingularisArt closed 2 years ago

SingularisArt commented 2 years ago

Describe the bug 描述你遇到的错误

When adding an image, I get huge spacing around the image.

Screenshots 屏幕截图

Screenshot from 2022-07-12 18-05-55

Build Environment 构建环境

Preview Environment 预览环境

Additional Information 补充信息

Frontmatter

---
weight: 1
title: 'Note Taking with LaTeX: Part I (NeoVim)'
subtitle: 'LaTeX Note-Taking'
date: 2022-01-01
lastmod: 2022-01-01
draft: false
author: 'Hashem A. Damrah'
authorLink: 'https://github.com/SingularisArt'
description: 'I go over using NeoVim and LaTeX to take notes with, but I specifically talk about talking notes with Mathematics.'
images: []

tags: ['tutorial', 'notes', 'note taking']
categories: ['latex', 'school']

lightgallery: true

toc:
  auto: true
math:
  enable: true
---
SingularisArt commented 2 years ago

I was using [img](img/path) to display image, where I should be using either:

<figure>
    <img src="img/path" />
</figure>

or

{{< figure src="img/path" title="title" >}}