Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Personal blog www.jarmalavicius.lt content. Blog made with django-git-cms (my own fork you can find at github). Creative Commons Attribution-NonCommercial 2.0.
tree: 0c6da97a94

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
content
media
templates
.gitignore
README.rst
__init__.py
fabfile.py
manage.py
requirements.txt
settings.py
sitemap.py
urls.py

README.rst

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.

License

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:

fab build

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!

I am using jQuery for Twitter messages parsing and Colorbox for images displaying.

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:

  1. I am starting by creating a file in "content/blog" folder. File template below.
  2. If my blog article contains media or attachments, they are stored into "content/files" folder.
  3. When article is completed, I execute simple command python manage.py gitcmsload to store files to database for Django.
  4. 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?

  1. Hyde is for static content. My blog contains some things that are managed by Python (contacts form in example).
  2. I love Django. I love GIT!

Bugs

Found bug's? Please write me in GitHub issues page:

https://github.com/ReekenX/jarmalavicius.lt/issues
Something went wrong with that request. Please try again.