up
This commit is contained in:
parent
68d4127a19
commit
64d592f02b
@ -18,23 +18,22 @@ using namespace CTML;
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
ThePraDev n{ThePraDev()};
|
path dir{current_path()};
|
||||||
string cDevOutputPath{Utilities::GetCurrentPath()+ "\\output_thepradev\\"};
|
cout << dir << endl;
|
||||||
string postcDevOutputPath{cDevOutputPath + "postsContent\\"};
|
|
||||||
path dir = canonical(".");
|
|
||||||
cout << dir.append("thepradev").append("a")<<endl;
|
|
||||||
auto entries{list<directory_entry>()};
|
auto entries{list<directory_entry>()};
|
||||||
for (auto& p : directory_iterator(dir))
|
for (auto p : directory_iterator(dir))
|
||||||
{
|
{
|
||||||
if (is_regular_file(p))
|
if (is_regular_file(p))
|
||||||
{
|
{
|
||||||
entries.push_front(p);
|
entries.push_back(p);
|
||||||
cout << p.path() << endl;
|
cout << p.path().string() << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (list<directory_entry>::const_iterator iterator = entries.begin(), end = entries.end(); iterator != end; ++iterator)
|
for (list<directory_entry>::iterator iterator = entries.begin(), end = entries.end(); iterator != end; ++iterator)
|
||||||
{
|
{
|
||||||
cout << *iterator;
|
directory_entry a{*iterator};
|
||||||
|
|
||||||
|
cout << a.path().filename() << " *" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -33,18 +33,25 @@ public:
|
|||||||
"about.html",
|
"about.html",
|
||||||
"contact.html"
|
"contact.html"
|
||||||
};
|
};
|
||||||
|
static tuple<string, string, string> links[5]{
|
||||||
|
{"index","index.txt","index.html"},
|
||||||
|
{"code","code.txt","code.html"},
|
||||||
|
{"blog","blog.txt","blog.html"},
|
||||||
|
{"about","about.txt","about.html"},
|
||||||
|
{"contact","contact.txt","contact.html"}
|
||||||
|
};
|
||||||
|
|
||||||
static void BuildBody(Document &file,string cPath, Levels level, PageType ptype = NORMAL);
|
static void BuildBody(Document &file, string cPath, Levels level, PageType ptype = NORMAL);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static list<Node> NavigationBar(Levels level, DeskOrMob mtype);
|
static list<Node> NavigationBar(Levels level, DeskOrMob mtype);
|
||||||
static list<Node> SingleMainContent(Levels level,string cPath, DeskOrMob mtype, list<string> content = {""});
|
static list<Node> SingleMainContent(Levels level, string cPath, DeskOrMob mtype, list<string> content = {""});
|
||||||
static Node Extra(Levels level);
|
static Node Extra(Levels level);
|
||||||
static Node Player(Levels level);
|
static Node Player(Levels level);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
inline void ThePraDev::BuildBody(Document &file,string cPath, Levels level, PageType ptype)
|
inline void ThePraDev::BuildBody(Document &file, string cPath, Levels level, PageType ptype)
|
||||||
{
|
{
|
||||||
list<Node> navBar = NavigationBar(level, D);
|
list<Node> navBar = NavigationBar(level, D);
|
||||||
list<Node> navBarM = NavigationBar(level, M);
|
list<Node> navBarM = NavigationBar(level, M);
|
||||||
@ -53,7 +60,6 @@ inline void ThePraDev::BuildBody(Document &file,string cPath, Levels level, Page
|
|||||||
|
|
||||||
Node desktop = Node("section#desktop");
|
Node desktop = Node("section#desktop");
|
||||||
Node mobile = Node("section#mobile");
|
Node mobile = Node("section#mobile");
|
||||||
|
|
||||||
for each (Node item in navBar)
|
for each (Node item in navBar)
|
||||||
{
|
{
|
||||||
desktop.AppendChild(item);
|
desktop.AppendChild(item);
|
||||||
@ -142,12 +148,12 @@ inline list<Node> ThePraDev::NavigationBar(Levels level, DeskOrMob mtype)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default: return{{}};
|
default: return{{}};
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline list<Node> ThePraDev::SingleMainContent(Levels level,string cPath, DeskOrMob mtype, list<string> content)
|
inline list<Node> ThePraDev::SingleMainContent(Levels level, string cPath, DeskOrMob mtype, list<string> content)
|
||||||
{
|
{
|
||||||
ThePraDev a;
|
ThePraDev a;
|
||||||
string whichLevel = ChooseLevel(level);
|
string whichLevel = ChooseLevel(level);
|
||||||
|
Loading…
Reference in New Issue
Block a user