Closed dimaslanjaka closed 10 months ago
url_for
options
empty object
null
coverage: 96.793% (+0.05%) from 96.74% when pulling b045658e592ac302deb58328e10bd43ab675f7ec on dimaslanjaka:fix_url_for into 460621e4333eb6d810cd7567739473e3f8bda51d on hexojs:master.
@SukkaW review pls
chore: some improvement for
url_for
options
as optional with default value asempty object
options
- https://github.com/next-theme/hexo-theme-next/blob/acca4e83747b168e90815945f58f982b1d14eac5/layout/_layout.njk#L10options
fallback to anempty object
url_for
theoptions
given asnull
, prevent useless error giveoptions
fallback to anempty object