GithubHelp home page GithubHelp logo

orf / simple Goto Github PK

View Code? Open in Web Editor NEW
505.0 27.0 181.0 2.34 MB

Simple is a clone of Obtvse written in Python running on Flask.

License: MIT License

Python 7.30% CSS 48.18% JavaScript 27.11% HTML 17.41%

simple's Introduction

Simple

No longer maintained - I switched my blog to Gatsby, see https://tomforb.es/goodby-simple-hello-gatsby/ .

Simple is as a Python-powered markdown blog. You can see an example running on my blog. 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.

You can also add a header image to any post by selecting the image icon in the top right. This lets you browse through the latest Bing daily images, and in the future you will be able to upload your own.

Quickstart:

It's supposed to be easy to set up Simple. If you don't think it is then open a ticket and let me know. Simple is designed to be served via Gunicorn, behind nginx. You can optionally use supervisord to manage the gunicorn processes.

You need Python 3.4, and simply follow the commands below (nginx on Ubuntu uses /sites-available/ instead of /conf.d/):

>> mkdir blog && cd blog
>> python3.4 -m venv env
>> source env/bin/activate && pip install simpleblogging gunicorn
>> simple create
>> nano simple_config.py
>> simple nginx_config yoursite.com --proxy_port=9009 > /etc/nginx/conf.d/simple.conf
>> simple supervisor_config env/ 9009 >> /etc/supervisord.conf
>> chown -R nobody:nobody ../blog
>> supervisorctl start simple && service nginx reload

simple's People

Contributors

adamchainz avatar axitkhurana avatar bitdeli-chef avatar chenha0 avatar danielmagnussons avatar fanzeyi avatar graue avatar grnxp avatar hellerbarde avatar kraffslol avatar lidilidian avatar mzupan avatar orf avatar rmanocha avatar yin8086 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

simple's Issues

Favicon

Implement a way to serve a favicon. (with caching headers, like the css now does)

Mobile admin backend

Mobile admin backend

Would be nice to be able to have a nice UI when writing a blog post with mobile.

Post edit textarea goes behind bottom bar

When writing a long post and the text reaches the bottom it goes behind the bottom bar with the post options on it.
Either the bar needs a button to hide/show it or the page needs to start scrolling when the text reaches the top of the bar.

https, put it in settings?

I added https to my blog, had issues with "http" being hardcoded everywhere. ( font css, disquss etc)

Put it in settings, or can we get it http/s in a better way?

Can't log into /admin, and I found why

In create_config.py, password is hashed by func 'generate_password_hash'.
but in simple.py, password is unhashed by func 'md5'.

in my environment, it make me cant login.

Add setup.py to version control

The project URL in the current setup.py isn't correct but I can't provide a pull request as setup.py isn't under version control.

install problem

Flow you readme met this error. System ubunut14.10

supervisorctl start simple
Error: .ini file does not include supervisorctl section
For help, use /usr/bin/supervisorctl -h

the created supervisord.conf like this, have no supervisorctl section

[program:simple]

environment=PATH="/home/ikfb/Git/blog/env/bin"
user=nobody
autostart=true
autorestart=true
killasgroup = true
redirect_stdout=true
redirect_stderr=true

Improve preview support

Currently to preview a post a new window is required. Some ajaxy/jquery goodness could replace the editor with a preview of the post as opposed to a clunky window that doesn't update.

simple: ERROR (no such process)

Hi, I followed everything and I am getting the following error: simple: ERROR (no such process)

Some information:

(env) root@noided:/usr/share/nginx/www/blog# uname -a
Linux noided 3.18.7-v7+ #755 SMP PREEMPT Thu Feb 12 17:20:48 GMT 2015 armv7l GNU/Linux

Running this on a RPi with raspbian

New features

Image uploads
Little paperclip on the edit page where you can upload images and have the resulting URL copied into the clipboard.

History
Some form of post version control?

Instant preview
Maybe split the editing page into two halves, one with the text box and one with a live preview using JavaScript to render it, or if not then render server side?

Needs to handle posts with the same title gracefully

Currently we don't check to see if there are any posts with the same title (and the same slug) when we save a post, which can lead to IntegrityError exceptions.
This should be handled somehow, perhaps telling the user to choose a different title or to generate a different slug?

Silly issue

It's great to see a port of svbtle/obtvse to python and flask and someone committed to it and doing a good job. I might take a look into it later since I'm trying to learn more about flask.

I'm just posting this issue to make you notice that on the 3rd screenshot you have, there is still a "Powered by obtvuse". Since I didn't knew if it was supposed to be that way, I ended up posting this.

cheers

SC: sc

Cannot save post body

I've tried both the version installed from pypi and the github master branch but I get the same problem in both.

No post body is being saved. I can type the body into the "form" on the web page but there is no submit button and if I just hit return a few times, click outside on the page and then preview I cannot see any body.

I peeked inside the sqlite db and no body is being saved. Am I missing something? How do I make this blog save the actual blog post?

Markdown icon vanished. :( Make it useful instead!

What's the issue?

@orf removed the little Markdown Icon besides the text. I assume it was because it served absolutely no purpose. Makes sense.

So why am I making a fuss about it? (read: submit an issue)

I propose to bring the icon back but make it clickable and on click display a lightbox with a markdown syntax reference similar to the one on github when you press "m" outside of a textfield.

Thoughts?

post.created_at should not be updated in def edit(post_id)

Line 215

    post.created_at = datetime.datetime.now()

The created_at will be changed, although the posts will appear first, the original created time will be broken, and will never be seen in the view page.

Without this, after updating a posts, we can see the create time and update time. But after this, we can never see the real create time, and due to the two time are the same, we can not see the update time.

Mobile support

This is carried over from Obtvse, but support of this on iphone is horrible. not a web dev, but can any changes be made?

Installation

Hi

It would be helpful to mention the "markdown" Python package requirement in README's installation section.
Or simply refer explicitly to requirements.txt.

Apart from that, cheers and thanks!

License question?

This isn't as much an issue as it is a question of what the license is simple released under? The reason I ask is that I've been playing around at adapting simple to be a static site generator, but I just realized I don't know what license the code is under.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.