From efca81f9d222a8409bdd079f67d1048e48c9d30a Mon Sep 17 00:00:00 2001 From: Caen De Silva <95144705+caendesilva@users.noreply.github.com> Date: Tue, 22 Mar 2022 22:07:07 +0100 Subject: [PATCH 01/14] Add info about the new build --clean option --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index adb3f70..62f8abd 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ All links use relative paths, so you can deploy to a subdirectory without any pr If it is the first time building the site or if you have updated the source SCSS you also need to run `npm install && npm run dev` to build the frontend assets. ### Live preview -Use ` npm run watch` to watch the files for changes and start up a local dev server on port 3000 using Browsersync. +Use `npm run watch` to watch the files for changes and start up a local dev server on port 3000 using Browsersync. ### NPM Commands See all commands in the documentation [Console Commands](https://hydephp.github.io/docs/docs/console-commands.html) @@ -82,9 +82,8 @@ Hyde will automatically enable the CommonMark extension. > However, Torchlight caches the response so this only affects the first time running the build, or if you update the page. ## Known Issues -Deleting Markdown posts does not delete the already compiled HTML files. -In a future update (coming soon™) the builder will remove unused files automatically. -For now, you can manually delete the files and then run the build command. +Hyde does not automatically delete compiled HTML files when the source files have been removed. +However, you can supply the `--clean` flag to remove all content in the `_site` directory when running the build command. Currently, only top-level custom pages are supported. In the future, nested pages will be supported. For example, _site/directory/page.html From bb8b2297cba88e339bb9f39697424f8d385e79b0 Mon Sep 17 00:00:00 2001 From: Caen De Silva <95144705+caendesilva@users.noreply.github.com> Date: Tue, 22 Mar 2022 22:34:57 +0100 Subject: [PATCH 02/14] Add --stability=dev to install instruction --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 62f8abd..43411d7 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ The recommended method of installation is using Composer. However, if you want t ### Using Composer (recommended) ```bash -composer create-project hyde/hyde +composer create-project hyde/hyde --stability=dev ``` ### Requirements From d74729050fa36d988b36a978cedaba1bf3e77a4f Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Wed, 23 Mar 2022 12:51:58 +0100 Subject: [PATCH 03/14] Replace the default page --- resources/views/pages/index.blade.php | 75 +++++++++++++++++++-------- 1 file changed, 54 insertions(+), 21 deletions(-) diff --git a/resources/views/pages/index.blade.php b/resources/views/pages/index.blade.php index dffdd7f..0e26284 100644 --- a/resources/views/pages/index.blade.php +++ b/resources/views/pages/index.blade.php @@ -1,24 +1,57 @@ -{{-- - This is the default index.html file containing your latest blog posts. - If you want to use a custom index page a tip is to rename this file to `feed.blade.php` - and you can customize this to your hearts desire! ---}} -@php($title = 'Latest Posts') -@extends('hyde::layouts.app') -@section('content') + + -
-
-

- Latest Posts

-
+ + + -
- @foreach(\Hyde\Framework\Models\MarkdownPost::getCollection() as $post) - @include('hyde::components.article-excerpt') - @endforeach -
-
+ Welcome to HydePHP! -@endsection + + + + + + +
+
+ +
+

+ You're running on HydePHP +

+
+

+ Leap into the future of static HTML blogs and documentation with the tools you already know and + love. + + + Made with Tailwind, Laravel, and Coffee. + +

+
+
+ +
+
+ + + \ No newline at end of file From b8cd49c2927c70b0c11e6d990c47adebdcdba8e4 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Wed, 23 Mar 2022 13:47:48 +0100 Subject: [PATCH 04/14] Add the links --- resources/views/pages/index.blade.php | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/resources/views/pages/index.blade.php b/resources/views/pages/index.blade.php index 0e26284..aeda7f5 100644 --- a/resources/views/pages/index.blade.php +++ b/resources/views/pages/index.blade.php @@ -5,10 +5,11 @@ - Welcome to HydePHP! + HydePHP