Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ npm-debug.log
# Nuxt generate
dist

.jekyll-metadata
.DS_store
.vscode
_site
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM jekyll/jekyll

WORKDIR /src/hfla
RUN mkdir _site

COPY _config.yml _config.yml

EXPOSE 4000

CMD ["jekyll", "serve", "--watch", "--incremental", "--force_polling"]
ENTRYPOINT ["bash"]
19 changes: 8 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
# hackforla
# hfla

> Nuxt.js project
> [Jekyll](https://jekyllrb.com) / [GitHub pages](https://pages.github.com/)

## Build Setup
## Run Locally

```bash
# install dependencies
$ npm install # Or yarn install
We use Docker to keep development some what sane across a multi-platform team.

# serve with hot reload at localhost:3000
$ npm run dev
Start a build server locally, watching changes in the `site` directory:

# generate static project
$ npm run generate
```bash
$ docker-compose up
```

For detailed explanation on how things work, checkout the [Nuxt.js docs](https://github.com/nuxt/nuxt.js).
Now browse to http://localhost:4000
28 changes: 28 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
title: Hack for LA
email: hello@hackforla.org
description: Hack for LA's website!

baseurl: ""
url: https://hackforla.github.io/website/

source: site
destination: _site

collections:
projects:
output: true

defaults:
-
scope:
path: ""
type: "pages"
values:
layout: "default"

-
scope:
path: ""
type: "projects"
values:
layout: "project"
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: "3"
services:
site:
build: .
image: hfla_site
container_name: hfla_site
ports:
- 4000:4000
volumes:
- ./site:/src/hfla/site
- ./_site:/src/hfla/_site
10 changes: 10 additions & 0 deletions site/_includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge">

<title>{% if page.title %}{{ page.title | escape }} - {% endif %}{{ site.title | escape }}</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
<!-- <link rel="stylesheet" href="{{ '/css/main.css' | prepend: site.baseurl }}"> -->
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
</head>
9 changes: 9 additions & 0 deletions site/_layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!doctype html>
<html lang="en">
{% include head.html %}
<body>
<main role="main">
{{ content }}
</main>
</body>
</html>
3 changes: 3 additions & 0 deletions site/_layouts/project.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h1>{{ page.title }}</h1>

{{ content | markdownify }}
18 changes: 18 additions & 0 deletions site/_projects/spare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Spare
image: /assets/images/projects/project-spare.png
links:
- name: Github
url: 'https://github.com/hackforla/spare'
- name: Site
url: 'http://whatcanyouspare.org'
looking: Front-end development, Back-end development, Product Management, and Marketing.
location: Santa Monica
partner: Hope of the Valley and hopefully others in the near future.
dek: >
A cool new project project that connects people in need of clothing and other essentials with people in the
community who have things to spare. It's kind of like one on one Goodwill. The main objective
is to foster interactions between the housed and unhoused. The donation is the mechanism for
building these connections throughout our community.
---

Binary file added site/assets/images/projects/project-spare.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions site/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
---

<section id="projects" class="content-section projects">
<div class="page-contain projects-inner">
<h2 class="project-header">Current Projects</h2>
<ul class="project-list unstyled-list">
{% for item in site.projects %}
<li class="project-card">
<div class="project-card-inner">
<div class="project-tmb">
<img src={{ item.image }} class="project-tmb-img">
<div class="project-body">
<h4 class="project-title">{{ item.title }}</h4>
<p class="project-description">{{ item.dek }}</p>
</div>
</div>
</div>
</li>
{% endfor %}
</ul>
</div>
</section>