new NAACL website using Jekyll on github hosting and layout coded using twitter bootstrap css (v3.0)
contact Michael White or 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).
- Run ./new.rb "Title of post" to create a new post in the _posts directory. It creates a file with the current date.
- The basic layout of the site is defined in _layouts/default.html
- Add new links to the menu bar by editing the section in the above file called
- Copy the previous years officers file to the new year, e.g. copy officers-2012.textile to 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 %}
- To modify index.html, you can check the version history for similar past edits, as the files in _includes mentioned next are out of date
- To advertise an upcoming conference you can have a look at the NAACL 2013 hero unit in _includes/naacl2013_hero_div
- To use the NAACL poster image instead you can have a look at the default alert unit in _includes/default_alert_div
- Add a new news post about the election with the candidates nominated.
- Add a new year directory in ./elections
- Add it to the list in ./elections/index.textile
- Optionally, change the top banner in ./_layouts/default.html to change the "naacl.org" button to "Elections 20XX!" and link to "{{ site.baseurl }}/posts/name-of-post-above/index.html"