SEO and This Site
So I tested this site for it’s SEO optimization just to see how it did. I used Go Auditor, an online test and it did surprsingly well considering I haven’t done anything SEO wise and don’t even expect the site to be found.
Domain Authority
For this I scored 92/100. What is it?
Domain Authority (DA) represents the score for your entire website and is provided by Moz. Like Page Authority, this score can have a maximum value of 100, and factors in metrics such as the amount of links you have. DA is a measure of your overall domain strength.
Could it be better?
Moz suggests that the best way to improve this score is to focus on your link profile. You will need to understand Google’s Penguin algorithm and how it can affect your website. This most important thing about Penguin is to make sure your website’s links are predominately brand keywords and NOT heavy on anchor text keywords.
So that was interesting. I do have a lot of outward links, but crucially for real world SEO zero incoming ones.
Inbound lins - The URL or domain you’re auditing doesn’t have any backlinks. Obtaining authority links with high relevance is essential to SEO and should be a top priority.
Ah well… Next…
Page Authority
Only a mere 41 of 100 and a reason why is no page description meta tag.
Page Authority (PA) is a metric, provided by Moz, that predicts how well your page will rank in Google’s search results. The score is based on a 100 point scale and uses different variables such as the amount of links you have to calculate the score. For higher ranking pages, PA will typically be higher than your Domain Authority.
What needed apparently is:
The meta description tag should provide a compelling description of your page where you have an opportunity to include keywords to increase CTR and ideal lengths are between 150-160 characters.
Since my pages already have summaries all I should need is to add these to a meta>description tag in the head. Easy.
1{{- with .Summary }}
2 <meta name="description" content="{{ . }}">
3{{ end -}}
Other meta tags I could add are keywords and author but I’m never too sure how useful these are but would add these to frontmatter variables if I was interested in SEO for this site.
I also got a warning about keywords not matching the page url. Whilst my h1 heading and url are the same I assume this means those words are not used in the content.
Page Speed
The final two assessments were for page speed, one for desktop and one for mobile. I passed both of these scoring 98/100 and 89/100 respectively for these.
Go Auditor says:
This is not your page load time, but rather your Google PageSpeed. It factors in many optimization metrics such as caching of your website, how you treat your CSS and JS, and many other variables such as optimized images. The best possible score is 100.
You will definitely want to check out Web.dev to test and improve your score, as this is a critical factor in your on-page SEO efforts.
Robots.txt
So I was warned about not having one of these. In Hugo there are several ways to achieve this:
- Through the config file
- with a template
- In the static directory
1 In the config file
These are added using one line to your config file:
1enableRobotsTXT = true
2 With a template
Alternatively you can overwrite the built in robots template with one of your own. Simply put it in /layouts/robots.txt
or in the theme’s layouts
folder.
In here you could add some code:
1User-agent: *
2{{ range .Pages }}
3Disallow: {{ .RelPermalink }}
4{{ end }}
Realistically you might want to add some frontmatter to each page and incorporate it into the above template.
3. In the static directory
To create a robots.txt file without using a template:
- Set enableRobotsTXT to false in the site configuration.
- Create a robots.txt file in the static directory.
Hugo copies everything in the static directory to the root of publishDir (typically public) when you build your site.
Open Graph Tags
This was a big fat fail as I don’t have any. These are tags in the head of each document to help social media sites link to your content.
Good article on FreeCodeCamp.