Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions scripts/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,6 @@ hexo.extend.helper.register('header_menu', function(className){
return result;
});

hexo.extend.helper.register('canonical_url', function(lang){
var path = this.page.canonical_path;
if (lang && lang !== 'en') path = lang + '/' + path;

return this.config.url + '/' + path;
});

hexo.extend.helper.register('url_for_lang', function(path){
var lang = this.page.lang;
var url = this.url_for(path);
Expand Down
6 changes: 0 additions & 6 deletions themes/screeps-docs/layout/partial/head.swig
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Canonical links -->
<link rel="canonical" href="{{ url }}">
<!-- Alternative links -->
{% if page.layout == 'page' or page.layout == 'index' %}
{% for lang in site.data.languages %}
<link rel="alternative" hreflang="{{ loop.key }}" href="{{ canonical_url(loop.key) }}">
{% endfor %}
{% endif %}
<!-- Icon -->
<link rel="apple-touch-icon" sizes="57x57" href="{{ url_for('icon/apple-touch-icon-57x57.png') }}">
<link rel="apple-touch-icon" sizes="114x114" href="{{ url_for('icon/apple-touch-icon-114x114.png') }}">
Expand Down