Skip to content

Commit

Permalink
theme updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ceaksan committed Nov 24, 2021
1 parent 0951e6b commit 78d1157
Show file tree
Hide file tree
Showing 171 changed files with 15,083 additions and 7 deletions.
2 changes: 2 additions & 0 deletions config/versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ core:
grav:
version: 1.7.25
schema: 1.7.0_2020-11-20_1
history:
- { version: 1.7.25, date: '2021-11-21 19:57:37' }
6 changes: 3 additions & 3 deletions data/feed/21232f297a57a5a743894a0e4a801fc3.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
last_checked: 1637523476
last_checked: 1637668747
data:
-
title: 'macOS 12.0 Monterey Apache Setup: LetsEncrypt SSL'
Expand All @@ -14,12 +14,12 @@ data:
title: 'macOS 12.0 Monterey Apache Setup: Multiple PHP Versions'
url: 'https://getgrav.org/blog/macos-monterey-apache-multiple-php-versions'
date: 1635501600
nicetime: '3 weeks ago'
nicetime: '4 weeks ago'
-
title: 'macOS 12.0 Monterey Apache Setup: Upgrading Homebrew'
url: 'https://getgrav.org/blog/macos-monterey-apache-upgrade-homebrew'
date: 1633694400
nicetime: '1 months ago'
nicetime: '2 months ago'
-
title: 'Skeleton Build Automation'
url: 'https://getgrav.org/blog/skeletons-build-automation'
Expand Down
4 changes: 2 additions & 2 deletions data/flex/indexes/accounts.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version: '1.1'
timestamp: 1637523560
timestamp: 1637524640
count: 1
index:
admin:
storage_key: admin
storage_timestamp: 1637523560
storage_timestamp: 1637524563
key: admin
email: [email protected]
2 changes: 1 addition & 1 deletion data/flex/indexes/pages.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"1.5","timestamp":1637523275,"count":20,"index":{"":{"key":"","storage_key":"","template":null,"storage_timestamp":1637171414,"children":{"01.home":1637171185,"02.about":1637171185,"03.departments":1637171185,"04.blog":1637171185,"05.contact":1637171185,"06.category":1637171185},"checksum":"c9c40f9d2cc8a6db2ab3fcf41fc0785d"},"01.home":{"key":"home","storage_key":"01.home","template":"default","storage_timestamp":1637171185,"markdown":{"":{"default":1637171185}},"children":{"_departments":1637171185,"_doctors":1637171185,"_hero":1637171185,"_steps":1637171185,"_welcome":1637171185},"checksum":"951555378cc62f80048174e3587724f4"},"01.home\/_departments":{"key":"home\/_departments","storage_key":"01.home\/_departments","template":"departments","storage_timestamp":1637171185,"markdown":{"":{"departments":1637171185}},"checksum":"3174787120829ef92ca90d347473261b"},"01.home\/_doctors":{"key":"home\/_doctors","storage_key":"01.home\/_doctors","template":"doctors","storage_timestamp":1637171185,"markdown":{"":{"doctors":1637171185}},"checksum":"f6e18b343085e27f458295f968ebcf8d"},"01.home\/_hero":{"key":"home\/_hero","storage_key":"01.home\/_hero","template":"hero","storage_timestamp":1637171185,"markdown":{"":{"hero":1637171185}},"checksum":"9a78d1fee0bf83aea89c0549210399c9"},"01.home\/_steps":{"key":"home\/_steps","storage_key":"01.home\/_steps","template":"steps","storage_timestamp":1637171185,"markdown":{"":{"steps":1637171185}},"checksum":"8f8a1f636a2459d3de7ca401a3aecd61"},"01.home\/_welcome":{"key":"home\/_welcome","storage_key":"01.home\/_welcome","template":"welcome","storage_timestamp":1637171185,"markdown":{"":{"welcome":1637171185}},"checksum":"279b4b386945ad6cc1e394860a911ea7"},"02.about":{"key":"about","storage_key":"02.about","template":"about","storage_timestamp":1637171185,"markdown":{"":{"about":1637171185}},"checksum":"6515e7cf900d277d531b807c5f23620d"},"03.departments":{"key":"departments","storage_key":"03.departments","template":"departments","storage_timestamp":1637171185,"markdown":{"":{"departments":1637171185}},"children":{"01.dentistry":1637171185,"02.cardiology":1637171185,"03.ent-specialists":1637171185,"04.astrology":1637171185,"05.neuroanatomy":1637171185,"06.blood-screening":1637171185},"checksum":"4e8e3369fa489a54acc830594bf32ebc"},"03.departments\/01.dentistry":{"key":"departments\/dentistry","storage_key":"03.departments\/01.dentistry","template":"single","storage_timestamp":1637171185,"markdown":{"":{"single":1637171185}},"checksum":"7d0c94893d19680f51d6411adea662c3"},"03.departments\/02.cardiology":{"key":"departments\/cardiology","storage_key":"03.departments\/02.cardiology","template":"single","storage_timestamp":1637171185,"markdown":{"":{"single":1637171185}},"checksum":"b484dbb0e11d35db186bef8038642103"},"03.departments\/03.ent-specialists":{"key":"departments\/ent-specialists","storage_key":"03.departments\/03.ent-specialists","template":"single","storage_timestamp":1637171185,"markdown":{"":{"single":1637171185}},"checksum":"4e41f36828cd1ce694f3a94de757beaa"},"03.departments\/04.astrology":{"key":"departments\/astrology","storage_key":"03.departments\/04.astrology","template":"single","storage_timestamp":1637171185,"markdown":{"":{"single":1637171185}},"checksum":"bf2f8dafffdcafb40cc994df1b537fbc"},"03.departments\/05.neuroanatomy":{"key":"departments\/neuroanatomy","storage_key":"03.departments\/05.neuroanatomy","template":"single","storage_timestamp":1637171185,"markdown":{"":{"single":1637171185}},"checksum":"0952bc1b6626c4e2e4eea992ff855b3b"},"03.departments\/06.blood-screening":{"key":"departments\/blood-screening","storage_key":"03.departments\/06.blood-screening","template":"single","storage_timestamp":1637171185,"markdown":{"":{"single":1637171185}},"checksum":"fe9dd8a4f22541d134664c33b734e164"},"04.blog":{"key":"blog","storage_key":"04.blog","template":"blog","storage_timestamp":1637171185,"markdown":{"":{"blog":1637171185}},"children":{"01.hello-world":1637171185,"02.bye":1637171185},"checksum":"22a39c9a08dfd7552ecfd790abf80ae4"},"04.blog\/01.hello-world":{"key":"blog\/hello-world","storage_key":"04.blog\/01.hello-world","template":"post","storage_timestamp":1637171185,"markdown":{"":{"post":1637171185}},"checksum":"a20c0261edc11f3e33cb572843ce4de4"},"04.blog\/02.bye":{"key":"blog\/bye","storage_key":"04.blog\/02.bye","template":"post","storage_timestamp":1637171185,"markdown":{"":{"post":1637171185}},"checksum":"ca30276d843a51a757a34c04745ac362"},"05.contact":{"key":"contact","storage_key":"05.contact","template":"contact","storage_timestamp":1637171185,"markdown":{"":{"contact":1637171185}},"checksum":"492e28ed9eba2be28549b9476c0976c5"},"06.category":{"key":"category","storage_key":"06.category","template":"category","storage_timestamp":1637171185,"markdown":{"":{"category":1637171185}},"checksum":"6d1da0d3b5b66fdf6041b306885e0edd"}}}
{"version":"1.5","timestamp":1637524647,"count":20,"index":{"":{"key":"","storage_key":"","template":null,"storage_timestamp":1637524563,"children":{"01.home":1637524563,"02.about":1637524563,"03.departments":1637524563,"04.blog":1637524563,"05.contact":1637524563,"06.category":1637524563},"checksum":"9c96f6dd1b096957397f44bb84a5f54e"},"01.home":{"key":"home","storage_key":"01.home","template":"default","storage_timestamp":1637524563,"markdown":{"":{"default":1637524563}},"children":{"_departments":1637524563,"_doctors":1637524563,"_hero":1637524563,"_steps":1637524563,"_welcome":1637524563},"checksum":"94b5f8853419ec6fd02872c5db38467e"},"01.home\/_departments":{"key":"home\/_departments","storage_key":"01.home\/_departments","template":"departments","storage_timestamp":1637524563,"markdown":{"":{"departments":1637524563}},"checksum":"cd73e7b3c222037b9aa9bd5b18cc454f"},"01.home\/_doctors":{"key":"home\/_doctors","storage_key":"01.home\/_doctors","template":"doctors","storage_timestamp":1637524563,"markdown":{"":{"doctors":1637524563}},"checksum":"5833aa95d400290c668fc2e444933307"},"01.home\/_hero":{"key":"home\/_hero","storage_key":"01.home\/_hero","template":"hero","storage_timestamp":1637524563,"markdown":{"":{"hero":1637524563}},"checksum":"11d634191ac5ce4d2e035fe4026828c9"},"01.home\/_steps":{"key":"home\/_steps","storage_key":"01.home\/_steps","template":"steps","storage_timestamp":1637524563,"markdown":{"":{"steps":1637524563}},"checksum":"766bcd444f397732d89bd59e80bbeba7"},"01.home\/_welcome":{"key":"home\/_welcome","storage_key":"01.home\/_welcome","template":"welcome","storage_timestamp":1637524563,"markdown":{"":{"welcome":1637524563}},"checksum":"e2b3fb98aaf49212a8a738a20a0e5572"},"02.about":{"key":"about","storage_key":"02.about","template":"about","storage_timestamp":1637524563,"markdown":{"":{"about":1637524563}},"checksum":"d397cc462c72ba4bcf8535a3dad22d7c"},"03.departments":{"key":"departments","storage_key":"03.departments","template":"departments","storage_timestamp":1637524563,"markdown":{"":{"departments":1637524563}},"children":{"01.dentistry":1637524563,"02.cardiology":1637524563,"03.ent-specialists":1637524563,"04.astrology":1637524563,"05.neuroanatomy":1637524563,"06.blood-screening":1637524563},"checksum":"34eedc008f835d33ce220f31f180168a"},"03.departments\/01.dentistry":{"key":"departments\/dentistry","storage_key":"03.departments\/01.dentistry","template":"single","storage_timestamp":1637524563,"markdown":{"":{"single":1637524563}},"checksum":"2427a3bb86b116c8373bc4b285ffd974"},"03.departments\/02.cardiology":{"key":"departments\/cardiology","storage_key":"03.departments\/02.cardiology","template":"single","storage_timestamp":1637524563,"markdown":{"":{"single":1637524563}},"checksum":"61750e11a48136f2c3830e1912bbc605"},"03.departments\/03.ent-specialists":{"key":"departments\/ent-specialists","storage_key":"03.departments\/03.ent-specialists","template":"single","storage_timestamp":1637524563,"markdown":{"":{"single":1637524563}},"checksum":"d640c3241c3d734234f3be44d0b8ab12"},"03.departments\/04.astrology":{"key":"departments\/astrology","storage_key":"03.departments\/04.astrology","template":"single","storage_timestamp":1637524563,"markdown":{"":{"single":1637524563}},"checksum":"6f7d7b67b9a09131fad651b17cc98d63"},"03.departments\/05.neuroanatomy":{"key":"departments\/neuroanatomy","storage_key":"03.departments\/05.neuroanatomy","template":"single","storage_timestamp":1637524563,"markdown":{"":{"single":1637524563}},"checksum":"7ad1497a22996c4df465d3108bcf6859"},"03.departments\/06.blood-screening":{"key":"departments\/blood-screening","storage_key":"03.departments\/06.blood-screening","template":"single","storage_timestamp":1637524563,"markdown":{"":{"single":1637524563}},"checksum":"07c2d7401ed460ab4f92e5c507346b8f"},"04.blog":{"key":"blog","storage_key":"04.blog","template":"blog","storage_timestamp":1637524563,"markdown":{"":{"blog":1637524563}},"children":{"01.hello-world":1637524563,"02.bye":1637524563},"checksum":"07bf5424e2acc9b29d781f7d8adaf782"},"04.blog\/01.hello-world":{"key":"blog\/hello-world","storage_key":"04.blog\/01.hello-world","template":"post","storage_timestamp":1637524563,"markdown":{"":{"post":1637524563}},"checksum":"e809e8e5089f4da76cb6e16e3b1e3c1c"},"04.blog\/02.bye":{"key":"blog\/bye","storage_key":"04.blog\/02.bye","template":"post","storage_timestamp":1637524563,"markdown":{"":{"post":1637524563}},"checksum":"faaff74d3db6a7b3d3e9e730c13485c5"},"05.contact":{"key":"contact","storage_key":"05.contact","template":"contact","storage_timestamp":1637524563,"markdown":{"":{"contact":1637524563}},"checksum":"b6172129a26a73dbfceea4747f0f67cd"},"06.category":{"key":"category","storage_key":"06.category","template":"category","storage_timestamp":1637524563,"markdown":{"":{"category":1637524563}},"checksum":"ca4e784deee2f5b995f84318a78bb99d"}}}
2 changes: 1 addition & 1 deletion data/notifications/21232f297a57a5a743894a0e4a801fc3.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
last_checked: 1637523276
last_checked: 1637670295
data:
feed:
-
Expand Down
1 change: 1 addition & 0 deletions data/notifications/admin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
27: 'Tue, 23 Nov 2021 11:59:51 +0000'
9 changes: 9 additions & 0 deletions plugins/error/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# OS Generated
.DS_Store*
ehthumbs.db
Icon?
Thumbs.db
*.swp

