Merge pull request #160 from kewang/feature/favicon

Add favicon & og:image
This commit is contained in:
Olivier Lacan 2017-06-20 21:16:11 +01:00 committed by GitHub
commit 1291a20db2
4 changed files with 3 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

@ -20,10 +20,12 @@
%meta{ property: 'og:type', content: 'article' }
%meta{ property: 'og:url', content: path_to_url(current_page.url) }
%meta{ property: 'og:description', content: current_page.data.description }
%meta{ property: 'og:image', content: image_path("logo.png") }
= yield_content :og
-# Icons
%link{ rel: "shortcut icon", type: "image/x-icon", href: image_path("favicon.ico") }
%link{ rel: 'canonical', href: path_to_url(current_page.url) }
%title= current_page.data.title