I agree to Brenden's answer that a lot will depend upon the structure of your website.
Since you're saying that every page has a descriptive H1 tag, one of the approaches could be to use Head HTML in your master template so that that web part can be managed from one place.
In the HTML section you can simply use
Similarly for H2 too. This is assuming that the descriptive H1 tag is part of you page type(s).
Tip :- In case you've multiple page types I would advise to keep field name common for all page types so that a common web part from the master page can work.