is now Small Technology Foundation.
Commit 278a231d authored by Aral Balkan's avatar Aral Balkan

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='
listItem = "\t<li><a href='/#{category}/#{pageDomain}'>#{renderedTitleOfPage}</a></li>\n"
indexContent[category][titleOfPageClean] = listItem
# Apply data theme specialisations…
imageStyleOverrides = 'display:block; margin-left: auto; margin-right: auto; border: 0; border-radius: 0; box-shadow: none;'
if isRenderingDataForApp
# Check if this is a Cloud of Shame or Cloud of Fame award page and,
# 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'>"
# Just remove the H1 (headings are already displayed in the navigation controller)
content = content.replace titleFromHeading[0], ''
# (Note: the app-specific specialisations that were here have now been moved to the iOS App.)
if isRenderingDataForSite
# 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