Skip to content

Commit

Permalink
New pages directory and repo clean up (hackforla#1260)
Browse files Browse the repository at this point in the history
- Moved all pages to be under the pages directory and added permalink attribute to retain their urls
- Modified the _config.yml to be more explicit rather than previous implicit also added descriptive comments to it
- Moved all surveys to a single survey folder
- Deleted some markdown files that were not being used anywhere
  • Loading branch information
akibrhast authored Mar 19, 2021
1 parent a8c1534 commit ffaabff
Show file tree
Hide file tree
Showing 40 changed files with 34 additions and 62 deletions.
29 changes: 22 additions & 7 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
lsi: false
safe: true
# Default Configuration: https://jekyllrb.com/docs/configuration/default/
# Font Matter Defaults: https://jekyllrb.com/docs/configuration/front-matter-defaults/
# Configuration Options: https://jekyllrb.com/docs/configuration/options/

source: .
lsi: false # Produce an index for related posts. Requires the classifier-reborn plugin. -> https://jekyllrb.com/docs/configuration/options/#build-command-options
safe: true # Disable non-whitelisted plugins, caching to disk, and ignore symbolic links. -> https://jekyllrb.com/docs/configuration/options/#build-command-options


source: . # Change the directory where Jekyll will read files

title: Hack for LA
email: hello@hackforla.org
Expand All @@ -11,6 +16,9 @@ baseurl: ""
url: https://www.hackforla.org


# When/Before creating a new collections remember these two pieces of advice and ask yourself. Should you?
# 1. Collections are a great way to group related content like members of a team or talks at a conference. [https://jekyllrb.com/docs/collections/]
# 2. Collection — Will have its own page, URLs, and possibly an index page. [https://gist.github.com/akibrhast/31c7bb723d80e9efe3d28f619ef0798d]
collections:
communities:
credits:
Expand All @@ -23,19 +31,26 @@ collections:
testimonials:
toolkitResources:

defaults:

# Please refer to the documentation here[https://jekyllrb.com/docs/configuration/front-matter-defaults/] before modifying defaults
# The settings below reads as so
# - Everything within the `pages` directory that is of type `pages` will be rendered using the `default` layout as defined ins `_layouts/default.html`
# - Everything within the `_projects` directory that is of type `projects` will be rendered using the `project` layout as defined ins `_layouts/project.html`
# - Everything within the `_guide-pages` directory that is of type `guide-pages` will be rendered using the `guide-pages` layout as defined ins `_layouts/guide-pages.html`

defaults: # The `defaults` key holds an array of scope/values pairs that define what defaults should be set for a particular file path, and optionally, a file type in that path.
- scope:
path: ""
path: "pages" # an empty string here means all files in the project
type: "pages"
values:
layout: "default"
- scope:
path: ""
path: "_projects" # an empty string here means all files in the project
type: "projects"
values:
layout: "project"
- scope:
path: ""
path: "_guide-pages" # an empty string here means all files in the project
type: "guide-pages"
values:
layout: "guide-pages"
2 changes: 1 addition & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
content="{% if page.description %}{{ page.description | strip_html | strip_newlines | truncate: 400 }}{% else %}{{ site.description }}{% endif %}" />
<link rel="stylesheet" href="{{ '/assets/css/main.css' | absolute_url }}" />
<link rel="canonical" href="{{ page.url | absolute_url }}" />
<link rel="shortcut icon" type="image/x-icon" href="{{ 'favicon.ico' | absolute_url }}" />
<link rel="shortcut icon" type="image/x-icon" href="{{ '/assets/images/favicon.ico' | absolute_url }}" />
<script src="{{ '/assets/js/utils.js' | absolute_url }}"></script>


Expand Down
12 changes: 0 additions & 12 deletions _toolkitResources/template.md

This file was deleted.

File renamed without changes.
6 changes: 0 additions & 6 deletions calendar.md

This file was deleted.

6 changes: 0 additions & 6 deletions conduct.md

This file was deleted.

6 changes: 0 additions & 6 deletions donate.md

This file was deleted.

6 changes: 0 additions & 6 deletions github.md

This file was deleted.

6 changes: 0 additions & 6 deletions meetup.md

This file was deleted.

6 changes: 0 additions & 6 deletions nationalday.md

This file was deleted.

1 change: 1 addition & 0 deletions about.html → pages/about.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: default
title: About
permalink: /about/
---

<div class="header-container header-container--about-us">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: default
title: Communities of Practice
permalink: /communities-of-practice
---

<section class="header-container header--communities">
Expand Down
1 change: 1 addition & 0 deletions credits.html → pages/credits.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: default
title: Credits
permalink: /credits/
---
<div class="credits-header-container">
<h1>Credits</h1>
Expand Down
1 change: 1 addition & 0 deletions dashboard.html → pages/dashboard.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: default
title: Organizational Dashboard
permalink: /dashboard/
---

<!-- Organizational Dashboard Statistics from Google DataStudio -->
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: default
title: Getting Started
permalink: /getting-started-with-video
---
<div class="header-container">
<h1>Getting Started</h1>
Expand Down
1 change: 1 addition & 0 deletions getting-started.html → pages/getting-started.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: default
title: Getting Started
permalink: /getting-started
---
<div class="header-container">
<h1>Getting Started</h1>
Expand Down
1 change: 1 addition & 0 deletions index.html → pages/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
permalink: /
---
{% assign remote-only = 'true' %}
{% if remote-only == 'false' %}
Expand Down
1 change: 1 addition & 0 deletions join-us.html → pages/join-us.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: default
title: Join Us
permalink: /join
---

<div class="join-us-wrapper">
Expand Down
1 change: 1 addition & 0 deletions project-meetings.html → pages/project-meetings.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: default
title: Project Meetings
permalink: /project-meetings
---
<!-- <div class='content-section'> -->
<div class='project-meetings-banner'>
Expand Down
1 change: 1 addition & 0 deletions sitemap.html → pages/sitemap.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: default
title: Site Map
permalink: /sitemap/
---
<!-- Header banner -->

Expand Down
1 change: 1 addition & 0 deletions toolkit.html → pages/toolkit.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: default
title: Toolkit
permalink: /toolkit/
---
<div class="toolkit-header header-container">
<div class="toolkit-header__text">
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 0 additions & 6 deletions slack.md

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ffaabff

Please sign in to comment.