Giter Site home page Giter Site logo

jlhanson5 / nbclab.github.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rpoudel1/nbclab.github.io

0.0 1.0 0.0 87.9 MB

Website for the Neuroinformatics and Brain Connectivity Lab at FIU

Home Page: https://nbclab.github.io

HTML 65.12% Ruby 17.80% CSS 17.08%

nbclab.github.io's Introduction

The NBC Lab website

TODOS

See Issues on the site.

How to add content

Because the website code is hosted on GitHub, any lab member can contribute to the site. The general pattern will be: (1) Fork the repository to your own account; (2) Clone your fork to your laptop; (3) Make changes (e.g., add a new post to News or update your bio) to your local copy; (4) Test those changes by running a local version of the website; (5) If your changes don't break the website, commit your changes to your fork's remote; (6) Open a pull request from your fork to the main repository. Once the PR is open, the website administrator will review the changes and merge them into the main website.

In order to contribute, you must have a GitHub account and you must set up Jekyll on your laptop (in order to demo your changes).

Essentially, follow the instructions here. Namely, do the Requirements, Step 2.5, and Step 4. The rest of the steps are extraneous, I think (as long as you have your fork cloned locally).

1. Download Ruby and install bundler

# Install Ruby, if you don't have it
\curl -sSL https://get.rvm.io | bash -s stable
rvm install ruby-2.4.1
rvm use ruby-2.4.1 --default

# Install bundler
gem install bundler

2. Install Jekyll and other dependencies from the GitHub Pages gem

cd /location/of/repository/
bundle install

3. Make your changes

Just edit the files to make the changes you want.

4. Build your local Jekyll site

cd /location/of/repository/
bundle exec jekyll serve

5. Open the local site and check your changes

Open a browser and go to localhost:4000/. Any changes you make to any of the repository's files, except _config.yml will be reflected on the site after refreshing the page.

How the site is set up

The structure can be a little confusing, but I'll try to outline the basics. Just to be clear, I (TS) don't know much, and everything I do know is from playing with the site for a day and a half. Still, here is goes:

The different pages (e.g., News, Papers, Team) are organized in separate folders. Each folder contains a file for the page itself (index.html) and a folder containing markdown files with the different entries for the page (_posts/). Whether adding a new lab member, paper, poster, presentation, project, or piece of news, you will generally be creating one of these markdown files.

The markdown files have two sections, a header with metadata and the content below. How the post is formatted on the general page (e.g., how Taylor Salo's picture fits into the Team webpage) is determined by the index.html file mentioned above. How the post is formatted on its own page (e.g., Taylor Salo's member page) is determined by the theme for that post's category. Themes are saved as html files in _includes/themes/lab/. You can change these themes, but be aware that they will affect all other pages of the same type. For example, if you resize the photo field in the lab member theme file, then the photos of all lab members will be affected. NOTE: You might assume that the themes or similar info are in the _layouts folder, but that appears to be a red herring. Those pages just call the files in the themes folder.

Pictures, pdfs, etc. can be placed in assets/. However, because GitHub repositories are limited in terms of space, I would ultimately like to shift toward using a public Google Drive folder or something similar.

The markdown files for the homepage, the "About the site" page, and the "Contact us" page are all located in misc/_posts/. I only mention this because it wasn't obvious to me when I went searching for those pages.

License

The Drummond Lab template is released under an MIT license owned by D. Allan Drummond, who created the template (while incorporating elements from the Bedford lab website) and who also has one of the better GitHub usernames out there (and it's just his initials!).

nbclab.github.io's People

Contributors

dad avatar plusjade avatar tsalo avatar ewallace avatar benshe3 avatar groundh0g avatar marshallshen avatar studiomohawk avatar richardlitt avatar vattay avatar pierredup avatar rpoudel1 avatar koomar avatar subosito avatar danielfone avatar djoos avatar coding46 avatar kvannotten avatar lzcabrera avatar parnmatt avatar rsertelon avatar roman-yagodin avatar jogjayr avatar robot-c0der avatar nolith avatar alishutc avatar opie4624 avatar philips avatar caryalvrz avatar daz avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.