Commits

Etienne Perot  committed ac16184

Made title a link to the home page, made the "read more" link jump to the section after the break

  • Participants
  • Parent commits 09225e6

Comments (0)

Files changed (4)

File src/blog/blog.py

 		f = open(filesystemPostsDir + os.sep + p, 'r', encoding='utf8')
 		content = f.read(-1)
 		f.close()
-		content = content.replace('\n' + breakMark + '\n', '') # Strip break mark
+		content = content.replace(breakMark, '<a name="after-the-break"></a>') # Replace break mark by anchor
 		post = Post(content, p[:-3])
 		f2 = open(filesystemPostsDir + os.sep + p[:-3] + '.html', 'w', encoding='utf8')
 		f2.write(substTemplate(template, post))

File src/blog/blogpost-excerpt.template.html

 	</div>
 	%content%
 	<footer class="readmore">
-		<a href="%url%" title="%title%">(Read more...)</a>
+		<a href="%url%#after-the-break" title="%title%">(Read more...)</a>
 	</footer>
 </article>

File src/nav.include.html

 		</ul>
 	</nav>
 	<header>
-		<h1>Etienne Perot</h1>
+		<h1><a href="/">Etienne Perot</a></h1>
 	</header>
 	<div class="clearfix"></div>
 </div>

File src/style.scss

 			h1 {
 				margin: 0em;
 				font-size: $titleFontSize;
-				cursor: default;
 			}
 		}
 		nav {