diff --git a/rakelib/yard_builder.rb b/rakelib/yard_builder.rb
index <HASH>..<HASH> 100644
--- a/rakelib/yard_builder.rb
+++ b/rakelib/yard_builder.rb
@@ -237,10 +237,10 @@ class YardBuilder
       Dir.chdir(gh_pages_repo_dir + "docs" + gem) do
         Dir.glob(File.join("**","*.html")).each do |file_path|
           file_contents = File.read file_path
-          file_contents.gsub! "dynamic print site_values.console_name %",
-                              "Google Cloud Platform Console"
           file_contents.gsub! "{% dynamic print site_values.console_name %}",
                               "Google Cloud Platform Console"
+          file_contents.gsub! "dynamic print site_values.console_name %",
+                              "Google Cloud Platform Console"
           File.write file_path, file_contents
         end
       end
Fix order of Trace docs fixes

These search and replace calls are here to remove the protobuf templating
directives that were missed before these protos were published.
Unfortunately, these directives look like valid YARD templating when
generating the HTML output, and look like valid Liquid templating for
the source code view.
GitHub Pages cannot load the site with these left alone, so we must
fix them.