Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@agreatfool/obsidian-post-gallery

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agreatfool/obsidian-post-gallery

In post gallery for obsidian

  • 0.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

obsidian-post-gallery

Pre-conditions

  • This plugin only supports OSX
  • Post need to have frontmatter, and front matter need to contain path, the relative path to your vault
  • Post's dir need to contain the folder assets
  • Pictures which would be displayed in the gallery need to be put in one folder under the assets
    • /${path}/assets/gallery00
    • /${path}/assets/gallery01

frontmatter example

---
uuid: "6CF41F914BCB4B43B2665684DF81E08C"
path: "/album-test-post"
date: "2019-01-08"
slug: "album-test-post"
title: "Album test post"
---

How to use

Install

$ yarn global add @agreatfool/obsidian-post-gallery
$ obsidian-post-gallery-install -v ${your_vault_path}

Reopen your obsidian

  • Edit the post, add frontmatter as described above
  • Put images under the folder as described above
  • Edit the post, add post-gallery block

Example

Only gallery name specified, others use default value (rowHeight: 240, margins: 5):

```post-gallery
name: gallery00
```

Specified the "rowHeight" as 120, and "margins" between images as 10

```post-gallery
name: gallery00
rowHeight: 120
margins: 10
```

Click the image in the gallery would open the OSX default preview app

Others

Credits

This plugin is using Justified Gallery

install.js

$ obsidian-post-gallery-install -h
Usage: install [options]

Obsidian plugin "obsidian-post-gallery" installer, help to install the plugin

Options:
  -V, --version      output the version number
  -v, --vault <dir>  directory of target vault
  -h, --help         display help for command

How to build & publish

$ npm run dev
$ git add .
$ git commit -m "..."
$ npm version patch
$ npm publish
$ git push origin master --verbose

Keywords

FAQs

Package last updated on 16 Feb 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc