Skip to content
This repository has been archived by the owner on Oct 25, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge remote-tracking branch 'origin/master'
  • Loading branch information
orf committed May 24, 2015
2 parents e9d67bb + 37e7525 commit 11b0cdb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
@@ -1,6 +1,6 @@
Simple
======
Simple is as a Python-powered markdown blog. You can see an example running [on my blog](http://tomforb.es/). The editor is an expanding textarea and you can upload images by dragging and dropping them onto the page:
Simple is as a Python-powered markdown blog. You can see an example running [on my blog](http://tomforb.es/). The editor is an expanding textarea and you can upload images by dragging and dropping them onto the page, and ctrl+s saves the post.

![Editor](http://tomforb.es/uploads/editor_VAX22JW3.png)

Expand Down
6 changes: 3 additions & 3 deletions simple/templates/index.xml
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>{{ config.BLOG_TITLE }}</title>
<description>{{ config.BLOG_TAGLINE }}</description>
<link>{{ config.BLOG_URL }}</link>
<title>{{ config.SITE_TITLE }}</title>
<description>{{ config.SITE_TAGLINE }}</description>
<link>{{ request.url_root }}</link>
{% for post in posts %}
{% set p_url=url_for('view_post', slug=post.slug, _external=True) %}
<item>
Expand Down
7 changes: 5 additions & 2 deletions simple/templates/post.html
Expand Up @@ -54,7 +54,10 @@ <h2>{{ (post.posted or now()).strftime("%B %d, %Y") }}</h2>
<div class="social-share">
<ul class="socialcount socialcount-small inline-list">
<li class="facebook"><a href="https://www.facebook.com/sharer/sharer.php?u={{ request.url|urlencode }}" title="Share on Facebook"><span class="count"><i class="fa fa-facebook-square"></i> Like</span></a></li>
<li class="twitter"><a href="https://twitter.com/intent/tweet?text={{ request.url|urlencode }}" title="Share on Twitter"><span class="count"><i class="fa fa-twitter-square"></i> Tweet</span></a></li>
<li class="twitter">
<a href="https://twitter.com/intent/tweet?text={{ "{0} {1}".format(post.title, request.url)|urlencode }}"
title="Share on Twitter"><span class="count"><i class="fa fa-twitter-square"></i> Tweet</span></a>
</li>
<li class="googleplus"><a href="https://plus.google.com/share?url={{ request.url|urlencode }}" title="Share on Google Plus"><span class="count"><i class="fa fa-google-plus-square"></i> +1</span></a></li>
</ul>
</div>
Expand Down Expand Up @@ -86,4 +89,4 @@ <h2>{{ (post.posted or now()).strftime("%B %d, %Y") }}</h2>
})();
</script>
{% endif %}
{% endblock %}
{% endblock %}

0 comments on commit 11b0cdb

Please sign in to comment.