src/main/java/com/ruleoftech/markdown/page/generator/plugin/MdPageGeneratorMojo.java
private String addTitleToHtmlFile(String html, String title) {
        if (html == null) {
            return html;
        }
        if (title != null) {
            getLog().debug("Setting the title in the HTML file to: " + title);
            return html.replaceFirst("titleToken", title);
        } else {
            getLog().debug("Title was null, setting the title in the HTML file to an empty string");
            return html.replaceFirst("titleToken", "");
        }
    }
private String addTitleToHtmlFile(String html, String title) {
        if (html == null) {
            return html;
        }
        if (title != null) {
            getLog().debug("Setting the title in the HTML file to: " + title);
            return html.replaceFirst("titleToken", title);
        } else {
            getLog().debug("Title was null, setting the title in the HTML file to an empty string");
            return html.replaceFirst("titleToken", "");
        }
    }
private String addTitleToHtmlFile ( String html , String title ) { if ( html == null ) { return html ; } if ( title != null ) { getLog ( ) . debug ( "Setting the title in the HTML file to: " + title ) ; return html . replaceFirst ( "titleToken" , title ) ; } else { getLog ( ) . debug ( "Title was null, setting the title in the HTML file to an empty string" ) ; return html . replaceFirst ( "titleToken" , "" ) ; } }
Adds the title to the html file.

@param html  The HTML string
@param title The title
Adds the title to the html file .