mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-19 18:42:34 +00:00
Fix error for null theme.open_graph.options (#470)
This commit is contained in:
parent
0533489746
commit
f4969a4e36
@ -77,7 +77,6 @@ creative_commons:
|
|||||||
open_graph:
|
open_graph:
|
||||||
enable: true
|
enable: true
|
||||||
options:
|
options:
|
||||||
type: website
|
|
||||||
#twitter_card: <twitter:card>
|
#twitter_card: <twitter:card>
|
||||||
#twitter_id: <twitter:creator>
|
#twitter_id: <twitter:creator>
|
||||||
#twitter_site: <twitter:site>
|
#twitter_site: <twitter:site>
|
||||||
|
|||||||
@ -1,5 +1,9 @@
|
|||||||
{%- if theme.open_graph.enable %}
|
{%- if theme.open_graph.enable %}
|
||||||
|
{%- if theme.open_graph.options %}
|
||||||
{{ open_graph(theme.open_graph.options) }}
|
{{ open_graph(theme.open_graph.options) }}
|
||||||
|
{%- else %}
|
||||||
|
{{ open_graph() }}
|
||||||
|
{%- endif %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{# https://github.com/theme-next/hexo-theme-next/issues/866 #}
|
{# https://github.com/theme-next/hexo-theme-next/issues/866 #}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user