Created
April 10, 2020 05:33
-
-
Save laiyenju/cb883472b4e825bbde5db88f00f293fa to your computer and use it in GitHub Desktop.
以條件式決定顯圖方式
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 整合成條件式 | |
{% if page.feature_image %} | |
<meta property="og:image" content="{{ site.url }}/{{ page.feature_image }}"> | |
{% else %} | |
<meta property="og:image" content="{{ site.url }}/{{ site.favicon }}"> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment