From a9859b4a796909f94e8204c13d47d057a5109414 Mon Sep 17 00:00:00 2001 From: Ashassins Date: Mon, 16 Jan 2023 00:06:12 -0500 Subject: [PATCH 1/2] wtf is this shit --- docs/Gemfile.lock | 3 ++ docs/_config.yml | 53 ++++++++++++++++++++ docs/_pages/project-archive.md | 10 ++++ docs/_projects/2021-vex-ai.md | 61 +++++++++++++++++++++++ docs/_projects/2022-2023-eye-detection.md | 30 +++++++++++ docs/projects.markdown | 22 ++++++-- 6 files changed, 176 insertions(+), 3 deletions(-) create mode 100644 docs/_pages/project-archive.md create mode 100644 docs/_projects/2021-vex-ai.md create mode 100644 docs/_projects/2022-2023-eye-detection.md diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock index 7aff200..0d0b0c9 100644 --- a/docs/Gemfile.lock +++ b/docs/Gemfile.lock @@ -216,6 +216,8 @@ GEM racc (~> 1.4) nokogiri (1.13.10-x64-mingw-ucrt) racc (~> 1.4) + nokogiri (1.13.10-x86_64-darwin) + racc (~> 1.4) nokogiri (1.13.10-x86_64-linux) racc (~> 1.4) octokit (4.25.1) @@ -262,6 +264,7 @@ GEM PLATFORMS x64-mingw-ucrt x64-unknown + x86_64-darwin-22 x86_64-linux DEPENDENCIES diff --git a/docs/_config.yml b/docs/_config.yml index af8bd63..5477a87 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -35,6 +35,59 @@ plugins: - jekyll-feed - jekyll-include-cache +# Collections +collections: + docs: + output: true + permalink: /:collection/:path/ + blogs: + output: true + permalink: /:collection/:path/ + projects: + output: true + permalink: /:collection/:path/ + +# Defaults +defaults: + # _posts + - scope: + path: "" + type: posts + values: + layout: single + author_profile: true + read_time: true + comments: true + share: true + related: true + # _pages + - scope: + path: "_pages" + type: pages + values: + layout: single + author_profile: true + # _docs + - scope: + path: "" + type: docs + values: + layout: single + read_time: false + author_profile: false + share: false + comments: false + sidebar: + nav: "docs" + # _projects + - scope: + path: "" + type: project + values: + layout: single + author_profile: false + share: true + # Exclude from processing. # The following items will not be processed, by default. # Any item listed under the `exclude:` key here will be automatically added to diff --git a/docs/_pages/project-archive.md b/docs/_pages/project-archive.md new file mode 100644 index 0000000..3ba6cf8 --- /dev/null +++ b/docs/_pages/project-archive.md @@ -0,0 +1,10 @@ +--- +title: Projects +layout: collection +permalink: /project-archive/ +collection: projects +entries_layout: grid +classes: wide +--- + +Sample document listing for the collection `_projects`. \ No newline at end of file diff --git a/docs/_projects/2021-vex-ai.md b/docs/_projects/2021-vex-ai.md new file mode 100644 index 0000000..912349e --- /dev/null +++ b/docs/_projects/2021-vex-ai.md @@ -0,0 +1,61 @@ +--- +title: "VEX AI: BLRS x SIG AI" +header: + video: + id: -PVofD2A9t8 + provider: youtube +categories: + - Layout + - Uncategorized + - project +tags: + - video + - layout +--- + +This post should display a **header with a responsive video**, if the theme supports it. + +## Settings + +| Parameter | Required | Description | +|---------- |--------- | ----------- | +| `id` | **Required** | ID of the video | +| `provider` | **Required** | Hosting provider of the video, either `youtube` or `vimeo` | + +### YouTube + +To embed the following YouTube video at url `https://www.youtube.com/watch?v=-PVofD2A9t8` (long version) or `https://youtu.be/-PVofD2A9t8` (short version) into a post or page's main content you'd use: + +```liquid +{% raw %}{% include video id="-PVofD2A9t8" provider="youtube" %}{% endraw %} +``` + +{% include video id="-PVofD2A9t8" provider="youtube" %} + +To embed it as a video header you'd use the following YAML Front Matter + +```yaml +header: + video: + id: -PVofD2A9t8 + provider: youtube +``` + +### Vimeo + +To embed the following Vimeo video at url `https://vimeo.com/212731897` into a post or page's main content you'd use: + +```liquid +{% raw %}{% include video id="212731897" provider="vimeo" %}{% endraw %} +``` + +{% include video id="212731897" provider="vimeo" %} + +To embed it as a video header you'd use the following YAML Front Matter + +```yaml +header: + video: + id: 212731897 + provider: vimeo +``` \ No newline at end of file diff --git a/docs/_projects/2022-2023-eye-detection.md b/docs/_projects/2022-2023-eye-detection.md new file mode 100644 index 0000000..ade4951 --- /dev/null +++ b/docs/_projects/2022-2023-eye-detection.md @@ -0,0 +1,30 @@ +--- +title: "Foo Bar Identity" +excerpt: "Foo Bar design system including logo mark, website design, and branding applications." +# header: +# image: /assets/images/foo-bar-identity.jpg +# teaser: /assets/images/foo-bar-identity-th.jpg +sidebar: + - title: "Role" + image: http://placehold.it/350x250 + image_alt: "logo" + text: "Designer, Front-End Developer" + - title: "Responsibilities" + text: "Reuters try PR stupid commenters should isn't a business model" +# gallery: +# - url: /assets/images/unsplash-gallery-image-1.jpg +# image_path: assets/images/unsplash-gallery-image-1-th.jpg +# alt: "placeholder image 1" +# - url: /assets/images/unsplash-gallery-image-2.jpg +# image_path: assets/images/unsplash-gallery-image-2-th.jpg +# alt: "placeholder image 2" +# - url: /assets/images/unsplash-gallery-image-3.jpg +# image_path: assets/images/unsplash-gallery-image-3-th.jpg +# alt: "placeholder image 3" +--- + +Pictures of Goats section West Seattle Blog dingbat newspaper rubber cement Google+ newsroom cafe news.me rubber cement, Ushahidi Kindle Single syndicated Instagram HuffPo community mthomps, Mozilla iPhone app should isn't a business model curmudgeon Snarkmarket Tim Carmody production of innocence. Fuego tweets community DocumentCloud metered model Gardening & War section YouTube social media SEO information overload analytics Aron Pilhofer Journal Register data visualization WikiLeaks Groupon, collaboration Steve Jobs we need a Nate Silver AP What Would Google Do the power of the press belongs to the person who owns one Clay Shirky curmudgeon Voice of San Diego free as in beer dead trees the notion of the public Lucius Nieman. + + +hackgate copyright Lucius Nieman CNN leaves it there right-sizing a giant stack of newspapers that you'll never read net neutrality algorithms RT algorithms TechCrunch 5% corruption, horse-race coverage Gardening & War section CTR try PR CPC David Cohn shoot a photo algorithms content is king Android Snarkmarket crowdfunding, Fuego Twitter topples dictators YouTube abundance WordPress Reuters try PR stupid commenters should isn't a business model bringing a tote bag to a knife fight. \ No newline at end of file diff --git a/docs/projects.markdown b/docs/projects.markdown index e7e95f5..24f0548 100644 --- a/docs/projects.markdown +++ b/docs/projects.markdown @@ -1,7 +1,23 @@ --- -layout: single -title: Projects +title: "Projects" +layout: archive permalink: /projects/ --- +Scroll through our archive of student-led projects! -Project info to be added! +{% capture written_label %}'None'{% endcapture %} + +{% for project in site.projects %} + {% unless project.output == false or project.label == "posts" %} + {% capture label %}{{ project.label }}{% endcapture %} + {% if label != written_label %} +

