Skip to content

Commit

Permalink
Add canonical reference to page headers
Browse files Browse the repository at this point in the history
  • Loading branch information
iaincollins committed Sep 5, 2024
1 parent 23db50f commit f15ec8a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ardent-www",
"version": "0.39.0",
"version": "0.40.0",
"description": "Ardent Industry",
"main": "index.js",
"scripts": {
Expand Down
10 changes: 5 additions & 5 deletions pages/about.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import { useState, useEffect } from 'react'
import Link from 'next/link'
import Head from 'next/head'
import Layout from 'components/layout'
import { API_BASE_URL } from 'lib/consts'

import Package from 'package.json'
import Dialog from 'components/dialog'

import { API_BASE_URL } from 'lib/consts'

export default () => {
const [stats, setStats] = useState()
Expand All @@ -26,6 +23,9 @@ export default () => {

return (
<Layout>
<Head>
<link rel='canonical' href='https://ardent-industry.com/about' />
</Head>
<div className='fx__fade-in'>
<h1 className='heading--with-icon'>
About
Expand Down
4 changes: 4 additions & 0 deletions pages/commodities.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useState, useEffect } from 'react'
import { useRouter } from 'next/router'
import Head from 'next/head'
import Table from 'rc-table'
import Layout from 'components/layout'
import { getCommodities } from 'lib/commodities'
Expand All @@ -23,6 +24,9 @@ export default () => {

return (
<Layout loading={commodities === undefined}>
<Head>
<link rel='canonical' href='https://ardent-industry.com/commodities' />
</Head>
{commodities &&
<div className='fx__fade-in'>
<h2 style={{ marginBottom: '-.1rem' }}>Commodities</h2>
Expand Down
4 changes: 4 additions & 0 deletions pages/downloads.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useState, useEffect } from 'react'
import Link from 'next/link'
import Head from 'next/head'
import Layout from 'components/layout'
import { API_BASE_URL } from 'lib/consts'

Expand All @@ -14,6 +15,9 @@ export default () => {
}, [])
return (
<Layout>
<Head>
<link rel='canonical' href='https://ardent-industry.com/downloads' />
</Head>
<div className='fx__fade-in'>
<h2 className='heading--with-icon'>
<i className='icon icarus-terminal-download' />
Expand Down

0 comments on commit f15ec8a

Please sign in to comment.