hexo-tag-google-photos-album

    1.3.4 • Public • Published

    hexo-tag-google-photos-album

    This is a Tag plugin for Hexo. It provides the ability to embed photo albums from Google Photos.

    NPM

    Getting Started

    Installation

    $ cd <path-to-your-blog-dir>
    $ npm install hexo-tag-google-photos-album --save

    Usage

    Settings

    in _config.yml

    googlePhotosAlbum:
      descriptionLength: 140
      target: _blank
      rel: noopener
      className: google-photos-album-area
      enableDefaultStyle: true
      defaultStyle: google_photos_album.css
      largeSizeThreshold: 768
      largeSize:  =s1920-no
      mediumSize: =s720-no
      smallSize:  =w225-no
      maxPics: 999
      generateAlways: true

    All params are optional. You can use this plugin with no config.

    attribute description default
    descriptionLength crop the og:description in {Number} of chars. 140
    target link elenment's target property. _blank
    rel link element's rel property. noopener
    className className for photos and descriptions. google-photos-album-area
    enableDefaultStyle if set to false, you may use own styles by your way. true
    largeSizeThreshold for responsive 768
    largeSize image's size to link =s1920-no
    mediumSize image's size to link in case of mobile =s720-no
    smallSize thumbnail's size =w225-no
    maxPics (experimental)limit {Number} of embeded phtos. 999
    generateAlways (experimental) true

    Syntax

    {% googlePhotosAlbum url %}
    
    • @param {string} url - Google Photos' share url. You can also use shortened one.

    Example

    {% googlePhotosAlbum https://photos.google.com/share/AF1QipM-qmCtmxuhoUj5Y2lP7OUWe9FH1KjHqVuDokH9IxM1mj3ayWcbHxNa43NfaBLe2A?key=SUIyM0k0RkQ4OTY4elZmQVBwNDBFOFhJZVZwRTBn %}
    

    Customize

    use hexo-light-gallery

    Thanks

    hexo-tag-link-preview

    License

    Copyright (c) 2019 isnot Licensed under the MIT license.

    Install

    npm i hexo-tag-google-photos-album

    DownloadsWeekly Downloads

    4

    Version

    1.3.4

    License

    MIT

    Unpacked Size

    20.4 kB

    Total Files

    9

    Last publish

    Collaborators

    • isnot