![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Create and manage your SEO landing pages easily.
SEO gives great importance to 3 html elements in the html head: title, meta description and meta keywords (to a lesser extent).
This gem lets you easily:
Add this line to your application's Gemfile:
gem 'seo_landing_pages'
And then execute:
$ bundle
Or install it yourself as:
$ gem install seo_landing_pages
Use the generator provided to create the landing pages table
$ rails g seo_landing_pages migration
run the migration and you should be ready to create landing pages, an example in the rails console would be:
> SeoLandingPages::Model.create! slug: '/', title: 'SEO landing pages FTW'
Note the slug
must be given and be unique.
It's your work now to determine which pages you want to create, e.g. for your blog, listings page, etc.
Configure your ApplicationController
by running:
$ rails g seo_landing_pages controller
That will include the module SeoLandingPages::Controllers::Helpers
in your controller,
the module provides a method seo_current_landing_page
which finds a Landing Page
matching the request path (/
in the example), and also will make view helpers
available for your views.
For advanced options of how to match Landing Pages check the module mentioned.
To show the SEO data in your views there are handy view helpers available, add to your views layout in the head section:
= seo_landing_page_title_tag
= seo_landing_page_description_tag
= seo_landing_page_keywords_tag
these add the proper HTML tags, visit your home page and the title
SEO Landing Pages FTW
should be showing in your HTML.
There are also helpers to access the landing pages attributes without the HTML tag for you to concatenate them or so.
= seo_landing_page_title
= seo_landing_page_description
= seo_landing_page_keywords
For internationalization, instead of writing plain text in the title, description and keywords write i18n keys, e.g. a landing page for your home page:
> SeoLandingPages::Model.create! slug: '/', title: 'title_home_page',
description: 'description_home_page',
keywords: 'keywords_home_page'
Create the translations in your locale files. Then use the view helpers like this:
= seo_landing_page_title_tag i18n: true
= seo_landing_page_description_tag i18n: true
= seo_landing_page_keywords_tag i18n: true
Now your pages have the HTML elements localized.
There's an Active Admin view provided, to get it run:
$ rails g seo_landing_pages active_admin
$ rails g seo_landing_pages i18n
and let your SEO guru float in love waves editing all the Landing Pages and seeing traffic increasing for your website.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)This gem was developed in the Hack Week at XING Barcelona, Big thanks to XING for providing the time to see ideas being realized.
FAQs
Unknown package
We found that seo_landing_pages demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.