summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-03-04 20:16:18 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2017-03-04 20:16:18 +0100
commit9bb70e2675a258f33f32d5fa27481d15314a5f44 (patch)
tree5cfe0418e72ac42cd7bffdb44e132dd1b55ea16c /themes
parent73cc1f5e48719100c57126dc0956fea02d3d294e (diff)
downloadwww-andreasbaumann-cc-9bb70e2675a258f33f32d5fa27481d15314a5f44.tar.gz
www-andreasbaumann-cc-9bb70e2675a258f33f32d5fa27481d15314a5f44.tar.bz2
added title instead of filename to ranklist
Diffstat (limited to 'themes')
-rw-r--r--themes/new_theme/layouts/partials/ranklist.html12
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"
}
]
},