Skip to content

Commit 55aac4b

Browse files
committed
Update and rename to Meta Tags
1 parent 21bc82d commit 55aac4b

36 files changed

+2376
-1395
lines changed

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
; top-most EditorConfig file
2+
root = true
3+
4+
; Unix-style newlines
5+
[*]
6+
end_of_line = LF
7+
8+
[*.php]
9+
indent_style = space
10+
indent_size = 4

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## [1.0.0-beta] - 2017-03-01
5+
The plugin has gone under heavy refactor and is no longer focused only on Open Graph. For that reason the name has changed from Open Graph to Meta Tags.
6+
7+
Although this is a beta release, it is considered stable and should cover most use cases, even complex ones.
8+
49
## [1.0.0-alpha] - 2017-02-26
510
### Initial release

composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
2+
"autoload": {
3+
"classmap": [
4+
"src"
5+
]
6+
},
27
"require": {
3-
"chriskonnertz/open-graph": "^1.0"
8+
"pedroborges/meta-tags": "^0.0.1"
49
}
510
}

composer.lock

Lines changed: 19 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

meta-tags.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
/**
4+
* Kirby Meta Tags Plugin
5+
*
6+
* @version 1.0.0-beta
7+
* @author Pedro Borges <[email protected]>
8+
* @copyright Pedro Borges <[email protected]>
9+
* @link https://github.com/pedroborges/kirby-meta-tags
10+
* @license MIT
11+
*/
12+
13+
// Load dependencies
14+
require __DIR__ . DS . 'vendor' . DS . 'autoload.php';
15+
16+
kirby()->set('page::method', 'metaTags', function($page) {
17+
return metaTags($page)->render();
18+
});
19+
20+
function metaTags($page)
21+
{
22+
return MetaTags::instance($page);
23+
}

open-graph.php

Lines changed: 0 additions & 74 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "open-graph",
2+
"name": "meta-tags",
33
"author": "Pedro Borges <[email protected]>",
4-
"version": "1.0.0-alpha",
5-
"description": "Kirby Open Graph",
4+
"version": "1.0.0-beta",
5+
"description": "Kirby Meta Tags",
66
"type": "kirby-plugin",
77
"license": "MIT"
88
}

0 commit comments

Comments
 (0)