this->meta_keywords = meta_keywords;
this->content = content;
this->is_index = is_index;
- if (is_index)
+ if (! is_index)
this->filename = convert_title (title);
else
this->filename = "index";
// set whether this is the index document
void set_index (bool index = true) {
this->is_index = index;
+ index == true ? this->filename = "index" :
+ this->filename = convert_title (this->title);
}
// get whether this is the index document
return this->is_index;
}
+ // get the file name
+ std::string get_filename () {
+ return this->filename;
+ }
+
// set the document modification date
void set_modified_date (std::time_t modif) {
this->mdate = modif;