Skip to content

Commit

Permalink
Remove support for JSON_LD_ARTICLES
Browse files Browse the repository at this point in the history
  • Loading branch information
kappa-wingman committed May 25, 2020
1 parent 06f53e6 commit ff4024a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ Use it at your own risk.
Changes, newer changes on top
-----------------------------

- Version 1.4.0

- Rewrite support for JSON-LD

- Version 1.3.3

- Fix html5validators warnings
Expand Down
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,16 @@ We have new settings specific to this theme, also check CHANGELOG.rst
* Display at bottom of articles. If you have ad-block software it may not be displayed
Enable it in pelicanconf.py, TWITTER_CUSTOM = True
* JSON-LD
* Based on existing work from https://github.com/alexandrevicenzi/Flex. Thanks to Alexandre.
* For base / includes/json_ld.html: If enabled, there would be two JSON+LD blocks for articles
* JSON_LD = False
* For includes/articles.html:
* JSON_LD_ARTICLES = True
* JSON_LD = True
* Based on existing work from https://github.com/alexandrevicenzi/Flex . Thanks to Alexandre.
* Based on existing work from https://github.com/emoji-gen/blog/blob/master/theme/templates/includes/article_structured-data.html Thanks to Emoj-Gen and Pine.
* For base / includes/json_ld.html;
* If enabled, there would be JSON-LD blocks for
* Type Blog for all html
* Type Articles for all articles
* JSON-LD, article image and publisher logo are required by Google schema checking
* SITE_LOGO = 'images/your-image.jpg'
* PUBLISHER_LOGO = 'images/your-image.jpg'

* JSON_LD_BREADCRUMBLIST = True
* If both JSON_LD is also enabled:
* Add type BreadcrumbList for all html
5 changes: 0 additions & 5 deletions templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,4 @@ <h1>
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/shariff.min.js"></script>
{% endif %}

<!-- For JSON+LD included in articles.html -->
{% if JSON_LD_ARTICLES %}
{% include 'includes/json_ld_articles.html' %}
{% endif %}

{% endblock %}

0 comments on commit ff4024a

Please sign in to comment.