Wednesday, July 6, 2016

Create Personal Website with Pelican - Part 1

Recently, I need create a personal website to advertise myself (I am about to graduate next year, so a personal website seems a must have to find a job ^)^). After a simple search, I found, you can create the website by using pelican, which is powered by Python! I immediately decided to create  a website using it.

There're many blogs showing how to install pelican, so I will skip it. What I found missing from most of the online blogs are how to build a personal website step by step, especially some details, so I will try to fill it up. To make this simple, I will use the site I created as an example. You can see my website here.

Let's start after you installed Pelican, and the Markdown extension, see here if you don't know how to install, or you can check out this blog.

Step 1:
Follow the documentation to run the pelican-quickstart to create the website folder.  Most of the questions you can use default options, and your own personal information. (I use SSH later to upload my website, so I put my username and ssh host url there).

Step 2:
A quick understand of the folder structure:
yourproject/ ├── content │ └── (pages)
├── output ├── develop_server.sh ├── fabfile.py ├── Makefile ├── pelicanconf.py └── publishconf.py
  • pelicanconf.py is the general configuration file
  • publishconf.py is the configuration file for publishing the site
  • fabfile.py is the configuration file for tool Fabric that you can automize your develop process later.
  • Makefile is also aimed at automizing the develop process
  • content folder will store all the different files you will develop, for our case, markdown files or images we need embed into the site. For example, you can have a pages folder to store all the different pages, and an image folder to store all the images.
  • output folder will have all the files that created for your site, for example, html, css, and so on.

Step3:
You can create folders in the content folder for different purposes. For example, you can create a pages folder to store all the pages, and images folder to store all the images you need.

After you created the pages folder, you can put the pages you want on your website into this folder. For example, let's put 3 pages into this folder, Home.md, Fun.md, and About.md. Here's the example for the Home.md:
Title: Home
Date: 2016-06-10 15:30
URL:
save_as: index.html     

---  
This is my home page!
---

## News and Events:
2016/06/10 I create my home page 
I think I don't need to explain this, if you are not familiar with Markdown, checkout this great cheatsheet. The only thing you should pay attention to in this page is the URL and save_as, this is telling pelican that we want this page as the default page when someone first entered into our website. You only need this in the home page, for others, you don't need this.

Step4:
Now you can build you website using 'make html', and this will generate the website to the output folder. To see it, first start a server by using the command 'make serve' in the output folder, then you can check the website at 'http://localhost:8000/'.

You notice that, it all looks good, except the tabs are in reverse order 'About', 'Fun', and 'Home'. To change this, just add PAGEORDERBY = 'date' to your pelicanconf.py file. Now you should see them in the correct order.

Now you have the website! You can find generated files at Qingkai's Github. And in the next blog - part 2, we will see how we change theme, add images, videos, attach files, add google analytics, and publish your site!

