Gundari seh ka kita bas cara erban blog salu Pelican, adina lenga pernah begindu kerna Pelican enda banci ogendu bas website getpelican.com.

Bas tutorial enda aku pake Fedora 20. Tapi labo ndauh bedana adina pakendu distro Linux sideban. man instalasi enda perlu koneksi ku internet.

1. Persiapen ras Instalasi
Pertama-tama pastiken sistem si pakendu nggo i update alu ndalanken perintah

su -c "yum clean all;yum update -y"

install paket Python

yum install python3-devel pytz python-blinker python-devel python-jinja2 python-docutils python-pygments python-markdown2 python-unidecode

dung kenca e, install python3-pip, pip enda bali ras yum ntah apt-get, tapi khusus man Python.

su -c "yum install python3-pip;  pip install Markdown"

install Pelican simbaruna alu

su -c "pip install pelican"

bas jenda instalasina nggo dung, gundari masuk kita ku konfigurasi.

2. Erban Rangka Blog
Pertama siban lebe kerangka blogna, jenda kari siban misalken bas direktori /home/$USER/blog, $USER enda sesuai ras loginndu si pakendu, bagi aku contohna /home/sentabi/blog. Pedalan perintah di teruh enda lanai perlu akses root, pake user biasa saja erbansa. Pedalan perintah

pelican-quickstart

sindarat ras si kupilih settingenna banci nenndu bas teruh enda

Welcome to pelican-quickstart v3.3.0.
 
This script will help you create a new Pelican-based website.
Please answer the following questions so this script can generate the files
needed by Pelican.
 
> Where do you want to create your new web site? [.] blog
> What will be the title of this web site? Blog Sipemena
> Who will be the author of this web site? Sentabi 
> What will be the default language of this web site? [en] ID
> Do you want to specify a URL prefix? e.g., http://example.com   (Y/n) n
> Do you want to enable article pagination? (Y/n) Y
> How many articles per page do you want? [10] 
> Do you want to generate a Fabfile/Makefile to automate generation and publishing? (Y/n) n
> Do you want an auto-reload & simpleHTTP script to assist with theme and site development? (Y/n) n
Done. Your new project is available at /home/sentabi/blog

3. Erban Posting Blog
Enggo kenca siban rangka blogta ndai gundari siban me isi blogta enda (posting ntah pe page). Adina lenga tehndu kai bedana posting ras page enda oge ka ulihi bas link Pelican ndai ;).
Gundari stuktur /home/sentabi/blog

/home/sentabi/blog
├── content
├── output
├── pelicanconf.py
└── publishconf.py
2 directories, 2 files

isi blogta kari siban bas folder content. Mari siban postingenta si pertama, editor si kupake emekap vim, enda banci gantindu alu pico, nano, gedit ras sidebanna. Siban me gelarna postingenna si pemena erban-blog-sipemena.md isi file enda ndai

$ vim content/erban-blog-sipemena.mdtitle: Erban Blog Sipemena
date: 2013-12-20 09:56
author: Sentabi
category: Berita
tags: blog
slug: erban-blog-sipemena
 
Enda me isi berita simeriah ndai, mbaru denga aku erban blog deh corah, ajak kerina temanndu sada kuta ngoge blog enda, ula er Facebook saja ngenca pendahinndu tep-tep wari.

Kai Category, Tags, Slug nen bas Writing content using Pelican

4. Generate Blog
Gundari waktuna si generate blogta ndai, gelahna banci si buka bas browser, perintahna emekap

pelican

dung kenca i pedalan perintah sidatas, bas terminal tampil

WARNING: Could not process output/index.html
'NoneType' object has no attribute 'lower'
WARNING: Could not process output/tags.html
'NoneType' object has no attribute 'lower'
WARNING: Could not process output/categories.html
'NoneType' object has no attribute 'lower'
WARNING: Could not process output/authors.html
'NoneType' object has no attribute 'lower'
WARNING: Could not process output/archives.html
'NoneType' object has no attribute 'lower'
Done: Processed 1 articles and 0 pages in 0.17 seconds.

gelahna banci i buka i browser, sekali nari pedalan perintah

cd output && python -m SimpleHTTPServer

buka alamat http://localhost:8000 ntah pe http://127.0.0.1:8000, tampilenna bagi gambar teruh enda
blog sipemena

Seh jenda enggo dung cara erban blog enda ndai, bas tulisen selanjutna pagi emekap carana upload ku Github Pages ras ngganti tampilenna (Theme)

Erban Blog Alu Pelican (Statik Blog Generator)
Tagged on:

One thought on “Erban Blog Alu Pelican (Statik Blog Generator)

Leave a Reply

Your email address will not be published. Required fields are marked *