def update_index(entries):
context = GLOBAL_TEMPLATE_CONTEXT.copy()<EOL>context['<STR_LIT>'] = entries<EOL>context['<STR_LIT>'] = datetime.datetime.now().strftime(<EOL>"<STR_LIT>")<EOL>list(map(lambda x: _render(context, x[<NUM_LIT:0>],<EOL>os.path.join(CONFIG['<STR_LIT>'], x[<NUM_LIT:1>])),<EOL>(('<STR_LIT>', '<STR_LIT>'), ('<STR_LIT>', '<STR_LIT>'))))<EOL>
find the last 10 entries in the database and create the main
    page.
    Each entry in has an doc_id, so we only get the last 10 doc_ids.

    This method also updates the ATOM feed.