README
hexo-wxblog-api
hexo 微信小程序对接 hexo 的 api 插件
基于hexo-generator-restful二次开发
快速开始
- 修改
_config.yml
文件
# Mini Program
swiperList:
- https://ossweb-img.qq.com/images/lol/web201310/skin/big84000.jpg
- https://ossweb-img.qq.com/images/lol/web201310/skin/big84001.jpg
- https://ossweb-img.qq.com/images/lol/web201310/skin/big39000.jpg
about:
website: ""
me: ""
# hexo-generator-restful
restful:
site: ['title', 'author', 'gender', 'avatar','announcement','swiperList','about']
# site: true # hexo.config mix theme.config
posts_size: 6 # 文章列表分页,0 表示不分页
posts_props: # 文章列表项的需要生成的属性
title: true
slug: false
abbrlink: true
date: true
updated: false
comments: false
path: true
excerpt: false
cover: true # 封面图,取文章第一张图片
content: true
raw: false
keywords: false
categories: true
tags: false
categories: true # 分类数据
use_category_slug: false # Use slug for filename of category data
tags: true # 标签数据
use_tag_slug: false # Use slug for filename of tag data
post: true # 文章数据
pages: false # 额外的 Hexo 页面数据, 如 About
links: true # 友情链接
- 新增
robots.txt
文件
# hexo robots.txt
User-agent: *
Disallow: /api/
开源协议
MIT LICENSE.