Skip to content

Commit

Permalink
docs(external_link): move jsdoc to after_render
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh committed Sep 24, 2019
1 parent 731d368 commit 3913a44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/plugins/filter/after_post_render/external_link.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@

const { parse } = require('url');

/**
* Check whether the link is external
* @param {String} url The url to check
* @param {Object} config The site config
* @returns {Boolean} True if the link doesn't have protocol or link has same host with config.url
*/
const isExternal = (url, config) => {
const exclude = config.external_link.exclude;
const data = parse(url);
Expand Down
6 changes: 6 additions & 0 deletions lib/plugins/filter/after_render/external_link.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

const { parse } = require('url');

/**
* Check whether the link is external
* @param {String} url The url to check
* @param {Object} config The site config
* @returns {Boolean} True if the link doesn't have protocol or link has same host with config.url
*/
const isExternal = (url, config) => {
const exclude = config.external_link.exclude;
const data = parse(url);
Expand Down

0 comments on commit 3913a44

Please sign in to comment.