Beispiel #1
0
def index():
    tags = [237184207]
    page_url = BASE_URL + request.path
    page_title = 'Campaign 2014'
    page_explainer = ["VPR's guide to the 2014 campaign season. Get our latest coverage, special features and election news apps all in one place."]
    stories = api_feed(tags, numResults=10, thumbnail=True)
    reporters = reporter_list(tags)

    featured = False
    #To add featured stories to right panel of topic page, add story API IDs
    #featured = api_feed([291752955, 292002570], numResults=2, thumbnail=True, sidebar=True)

    social = {
        'title': "",
        'subtitle': '',
        'img': '',
        'description': "",
        'twitter_text': "",
        'twitter_hashtag': ''
    }

    return render_template('content.html',
        page_title=page_title,
        page_explainer=page_explainer,
        stories=stories,
        social=social,
        featured=featured,
        reporters=reporters,
        page_url=page_url)
Beispiel #2
0
def index():
    page_url = BASE_URL + request.path
    page_title = 'Health Care In Vermont'
    stories = api_feed([245948266, 186100276], numResults=10, thumbnail=True)
    reporters = reporter_list([245948266, 186100276])
    follow_the_money = api_feed([255414453])[0]

    social = {
        'title': "VPR: Healthcare Coverage 2014",
        'subtitle': 'www.vpr.net/apps/health/',
        'img': 'http://www.vpr.net/apps/health/static/img/under_the_hood_share_photo_vpr.png',
        'description': "VPR's guide to health care in Vermont. Includes coverage of the health care exchange, the latest in state policy and implementation of a single payer system in Vermont.",
        'twitter_text': "VPR's guide to healthcare in VT. Latest coverage, exchange updates and the road to single payer",
        'twitter_hashtag': 'VTpoli'
    }

    return render_template('content.html',
        page_title=page_title,
        stories=stories,
        social=social,
        page_url=page_url,
        reporters=reporters,
        follow=follow_the_money)