All Projects → yuya-matsushima → middleman-robots

yuya-matsushima / middleman-robots

Licence: MIT license
middleman-robots is extension of Middleman. This extension create robots.txt by config.rb.

Programming Languages

ruby
36898 projects - #4 most used programming language
Gherkin
971 projects
HTML
75241 projects

Projects that are alternatives of or similar to middleman-robots

middleman-ogp
middleman-og is an extension for the Middleman static site generator that adds Open Graph helper.
Stars: ✭ 37 (+12.12%)
Mutual labels:  middleman, middleman-extension
joinplu.me
The official Plume website
Stars: ✭ 13 (-60.61%)
Mutual labels:  middleman
neocortex
🧠Neocortex is a tool to connect your cognitive service (e.g. DialogFlow) 🤖 with your communication channels (like facebook) 📞to create amazing bots
Stars: ✭ 24 (-27.27%)
Mutual labels:  middleman
middleman-fontcustom
Generate webfonts in your Middleman project
Stars: ✭ 13 (-60.61%)
Mutual labels:  middleman
nakama-docs
Documentation for Nakama social and realtime server.
Stars: ✭ 44 (+33.33%)
Mutual labels:  middleman
drunker
Distributed CLI runner on AWS CodeBuild
Stars: ✭ 22 (-33.33%)
Mutual labels:  rubygems
fcmpush
Firebase Cloud Messaging API wrapper for Ruby, suppot HTTP v1 API including access_token auto refresh feature.
Stars: ✭ 44 (+33.33%)
Mutual labels:  rubygems
middleman-startae
A starter template ready to run on Netlify or Heroku. Comes with several helpers, partials and a nice basic structure to the HTML, Sass, Webpack and ES2015. Bottom line, a template that uses all the modern tools.
Stars: ✭ 43 (+30.3%)
Mutual labels:  middleman
gemdiff
Find source repositories for ruby gems. Open, compare, and update outdated gem versions
Stars: ✭ 116 (+251.52%)
Mutual labels:  rubygems
rubysec.github.io
Current home of rubysec.com
Stars: ✭ 25 (-24.24%)
Mutual labels:  rubygems
rails-mini-profiler
Performance profiling for Rails, made simple 🦔
Stars: ✭ 380 (+1051.52%)
Mutual labels:  rubygems
material-sass
A rubygem of Material Design for Bootstrap 4
Stars: ✭ 55 (+66.67%)
Mutual labels:  rubygems
website
Comunidade Brasileira Ember
Stars: ✭ 14 (-57.58%)
Mutual labels:  middleman
sxp.rb
A universal S-expression parser for Ruby.
Stars: ✭ 49 (+48.48%)
Mutual labels:  rubygems
slack neuralyzer
Ruby gem for clean up messages and files on Slack.
Stars: ✭ 58 (+75.76%)
Mutual labels:  rubygems
tss-rb
A Ruby implementation of Threshold Secret Sharing (Shamir) as defined in IETF Internet-Draft draft-mcgrew-tss-03.txt
Stars: ✭ 22 (-33.33%)
Mutual labels:  rubygems
vultr.rb
Ruby bindings for VULTR API v2.
Stars: ✭ 47 (+42.42%)
Mutual labels:  rubygems
sinator
Sinatra application generator
Stars: ✭ 19 (-42.42%)
Mutual labels:  rubygems
ruby-sensor
💎 Ruby Distributed Tracing & Metrics Sensor for Instana
Stars: ✭ 23 (-30.3%)
Mutual labels:  rubygems
crm114.rb
[Retired] Ruby interface to the CRM114 Controllable Regex Mutilator.
Stars: ✭ 29 (-12.12%)
Mutual labels:  rubygems

Middleman::Robots

Gem Version GitHub Actions CI

middleman-robots is an extension of Middleman. This can create robots.txt.

This plugin support Middleman v3-stable and v4.

Installation

Add this line to your application's Gemfile:

gem 'middleman-robots'

And then execute:

$ bundle

Or install it yourself as:

$ gem install middleman-robots
# config.rb
activate :robots, 
  rules: [
    { user_agent: '*', allow: %w[/] }
  ],
  sitemap: 'https://example.com/sitemap.xml'

Created robots.txt:

User-Agent: *
Allow: /

Sitemap: https://example.com/sitemap.xml

You can use options, rules [ {user_agent(string), allow(array), disallow(array)}] and sitemap. Like this:

# config.rb
activate :robots,
  rules: [
    {
      user_agent: 'Googlebot',
      disallow: %w[tmp/ /something/dir/file_disallow.html],
      allow: %w[allow/ /something/dir/file_allow.html]
    },
    {
      user_agent: 'Googlebot-Image',
      disallow: %w[tmp/ /something/dir/file_disallow.html],
      allow: %w[allow/ /something/dir/file_allow.html]
    }
  ],
  sitemap: 'https://example.com/sitemap.xml'

Created robots.txt:

User-Agent: Googlebot
Disallow: /tmp/
Disallow: /something/dir/file_disallow.html
Allow: /allow/
Allow: /something/dir/file_allow.html

User-Agent: Googlebot-Image
Disallow: /tmp/
Disallow: /something/dir/file_disallow.html
Allow: /allow/
Allow: /something/dir/file_allow.html

Sitemap: https://example.com/sitemap.xml

Contributing

  1. Fork it ( https://github.com/yterajima/middleman-robots/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].