Skip to content

Commit

Permalink
feat: improve metatags and SEO
Browse files Browse the repository at this point in the history
  • Loading branch information
nicov-iov committed Oct 7, 2024
1 parent 1f2da47 commit 908b974
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
5 changes: 4 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>RSK explorer</title>
<title>Rootstock Explorer</title>
<meta name="description" content="Smart contracts platform secured by Bitcoin. Keep track of your $RBTC and Rootstock tokens. Get details on transactions, blocks, and tokens on the Rootstock Blockchain.">
<meta name="keywords" content="Rootstock, rootstock, RSK, rsk, Bitcoin, BTC, RBTC, rbtc, Blockchain, Explorer, Cryptocurrency">

<style>
@font-face {
font-family: Rootstock-Sans-Body;
Expand Down
2 changes: 1 addition & 1 deletion src/config/types.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

export const APP_NAME = 'RSK explorer'
export const APP_NAME = 'Rootstock Explorer'

export const ROUTES = {
home: 'home',
Expand Down
9 changes: 8 additions & 1 deletion src/store/getters.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,14 @@ export const connectionStart = state => {
export const getPageTitle = (state, getters) => page => {
const { appName } = state
const netName = getters.networkName
let title = `${appName} :: ${netName}`

let title
if (netName === 'testnet') {
title = `TESTNET ${appName}`
} else {
title = appName
}

if (page) title += ` - ${page}`
return title
}

0 comments on commit 908b974

Please sign in to comment.