diff --git a/.gitignore b/.gitignore index 09e3a76410..6d0c559179 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,7 @@ npm-debug.log # Nuxt generate dist +.jekyll-metadata .DS_store +.vscode +_site diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..65119ada51 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/README.md b/README.md index cba0cdd36b..7c42ad3a0a 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000000..dfff9ca7f4 --- /dev/null +++ b/_config.yml @@ -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" diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000000..d8176e5b33 --- /dev/null +++ b/docker-compose.yml @@ -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 diff --git a/site/_includes/head.html b/site/_includes/head.html new file mode 100644 index 0000000000..3ab49bf7c2 --- /dev/null +++ b/site/_includes/head.html @@ -0,0 +1,10 @@ +
+ + + + +{{ item.dek }}
+