Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
github.com/Chen-Zhe/photo-grid
This responsive grid theme provides a beautiful layout to showcase your photograghy and manage your gallery with ease.
2021-01-30: Added embedded video support
Photo Grid is based on Hugird, a responsive grid-layout boilerplate theme for Hugo.
Inside the folder of your new Hugo site run:
$ mkdir themes
$ cd themes
$ git clone https://github.com/chen-zhe/photo-grid
For more information read the official setup guide of Hugo.
After installing the theme successfully it requires a just a few more steps to get your site running.
Take a look inside the exampleSite
folder of this theme. You'll find a file called config.toml
. To use it, copy the config.toml
in the root folder of your Hugo site. Feel free to change the strings in this theme.
EXIF info display can be disabled by setting no_exif = true
in the config
All photos are stored in the photo
folder under the content
folder. You can put multiple directories under it and the theme will enumerate all photos within in order of the directory listing. Within each subfolder, e.g. 1-trip1
, you can put all relevant photos in it and then copy over the index.md
file.
Within index.md
file, you can specify each photo's name, description and other properties. Take a look at the descriptions to understand what can be customized.
To add a video, simply put its thumbnail in the same way as a regular photo and
specify video_embed_link
(refer to index.md
, which should be the URL in the src
attribute of an embedded iframe provided by
video-sharing sites such as YouTube.
A video icon will appear on the thumbnail in the gallery view and expanding it will reveal the embedded video player.
In order to see your site in action, run Hugo's built-in local server.
$ hugo server
Now enter localhost:1313
in the address bar of your browser.
Did you found a bug or got an idea for a new feature? Feel free to use the issue tracker to let me know. Or make directly a pull request.
This work is licensed under the MIT License. For more information read the License.
Thanks
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.