diff --git a/README.md b/README.md index 36b1515..3eae22c 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ See what you can customize. | SITESUBTITLE | Short description to show below subtitle. | | SITELOGO | Profile picture to show above author name (absolute url). | | SITEDESCRIPTION | Site description to use in meta tags. | +| OG_LOCALE | language_TERRITORY for Open Graph. Default is `en_US`. | | COPYRIGHT_YEAR | Copyright year to display on footer. | | CC_LICENSE | Creative Commons License to show on footer. | | MENUITEMS | A list of tuples (Title, URL) for additional menu items to appear on main menu. | @@ -101,6 +102,7 @@ If you need more icons, you will need to add a custom background to keep all ico |:----:|------------------| | Summarise | Enable Home summary. | | Cover | Cover image for social sharing (absolute url). | +| OgLocale | Open graph locale. | By default, all article content is shown on Home. If the article has a custom Summary, the custom summary is shown. diff --git a/templates/partial/cc_license.html b/templates/partial/cc_license.html new file mode 100644 index 0000000..b28f3fc --- /dev/null +++ b/templates/partial/cc_license.html @@ -0,0 +1,17 @@ +

+ © {{ AUTHOR }} {{ COPYRIGHT_YEAR }} - This work is licensed under a {{ CC_LICENSE['name'] }} {{ CC_LICENSE['version'] }} International License +

+{% include "partial/flex.html" %} +

+ + Creative Commons License + + {% include "partial/statuscake.html" %} +

\ No newline at end of file diff --git a/templates/partial/jsonld.html b/templates/partial/jsonld.html new file mode 100644 index 0000000..e63c339 --- /dev/null +++ b/templates/partial/jsonld.html @@ -0,0 +1,10 @@ + diff --git a/templates/partial/jsonld_article.html b/templates/partial/jsonld_article.html new file mode 100644 index 0000000..ee2872d --- /dev/null +++ b/templates/partial/jsonld_article.html @@ -0,0 +1,23 @@ +{% if SITELOGO %} + {% set default_cover = SITELOGO %} +{% else %} + {% set default_cover = '{{ SITEURL }}/theme/img/profile.png' %} +{% endif %} + diff --git a/templates/partial/og.html b/templates/partial/og.html new file mode 100644 index 0000000..41e0c8c --- /dev/null +++ b/templates/partial/og.html @@ -0,0 +1,14 @@ +{% if OG_LOCALE %} + {% set default_locale = OG_LOCALE %} +{% else %} + {% set default_locale = 'en_US' %} +{% endif %} + + + + + + +{% if SITELOGO %} + +{% endif %} diff --git a/templates/partial/og_article.html b/templates/partial/og_article.html new file mode 100644 index 0000000..50d4df3 --- /dev/null +++ b/templates/partial/og_article.html @@ -0,0 +1,19 @@ +{% if OG_LOCALE %} + {% set default_locale = OG_LOCALE %} +{% else %} + {% set default_locale = 'en_US' %} +{% endif %} + + + + + + + + + + +{% for tag in article.tags %} + +{% endfor %} +