You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ss...@apache.org on 2019/01/15 10:15:16 UTC
[sling-site] branch master updated: rename repo
sling-maven-sling-plugin to sling-maven-plugin
This is an automated email from the ASF dual-hosted git repository.
sseifert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-site.git
The following commit(s) were added to refs/heads/master by this push:
new 66bc3b4 rename repo sling-maven-sling-plugin to sling-maven-plugin
66bc3b4 is described below
commit 66bc3b4784bddc8e799071147b2d41ee27fff663
Author: sseifert <ss...@pro-vision.de>
AuthorDate: Tue Jan 15 11:14:58 2019 +0100
rename repo sling-maven-sling-plugin to sling-maven-plugin
---
src/main/jbake/templates/downloads.tpl | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/main/jbake/templates/downloads.tpl b/src/main/jbake/templates/downloads.tpl
index 9a51521..192921c 100644
--- a/src/main/jbake/templates/downloads.tpl
+++ b/src/main/jbake/templates/downloads.tpl
@@ -288,11 +288,17 @@ def downloadLink(label, artifact, version, suffix) {
def githubLink(artifact,ghflag) {
if(ghflag == 'Y') {
artifact = artifact.replaceAll('\\.','-')
- a(href:"https://github.com/apache/sling-${artifact}", "GitHub")
+ def url = "https://github.com/apache/sling-${artifact}"
+ // remove duplicate sling- prefix
+ url = url.replaceAll('sling-sling-','sling-')
+ a(href:url, "GitHub")
newLine()
} else if (ghflag != 'N') {
artifact = ghflag.replaceAll('\\.','-')
- a(href:"https://github.com/apache/sling-${artifact}", "GitHub")
+ // remove duplicate sling- prefix
+ def url = "https://github.com/apache/sling-${artifact}"
+ url = url.replaceAll('sling-sling-','sling-')
+ a(href:url, "GitHub")
newLine()
} else {
yield "N/A"