adds error catching for empty pages
moves index page to blog post format rather than static page
This commit is contained in:
parent
63fc2fa47f
commit
06b45e46c9
2 changed files with 2 additions and 39 deletions
|
@ -1,39 +0,0 @@
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<link rel="stylesheet" href="LandingPageWireframe.css">
|
|
||||||
<link rel="stylesheet" href="effects.css">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<header>
|
|
||||||
Rosia Evans
|
|
||||||
</header>
|
|
||||||
<main>
|
|
||||||
<h1>
|
|
||||||
Welcome!
|
|
||||||
</h1>
|
|
||||||
<section>
|
|
||||||
I'm Rosia Evans, this is my site where I log my work for myself and for me to show to
|
|
||||||
others.
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section>
|
|
||||||
I'm currently studying at a small university in wales where I'm doing a BEng in
|
|
||||||
software engineering whilst working on robotics and exploring my own interests
|
|
||||||
on the side through various societies. I've previously had interests in VR and XR
|
|
||||||
and UI design, spending a lot of my secondary school years experimenting with both
|
|
||||||
concepts.
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section>
|
|
||||||
See more about my work here:
|
|
||||||
|
|
||||||
<div class="test">
|
|
||||||
<a href="/Example_Post.html">Work</a>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
|
|
||||||
</main>
|
|
||||||
<div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -4,6 +4,8 @@
|
||||||
void Page::calculatePageFlags()
|
void Page::calculatePageFlags()
|
||||||
{
|
{
|
||||||
int endOfFirstLine = sourceFileContents.find_first_of("\n");
|
int endOfFirstLine = sourceFileContents.find_first_of("\n");
|
||||||
|
if (endOfFirstLine == -1)
|
||||||
|
throw sourceFileUrl + " is empty or all on one line";
|
||||||
std::string tagLine = sourceFileContents.substr(0, endOfFirstLine);
|
std::string tagLine = sourceFileContents.substr(0, endOfFirstLine);
|
||||||
sourceFileContents = sourceFileContents.substr(endOfFirstLine, sourceFileContents.length()-endOfFirstLine);
|
sourceFileContents = sourceFileContents.substr(endOfFirstLine, sourceFileContents.length()-endOfFirstLine);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue