Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (19 sloc) 855 Bytes
layout title date comments categories
post
Octopress 显示 `{{}}`
2019-03-06 21:58:22 +0800
true
Octopress

注意: 本篇文章需要点击这里才能正常阅读。

Octopress 使用双花括号的时候就会自动把他认为是变量,会『翻译』,但是其实我们并不想要这种效果,怎么办呢?网上找了一圈发现可以用下面这种方式解决

{%raw%}{{thing}}{%endraw%}

但是这样的话对去 Github 对应文章 阅读的体验造成很大的破话。解决办法就是把整个文章都包含进去即可:


{%raw%}

文章内容 {{thing}} 文章内容

{%endraw%}

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.