Personal blog jarmalavicius.lt content files
This personal website is made with Django GIT CMS. This CMS is not ordinary content management system like Wordpress, Drupal and so on. There is no administration panel. All website content is stored in simple RST files which are versioned thanks to GIT version control system. So this repository hold's only those files.
If you would like read about Django GIT CMS, go to my Github fork of this CMS.
Live website can be located here: www.jarmalavicius.lt.
This work is shared under Creative Commons Attribution-NonCommercional 3.0 license.
Project author Remigijus Jarmalavičius. Feel free to contact: remigijus(a)jarmalavicius.lt
How to install
Firstly clone this repository:
git clone git://github.com/ReekenX/jarmalavicius.lt.git jarmalavicius
Open directory and run:
P.s. You will need Python Fabric library: pip install fabric.
Project directory structure
Website content is stored in... "content" folder:
$ tree content/ content/ ├── blog # blog articles folder ├── files # article attachments ├── simplecms # single pages (like "about me") ├── simplemenus # header, footer menu links └── simpletagging # articles tags (categories)
Media files stored in "media" folders. Note: CSS is managed by SASS. I love SASS!
Folder "templates" contains HTML templates of all page types used in blog:
templates/ ├── 404.html # Ugly 404 page template ├── 500.html # Same as above, but 500 (error page) template ├── base.html # Basee template ├── blog # Article template ├── contact_form # Contact form template ├── pagination # Pagination template which is only used in tags and index page ├── simplecms # Single pages template └── simplemenus # Header and right menu
The main idea
This is how I am writing new articles:
- I am starting by creating a file in "content/blog" folder. File template below.
- If my blog article contains media or attachments, they are stored into "content/files" folder.
- When article is completed, I execute simple command python manage.py gitcmsload to store files to database for Django.
- After GIT commit, I am pushing changes to production server, where they automatically updated. After that, monkey, sitting 24/7 time over SSH, executes command described in 3 step and my new article is now visible for everyone, except Internet Explorer users.
Blog file template
Here is template which is used for new article writing:
title: "Article title" slug: new-article-title categories: category-slug keywords: article keyword, title description: Latest article description. author: Name Surname timestamp: 2011-11-30 15:00:00 status: published --- My article text.
Why not Hyde?
- Hyde is for static content. My blog contains some things that are managed by Python (contacts form in example).
- I love Django. I love GIT!
Found bug's? Please write me in GitHub issues page: