     end
   end
 
-  def get_template_header(file, title \\ "eeb") do
+  def get_template_header(file, word_number \\ 0,title \\ "eeb") do
     config = ConfigUtils.build_config();
     # page = % {
     #   :title => title

    blog = %Eeb.Blog {
      title: title,
      time: BlogUtils.get_file_time_normal(file, :ctime),
      mtime: BlogUtils.get_file_time_normal(file, :mtime)
    }
    Templates.head_template(config, blog)
  end

    Hex.Shell.info("process file:" <> file <> "...")
    case File.read(file) do
      {:ok, content} ->
        word_number = BlogUtils.count_word(content)
        html_bodycontent = Earmark.to_html(content) |> Style.pretty_codeblocks
        html_header = get_template_header(file, word_number, title)
        html_footer = get_template_footer()
        html_doc = html_header <> html_bodycontent <> html_footer
        File.write(file_out_put, html_doc)
