Socket
Socket
Sign inDemoInstall

vuepress-plugin-autometa

Package Overview
Dependencies
5
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.9 to 0.1.11

2

package.json
{
"name": "vuepress-plugin-autometa",
"version": "0.1.9",
"version": "0.1.11",
"description": "Auto meta tags plugin for VuePress",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -13,3 +13,3 @@ # VuePress Plugin Auto Meta

This is a Plug-and-Forget VuePress plugin that will auto generate the meta tags
This is a Plug-and-Forget VuePress plugin that will auto generate the meta tags
for VuePress pages or posts.

@@ -52,3 +52,5 @@

module.exports = {
plugins: [ 'autometa', autometa_options ],
plugins: [
[ 'autometa', autometa_options ]
]
}

@@ -74,3 +76,3 @@ ```

const default_options = {
enable : true, // enables/disables everything - control per page using frontmatter

@@ -83,3 +85,3 @@ image : true, // regular meta image used by search engines

// -------------------------------------------------------------------------
// canonical_base is the canonical url base - best to set once in config.js

@@ -90,9 +92,9 @@ // if set it will be used to prepend page path and add it to the following:

// - canonical link (not yet supported)
canonical_base: '',
// @todo
//canonical_link: true,
//
// having only started with vuepress a few days ago,
// having only started with vuepress a few days ago,
// so far, i couldn't figure out a proper way to extend config head

@@ -103,3 +105,3 @@ // and add <link rel="canonical" href="URL.resolve( canonical_base, $page.path )">

// ---------------------------------------------------------------------------
author: {

@@ -111,3 +113,3 @@ name : '',

// ---------------------------------------------------------------------------
site: {

@@ -119,3 +121,3 @@ name : '',

// ---------------------------------------------------------------------------
// order of what gets the highest priority:

@@ -127,8 +129,8 @@ //

// 4. content regular html <p>
description_sources: [
'frontmatter',
'excerpt',
// markdown paragraph regex

@@ -140,6 +142,6 @@ //

///^((?:(?!^#)(?!^\-|\+)(?!^[0-9]+\.)(?!^!\[.*?\]\((.*?)\))(?!^>)(?!^\[\[.*?\]\])(?!^\{\{.*?\}\})[^\n]|\n(?! *\n))+)(?:\n *)+\n/img,
// html paragraph regex
/<p(?:.*?)>(.*?)<\/p>/i,
],

@@ -154,12 +156,12 @@

// 3. content regular html img
image_sources: [
'frontmatter',
/!\[.*?\]\((.*?)\)/i, // markdown image regex
/<img.*?src=['"](.*?)['"]/i, // html image regex
],
};

@@ -190,3 +192,3 @@ ```

- are cool
---

@@ -199,3 +201,3 @@

Minimal setup with markdown-centered project structure
Minimal setup with markdown-centered project structure
helps you focus on writing.

@@ -208,3 +210,3 @@

Enjoy the dev experience of Vue + webpack, use Vue components in markdown,
Enjoy the dev experience of Vue + webpack, use Vue components in markdown,
and develop custom themes with Vue.

@@ -215,3 +217,3 @@

VuePress generates pre-rendered static HTML for each page,
VuePress generates pre-rendered static HTML for each page,
and runs as an SPA once a page is loaded.

@@ -218,0 +220,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc