Skip to content

A plugin for the Hexo static site tool to provide a page with an interactive map of geo tagged posts and pages.

License

Notifications You must be signed in to change notification settings

mckobe23/hexo-generator-postmap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-generator-postmap

Generates a locations.xml and page showing an interactive Google map embed with your posts/pages marked on the map with pop up links to your posts/pages.

This package is still pretty rough around the edges and is not recommended for anything important yet. Plenty of code cleanup and tests to be done. Suggestions, contributions, or bug reports gratefully received.

You should tag posts/pages by putting the lat and long in the location metadata at the top of your post file, for example:

location: [50.092953, 14.445974]

Install

$ npm install hexo-generator-postmap --save
  • Hexo 3: 0.1.x

Options

You can configure this plugin in _config.yml.

postmap:
  xmlpath: 'locations.xml'
  mappagestub: 'mapofposts'
  mappagetitle: 'Map of posts'
  • xmlpath - Path to your locations.xml document.
  • mappagestub - The url friendly name of your map page without slashes (eg mapofposts)
  • mappagetitle - The human friendly name of your map page, used as the hexo title of page.

Changes

0.2

  • Added auto centre and zoom around the added location bounds.

About

A plugin for the Hexo static site tool to provide a page with an interactive map of geo tagged posts and pages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%