Sha256: ed442d64a4b1cdb3d02d82949d9faaf40f995def6501ff7a038c5d532e897ae1

Contents?: true

Size: 722 Bytes

Versions: 9

Compression:

Stored size: 722 Bytes

Contents

# encoding: utf-8
# google-webmaster.rb - embed a meta tag to let Google Webmaster tool know your verification code.
#
# Copyright (C) 2012, Tatsuya Sato <satoryu.1981@gmail.com>
# You can redistribute it and/or modify it under GPL2.
#

add_header_proc do
  "<meta name=\"google-site-verification\" content=\"#{h @conf['google_webmaster.verification']}\" />"
end

add_conf_proc('Google Webmaster', 'Google ウェブマスターツール', 'etc') do
  if @mode == 'saveconf'
    @conf['google_webmaster.verification'] = @cgi.params['google_webmaster.verification'][0]
  end
  <<-HTML
  <h3>Google ウェブマスターツールの検証コード</h3>
  <p>
  <input name='google_webmaster.verification'/>
  </p>
  HTML
end

Version data entries

9 entries across 8 versions & 2 rubygems

Version Path
tdiary-contrib-4.2.1 plugin/google_webmaster.rb
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/bundler/gems/tdiary-contrib-d189eb6688f1/plugin/google_webmaster.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/bundler/gems/tdiary-contrib-2ab36447ae2a/plugin/google_webmaster.rb
tdiary-contrib-4.2.0 plugin/google_webmaster.rb
tdiary-contrib-4.1.3 plugin/google_webmaster.rb
tdiary-contrib-4.1.2 plugin/google_webmaster.rb
tdiary-contrib-4.1.1 plugin/google_webmaster.rb
tdiary-contrib-4.1.0 plugin/google_webmaster.rb
tdiary-contrib-4.0.5.1 plugin/google_webmaster.rb