Browse Source

Ignore .git folder

master
Macoy Madson 4 years ago
parent
commit
2a23f90ed1
  1. 4
      ContentConverter.py
  2. 6
      SimpleBlogServer.py
  3. 7
      webResources/styles.css

4
ContentConverter.py

@ -109,6 +109,10 @@ def checkForContentChange():
# Get all content files
contentCache = []
for root, dirs, files in os.walk(contentDirectory):
# I'm going to use git to version content, so ignore the .git dir
if '.git' in root:
continue
for file in files:
if file.endswith(contentExtensions):
contentCache.append(os.path.join(root, file))

6
SimpleBlogServer.py

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import tornado.ioloop
import tornado.web
@ -100,3 +100,7 @@ if __name__ == '__main__':
checkForContentChangeCallback.start()
ioLoop.start()
# Local Variables:
# compile-command: "./SimpleBlogServer.py"
# End:

7
webResources/styles.css

@ -2,7 +2,7 @@ body {
margin: 0 auto;
width: 80%;
height: 100%;
background-color: #333333;
background-color: #005555;
max-width: 800px;
}
@ -27,3 +27,8 @@ li {
font-size: small;
color: #aaaaaa;
}
img {
width: 100%;
height: auto;
}

Loading…
Cancel
Save