dev-dark-theme icon indicating copy to clipboard operation
dev-dark-theme copied to clipboard

The theme doesn't work

Open iKeepLearn opened this issue 7 years ago • 2 comments

dev-dark-theme.PNG

iKeepLearn avatar May 02 '18 11:05 iKeepLearn

Thank you for your issue! 😃 👍 @Freelancecn please check this file in your theme clone: themes\dev-dark-theme\scripts\index.js

It should look like this.

hexo.extend.helper.register('url_data', args => {
  let data = [];

  args.data.forEach(element => {
    data.push(element.name.replace(new RegExp(' ', 'g'), '-'));
  });

  return data.join('/');
});
hexo.extend.helper.register('first_data', args => {
  let data = args.data[0] ? args.data[0].name : '';
  return data.replace(new RegExp(' ', 'g'), '-');
});
hexo.extend.helper.register('url_title', args => {
  return args.replace(new RegExp(' ', 'g'), '-');
});

Hope this helps...

codermarcos avatar May 02 '18 11:05 codermarcos

Getting same issue. Already checked the above files and it is exactly the same in git clone.

J-Siu avatar Oct 03 '18 13:10 J-Siu