Merge branch 'feature/canonical' into gh-pages

* feature/canonical:
  Remove html from links
  Fix links to not use .html
  Use no .html
This commit is contained in:
Rico Sta. Cruz 2017-08-28 21:53:41 +08:00
commit 3585dd6533
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
4 changed files with 10 additions and 10 deletions

View File

@ -36,8 +36,8 @@
{%comment%}<!-- canonical URL -->{%endcomment%}
{% if page.url != '/index.html' %}
<link rel="canonical" href="{{ site.url }}{{ page.url }}">
<meta name="og:url" content="{{ site.url }}{{ page.url }}">
<link rel="canonical" href="{{ site.url }}{{ page.url | remove: '.html' }}">
<meta name="og:url" content="{{ site.url }}{{ page.url | remove: '.html' }}">
<link rel="prefetch" href="{{ site.url }}">
<link rel="prerender" href="{{ site.url }}">
{% endif %}

View File

@ -11,7 +11,7 @@ html_class: home
<div class='pages-list'>
{% for page in site.pages %}
{% if page.category == category %}
<a href="{{base}}{{ page.url }}">
<a href="{{base}}{{ page.url | remove: '.html' }}">
<span class='title'>{{ page.title }}</span>
<span class='date'>{{ page.url | remove: '.html' | remove: '/' }}</span>
</a>

View File

@ -484,7 +484,7 @@ Also see
{: .-one-column}
* This reference was made for React v15.
* [React v0.14 cheatsheet](react@0.14.html) _Legacy version_
* [React v0.14 cheatsheet](react@0.14) _Legacy version_
* [React website](http://facebook.github.io/react) _facebook.github.io_
{:.-also-see}

12
vim.md
View File

@ -264,12 +264,12 @@ Also see
--------
{: .-one-column}
* [Digraphs](vim-digraphs.html)
* [Help text](vim-help.html)
* [Vimscript](vimscript.html)
* [Vim-unite](vim-unite.html)
* [Vim-easyalign](vim-easyalign.html)
* [Vim-rails](vim-rails.html)
* [Digraphs](vim-digraphs)
* [Help text](vim-help)
* [Vimscript](vimscript)
* [Vim-unite](vim-unite)
* [Vim-easyalign](vim-easyalign)
* [Vim-rails](vim-rails)
{: .-also-see}
This reference was made for Vim 8.0.