From 6d6420173210899be4452533380c6675f9526ab6 Mon Sep 17 00:00:00 2001 From: Bobby Date: Wed, 16 Nov 2016 11:54:39 +0100 Subject: [PATCH] Prepare 1.3 release --- README.md | 29 ++++++++++---- gradle.properties | 4 +- .../resources/site/filters/add-metadata.html | 40 +++++++++---------- src/main/resources/site/site.xml | 2 +- 4 files changed, 43 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 3a7c8aa..b8ca1ea 100644 --- a/README.md +++ b/README.md @@ -7,12 +7,14 @@ This app will add this functionality to your site: 1. SEO friendly titles 2. SEO meta description 3. Open Graph meta data -4. Google search console tag -5. Robots exclude setting +4. Twitter Cards meta data +5. Google Search Console meta data / tag +6. Canonical meta data +7. Robots exclude setting ## Building and deploying -There are two options. One is to simply download the app [JAR file](http://repo.enonic.com/public/com/enonic/app/metafields/1.2.0/metafields-1.2.0.jar) and move it to the XP installation's `$XP_HOME/deploy` folder. +There are two options. One is to simply download the app [JAR file](http://repo.enonic.com/public/com/enonic/app/metafields/1.3.0/metafields-1.3.0.jar) and move it to the XP installation's `$XP_HOME/deploy` folder. Or you can build this app with Gradle. First, download the zip file of this repo. Unpack it locally. In the terminal, from the root of the project, type `./gradlew build`. On Windows, just type `gradlew build`. Next, move the JAR file from `build/libs` to your `$XP_HOME/deploy` directory. The SEO Meta Fields app will now be available to add to your websites through the Content Manager admin tool in Enonic XP. @@ -30,6 +32,7 @@ This app introduces a few settings. They're controlled on the app itself on your 2. Search engine settings 3. Title behavior 4. Custom JSON paths +5. Other ### Default settings @@ -56,6 +59,12 @@ Add field names as comma separated strings, like `field1, field2, long-fieldname We only evaluate for matches in the JSON `data`-node for each content. +### Other + +Turn generation of canonical meta field on or off. Default is off, since most sites ship whit this already. Otherwise it will generate the meta tag with current URL. The logic is simple, it will use the current contents path as value. + +For Twitter Cards to work we need a Twitter user name (starting with `@`). When that is in place we can generate meta data for improved Twitter sharing. + ## Waterfall logic for meta fields We will always add the meta fields for title and description, and most of the meta fields for Open Graph. However, if we cannot find any image to use, we won't add the meta fields for Open Graph image. @@ -91,19 +100,25 @@ For titles there is no way it can be empty, at least the last fallback will alwa ## Releases and Compatibility -| Version | XP version | +| Version | XP version | | ------------- | ------------- | -| 1.2.0 | 6.7.3 | -| 1.1.4 | 6.7.3 | +| 1.3.0 | 6.7.0 | +| 1.2.0 | 6.7.0 | +| 1.1.4 | 6.7.0 | | 1.1.3 | 6.4.0 | | 1.1.2 | 6.4.0 | | 1.1.1 | 6.4.0 | | 1.1.0 | 6.4.0 | -| 1.0.0 | 6.3.1 | +| 1.0.0 | 6.3.0 | | 0.5.0 | 6.3.0 | ## Changelog +### Version 1.3.0 + +* Added Twitter Card meta data generation. +* Added canonical meta data generation. + ### Version 1.2.0 * Fixed bug where user-defined paths for meta description always failed. diff --git a/gradle.properties b/gradle.properties index 18d8fff..9be9904 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,8 +2,8 @@ # Project settings # group = com.enonic.app -version = 1.2.0 +version = 1.3.0 projectName = metafields appName = com.enonic.app.metafields displayName = SEO Meta Fields -xpVersion = 6.7.3 +xpVersion = 6.7.0 diff --git a/src/main/resources/site/filters/add-metadata.html b/src/main/resources/site/filters/add-metadata.html index 8d223fe..e1431d1 100644 --- a/src/main/resources/site/filters/add-metadata.html +++ b/src/main/resources/site/filters/add-metadata.html @@ -1,24 +1,20 @@
-
- - - - - -
- - - - - - - - - - - - - - - + + + + + + + + + +
+ + +
+ + + + +
diff --git a/src/main/resources/site/site.xml b/src/main/resources/site/site.xml index 4a1fba0..129c9e0 100644 --- a/src/main/resources/site/site.xml +++ b/src/main/resources/site/site.xml @@ -73,7 +73,7 @@ - +