X-Git-Url: https://harishankar.org/repos/?p=biaweb2.git;a=blobdiff_plain;f=biawebdocumenttree.hpp;fp=biawebdocumenttree.hpp;h=53023f1f5724730372b6be7dd2e5ddf1ba0e31a1;hp=5df2e9b955fa2b130cacd8a507c9a53f73295752;hb=4f787d18286fb9a4c5a36d802860c42c9f862854;hpb=c605fd366143d8d342b868dadc1314f9e5d9ece5 diff --git a/biawebdocumenttree.hpp b/biawebdocumenttree.hpp index 5df2e9b..53023f1 100644 --- a/biawebdocumenttree.hpp +++ b/biawebdocumenttree.hpp @@ -309,8 +309,8 @@ namespace biaweb { this->add_child (doctree.get()); } - // add the regular files as documents in the tree - else if (fsitem.is_regular_file ()) { + // add the regular files as documents in the tree and not symlink + else if (fsitem.is_regular_file () && !fsitem.is_symlink()) { // if it is an index file (specially named as index // or index.md or whatever) directly add // the contents to the summary of the Doctree