Skip to content

cybersecure/blog

Repository files navigation

CyberSecure blog

This is the source of the cybersecure blog.

STRUCTURE

  • This repositry has two branches: master & gh-pages

    • master - Make all the changes here, this should reflect any drafts or changes to style we need to make.
    • gh-pages - This is the published branch of the repo. Anything that is pushed to this branch on github will be published to the live site.
  • All the posts are located under _posts folder. Each individual file is a post in itself.

    • Post file needs the following parts
        ---
        layout: post
        title: title of the post
        ---
        p(meta). date of the publication - place of the publication ( this part is optional )
      
    • Each post file is named in the following pattern: year-month-date-title-of-the-post.textile
    • All the content is written in textile markup. Please read about it before writing a post.
  • All the changes can be seen live on the development machine by following this procedure.

    • Make the changes and start the server by running foreman start
    • Visit the webpage on port 4000 on the local machine.

HOW TO PUBLISH

Follow these steps to publish a new post:

  • Checkout branch master : git checkout master
  • Make a copy of one of the previous posts.
  • Change the name in the post pattern : year-month-date-title-of-the-post.textile
  • Change the title and the meta information for the post.
  • Write the post in textile markup and save the file.
  • Preview the changes by running the dev server foreman start and visiting http://storage1:4000.
  • Add the new file to git. git add .
  • Commit the changes to git git commit
  • Push the changes to github git push origin master
  • Checkout branch gh-pages : git checkout gh-pages
  • Merge the master branch into the gh-pages branch git merge master
  • Push the changes to github git push origin gh-pages

About

CyberSecure Blog

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages