Skip to content

Commit

Permalink
Update helpers.js (hexojs#650)
Browse files Browse the repository at this point in the history
* Update helpers.js

* Update head.swig

* Update helpers.js
  • Loading branch information
NoahDragon authored Feb 5, 2018
1 parent d5dbec2 commit a6699de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,8 @@ hexo.extend.helper.register('disqus_lang', function() {

return data.disqus_lang || lang;
});

hexo.extend.helper.register('hexo_version', function() {
return this.env.version;
});

1 change: 1 addition & 0 deletions themes/navy/layout/partial/head.swig
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<link rel="icon" type="image/png" href="{{ url_for('icon/favicon-32x32.png') }}" sizes="32x32">
<meta name="msapplication-TileColor" content="#2f83cd">
<meta name="msapplication-TileImage" content="{{ url_for('icon/mstile-144x144.png') }}">
<meta name="generator" content="Hexo {{ hexo_version() }}">
<!-- CSS -->
<!-- build:css build/css/navy.css -->
{{ css('css/navy') }}
Expand Down

0 comments on commit a6699de

Please sign in to comment.