Skip to content

Commit

Permalink
fix create page and add readme text
Browse files Browse the repository at this point in the history
  • Loading branch information
sachiniyer committed Jul 28, 2021
1 parent 0ea541a commit d47b4d5
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 25 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ config.toml in the root directory and homepage.yaml in the /data directory is wh
Add page in config.toml (in root directory). Then create a markdown (.md) file in the content directory. This will add a new page to the website and will show up in the directory.

## Changing css/js
/themes/omega/assets contains the css and js for the website which can be called in the markdown files of the pages. You can also contain html snippets in the markdown files. You can also change some of the main css colors in /themes/omega/assets/scss/_variables.scss.
themes/omega/assets contains the css and js for the website which can be called in the markdown files of the pages. You can also contain html snippets in the markdown files. You can also change some of the main css colors in /themes/omega/assets/scss/_variables.scss.

## Customizing data
The two places to customize data are the content folder and the data folder. The data folder has yaml files and the content folder has md files. If I wanted to customize the create page for example, I would customize the tile and description in the md file under content, and I would customize the rest in the yaml file under data.
1 change: 1 addition & 0 deletions content/.#create.md
23 changes: 1 addition & 22 deletions content/create.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,6 @@
---
title : "Products"
layout: "create"
description: "This is some text that I am hoping works here"

product:
enable : true
section : "Products"
title : "Some Of Our Best Products"
content : "See the innovation that has come through the Rio way. As an advancement company, the goal is to continuously find areas to help business push forward. Below you can find the first product available to help you do so."
product_item:
- title : "Comeon"
image : "images/product/product-03.jpg"
content : "Our members apply their knowledge to design and build advanced robots, getting hands on experience outside the lecture hall."
project_url : "create"

- title : "Community"
image : "images/product/product-02.jpg"
content : "We inspire students of all ages to pursue a STEM career through community mentorship. In 2018 - 2019, our team contributed a total of 1,500 hours of community service."
project_url : "community"

- title : "Competition"
image : "images/product/product-03.jpg"
content : "We participate in intercollegiate robotics competitions, competing against like minded engineering students from all over the country. Currently, we are competitors in the NASA Robotic Mining Competition"
project_url : "https://www.nasa.gov/offices/education/centers/kennedy/technology/nasarmc.html"
description: ""

---
33 changes: 33 additions & 0 deletions data/create.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
title : "Products"
description: ""

product:
enable : true
section : "Products"
title : "Some Of Our Best Products"
content : "See the innovation that has come through the Rio way. As an advancement company, the goal is to continuously find areas to help business push forward. Below you can find the first product available to help you do so."
product_item:
- title : "Comeon"
image : "images/product/product-03.jpg"
content : "Our members apply their knowledge to design and build advanced robots, getting hands on experience outside the lecture hall."
project_url : "create"

- title : "Community"
image : "images/product/product-02.jpg"
content : "We inspire students of all ages to pursue a STEM career through community mentorship. In 2018 - 2019, our team contributed a total of 1,500 hours of community service."
project_url : "community"

- title : "Competition"
image : "images/product/product-03.jpg"
content : "We participate in intercollegiate robotics competitions, competing against like minded engineering students from all over the country. Currently, we are competitors in the NASA Robotic Mining Competition"
project_url : "https://www.nasa.gov/offices/education/centers/kennedy/technology/nasarmc.html"

- title : "Competition"
image : "images/product/product-03.jpg"
content : "We participate in intercollegiate robotics competitions, competing against like minded engineering students from all over the country. Currently, we are competitors in the NASA Robotic Mining Competition"
project_url : "https://www.nasa.gov/offices/education/centers/kennedy/technology/nasarmc.html"

- title : "Competition"
image : "images/product/product-03.jpg"
content : "We participate in intercollegiate robotics competitions, competing against like minded engineering students from all over the country. Currently, we are competitors in the NASA Robotic Mining Competition"
project_url : "https://www.nasa.gov/offices/education/centers/kennedy/technology/nasarmc.html"
Binary file removed themes/omega/layouts/_default/.career.html.swp
Binary file not shown.
4 changes: 2 additions & 2 deletions themes/omega/layouts/_default/create.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ define "main" }}

{{ if site.Data.homepage.product.enable }}
{{ with site.Data.homepage.product }}
{{ if site.Data.create.product.enable }}
{{ with site.Data.create.product }}
<section class="products" id="products">
<div class="bg">
<img src="{{`images/section-bg-2.jpg` | absURL}}" class="img-fluid" alt="section-bg">
Expand Down

0 comments on commit d47b4d5

Please sign in to comment.