Skip to content
This repository has been archived by the owner on Aug 14, 2021. It is now read-only.
/ hexo-tag-ossimg Public archive

Hexo 阿里云OSS 插件,将图片上传至OSS,实现访问加速(Deprecated)

License

Notifications You must be signed in to change notification settings

stan-chen/hexo-tag-ossimg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-tag-ossimg (Deprecated)

Build Status

About

This project is no longer maintained. Please use hexo-asset-oss.

This is a Hexo tag plugin for push post image to aliyun OSS.

Installation

npm install --save hexo-tag-ossimg

Usage

The full tag format is as follows:

{% ossimg slug [title] %}

example:

{% ossimg 1.png the image %}

Configuration

You can configure the type, autoplay and size in your main _config.yml:

Example configuration:

# OSS Images Config
asset_oss:
    enable: true
    oss_url: https://assets.example.com
    oss_root: /static/ # optional default '/'
    oss_img_path: /images/ # optional default '/images/'
    oss_acid: <AccessID>
    oss_ackey: <AccessKey>
    oss_region: oss-cn-shenzhen
    oss_bucket: assets-example-com
    oss_internal: false # optional is internal default false

Push all assets to OSS ? HERE

License

Copyright (c) 2017, Xuefei Chen. Licensed under the MIT license.

About

Hexo 阿里云OSS 插件,将图片上传至OSS,实现访问加速(Deprecated)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published