mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +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:
|
||||
enable: true
|
||||
options:
|
||||
type: website
|
||||
#twitter_card: <twitter:card>
|
||||
#twitter_id: <twitter:creator>
|
||||
#twitter_site: <twitter:site>
|
||||
|
||||
@ -1,5 +1,9 @@
|
||||
{%- if theme.open_graph.enable %}
|
||||
{{ open_graph(theme.open_graph.options) }}
|
||||
{%- if theme.open_graph.options %}
|
||||
{{ open_graph(theme.open_graph.options) }}
|
||||
{%- else %}
|
||||
{{ open_graph() }}
|
||||
{%- endif %}
|
||||
{%- endif %}
|
||||
|
||||
{# https://github.com/theme-next/hexo-theme-next/issues/866 #}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user