Skip to content

Commit 0487a74

Browse files
committed
Update meta
1 parent cc552e4 commit 0487a74

File tree

11 files changed

+20
-5
lines changed

11 files changed

+20
-5
lines changed

docs/collectors.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
description: Laravel Debugbar contains a lot of collectors to help you debug or profile Database Queries, Log messages, View templates, Request and Route information, etc.
3+
preview_image: img/preview-usage.jpg
24
hide:
35
- navigation
46
---

docs/features.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
description: Laravel Debugbar contains features like collectors, capturing ajax requesting, browsing history etc.
3+
preview_image: img/preview-features.jpg
24
hide:
35
- navigation
46
---

docs/img/preview-collectors.jpg

50.6 KB
Loading

docs/img/preview-features.jpg

48.2 KB
Loading

docs/img/preview-install.jpg

50.3 KB
Loading

docs/img/preview-usage.jpg

42.2 KB
Loading

docs/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
title: Laravel Debugbar
2+
title: Debugbar for Laravel
3+
description: Laravel Debugbar is a package that integrates PHP Debug Bar with Laravel to debug database queries and profile other information.
34
hide:
45
- navigation
56
- toc
@@ -12,7 +13,7 @@ hide:
1213
[![Total Downloads](https://img.shields.io/packagist/dt/barryvdh/laravel-debugbar?label=Downloads)](https://packagist.org/packages/barryvdh/laravel-debugbar)
1314
[![Fruitcake](https://img.shields.io/badge/Powered%20By-Fruitcake-b2bc35.svg)](https://fruitcake.nl/)
1415

15-
Laravel Debugbar is a package that integrates [PHP Debug Bar](https://github.com/php-debugbar/php-debugbar) with Laravel.
16+
Laravel Debugbar is a package that integrates [PHP Debug Bar](https://github.com/php-debugbar/php-debugbar) with Laravel to debug [database queries](collectors.md#db) and [profile other information](collectors.md).
1617

1718
![Debugbar Dark Mode screenshot](img/debugbar.gif)
1819

docs/installation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
description: Installing Laravel Debugbar in a project is simple. Use 'composer require barryvdh/laravel-debugbar --dev' to get started now
3+
preview_image: img/preview-install.jpg
24
hide:
35
- navigation
46
---

docs/overrides/main.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{% extends "base.html" %}
22

33
<!-- Meta tags -->
4-
{% block site_meta %}
4+
{% block extrahead %}
55
{{ super() }}
66

7-
{% if page.meta and page.meta.title %}
7+
{% if page.is_homepage %}
8+
<meta property="og:title" content="{{ config.site_name }}" />
9+
{% elif page.meta and page.meta.title %}
810
<meta property="og:title" content="{{ page.meta.title }} - {{ config.site_name }}" />
911
{% elif page.title and not page.is_homepage %}
1012
<meta property="og:title" content="{{ page.title | striptags }} - {{ config.site_name }}" />
@@ -21,10 +23,13 @@
2123
<meta property="og:type" content="website" />
2224
{% if page.canonical_url %}
2325
<meta property="og:url" content="{{ page.canonical_url }}" />
24-
2526
{% endif %}
2627

28+
{% if page.meta and page.meta.preview_image %}
29+
<meta property="og:image" content="{{ config.site_url }}{{ page.meta.preview_image }}" />
30+
{% else %}
2731
<meta property="og:image" content="{{ config.site_url }}img/preview.jpg" />
32+
{% endif %}
2833

2934
{% endblock %}
3035

docs/usage.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
description: Using Laravel Debugbar is simple. After installing, just enable Debug mode and you should be good. Read further for more options.
3+
preview_image: img/preview-usage.jpg
24
hide:
35
- navigation
46
---

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ theme:
3737
- content.action.edit
3838
- toc.follow
3939
- search.highlight
40+
- meta
4041
extra_css:
4142
- assets/extra.css
4243
- assets/debugbar.css

0 commit comments

Comments
 (0)