Browse Source

update content

pull/1/head
wes 7 years ago
parent
commit
df68751fb4
  1. 7
      src/scripts/about.tag
  2. 42
      src/scripts/app.tag
  3. 4
      src/styles/riotblog.scss
  4. 2
      src/templates/index.html
  5. 10
      src/website.py

7
src/scripts/about.tag

@ -1,10 +1,13 @@
<about>
<div class="centered content-box animated fadeIn">
<h4 style={headerStyle}>
My Background
Who am I?
</h4>
<p class="post-content">
I'm a software developer who builds web and mobile apps. I enjoy functional programming, compilers, machine learning, and building apps that allow for more decentralized communication. This blog covers my thoughts on everything from computer science, psychology, philosophy, economics, and linguistics.
I'm a full stack application developer who builds web and mobile apps. I am a huge fan of functional programming, compilers, and solving problems creatively and efficiently. I enjoy helping other people learn more, and I am constantly learning as well. This blog covers my thoughts on everything from computer science, psychology, philosophy, economics, and anything else I'm currently interested in.
</p>
<p class="post-content">
Feel free to shoot me an <a href="mailto:wjak56@gmail.com">email</a> if you want to chat or check out my <a target="_blank" href="https://stackoverflow.com/story/weskerfoot">resume</a>
</p>
</div>
<script>

42
src/scripts/app.tag

@ -1,20 +1,22 @@
<app>
<div
style={
{
"border-bottom" : showBorder ? "solid 1px" : "none",
"opacity" : showBorder ? "0.7" : "1",
"background-color" : showBorder ? "white" : "white"
<div class="app-body">
<div
style={
{
"border-bottom" : showBorder ? "solid 1px" : "none",
"opacity" : showBorder ? "0.7" : "1",
"background-color" : showBorder ? "white" : "white"
}
}
}
class="header"
>
<section style={{"margin-top" : "0px"}} class="text-center nav navbar centered navbar-section">
class="header"
>
<section
style={{"margin-top" : "5px"}}
class="text-center nav navbar centered navbar-section"
>
<h3 class="blog-title">{ currentPage }</h3>
</section>
</div>
<div class="app-body">
<section class="text-center nav navbar centered navbar-section">
</section>
@ -168,18 +170,22 @@ menuOff(ev) {
self.update();
}
self.titles = {
"browse" : "Wes Kerfoot",
"projects" : "Software",
"links" : "Links",
"about" : "About Me"
};
function activate(page) {
return function() {
if (page == "browse") {
document.title = "Wes Kerfoot";
self.currentPage = document.title;
}
else if (page !== "posts") {
if (page == "posts") {
document.title = page.slice(0,1).toUpperCase()+page.slice(1,page.length);
self.currentPage = document.title;
}
else {
self.currentPage = self.state.title;
self.currentPage = self.titles[page];
document.title = self.currentPage;
}
self.active = lens.setActive(self.active, page);
self.update();

4
src/styles/riotblog.scss

@ -12,8 +12,7 @@ $navbarHeight: 100px;
text-transform: capitalize;
margin-top: 15px;
max-width: 70%;
margin-left: auto;
margin-right: auto;
margin: auto;
font-weight: 400;
color: black;
@media (max-width: 600px) {
@ -33,6 +32,7 @@ $navbarHeight: 100px;
position: fixed;
z-index: 1;
width: 100%;
margin: auto;
}
.app-body {

2
src/templates/index.html

@ -6,7 +6,7 @@
<title>
{{
postcontent["title"] if page == "posts" else
"Wes Kerfoot" if page == "browse" else
titles[page] if page in titles else
"%s%s" % (page[0].upper(), page[1:])
}}
</title>

10
src/website.py

@ -23,6 +23,13 @@ cache = Cache(config={'CACHE_TYPE': 'memcached'})
login_manager = LoginManager()
page_titles = {
"about" : "About Me",
"projects" : "Software",
"links" : "Links",
"browse" : "Wes Kerfoot"
}
def cacheit(key, thunk):
"""
Explicit memcached caching
@ -75,7 +82,8 @@ def NeverWhere(configfile=None):
"links" : dumps([]),
"projects" : dumps([]),
"category_filter" : dumps(False),
"categories" : cacheit("categories", lambda : dumps(posts.categories()))
"categories" : cacheit("categories", lambda : dumps(posts.categories())),
"titles" : page_titles
}
@login_manager.user_loader

Loading…
Cancel
Save