See the final version live here!
Made using a template from the Agency template at Start Bootstrap. It features a smooth scrolling one page theme, with an external blogging section run by Jekyll. For more information about the site, please contact WiCS using the form on our official website.
-
Clone the repo
git clone https://github.com/CUWiCS/cuwics.github.io.git -
Download and install Ruby. We recommend using rbenv.
-
Confirm Ruby has been successfully installed by typing the following in terminal:
ruby --version -
Install RubyGems, the Ruby package manager. Depending on how you installed Ruby, you might already have this installed. You can check if it has been installed by typing the following in terminal:
gem --version -
Make sure you are in the repo directory in terminal before doing the following. Install Jekyll by typing the following in terminal:
gem install bundler jekyll -
Install the necessary packages by typing the following in terminal:
bundle install -
You can now use jekyll to open the website on a local server. Type
bundle exec jekyll servein terminal and browse to
http://localhost:4000. Any changes you make to the source files will be automatically updated on this server.
If you need to update your packages according to the Gemfile, just run bundle.
- Make sure that every profile photo is 225x225 pixels, otherwise the layout will break. Thanks!
- Make sure that every logo is put on a 300x300 pixel white square, otherwise the layout will break. Thanks!
-
Create a new file inside
_posts/yearnamedyear-month-day-postTitle.markdownwhereyear-month-dayis the date you wish to publish, andpostTitleis the title of the post. -
Every post should include YAML front matter and is written with Markdown.
http://jekyllrb.com/docs/frontmatter/
http://jekyllrb.com/docs/posts/ -
The basic front matter to include (including the 3 dashes):
--- layout: post title: "Title of blog post" date: year-month-day categories: news --- -
You can continue typing anything below that. For formatting, links, and images look up how to do that with Markdown! Otherwise, browse around existing posts to see examples.
-
To test how the post will look locally, run "
jekyll serve" from root folder.
-
The homepage is in
blog.html. This file only includes the posts section of the page. The rest of the page is in_layouts/blog.html. Theblog.htmlin the root folder is included in the section marked{{ content }}inside_layouts/blog.html. This "layout" file includeshead.htmlandfooter.htmlwhich are located in the same folder.head.htmlincludes css files. -
Individual post pages use
_layouts/post.html. It uses the sameblog.htmllayout as the blog home page, but the post content area is styled differently inpost.html
-
For each category of inquiry on the contact form (i.e. listserv announcement, company collaboration, anything else), emails get sent to different board members (i.e. Publicity Chair, Corporate Chairs, President, respectively).
-
To change the email addresses, go into
js/contact_me.jsto lines 25-34. Change email addresses as fit for the variableemail_add, add a second email if needed using the specifiedccvariable.