poweredby url

This commit is contained in:
zefie
2025-08-07 20:47:59 -04:00
parent 8c844ce091
commit 932593aa21
3 changed files with 13 additions and 5 deletions

View File

@@ -560,7 +560,7 @@ block += `
<td width="30%" valign="middle">
<center>
<font size="-2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><i>
<a href="http://${this.getPublishDomain()}">Powered by ${this.minisrv_config.config.service_name}</a>
<a href="http://${this.getPoweredBy()}">Powered by ${this.minisrv_config.config.service_name}</a>
</i></font></center>
</td>
<td width="30%" valign="middle" align="right">
@@ -604,7 +604,7 @@ html += `">previous page</a>
<td width="30%" valign="middle">
<center>
<font size="-2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><i>
<a href="http://${this.getPublishDomain()}">Powered by ${this.minisrv_config.config.service_name}</a>
<a href="http://${this.getPoweredBy()}">Powered by ${this.minisrv_config.config.service_name}</a>
</i></font></center>
</td>
<td width="30%" valign="middle" align="right">
@@ -640,7 +640,7 @@ html += `">previous page</a>
<td width="30%" valign="middle">
<center>
<font size="-2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><i>
<a href="http://${this.getPublishDomain()}">Powered by ${this.minisrv_config.config.service_name}</a>
<a href="http://${this.getPoweredBy()}">Powered by ${this.minisrv_config.config.service_name}</a>
</i></font></center>
</td>
<td width="30%" valign="middle" align="right">
@@ -672,7 +672,7 @@ html += `">next page</a>
<td width="30%" valign="middle">
<center>
<font size="-2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><i>
<a href="http://${this.getPublishDomain()}">Powered by ${this.minisrv_config.config.service_name}</a>
<a href="http://${this.getPoweredBy()}">Powered by ${this.minisrv_config.config.service_name}</a>
</i></font></center>
</td>
<td width="30%" valign="middle" align="right">
@@ -777,6 +777,14 @@ html += `">next page</a>
}
}
getPoweredBy() {
if (this.minisrv_config.services['wtv-author'].powered_by_url) {
return this.minisrv_config.services['wtv-author'].powered_by_url;
} else {
return this.getPublishDomain();
}
}
getPublishDir() {
var destDir = false;
if (this.minisrv_config.services['wtv-author'].publish_mode == "service") {