Compare commits
2 Commits
c6dfbeb247
...
v0.1.7
| Author | SHA1 | Date | |
|---|---|---|---|
| aaea0b062a | |||
| b886585be1 |
@@ -1,5 +1,15 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v0.1.7
|
||||||
|
|
||||||
|
[compare changes](https://gitea.websimple.com/templates/wp-headless/compare/v0.1.6...v0.1.7)
|
||||||
|
|
||||||
|
### 🚀 Enhancements
|
||||||
|
|
||||||
|
- Configure sitemap URL in robots.txt (63f8e44)
|
||||||
|
- Deploy to Cloudflare workers (c6dfbeb)
|
||||||
|
- Display theme version in admin footer (b886585)
|
||||||
|
|
||||||
## v0.1.6
|
## v0.1.6
|
||||||
|
|
||||||
[compare changes](https://gitea.websimple.com/templates/wp-headless/compare/v0.1.5...v0.1.6)
|
[compare changes](https://gitea.websimple.com/templates/wp-headless/compare/v0.1.5...v0.1.6)
|
||||||
|
|||||||
@@ -31,3 +31,12 @@ function moonshine_bypass_home_url( $url, $path, $orig_scheme, $blog_id ) {
|
|||||||
}
|
}
|
||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Display theme version in admin footer
|
||||||
|
add_filter( 'update_footer', 'moonshine_update_footer', 100 );
|
||||||
|
function moonshine_update_footer() {
|
||||||
|
$package_json = json_decode( file_get_contents( get_theme_file_path( 'package.json' ) ), true );
|
||||||
|
$name = $package_json['name'] ?? 'moonshine';
|
||||||
|
$version = $package_json['version'] ?? '(unknown)';
|
||||||
|
return sprintf( '%s v%s', esc_html( $name ), esc_html( $version ) );
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@lewebsimple/moonshine",
|
"name": "@lewebsimple/moonshine",
|
||||||
"description": "Headless WordPress theme based on Nuxt.",
|
"description": "Headless WordPress theme based on Nuxt.",
|
||||||
"version": "0.1.6",
|
"version": "0.1.7",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ Theme Name: Moonshine
|
|||||||
Author: Pascal Martineau <pascal@lewebsimple.ca>
|
Author: Pascal Martineau <pascal@lewebsimple.ca>
|
||||||
Author URI: https://websimple.com/
|
Author URI: https://websimple.com/
|
||||||
Description: Headless WordPress theme based on Nuxt.
|
Description: Headless WordPress theme based on Nuxt.
|
||||||
Version: 0.1.6
|
|
||||||
Text Domain: moonshine
|
Text Domain: moonshine
|
||||||
Template: kaliroots
|
Template: kaliroots
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user