Skip to content

Commit

Permalink
Update meta
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh committed Dec 20, 2024
1 parent cc552e4 commit 0487a74
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 5 deletions.
2 changes: 2 additions & 0 deletions docs/collectors.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
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.
preview_image: img/preview-usage.jpg
hide:
- navigation
---
Expand Down
2 changes: 2 additions & 0 deletions docs/features.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
description: Laravel Debugbar contains features like collectors, capturing ajax requesting, browsing history etc.
preview_image: img/preview-features.jpg
hide:
- navigation
---
Expand Down
Binary file added docs/img/preview-collectors.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/preview-features.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/preview-install.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/preview-usage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Laravel Debugbar
title: Debugbar for Laravel
description: Laravel Debugbar is a package that integrates PHP Debug Bar with Laravel to debug database queries and profile other information.
hide:
- navigation
- toc
Expand All @@ -12,7 +13,7 @@ hide:
[![Total Downloads](https://img.shields.io/packagist/dt/barryvdh/laravel-debugbar?label=Downloads)](https://packagist.org/packages/barryvdh/laravel-debugbar)
[![Fruitcake](https://img.shields.io/badge/Powered%20By-Fruitcake-b2bc35.svg)](https://fruitcake.nl/)

Laravel Debugbar is a package that integrates [PHP Debug Bar](https://github.com/php-debugbar/php-debugbar) with Laravel.
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).

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

Expand Down
2 changes: 2 additions & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
description: Installing Laravel Debugbar in a project is simple. Use 'composer require barryvdh/laravel-debugbar --dev' to get started now
preview_image: img/preview-install.jpg
hide:
- navigation
---
Expand Down
11 changes: 8 additions & 3 deletions docs/overrides/main.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{% extends "base.html" %}

<!-- Meta tags -->
{% block site_meta %}
{% block extrahead %}
{{ super() }}

{% if page.meta and page.meta.title %}
{% if page.is_homepage %}
<meta property="og:title" content="{{ config.site_name }}" />
{% elif page.meta and page.meta.title %}
<meta property="og:title" content="{{ page.meta.title }} - {{ config.site_name }}" />
{% elif page.title and not page.is_homepage %}
<meta property="og:title" content="{{ page.title | striptags }} - {{ config.site_name }}" />
Expand All @@ -21,10 +23,13 @@
<meta property="og:type" content="website" />
{% if page.canonical_url %}
<meta property="og:url" content="{{ page.canonical_url }}" />

{% endif %}

{% if page.meta and page.meta.preview_image %}
<meta property="og:image" content="{{ config.site_url }}{{ page.meta.preview_image }}" />
{% else %}
<meta property="og:image" content="{{ config.site_url }}img/preview.jpg" />
{% endif %}

{% endblock %}

Expand Down
2 changes: 2 additions & 0 deletions docs/usage.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
description: Using Laravel Debugbar is simple. After installing, just enable Debug mode and you should be good. Read further for more options.
preview_image: img/preview-usage.jpg
hide:
- navigation
---
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ theme:
- content.action.edit
- toc.follow
- search.highlight
- meta
extra_css:
- assets/extra.css
- assets/debugbar.css
Expand Down

0 comments on commit 0487a74

Please sign in to comment.