Utensil's technical posts in Chinese (mostly 2005-2020) utensil.tngl.sh/tech/
0

Configure Feed

Select the types of activity you want to include in your feed.

fix(tech/home): use image_tag for fork.png so /tech/ prefix is honored

../images/fork.png is a relative path that resolves to /images/fork.png
from /tech/index.html. On github.io that accidentally hit utensil.github.io's
user-page /images/fork.png; on tngl.sh there's no parent user page, so it
404'd. image_tag respects http_prefix=/tech/ and emits /tech/images/fork.png.

+19 -19
+19 -19
source/tech/index.html.haml
··· 1 - --- 2 - title: Home 3 - blog: tech 4 - --- 5 - -# coding: utf-8 6 - - content_for :head do 7 - %title Utensil on Github 8 - /[if lt IE 9] 9 - <link href="http://fonts.googleapis.com/css?family=Amaranth:400,700" rel="stylesheet" type="text/css" /> 10 - <link href='http://fonts.googleapis.com/css?family=PT+Mono' rel='stylesheet' type='text/css'> 1 + --- 2 + title: Home 3 + blog: tech 4 + --- 5 + -# coding: utf-8 6 + - content_for :head do 7 + %title Utensil on Github 8 + /[if lt IE 9] 9 + <link href="http://fonts.googleapis.com/css?family=Amaranth:400,700" rel="stylesheet" type="text/css" /> 10 + <link href='http://fonts.googleapis.com/css?family=PT+Mono' rel='stylesheet' type='text/css'> 11 11 != stylesheet_link_tag "index.css" 12 12 != stylesheet_link_tag "fonts/Amaranth.css" 13 13 != stylesheet_link_tag "fonts/PT-Mono.css" 14 14 != stylesheet_link_tag "tipTip.css" 15 15 != stylesheet_link_tag "jquery-github-widget-default-theme.css" 16 - 17 - %h1.title< 18 - Uten 19 - %span.fork-me-before<> 20 - sil 21 - %a{:href => "https://github.com/utensil", :target => "_blank"} 22 - %img.fork-me-overlay{:src => "../images/fork.png"}/ 16 + 17 + %h1.title< 18 + Uten 19 + %span.fork-me-before<> 20 + sil 21 + %a{:href => "https://github.com/utensil", :target => "_blank"} 22 + = image_tag 'fork.png', class: 'fork-me-overlay' 23 23 %h2.subtitle 24 24 %p 25 25 %span In fascination of ··· 37 37 %span 以及对 38 38 %span.main-idea 世界背后的话语 39 39 %span 的追索。 40 - 41 - 40 + 41 +