Add meta descriptions for mempool and liquid

This commit is contained in:
hunicus
2023-08-30 20:26:07 +09:00
parent 6312884234
commit cd366177ba
42 changed files with 90 additions and 25 deletions

View File

@@ -135,4 +135,13 @@ export function haversineDistance(lat1: number, lon1: number, lat2: number, lon2
export function kmToMiles(km: number): number {
return km * 0.62137119;
}
}
export function seoDescriptionNetwork(network: string): string {
if( network === 'liquidtestnet' || network === 'testnet' ) {
return ' Testnet';
} else if( network === 'signet' || network === 'testnet' ) {
return ' ' + network.charAt(0).toUpperCase() + network.slice(1);
}
return '';
}