# phpstorm
.idea/*
91 changes: 91 additions & 0 deletions plugins/error/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# v1.8.0
## 09/07/2021

1. [](#new)
* Require **Grav 1.7.0**
* Added support for `{% throw 404 'Not Found' %}` from twig template to show the error page
1. [](#improved)
* Do not cache 404 error pages by default

# v1.7.1
## 10/08/2020

1. [](#bugfix)
* Fixed error page being cached, fixes issue with non-existing resources which later become available

# v1.7.0
## 07/01/2020

1. [](#new)
* Require Grav v1.6
1. [](#bugfix)
* Added translated title programmatically [#40](https://github.com/getgrav/grav-plugin-error/pull/40)

# v1.6.2
## 05/09/2019

1. [](#new)
* Fixed a few issues found by phpstan
* Added `ru` and `uk` translations [#36](https://github.com/getgrav/grav-plugin-error/pull/36)

# v1.6.1
## 03/09/2018

1. [](#improved)
* Added Polish + Catalan translation
* Updated `README.md` to reference custom error pages

# v1.6.0
## 10/19/2016

1. [](#improved)
* Added Croatian translation
* Improved `autoescape: true` support
1. [](#bugfix)
* Fixed issue where template file for `error` page type is only available if page was not found

# v1.5.1
## 07/18/2016

1. [](#improved)
* Added chinese and german translations
1. [](#bugfix)
* Fixed issue with the Smartypants plugin running before Twig was processed

# v1.5.0
## 07/14/2015

1. [](#improved)
* Translate some blueprint configuration options
* Allow translating the error message
* Added french, russian, romanian, danish, italian

# v1.4.1
## 12/11/2015

1. [](#bugfix)
* Fixed CLI command for PHP 5.5 and lower

# v1.4.0
## 11/21/2015

1. [](#new)
* Implemented CLI commands for the plugin

# v1.3.0
## 08/25/2015

1. [](#improved)
* Added blueprints for Grav Admin plugin

# v1.2.2
## 01/06/2015

1. [](#new)
* Added a default `error.json.twig` file

# v1.2.1
## 11/30/2014

1. [](#new)
* ChangeLog started...
21 changes: 21 additions & 0 deletions plugins/error/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2014 Grav

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
93 changes: 93 additions & 0 deletions plugins/error/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# Grav Error Plugin

![GPM Installation](assets/readme_1.png)

`error` is a [Grav](http:https://github.com/getgrav/grav) Plugin and allows to redirect errors to nice output pages.

This plugin is included in any package distributed that contains Grav. If you decide to clone Grav from GitHub you will most likely want to install this.

# Installation

Installing the Error plugin can be done in one of two ways. Our GPM (Grav Package Manager) installation method enables you to quickly and easily install the plugin with a simple terminal command, while the manual method enables you to do so via a zip file.

## GPM Installation (Preferred)

The simplest way to install this plugin is via the [Grav Package Manager (GPM)](http:https://learn.getgrav.org/advanced/grav-gpm) through your system's Terminal (also called the command line). From the root of your Grav install type:

bin/gpm install error

This will install the Error plugin into your `/user/plugins` directory within Grav. Its files can be found under `/your/site/grav/user/plugins/error`.

## Manual Installation

To install this plugin, just download the zip version of this repository and unzip it under `/your/site/grav/user/plugins`. Then, rename the folder to `error`. You can find these files either on [GitHub](https://github.com/getgrav/grav-plugin-error) or via [GetGrav.org](http:https://getgrav.org/downloads/plugins#extras).

You should now have all the plugin files under

/your/site/grav/user/plugins/error

>> NOTE: This plugin is a modular component for Grav which requires [Grav](http:https://github.com/getgrav/grav), the [Problems](https://github.com/getgrav/grav-plugin-problems) plugin, and a theme to be installed in order to operate.
# Usage

The `error` plugin doesn't require any configuration. The moment you install it, it is ready to use.

Something you might want to do is to override the look and feel of the error page, and with Grav it is super easy.

### Template

Copy the template file [error.html.twig](templates/error.html.twig) into the `templates` folder of your custom theme and that is it.

```
/your/site/grav/user/themes/custom-theme/templates/error.html.twig
```

You can now edit the override and tweak it however you prefer.

### Page

Copy the page file [error.md](pages/error.md) into the `pages` folder of your user directory and that is it.

```
/your/site/grav/user/pages/error/error.md
```

You can now edit the override and tweak it however you prefer.

# Custom error pages

The configuration allows to specify pages different than `/error` for specific error codes. By default, the `404` error leads to the `/error` page. If you change that, make sure the page you point to has a `error` template (which means, its markdown file is `error.md` or in the page frontmatter you specify `template: error`.

# CLI Usage
The `error` plugin comes with a CLI command that outputs the `grav.log` in a beautified way, with possibility of limiting the amount of errors displayed, as well as include the trace in the output.

### Commands

| `bin/plugin error log` | |
|------------------------|-----------------------------------------------------------------|
| [ --limit N \| -l N ] | The amount of errors to display. Default is 5 |
| [ --trace \| -t ] | When used, it will add the backtrace in the output of the error |


# Updating

As development for the Error plugin continues, new versions may become available that add additional features and functionality, improve compatibility with newer Grav releases, and generally provide a better user experience. Updating Error is easy, and can be done through Grav's GPM system, as well as manually.

## GPM Update (Preferred)

The simplest way to update this plugin is via the [Grav Package Manager (GPM)](http:https://learn.getgrav.org/advanced/grav-gpm). You can do this with this by navigating to the root directory of your Grav install using your system's Terminal (also called command line) and typing the following:

bin/gpm update error

This command will check your Grav install to see if your Error plugin is due for an update. If a newer release is found, you will be asked whether or not you wish to update. To continue, type `y` and hit enter. The plugin will automatically update and clear Grav's cache.

## Manual Update

Manually updating Error is pretty simple. Here is what you will need to do to get this done:

* Delete the `your/site/user/plugins/error` directory.
* Download the new version of the Error plugin from either [GitHub](https://github.com/getgrav/grav-plugin-error) or [GetGrav.org](http:https://getgrav.org/downloads/plugins#extras).
* Unzip the zip file in `your/site/user/plugins` and rename the resulting folder to `error`.
* Clear the Grav cache. The simplest way to do this is by going to the root Grav directory in terminal and typing `bin/grav clear-cache`.

> Note: Any changes you have made to any of the files listed under this directory will also be removed and replaced by the new set. Any files located elsewhere (for example a YAML settings file placed in `user/config/plugins`) will remain intact.
Binary file added plugins/error/assets/readme_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions plugins/error/blueprints.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Error
version: 1.8.0
description: Displays the error page.
type: plugin
slug: error
icon: warning
author:
name: Team Grav
email: [email protected]
url: http:https://getgrav.org
homepage: https://github.com/getgrav/grav-plugin-error
keywords: error, plugin, required
bugs: https://github.com/getgrav/grav-plugin-error/issues
license: MIT
dependencies:
- { name: grav, version: '>=1.7.0' }

form:
validation: strict
fields:
enabled:
type: toggle
label: PLUGIN_ADMIN.PLUGIN_STATUS
highlight: 1
default: 0
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool

routes.404:
type: text
size: medium
label: PLUGIN_ERROR.ROUTE_404
default: '/error'
Loading

0 comments on commit 78d1157

Please sign in to comment.