| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Website for the Expressive Intelligence Studio (EIS), a technical and cultural research group at UC Santa Cruz.
If you have Windows, you first need to install Ruby+Devkit from RubyInstaller, then you can continue with the steps below. See the docs here if you have trouble.
To start editing the site, install Jekyll:
gem install bundler jekyll
And then clone this directory and navigate into it:
git clone https://github.com/ExpressiveIntelligence/expressiveintelligence.github.io.git cd expressiveintelligence.github.io
Then you can edit files, and see your changes by using Jekyll to build the static html and host it on a local server:
jekyll serve
Use a browser to navigate to the server address given by the command (e.g., http://127.0.0.1:4000/).
Stop the server with ctrl-c.
Unitl recently, a cron job pulled updates from gihub to the live site (we should get this set up). For now, you need to follow these instructions instead.
The information between --- lines at the top of the file is Jekyll front matter. The presence of front matter indicates to Jekyll that it should somehow transform this file when the site is built, for instance by wrapping its content in the page template to add stuff like the site-wide header. Files that don't have front matter will be ignored by Jekyll and served as normal static files, without any transformation.
Jekyll uses the Liquid template language to handle things like iterating over lists and substituting the values of variables into page content. Double curly braces (e.g. {{some_variable}}) mean "evaluate whatever's wrapped inside as a Liquid expression, then substitute the resulting value into the page content." Single curly braces with percent signs (e.g. {% some gibberish %}) are used for more "magical" constructs like if/else conditionals, variable assignment, iteration over lists, and so on.
It's a matter of personal preference! I think URLs look cleaner without unnecessary filetype suffixes, and this is a way to achieve the cleaner URLs I crave.
A cron job on the BSOE server regularly pulls down the contents of the _site/ directory from this repository and makes them available at https://eis.ucsc.edu. As a result, only changes that are made to the _site/ directory will be reflected on the official version of the site. This is why it's important to run jekyll build (and commit any resulting changes to the _site/ directory) before you push an updated version of the site to this repo.
Including the _site/ directory in the repository is unusual for a GitHub Pages site, but makes it possible for us to automatically mirror the site to the BSOE server without installing Jekyll there as well. We should probably find a better way to go about handling the deploy process in the future.
| Back | FazBrowse Home | New Git URL |