Skip to content

Commit e92ceb2

Browse files
committed
Added web site editing instructions and updated README
1 parent eabff01 commit e92ceb2

2 files changed

Lines changed: 53 additions & 2 deletions

File tree

InstructionSiteUpdates.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Editing OHW web site content and layout
2+
3+
The OceanHackweek web site is a Jekyll site that uses the [Jekyll Spectral theme.](http://jekyllthemes.org/themes/spectral/)
4+
5+
### Location of main content documents
6+
7+
Relevant, editable content is organized in the following directories and files:
8+
9+
- [_config.yml](https://github.com/oceanhackweek/oceanhackweek.github.io/blob/master/_config.yml): core Jekyll site configuration, including some banner/header/footer text and urls
10+
- [jekyll-spectral-theme/_includes](https://github.com/oceanhackweek/oceanhackweek.github.io/tree/master/jekyll-spectral-theme/_includes) directory: front page content, broken up into sections, one markdown file per section.
11+
- The layout templates for sections and section order are controlled by [jekyll-spectral-theme/_layouts/default.html](https://github.com/oceanhackweek/oceanhackweek.github.io/blob/master/jekyll-spectral-theme/_layouts/default.html)
12+
- Each section specifies a template for its layout, where the templates available are found in [jekyll-spectral-theme/_layouts](https://github.com/oceanhackweek/oceanhackweek.github.io/tree/master/jekyll-spectral-theme/_layouts)
13+
- Section two ("Information for Applicants") is a special beast. While [jekyll-spectral-theme/_includes/section-two.html](https://github.com/oceanhackweek/oceanhackweek.github.io/blob/master/jekyll-spectral-theme/_includes/section-two.html) orchestrates it, the directives there point to content to be grabbed from tags `title` and `description` in [_pages/01-applicants.md](https://github.com/oceanhackweek/oceanhackweek.github.io/blob/master/_pages/01-applicants.md)
14+
- [_pages](https://github.com/oceanhackweek/oceanhackweek.github.io/tree/master/_pages): content for extra pages, including all the pages accessible via the drop-down menu on the upper right of the page.
15+
- The destination page file name (what a user sees) is *not* the source markdown file name on the repository; instead, the destination file name is found in the `permalink` tag within the markdown file. For example, for [_pages/01-applicants.md](https://github.com/oceanhackweek/oceanhackweek.github.io/blob/master/_pages/01-applicants.md), the destination file name is [applicant-info.html](https://oceanhackweek.github.io/applicant-info.html)
16+
17+
There might be more; these are the ones I'm certain about.
18+
19+
20+
### Editing and testing locally (in your computer) with Jekyll
21+
22+
Clone the GitHub repo locally, then edit the content of files following the documentation in the previous section. To view your changes, rebuild the site using Jekyll.
23+
24+
Install Jekyll locally through conda with:
25+
26+
```shell
27+
conda create --name JEKYLL rb-bundler compilers
28+
conda activate JEKYLL
29+
bundle install
30+
```
31+
32+
To build and serve the site, run this statement:
33+
34+
```shell
35+
bundle exec jekyll serve
36+
```
37+
38+
The site will be available at `http://127.0.0.1:4000/`.

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1-
# oceanhackweek.github.io
1+
# OceanHackweek web site
22

3-
2018 is archived, this is the 2019 repo.
3+
This is the Github repository for the OceanHackweek (OHW) webstite, https://oceanhackweek.github.io. It's built on [Jekyll](https://jekyllrb.com).
4+
5+
**Instructions for editing the content of the site** are found in [InstructionSiteUpdates.md](InstructionSiteUpdates.md). This document lays out which files control what content and provide instructions for deploying Jekyll locally and running it to update your local edits before submitting a pull request.
6+
7+
8+
## Archived sites and pages from previous years
9+
10+
### OHW 2019
11+
12+
Currently the materials from 2019 are archived in a GitHub branch, https://github.com/oceanhackweek/oceanhackweek.github.io/tree/ohw19archive. Though the individual markdown pages are accessible, the site is not currently viewable directly as a web site proper. This repo hosts pages accessible from the upper-right drop-down menu; these are found in the `_pages` directory. The content for the main, "front" page is found on the Jekyll sub-model repo https://github.com/oceanhackweek/jekyll-spectral-theme, in the `_includes` directory.
13+
14+
### OHW 2018
15+
16+
The site is archived at https://github.com/oceanhackweek/ohw2018 and is viewable at https://oceanhackweek.github.io/ohw2018/. In addition, currently (3/17/2020) the 2018 Projects and Schedule pages are visible from the drop-down menu on the main site, and the corresponding markdown pages are found at https://github.com/oceanhackweek/oceanhackweek.github.io/blob/master/_pages/z-projects_2018.md and https://github.com/oceanhackweek/oceanhackweek.github.io/blob/master/_pages/z-schedule_2018.md, respectively. We plan to remove these soon.

0 commit comments

Comments
 (0)