npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hexo-album-page

v1.0.2

Published

Create a standalone album page

Downloads

138

Readme

hexo-album-page

Introduction

A hexo plugin to generate a standalone album page.

Template design repo: XenWayne/masonry-gallery-page

Demo: masonry-gallery-page

The main masonry view is modified based on Fabio Ottaviani 's codepen.

Third-party libraries:

Quick Start

  1. Install the plugin:
npm install hexo-album-page --save
  1. Add the following configuration to your _config.yml:
album:
  enable: true # 是否启用相册插件
  site_title: "My Album" # 相册页面的标题
  favicon: "" # 相册页面的站点图标
  output_path: album/index.html # 相册页面的渲染输出路径 
  1. Create a file named album.yml in source/_data directory, and edit it like this:
categories:
  - id: landscape
    name: 风景Landscape
    description: |
      <h1 style="color:#000;">Landscape</h1>
      这是一个简单的测试页面,用于展示Masonry瀑布流布局的效果。页面中的图片均为示例图片,来源于网络。
    images:
      - url: https://gcore.jsdelivr.net/gh/XenWayne/sitefile/img/header_gray.webp
        description: |
          <b>Title</b> | Subtitle
      # 添加更多图片

  - id: portrait
    name: Portrait测试
    description: |
      This is an easy test to showcase different apartment styles.
    images:
      - url: https://s21.ax1x.com/2020/02/08/1RsSc8.jpg
        description: |
          <b>Title</b> | Subtitle
      - url: https://s21.ax1x.com/2020/01/28/1Kd1PK.jpg
        description: |
          <b>Title</b> | Subtitle
      - url: https://s21.ax1x.com/2019/12/28/leCoa8.jpg
        description: |
          <b>Title</b> | Subtitle
          <p>Perfect for singles or couples looking for a comfortable space.</p>
      # 添加更多图片

  - id: test
    name: PixelArt测试
    description: |
      我是文字啊啦啦啦啦啦嘿嘿嘿嘿额和黑恶黑Lorem ipsum dolor, sit amet consectetur adipisicing elit.
    images:
      - url: https://s21.ax1x.com/2020/02/08/1RsSc8.jpg
        description: |
          <p>Lovely flat in Paris</p>
      - url: https://s21.ax1x.com/2019/12/28/leCoa8.jpg
        description: |
          <p>Charming apartment near the Seine</p>
      - url: https://s21.ax1x.com/2020/02/08/1RsBEd.jpg
        description: |
          <p>Spacious loft in Paris</p>
      - url: https://s21.ax1x.com/2019/12/22/QxRZaF.jpg
        description: |
          <p>Luxurious penthouse</p>
      # 添加更多图片
  1. Use hexo command to generate as usual.

Note

If you need to display hundreds of images, a large number of static DOM elements may not be the optimal solution. It is recommended to consider dynamic fetching and a backend-supported solution.