
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
github.com/icecreammatt/hugo-gallery
Advanced tools
This tool will create a new posts directory containing a markdown file for each image in source directory allowing for an ordered slide show.
hugo-gallery <Source Path> <Destination Section> <Title> [BaseUrl]
hugo-gallery static/images/vacation-photos hawaii "Hawaii Trip"
Visit localhost:1313/hawaii to view the content.
This would read all of the images out of the static/images/vacation-photos directory and create a new folder named hawaii in content/hawaii filled with front matter markdown files. See sample below for details.
---
title: Hawaii Trip
date: "2014-11-12"
image_name: images/vacation-photos/IMG_003.jpg
previous_image: images/vacation-photos/IMAGE_002.jpg
next_image: images/vacation-photos/IMAGE_004.jpg
next_post_path: hawaii/IMAGE_004
previous_post_path: hawaii/IMAGE_002
---
Reference image_name in the Hugo single post template
<img src="{{ .Params.image_name }}" />
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.