mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-17 18:22:33 +00:00
Support customize open_graph information (#448)
This commit is contained in:
parent
07bd564401
commit
0b73491db0
@ -72,6 +72,13 @@ creative_commons:
|
|||||||
# CC licenses are available in 39 languages, you can find the specific and correct abbreviation you need on https://creativecommons.org
|
# CC licenses are available in 39 languages, you can find the specific and correct abbreviation you need on https://creativecommons.org
|
||||||
language:
|
language:
|
||||||
|
|
||||||
|
# Open graph settings
|
||||||
|
# See: https://hexo.io/docs/helpers#open-graph
|
||||||
|
open_graph:
|
||||||
|
enable: true
|
||||||
|
# Add pairs each line to customize
|
||||||
|
options: ''
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
# Menu Settings
|
# Menu Settings
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
{{ open_graph() }}
|
{%- if theme.open_graph.enable %}
|
||||||
|
{{ open_graph(theme.open_graph.options) }}
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
{# https://github.com/theme-next/hexo-theme-next/issues/866 #}
|
{# https://github.com/theme-next/hexo-theme-next/issues/866 #}
|
||||||
{%- set canonical = url | replace(r/index\.html$/, '') %}
|
{%- set canonical = url | replace(r/index\.html$/, '') %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user