diff --git a/CHANGELOG.md b/CHANGELOG.md index cf886858..938f3a84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,13 +2,17 @@ ## Development +## Version 2.0.0 + +- Merged in all 0.8.x changes. + ## Version 1.1.1 - Update video grid styles and add bulbs-video-play-button ## Version 0.11.6 -- Add video recirc widget and global SASS styles +- Add video recirc widget and global SASS styles ## Version 0.11.5 @@ -31,6 +35,16 @@ - TUNIC_REQUEST_TOKEN (ex: "12345") - TUNIC_API_PATH (ex: "/api/v1/") +## Version 0.8.18 + +- Change default sort order of Instant Article feed to last modified time, than published date + +## Version 0.8.17 + +- Add Glance JSON feed for content ingestion: `/feeds/glance.json` +- Instant article improvements +- Targeting + footer improvements + ## Version 0.8.10 - Adds tag-based recirc fallback to `RecircViewSet` `GET` request diff --git a/bulbs/__init__.py b/bulbs/__init__.py index a82b376d..8c0d5d5b 100644 --- a/bulbs/__init__.py +++ b/bulbs/__init__.py @@ -1 +1 @@ -__version__ = "1.1.1" +__version__ = "2.0.0" diff --git a/bulbs/content/managers.py b/bulbs/content/managers.py index 597f6627..718640fc 100644 --- a/bulbs/content/managers.py +++ b/bulbs/content/managers.py @@ -7,7 +7,8 @@ from polymorphic import PolymorphicManager from .filters import ( - Authors, Evergreen, FeatureTypes, InstantArticle, Published, Status, Tags, VideohubChannel + Authors, Evergreen, FeatureTypes, InstantArticle, Published, Status, Tags, + VideohubChannel ) @@ -42,7 +43,7 @@ def instant_articles(self, **kwargs): Instant articles are configured via FeatureType. FeatureType.instant_article = True. """ - eqs = self.search(**kwargs) + eqs = self.search(**kwargs).sort('-last_modified', '-published') return eqs.filter(InstantArticle()) def sponsored(self, **kwargs): diff --git a/bulbs/instant_articles/templates/instant_article/base_instant_article.html b/bulbs/instant_articles/templates/instant_article/base_instant_article.html index b541155c..ba92d403 100644 --- a/bulbs/instant_articles/templates/instant_article/base_instant_article.html +++ b/bulbs/instant_articles/templates/instant_article/base_instant_article.html @@ -1,4 +1,5 @@ {% load betty %} +
@@ -49,11 +50,13 @@