def METHOD_NAME(self, name):
    item = self.page.items.get(name, {})
    preview_url = item.get("preview", None)
    if not preview_url:
        filename, _ = os.path.splitext(item["filename"])
        preview_url = self.page.find_preview(filename)
        item["preview"] = preview_url
    if preview_url:
        preview = f'''
        <div class='card standalone-card-preview'>
            <img src="{html.escape(preview_url)}" class="preview">
        </div>
        '''
    else:
        preview = "<div class='card standalone-card-preview'></div>"
    return preview