diff options
Diffstat (limited to 'themes')
-rw-r--r-- | themes/new_theme/layouts/partials/ranklist.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/themes/new_theme/layouts/partials/ranklist.html b/themes/new_theme/layouts/partials/ranklist.html index 65607c7..9c91422 100644 --- a/themes/new_theme/layouts/partials/ranklist.html +++ b/themes/new_theme/layouts/partials/ranklist.html @@ -70,13 +70,13 @@ for( var i = 0; i < data.ranklist.ranks.length; i++ ) { var rank = data.ranklist.ranks[i]; var abstract = ''; - var slug = ''; + var title = 'No Title'; var docid = ''; html += "<li>"; for( var j = 0; j < rank.attributes.length; j++ ) { var attribute = rank.attributes[j]; - if( attribute.key == 'filename' ) { - slug = attribute.value; + if( attribute.key == 'title' ) { + title = attribute.value; } else if( attribute.key == 'docid' ) { docid = attribute.value; } else { @@ -84,7 +84,7 @@ } } html += "<div class='title'>" - html += "<a href=\"" + docid + "\">" + slug + "</a></div>"; + html += "<a href=\"" + docid + "\">" + title + "</a></div>"; if( abstract != '' ) { html += "<div class='abstract'>" + abstract + "</div>"; } @@ -131,12 +131,12 @@ ] }, { - attribute: "slug", + attribute: "title", name: "attribute", params: [ { key : "name", - value : "filename" + value : "title" } ] }, |