Skip to content

aivillage/aiv_website

Repository files navigation

SETUP

Running the site locally

I recommend beginning by forking my repository (https://github.com/aivillage/aiv) and then cloning the repository to begin setup locally. The site should be hosted in the gh-pages branch of the repository to be hosted on GitHub pages.

Once the site is cloned locally, cd into the directory of the site and run docker run -p 4000:4000 -v $(pwd):/site bretfisher/jekyll-serve and the site should be running locally at localhost:4000/.

MAINTENANCE

Main Pages and Navigation

The main pages of the site can be found in the _"pages" folder as markdown files. In the YAML front matter of each markdown file I have set a permalink for each page. These links are then used in the site navigation. To alter the navigation of the site, change the key/value pairs in "_data/navigation.yml"

Images and Variables

When linking to images or other files, I recommend using site variables to keep the links changing dynamically between local development and the public site. For example, {{ site.url }}{{ site.baseurl }}/assets/images/default.jpeg will link to https://yourusername.github.io/yourrepo/ assets/images/default.jpeg when running on GitHub Pages and https://localhost:4000/yourrepo/ assets/images/default.jpeg when running locally.

Posts and Authors

To add new articles to the website, drop the markdown file in the "_posts" folder named in the format "YYYY-MM-DD-title-content.md" so Jekyll can sort the posts by recency. This will update the posts on the Press page.

Each post has an author tab displayed on the left by default, this can be disabled in the YAML front matter by adding author_profile: false. To assign an author to the article, set author: Author Name in the front matter of the post. Add and edit author information in "_data/authors.yml". I added some default incomplete author information in that file already, but it needs to be updated.

Events

To add events, manually paste in the new event schedule table to "events.markdown". Adding a <h2> header above the table will automatically create an anchor for the navigation on the right for ease of navigation. Older events that did not follow the table format also have a <h2> header followed by a link to the markdown file describing the event. These older schedules can be found in the "schedules" folder.

Leadership Team

The leadership team page is currently full of default entries. This page is simply laid out with two two-column tables. In the first column, link to the portrait image that will be held in "/assets/images" and use site variables to keep the linking dynamic. Change the name of the member in the same column of the table directly below the image. In the second column, add information about each member.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published