[% IF doc.meta.link == 'search/searchresults.html' %]
[% RETURN %]
[% END %]
[%- # link to the pdf, source and other variants of the doc
links = [];
IF doc.pdf_doc.link;
pdf = PROCESS pdf_doc;
links.push( pdf );
END;
IF doc.src_doc.link;
src = PROCESS src_doc;
links.push( src );
END;
IF links.join;
links.join('');
ELSE;
"
";
END;
-%]
[%- BLOCK src_doc -%][%- END -%][%- BLOCK pdf_doc -%][%- END -%]