GithubHelp home page GithubHelp logo

tiste / middleman-meta-tags Goto Github PK

View Code? Open in Web Editor NEW
66.0 6.0 20.0 75 KB

Easy integration of meta tags into your Middleman applications

Home Page: rubygems.org/gems/middleman-meta-tags

License: MIT License

Ruby 100.00%
ruby gem middleman

middleman-meta-tags's Introduction

Hi there 👋

Baptiste Lecocq's X Baptiste Lecocq's Linkdein Baptiste Lecocq's Github Baptiste Lecocq's Views

GIF


I am Baptiste Lecocq

I help people and teams to define and meet their needs. I achieve this by working for and with these people by setting up an environment that promotes exchanges and technical excellence. I consider succeeding in this mission by following indicators related to customer satisfaction and software quality.

My experience in the web in very diverse missions, convinced me that the fluidity of communication and a well designed code are necessary to the success of a project.

I mainly master the languages and frameworks of the Javascript world. I am also involved in a number of methods related to agility and software craftsmanship to grow the teams I support.


Products I'm building


⭐️ Feel free to contact me if you want to work together.

middleman-meta-tags's People

Contributors

alexanderadam avatar duhast avatar jclusso avatar koppen avatar masolin avatar passatgt avatar pusewicz avatar rossta avatar scotteadams avatar tiste avatar wschenk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

middleman-meta-tags's Issues

do we really need site meta tag

When I write:

= display_meta_tags(site: 'Page Title', separator: '-')

I receive:

<title>Website Title - Page Title</title>
<meta name="site" content="Page Title" />

I am not sure that we really need second line.

And about title tag, in many SEO website I read that page title should be first and then website title.

Site default + layout default + frontmatter?

How can you have site default meta tags as well as set default for a specific tag on a specific layout but also allow each page to override the layout default with frontmatter?

NameError at / uninitialized constant ActiveSupport::HashWithIndifferentAccess

NameError at
uninitialized constant ActiveSupport::HashWithIndifferentAccess

Ruby | /Users/....../.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/middleman-meta-tags-0.6.0/lib/middleman-meta-tags/helpers.rb: in meta_tags, line 5

Gemfile:
gem "middleman", "~> 4.2" gem "middleman-autoprefixer" gem "middleman-livereload", "~> 3.4.6" gem "better_errors", "~> 2.5" gem "binding_of_caller", "~> 0.8" gem "middleman-meta-tags"

Head:
<%= display_meta_tags site: "Hütten mieten", description: t("meta.description") %>

Tried to activate old-style extension: meta_tags

It seems that this extension is not supported in Middleman v4. Does anyone know how we could fix that?

== The Middleman is loading
/Users/Renato/.rvm/gems/ruby-2.2.2/gems/middleman-core-4.0.0.beta.2/lib/middleman-core/extensions.rb:96:in `load': Tried to activate old-style extension: meta_tags. They are no longer supported. (RuntimeError)
    from /Users/Renato/.rvm/gems/ruby-2.2.2/gems/middleman-core-4.0.0.beta.2/lib/middleman-core/extension_manager.rb:48:in `activate'
    from /Users/Renato/Sites/templates/middleman-startae/config.rb:15:in `evaluate_configuration!'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/gems/middleman-core-4.0.0.beta.2/lib/middleman-core/application.rb:286:in `instance_eval'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/gems/middleman-core-4.0.0.beta.2/lib/middleman-core/application.rb:286:in `evaluate_configuration!'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/gems/middleman-core-4.0.0.beta.2/lib/middleman-core/application.rb:262:in `start_lifecycle'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/gems/middleman-core-4.0.0.beta.2/lib/middleman-core/application.rb:250:in `initialize'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/gems/middleman-core-4.0.0.beta.2/lib/middleman-core/preview_server.rb:106:in `new'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/gems/middleman-core-4.0.0.beta.2/lib/middleman-core/preview_server.rb:106:in `new_app'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/gems/middleman-core-4.0.0.beta.2/lib/middleman-core/preview_server.rb:26:in `start'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/gems/middleman-cli-4.0.0.beta.2/lib/middleman-cli/server.rb:67:in `server'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor/invocation.rb:115:in `invoke'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor.rb:40:in `block in register'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/gems/middleman-cli-4.0.0.beta.2/bin/middleman:23:in `<top (required)>'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/bin/middleman:23:in `load'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/bin/middleman:23:in `<main>'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in `eval'
    from /Users/Renato/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in `<main>'

Descriptions are truncated

The helper is truncating descriptions to make them "safe", but Google has increased the description length to 320. Is there a way to turn off the truncation? Or can this be updated to not truncate the description?

Only getting the twitter:card meta tag

I installed the gem and followed the readme, but both the

display_meta_tags

and

auto_display_meta_tags

are only printing the following line :

<meta content="summary_large_image" name="twitter:card">

The 'site' variable isn't being read from the 'data/site.yml'. The title and description are also not taken from the frontmatter of my index page or an article page.

My Gemfile :

source 'http://rubygems.org'

gem "middleman", "~> 3.3.12"
gem "middleman-blog", "~> 3.5.3"
gem "middleman-livereload", "~> 3.3.0"
gem "middleman-rouge"
gem "redcarpet"
gem 'middleman-meta-tags'
gem 'middleman-navtree'

# For feed.xml.builder
gem "builder", "~> 3.0"                        

In config.rg :

###
# Meta tags
###
activate :meta_tags

In the of the layouts/layout.erb :

    <%= auto_display_meta_tags =%>
    <%= display_meta_tags site: 'test'=%>

The data/site.yml file :


---
site: TEST META

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.