-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #237 from hydephp/refactor-configuration-options
Create site.php config for site-specific settings
- Loading branch information
Showing
44 changed files
with
243 additions
and
542 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
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
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
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
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,98 @@ | ||
<?php | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| __ __ __ ___ __ _____ | ||
| / // /_ _____/ /__ / _ \/ // / _ \ | ||
| / _ / // / _ / -_) ___/ _ / ___/ | ||
| /_//_/\_, /\_,_/\__/_/ /_//_/_/ | ||
| /___/ | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Welcome to HydePHP! In this file, you can customize your new Static Site! | ||
| | ||
| HydePHP favours convention over configuration and as such requires virtually | ||
| no configuration out of the box to get started. Though, you may want to | ||
| change the options to personalize your site and make it your own! | ||
| | ||
*/ | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Site Name | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This value sets the name of your site and is, for example, used in | ||
| the compiled page titles and more. The default value is HydePHP. | ||
| | ||
*/ | ||
|
||
'name' => env('SITE_NAME', 'HydePHP'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Site URL Configuration | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Here are some configuration options for URL generation. | ||
| | ||
| A site_url is required to use sitemaps and RSS feeds. | ||
| | ||
| `site_url` is used to create canonical URLs and permalinks. | ||
| `prettyUrls` will when enabled create links that do not end in .html. | ||
| `generateSitemap` determines if a sitemap.xml file should be generated. | ||
| | ||
| To see the full documentation, please visit the documentation link below. | ||
| https://hydephp.com/docs/master/customization#site-url-configuration | ||
| | ||
*/ | ||
|
||
'site_url' => env('SITE_URL', null), | ||
|
||
'pretty_urls' => false, | ||
|
||
'generate_sitemap' => true, | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Site Language | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This value sets the language of your site and is used for the | ||
| <html lang=""> element in the app layout. Default is 'en'. | ||
| | ||
*/ | ||
|
||
'language' => 'en', | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Navigation Menu Configuration | ||
|-------------------------------------------------------------------------- | ||
| | ||
| If you are looking to customize the navigation menu links, this is the place! | ||
| | ||
| See the documentation for the full list of options: | ||
| https://hydephp.com/docs/master/customization#navigation-menu--sidebar | ||
| | ||
*/ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Site Output Directory (Experimental 🧪) | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This setting specifies the output path for your site, useful to for | ||
| example, store the site in the docs/ directory for GitHub Pages. | ||
| The path is relative to the root of your project. | ||
| | ||
| To use an absolute path, or just to learn more: | ||
| @see https://hydephp.com/docs/master/advanced-customization#customizing-the-output-directory- | ||
| | ||
*/ | ||
|
||
'output_directory' => '_site', | ||
|
||
]; |
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
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
2 changes: 1 addition & 1 deletion
2
packages/framework/resources/views/components/navigation/navigation-brand.blade.php
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,3 +1,3 @@ | ||
<a href="{{ $navigation->getHomeLink() }}" class="font-bold px-4" aria-label="Home page"> | ||
{{ config('hyde.name', 'HydePHP') }} | ||
{{ config('site.name', 'HydePHP') }} | ||
</a> |
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
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
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
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
Oops, something went wrong.