up
This commit is contained in:
		@@ -18,23 +18,22 @@ using namespace CTML;
 | 
			
		||||
 | 
			
		||||
int main()
 | 
			
		||||
{
 | 
			
		||||
	ThePraDev n{ThePraDev()};
 | 
			
		||||
	string cDevOutputPath{Utilities::GetCurrentPath()+ "\\output_thepradev\\"};
 | 
			
		||||
	string postcDevOutputPath{cDevOutputPath + "postsContent\\"};
 | 
			
		||||
	path dir = canonical(".");
 | 
			
		||||
	cout << dir.append("thepradev").append("a")<<endl;
 | 
			
		||||
	path dir{current_path()};
 | 
			
		||||
	cout << dir << endl;
 | 
			
		||||
	auto entries{list<directory_entry>()};
 | 
			
		||||
	for (auto& p : directory_iterator(dir))
 | 
			
		||||
	for (auto p : directory_iterator(dir))
 | 
			
		||||
	{
 | 
			
		||||
		if (is_regular_file(p))
 | 
			
		||||
		{
 | 
			
		||||
			entries.push_front(p);
 | 
			
		||||
			cout << p.path() << endl;
 | 
			
		||||
			entries.push_back(p);
 | 
			
		||||
			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,6 +33,13 @@ public:
 | 
			
		||||
		"about.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);
 | 
			
		||||
 | 
			
		||||
@@ -53,7 +60,6 @@ inline void ThePraDev::BuildBody(Document &file,string cPath, Levels level, Page
 | 
			
		||||
 | 
			
		||||
	Node desktop = Node("section#desktop");
 | 
			
		||||
	Node mobile = Node("section#mobile");
 | 
			
		||||
 | 
			
		||||
	for each (Node item in navBar)
 | 
			
		||||
	{
 | 
			
		||||
		desktop.AppendChild(item);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user