Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚡ add image shortcode to show images in /docs/* #182

Open
wants to merge 1 commit into
base: release
Choose a base branch
from

Conversation

LoongmaSpirit
Copy link

@LoongmaSpirit LoongmaSpirit commented May 13, 2024

Changes

add image shortcode to show images in /docs/*#176

I'm not familiar with Hugo, so I chose to provide a workaround for inserting images under 'docs' using shortcodes.

Instructions for Use

eg:
{{< image src="images/redis-aof-write.webp" alt="AOF 持久化过程" title="AOF 持久化过程" width="963" height="333" >}}
like that:
image

Specify image information using attributes like srcalttitlewidthheight within the image tag.

Dark mode

  • The UI has been tested both in dark and light mode
  • This PR does not change the UI

Copy link

netlify bot commented May 13, 2024

👷 Deploy request for hugo-lotusdocs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 817bc33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant