mirror of https://gitlab.com/curben/blog
refactor(feed): replace encodeURI with encodeURL
This commit is contained in:
parent
d70dea4097
commit
80fec3c2f4
|
@ -5,9 +5,10 @@ const env = new nunjucks.Environment()
|
|||
const { join } = require('path')
|
||||
const { readFileSync } = require('fs')
|
||||
const moment = require('moment')
|
||||
const { encodeURL } = require('hexo-util')
|
||||
|
||||
env.addFilter('uriencode', str => {
|
||||
return encodeURI(str)
|
||||
return encodeURL(str)
|
||||
})
|
||||
|
||||
env.addFilter('noControlChars', str => {
|
||||
|
|
Loading…
Reference in New Issue