-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initialize amsterdamphp/static-site project
Use Jigsaw static site generator with Ghostwind Tailwind theme.
- Loading branch information
Showing
22 changed files
with
15,184 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
composer.phar | ||
/build_local/ | ||
/cache/ | ||
/node_modules/ | ||
/vendor/ | ||
/.idea/ | ||
/.vscode/ | ||
npm-debug.log | ||
|
||
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control | ||
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file | ||
# composer.lock | ||
# Optional ignores | ||
/build_staging/ | ||
/build_production/ | ||
|
||
# Location of compiled assets | ||
/source/assets/build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# static-site | ||
|
||
## TODO | ||
|
||
- [ ] Extract useful html components from the big index and blog templates to partials | ||
- [ ] Determine site contents / pages | ||
- Ideas: | ||
- Home | ||
- Contact form for speakers | ||
- Contact form for sponsors/venues | ||
- Merch | ||
- Code of Conduct (probably wise to keep) | ||
- Brainstorming: | ||
- Ask the expert <-- just an idea because this year we've been contacted twice by someone that wanted to get in touch with a php developer for a small request/job | ||
- Learning resources? <-- to have something for juniors (who might never see the site) | ||
- [ ] Design homepage. | ||
- Ideas: | ||
- "Longest running PHP user group in the Netherlands" | ||
- First upcoming meetup as full-width card at the top | ||
- last 5 meetups as cards underneath | ||
- CTA Sponsor us somewhere | ||
- CTA Signup as speaker somewhere | ||
- Our mission statement at the bottom (like on current site) | ||
|
||
## Documentation | ||
|
||
Statically generated AmsterdamPHP site | ||
|
||
This project uses [Jigsaw](https://jigsaw.tighten.com/docs/installation/) as static site generator. | ||
It uses Blade templates, Markdown content and Tailwind CSS. | ||
Jigsaw also provides a CLI tool for building and serving the static site located at `vendor/bin/jigsaw`. | ||
|
||
#### Ghostwind | ||
|
||
In this project we copied the style of Ghostwind, a tailwind theme based on the popular Ghost Caspar layout. | ||
|
||
## Setup | ||
|
||
``` | ||
composer install | ||
npm install | ||
``` | ||
|
||
## Run | ||
|
||
Start php server | ||
``` | ||
vendor/bin/jigsaw serve | ||
``` | ||
|
||
Compile the assets and watch for changes | ||
``` | ||
npm run watch | ||
``` | ||
|
||
## Deploy | ||
|
||
TBD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
/** @var \Illuminate\Container\Container $container */ | ||
/** @var \TightenCo\Jigsaw\Events\EventBus $events */ | ||
|
||
/* | ||
* You can run custom code at different stages of the build process by | ||
* listening to the 'beforeBuild', 'afterCollections', and 'afterBuild' events. | ||
* | ||
* For example: | ||
* | ||
* $events->beforeBuild(function (Jigsaw $jigsaw) { | ||
* // Your code here | ||
* }); | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "amsterdamphp/static-site", | ||
"type": "project", | ||
"license": "proprietary", | ||
"require": { | ||
"tightenco/jigsaw": "^1.7" | ||
}, | ||
"require-dev": { | ||
"roave/security-advisories": "dev-latest" | ||
} | ||
} |
Oops, something went wrong.