16
我剛剛開始使用Github來託管我的博客(使用Jekyll和Liquid)。但是,我有an issue which I can't currently fix。如果我能夠檢測到用戶正在訪問哪個「頁面」或「網址」,該問題可能會被黑客入侵/解決。液體標記檢測當前頁面的URL?
喜歡的東西:
{% if user_is_currently_at_this_url %}
{{ display something }}
{% else %}
{{ display something else }}
{% endif %}
這可能嗎?有沒有其他解決此問題的方法?
是對已經被解決我的問題,但還是謝謝你爲此:) – n0pe 2012-03-23 03:26:35
'page.path'可能會更好,如https://github.com/jekyll/jekyll-help/issues/5#issuecomment-39033862所示 – koppor 2016-01-26 19:39:27
這不適用於Github頁面上的404重定向:( – 2016-03-29 22:40:46