View Single Post
Old 04-11-2018, 03:13 PM   #1
RayV
Junior Member
RayV began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2013
Device: Kobo Mini
Slate articles class identifier changes

The class identifiers for some of the Slate articles pages have changed, in particular the technology pages which I'm interested in, which also don't now have the *.single.html pages.

I can get the article header and content with changes to slate.recipe, but then there are no images included.

Spoiler:
--- slate.recipe
+++ slate.recipe
@@ -27,3 +27,2 @@
- dict(name='header', attrs={'class': 'article-header'}),
- dict(name='section', attrs={
- 'class': lambda x: x and 'content' == x.strip()}),
+ dict(name='header', attrs={'class':'article__header'}),
+ dict(name='div', attrs={'class':"article__content"}),
@@ -32,4 +31 @@
- dict(id='header_social'),
- dict(attrs={'class': ['prop-name', 'prop-desc', 'authorbox',
- 'twitter', 'email', 'facebook', 'follow-links', 'join-in']}),
- dict(attrs={'class': lambda x: x and 'sharing-buttons' in x.split()}),
+ dict(name='ul', attrs={'class':"social-share"}),
@@ -38,3 +33,0 @@
- def print_version(self, url):
- return url.replace('.html', '.single.html')
-
@@ -44 +36,0 @@
- ('News & Politics', '/articles/news_and_politics.html'),
@@ -46,6 +37,0 @@
- ('Business', '/articles/business.html'),
- ('Arts', '/articles/arts.html'),
- ('Life', '/articles/life.html'),
- ('Health & Science', '/articles/health_and_science.html'),
- ('Sports', '/articles/sports.html'),
- ('Double X', '/articles/double_x.html'),

RayV is offline   Reply With Quote