JSFiddle - React, Tailwind, and code Playground

HTML

<header role='banner'>
<h1 class='site-title'>My Blog Title</h1><!-- homepage header title -->
<p class='site-title' href='mylink'>My Blog Title</p><!-- other page header title -->
</header>

JavaScript

$(document).ready(function () {
    $('h1.site-title').text(window.location.host);
    $('p.site-title').text(window.location.host);
});