Skip to content
Permalink
Browse files

Small stuff, FAQ stuff, fixing flask-login stuff

  • Loading branch information...
Depado committed Oct 27, 2015
1 parent 42fdfd6 commit 83fe11f00e61190b87f386d94775baf966042a0a
Showing with 41 additions and 2 deletions.
  1. +3 −0 app/models/user.py
  2. +1 −1 app/templates/cover.html
  3. +31 −0 app/templates/faq.html
  4. +1 −1 app/templates/index.html
  5. +5 −0 app/views/main.py
@@ -155,12 +155,15 @@ def set_password(self, password):
def check_password(self, password):
return check_password_hash(self.password, password)

@property
def is_authenticated(self):
return True

@property
def is_active(self):
return self.active

@property
def is_anonymous(self):
return False

@@ -17,7 +17,7 @@
<a href="//github.com/Depado" target="_blank" style="text-decoration: none;"><i class="fa fa-github"></i> Author</a>
&nbsp;<a href="//github.com/Depado/MarkDownBlog" target="_blank" style="text-decoration: none;"><i class="fa fa-github"></i> Project</a>
&nbsp;&nbsp;<a href="mailto:paul.lhussiez@gmail.com" style="text-decoration: none"><i class="fa fa-envelope"></i> Contact</a>
&nbsp;<a href="#" style="text-decoration: none"><i class="fa fa-question-circle"></i> FAQ</a>
&nbsp;<a href="{{ url_for('faq') }}" style="text-decoration: none"><i class="fa fa-question-circle"></i> FAQ</a>
</p>
</div>
</div>
@@ -0,0 +1,31 @@
{% extends "blog/blog_base.html" %}

{% block inner_content %}
<div class="container-fluid">
<div class="row">
<div class="well">
<h1>Frequently Asked Questions</h1>
<h4><i>I guess every website needs one. Am I wrong ?</i></h4>
<h3>Why did you create that platform ?</h3>
<p><b>Short Answer</b><br />Because I wanted to.</p>
<p>
<b>Long Answer</b><br />
For a long time, I wanted to create myself a blog. I fell in love with the markdown
format and started playing around with markdown processors in Python, and creating my blog using Flask.
And then I told myself "Hey, it looks pretty easy to transform your blog into a blogging platform". Obviously, I was wrong.
I challenged myself, I wanted to have a working blogging platform using the markdown format and a subdomain per user in just
three days. It was a success. Since then I just keep pushing new stuff to the platform along with writing articles on my blog.
</p>
<h3>That project is awesome. Can I run MarkDownBlog on my own server ?</h3>
<p>
Of course you can. The code of MarkDownBlog is open-source on GitHub, and is under the MIT license. There is actually
a short tutorial on how to deploy MarkDownBlog on your own server and customizing it a bit in the README.md file.<br />
<b>Note</b><br />
This was not the primary goal. At all. I'll accept feature requests on GitHub or issues, but keep in mind that this code
wasn't originally made to run elsewhere than on my own server. I won't fix issues for you, I won't add features unless
I find them fun to add and/or useful. As the code is free, you can modify it to suit your needs.
</p>
</div>
</div>
</div>
{% endblock %}
@@ -14,7 +14,7 @@
{% block inner_content %}
<div id="home-div">
<h1 class="cover-heading">MarkDownBlog</h1>
<p class="lead">MarkDownBlog is a simple web application that allows you to create your own blog. Inspired by Tumblr and GitHub, it creates a subdomain for your own blog and uses markdown to process the posts. <br />Using bootstrap because I have no skills in design.</p>
<p class="lead">MarkDownBlog is a simple blogging platform. And as its name suggests it, you use markdown to write your articles. Isn't that wonderful ? Also you'll have your very own subdomain.<br />Using bootstrap because I have no skills in design.</p>
<p class="lead">
<a href="#" class="btn btn-lg btn-primary open-login-div">Login</a>
<a href="#" class="btn btn-lg btn-primary open-registration-div">Register</a>
@@ -61,3 +61,8 @@ def index():
def logout():
logout_user()
return redirect(url_for("index"))


@app.route("/faq", methods=['GET'])
def faq():
return render_template("faq.html")

0 comments on commit 83fe11f

Please sign in to comment.
You can’t perform that action at this time.