new NAACL website using Jekyll on github hosting and layout coded using twitter bootstrap css (v2.1)
contact Anoop Sarkar for details
- The standard way to add information to the website is to first clone the repository from github (git clone git@github.com:naacl-org/naacl-org.github.com.git) and then add the files, remembering to git add, commit and then push to github.com all your additions.
- When adding links to material within the website do not use the full URL with naacl.org or naacl-org.github.com. Instead use "{{ site.baseurl }}" as part of the href which is automatically set to the base URL, e.g. "{{ site.baseurl }}/about/index.html" would be a href link to the contents of "about/index.textile" in the raw jekyll source.
- Put images for new posts into the images directory. Remember to git add, commit and push the files to the github repo.
- Adding a new file in the _posts directory adds a new post after you git add the file and git commit and push it to github.com
- The file can be in textile or markdown or simply html format. You must add the header information (just copy and edit the header from another post).
- The basic layout of the site is defined in _layouts/default.html
- The Navigation side bar is generated using the following code in default.html:
- Navigation {% assign pages_list = site.pages %} {% assign group = 'navigation' %} {% include pages_list %}
- All pages which have 'group: "navigation"' included in their header information (see, e.g., about/index.textile) are automatically included in the above Navigation links for the website.
- Copy the previous years officers file to the new year, e.g. copy officers-2012.textile to officers-2013.textile
- Edit the previous year file to remove the line 'group: "navigation"', e.g. remove this line from officers-2012.textile
- Keep the line 'group: "navigation"' in the new file, e.g. keep this line in officers-2013.textile
- The list of previous years for all the officers is stored in the file _includes/officers_year_list -- Change this file to add the new year.
- If the number of years grows too large, edit the file _includes/officers_year_list to add a limit: change '{% for year in (2000..2012) %}' to '{% for year in (2000..2012) limit:5 %}'
- All the minutes are stored in the minutes directory.
- Create a new directory for the new year, e.g. minutes/2013 and then add the files as in previous years.
- You can add as many supplementary files (PDF or otherwise) as you need but then you should create a new index.textile in that year that has a listing of all the files.
- You must then change minutes/index.textile and add the new year to the loop that creates the index: {% for year in (2000..2012) %}
- All the JHU summer school material is in the summerschool directory.
- Just copy the last year file to a new one, e.g. copy the contents of summerschool/2012 to summerschool/2013 and then edit the files with the new information.
- You must then change summerschool/index.textile and add the new year to the loop that creates the index: {% for year in (2011..2012) reversed %}
- The central view of index.html is a div called the "hero" unit or can be an "alert" unit
- To advertise an upcoming conference you can copy and use the NAACL 2012 hero unit in _includes/naacl2012_hero_div
- To use the NAACL poster image instead you can copy and use the default alert unit in _includes/default_alert_div