Add meta descriptions for mempool and liquid

This commit is contained in:
hunicus committed 2023-08-30 21:10:59 +09:00
1 parent 6312884234
commit cd366177ba
42 files changed
+90 -25

No files matched your search

+10 -1
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 '';
}