{{ label }}

+ {% capture written_label %}{{ label }}{% endcapture %} + {% endif %} + {% endunless %} + +{% endfor %} \ No newline at end of file From 9a1c624ca1aa99e3ad336ed0b1452f2e6be27478 Mon Sep 17 00:00:00 2001 From: Ashassins Date: Fri, 27 Jan 2023 14:37:01 -0500 Subject: [PATCH 2/2] add config.dev.yml, get projects to recognize as a category? --- docs/_config.dev.yml | 11 +++++++++++ docs/_config.yml | 13 +++++++++++++ docs/_data/navigation.yml | 2 +- docs/_projects/2021-vex-ai.md | 3 +-- docs/projects.markdown | 24 +++++------------------- 5 files changed, 31 insertions(+), 22 deletions(-) create mode 100644 docs/_config.dev.yml diff --git a/docs/_config.dev.yml b/docs/_config.dev.yml new file mode 100644 index 0000000..6a5eb6a --- /dev/null +++ b/docs/_config.dev.yml @@ -0,0 +1,11 @@ +# url: http://localhost:4000 + +analytics: + provider: false + +comments: + disqus: + shortname : "mmistakes-dev" + +sass: + style: expanded \ No newline at end of file diff --git a/docs/_config.yml b/docs/_config.yml index 5477a87..25d28a3 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -87,6 +87,19 @@ defaults: layout: single author_profile: false share: true + # _announcements + - scope: + path: "" + type: announcements + values: + layout: single + author_profile: false + share: true + +# Sass/SCSS +sass: + sass_dir: _sass + style: compressed # http://sass-lang.com/documentation/file.SASS_REFERENCE.html#output_style # Exclude from processing. # The following items will not be processed, by default. diff --git a/docs/_data/navigation.yml b/docs/_data/navigation.yml index efb5ba0..7f4d113 100644 --- a/docs/_data/navigation.yml +++ b/docs/_data/navigation.yml @@ -1,5 +1,5 @@ main: - - title: "Upcoming Events" + - title: "Home" url: / - title: "About" url: /about/ diff --git a/docs/_projects/2021-vex-ai.md b/docs/_projects/2021-vex-ai.md index 912349e..1969147 100644 --- a/docs/_projects/2021-vex-ai.md +++ b/docs/_projects/2021-vex-ai.md @@ -5,8 +5,7 @@ header: id: -PVofD2A9t8 provider: youtube categories: - - Layout - - Uncategorized + - VEXAI - project tags: - video diff --git a/docs/projects.markdown b/docs/projects.markdown index 24f0548..5ce2c54 100644 --- a/docs/projects.markdown +++ b/docs/projects.markdown @@ -1,23 +1,9 @@ --- -title: "Projects" -layout: archive +title: Projects +layout: collection permalink: /projects/ +collection: projects +entries_layout: grid +classes: wide --- Scroll through our archive of student-led projects! - -{% capture written_label %}'None'{% endcapture %} - -{% for project in site.projects %} - {% unless project.output == false or project.label == "posts" %} - {% capture label %}{{ project.label }}{% endcapture %} - {% if label != written_label %} -

{{ label }}

- {% capture written_label %}{{ label }}{% endcapture %} - {% endif %} - {% endunless %} - -{% endfor %} \ No newline at end of file