Moved page title-related data for app specialisations to iOS app.

parent 0923c97f
...@@ -322,20 +322,11 @@ Better is a Safari content blocker for <a href='https://itunes.apple.com/us/app/ ...@@ -322,20 +322,11 @@ Better is a Safari content blocker for <a href='https://itunes.apple.com/us/app/
listItem = "\t<li><a href='/#{category}/#{pageDomain}'>#{renderedTitleOfPage}</a></li>\n" listItem = "\t<li><a href='/#{category}/#{pageDomain}'>#{renderedTitleOfPage}</a></li>\n"
indexContent[category][titleOfPageClean] = listItem indexContent[category][titleOfPageClean] = listItem
#
# Apply data theme specialisations… # Apply data theme specialisations…
imageStyleOverrides = 'display:block; margin-left: auto; margin-right: auto; border: 0; border-radius: 0; box-shadow: none;' #
if isRenderingDataForApp # (Note: the app-specific specialisations that were here have now been moved to the iOS App.)
# Check if this is a Cloud of Shame or Cloud of Fame award page and, if isRenderingDataForSite
# if so, add the appropriate logo to the top.
if titleOfPageClean.startsWith 'Cloud of Shame'
content = content.replace titleFromHeading[0], "<img style='#{imageStyleOverrides}' alt='Cloud of Shame Award' src='/images/cloud-of-shame-colour.svg'>"
else if titleOfPageClean.startsWith 'Cloud of Fame'
content = content.replace titleFromHeading[0], "<img style='#{imageStyleOverrides}' alt='Cloud of Fame Award' src='/images/cloud-of-fame-colour.svg'>"
else
# Just remove the H1 (headings are already displayed in the navigation controller)
content = content.replace titleFromHeading[0], ''
else
# #
# Is rendering data for site # Is rendering data for site
# #
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment