Skip to content

tuanna-hsp/hexo-tag-wikipedia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

hexo-tag-wikipedia

A plugin to embed Wikipedia content into your Hexo post.

Currently, it only supports showing Wiki extracts (the first section before the Table of Contents).

Installation

npm i hexo-tag-wikipedia --save

or

yarn add hexo-tag-wikipedia

Usage

Example

{% wikipedia title:GitHub wikiButton:true %}

Available parameters

Parameter Description
title:<wiki_title> For example with the wiki URL https://en.wikipedia.org/wiki/Star_Wars, it is 'Star_Wars'
wikiButton:<true> Whether or not to show the Wikipedia page link. Default to false
lang:<code> The wiki page language code. en, fr, ja... Default to en
sentences:<number> Limit the number of sentences to show if specified. Only accept value from 1 to 10. Omit to show the full extract

About

Wikipedia tag plugin for your Hexo post

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published