26 comments:

  1. Take the time to move forward in your life. Personal development means many things to many people. Whether you decide to learn a new skill, begin to exercise, or hire a life coach, you'll be taking the right steps to a wonderful journey. This contact form

    ReplyDelete
  2. hello admin.
    Really happy to read this blog.I thing you are a skilledd blogger. you show youe tallent in this blog.Thanks for sharing.keep sharing more blogs.

    White Label Website Builder

    ReplyDelete
  3. The website is looking bit flashy and it catches the visitors eyes. Design is pretty simple and a good user friendly interface.
    Website solution Pakistan

    ReplyDelete
  4. Best offshore hosting and DMCA ignore Hosting with 99.9% Up time Guarantee Offshore host by webcare360.com

    ReplyDelete
  5. Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts.
    webhosting

    ReplyDelete
  6. Here in this blog, words themselves are making that situation where there is a great deal of pandemonium and good fortune alongside a quiet separation. Seldom found to see such ability and excitement. fast hosting

    ReplyDelete
  7. Only a good Website Development company can help you have an amazing website for your business. Get in touch with Flymedia Technology which can help you to get the finest Website development service in India.

    ReplyDelete
  8. We supply and retail good range of White runtz, Buy Pink runtz strain online, Buy Moonrocks Online,
    Order Pink runtz strain online, White runtz weed for sale, Buy White runtz weed online, Where to buy White runtz weed,
    vape pen cartridges for sale, buy vape pen cartridges online, cannabis oil for sale,Jungle Boys A vendre En Ligne
    Buy Cannabis oil online, Buy cbd oil online, buy Smart bud cans online , buy Brass knuckles vape online,
    buy Sundae Driver Strain online, Sundae Driver Strain for sale, Where can I find real Jungle Boys Weed online
    Candy Cake Exotic Weed for sale, Cookies Mint Chocolate Weed, Buy Jungle Boys, https://whiteruntz.co/
    order cbd oil online,buy Lemon slushie strain online, buy Biscotti strain online, Buy Jungle Boys weed World wide Delivery
    Cannabis Oil for sale, order weed online, Rick Simpson Oil for sale Australia, Legit Dispensary To Buy Jungle Boys Weed
    buy jungle cake, Buy CBD Hemp Oil, Buy Cannabis Oil, Buy THC Cartridges,Pinkman Goo Exotic Weed for sale,
    Big Smokey Farms Cali Tins for sale,Biscotti ,Biscotti Boyz Cali Weed for sale online
    Blue Zkittlez Cali Weed for sale, Blue Fire OG By Space Monkey Meds, Buy Cookie Monster Cali Weed Tins Online
    Dank vapes durban poison, Do-Si-Do by Cali Cans for sale, Buy Marijuana Online, order weed for sale online
    THC Oil Cartridges, Biscotti strain for sale, order Biscotti strain online, Rick Simpson Oil for sale Australia,
    Buy Gushers weed online, gushers weed dispensary, buy Cherry punch strain online, New California Strains For Sale online
    medical marijuana for joint pain- medical marijuana for sale near me, White Runtz Cannabis Strain Information
    buy purple kush online, buy pink runtz in Uk , buy rove cartridges in UK, Where To Buy Jungle Boys Online,Jungle Boys A vendre En Ligne
    buy purple punch online, buy Gushers weed strain online, buy billy kimber OG online, Buy Rare Genetikz Online
    Brass knuckles vape for sale,Jungle Boys for sale in London, Jungle Boys Weed For Sale FRANCE, Jungle Boys Weed For Sale in UK

    CONTACT US:

    Website:

    https://whiteruntz.co/

    Whatssap: +1 (352) 559-6491

    Wickr ID: WEEDSSHOP



    ReplyDelete
  9. Your complete Facial Attendance & access Control Solution at one place
    Scalable solution for your projects with reliability
    access control system

    ReplyDelete
  10. Thanks for sharing this amazing post. I am a Web Developer at BigCircleMedia that is a wordpress web development company which provides web development services for small business. It will develop you the best website by our best and expert PHP developer so it can help your business grow and get more traffic.

    ReplyDelete
  11. Did you know RUNTZ was one of the best strains in 2020, just check out here, for more information.

    ReplyDelete
  12. Five weeks ago my boyfriend broke up with me. It all started when i went to summer camp i was trying to contact him but it was not going through. So when I came back from camp I saw him with a young lady kissing in his bed room, I was frustrated and it gave me a sleepless night. I thought he will come back to apologies but he didn't come for almost three week i was really hurt but i thank Dr.Azuka for all he did i met Dr.Azuka during my search at the internet i decided to contact him on his email dr.azukasolutionhome@gmail.com he brought my boyfriend back to me just within 48 hours i am really happy. What’s app contact : +44 7520 636249‬

    ReplyDelete
  13. Buy Thc Oil. Terpenes are added back to the completed oil, bringing about a full-range cannabinoid profile with solid THC intensity. Now buy marijuana also.

    ReplyDelete
  14. Buy Runtz Weed Online is accessible in 28 grams Runtz Weed and 56 grams to permit you to devour over the long haul or with companions. Hurry up to order now!

    ReplyDelete
  15. Buy weed online, For Your Medical And Therapeutic Benefits.

    ReplyDelete
  16. Hii,Thanks for this info.Buy Smart Buds Online with Thconlinedispensary. We provide our customers with very good quality smart buds.100% Organic Free of Pesticides Lab tested cannabis, THC Online dispensary puts at your disposal the many unique and strong flavors of smart buds . It is premium cannabis of high quality at a very good price. Individuals or wholesalers buy smart buds cans online from us. THC is the most reliable and fast sales agency to get it to you. Buy smarts buds weed online is also a journey through its multiple tropical flavors. You can certainly place the order and we will deliver the product safely. Visit us!!

    ReplyDelete
  17. The Vape Pen Cartridges have one of the most authentic and best selling products you will ever find, you can check them out here, for more information.

    Buy Vape Pen Cartridges UK

    ReplyDelete
  18. Buy Kingpen online. Ruler pen oil comes in our own best in class producing lab. It is distil multiple times delivering a top notch item which breezes through exacting subjective and quantitative assessments.

    ReplyDelete
  19. First and foremost, are you looking for where you can buy dabwoods carts online? If along these lines, search no more since you can get dabwoods here without any problem.

    ReplyDelete
  20. Excellent Article, I just read and shared it to my friends as it is very useful for everyone. I will learn a lot of new stuff right from this article. You can check our services of

    ecommerce services provider in india

    ecommerce catalogue management services

    ReplyDelete
  21. Excellent Article, I just read and shared it to my friends as it is very useful for everyone. I will learn a lot of new stuff right from this article. You can check our services of
    ecommerce catalogue management services

    catalogue management services

    ReplyDelete
  22. Hi There,
    Thank you for sharing the knowledgeable blog with us I hope that you will post many more blog with us:-
    Dm: @cannabinoidsreallife to order
    Beating all tags! Contact me here or message me for my sessions.
    Click here for more information:- more info

    ReplyDelete