Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WEBSITE-460 Add schema.org microdata #63

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

WEBSITE-460 Add schema.org microdata

  • Loading branch information
DavideD committed Jul 22, 2016
commit 060e4774b29773d19a76f6baa26958a73c3b73e9
@@ -17,7 +17,7 @@ title_partial: blog/title-post.html.haml
= partial( 'blog/blogger_list.html.haml' )

.span10
.blogpost
.blogpost{:itemprop=>"blogPost", :itemscope => "", :itemtype => "https://schema.org/BlogPosting", :itemref=>"logobar"}
= partial( 'blog/post.html.haml', {"post" => page} )
#disqus_thread
%script{:src=>javascript, :type=>'text/javascript'}
@@ -18,16 +18,20 @@
%a{:accesskey => "n", :href => "#nav", :title => "Skip to navigation"} Skip to navigation
%li
%a{:accesskey => "c", :href => "#page", :title => "Skip to content"} Skip to content
.container#content
.container#content{:itemscope=>"", :itemtype=>"http://schema.org/Blog"}

#logobar{ :itemscope=>"", :itemtype=>"http://schema.org/Organization", :itemprop=>"publisher"}
%meta{:itemprop=>"name", :content=>"Hibernate"}
%link{:itemprop=>"url", :href=>"http://hibernate.org"}

#logobar
.dropup
%a#tab.tabnav-closed{:href => "https://www.jboss.org"} Red Hat
%script
window.addEventListener('load', function() { renderTabzilla("#{project_name}","#{project_id}") }, false);

%a{:href=>"/"}
%a{:href=>"/", :itemprop=>"logo", :itemscope=>"",:itemtype=>"http://schema.org/ImageObject" }
%img{:src=>'http://static.jboss.org/hibernate/images/hibernate_logo_whitebkg_200px.png'}
%link{:itemprop=>"url", :href=>"http://static.jboss.org/hibernate/images/hibernate_logo_whitebkg_200px.png"}

= partial( page.nav_partial.nil? ? 'nav.html.haml' : page.nav_partial, {"real_page" => page} )

@@ -8,24 +8,31 @@
.blog-title-image.hidden-phone
- if member.gravatar_hash && show_author_image != false
.author-image-container
.author-image
.author-image{:itemprop=>"image", :itemscope=>"", :itemtype=>"http://schema.org/ImageObject"}
%meta{:itemprop=>"height width", :content=>"65"}
%link{:itemprop=>"url", :href=>"https://www.gravatar.com/avatar/#{member.gravatar_hash}?s=65"}
%img.author-image{:src=>"https://www.gravatar.com/avatar/#{member.gravatar_hash}?s=65", :height=>65, :width=>65}

.blog-title-caption
%h2
%h2{:itemprop=>"headline"}
%a{:href=>post.url}= post.title
%link{:itemprop=>"mainEntityOfPage", :href=>post.url}

.blog-author-bar
Posted by
- # It's a String in editor mode only
- if post.author.is_a? String
= post.author
%span{:itemprop=>"author", :itemscope=>"", :itemtype=>"http://schema.org/Person"}
%span{:itemprop=>"name"}
= post.author
- else
- post.author.each do |author|
%a{:href=>author.primary_page.url}
= author
%span{:itemprop=>"author", :itemscope=>"", :itemtype=>"http://schema.org/Person"}
%span{:itemprop=>"name"}
= author
   |   
%time{:datetime=>post.date.strftime( "%F" )}
%time{:datetime=>post.date.strftime( "%F" ), :itemprop=>"dateModified datePublished", :content=>post.date.strftime( "%Y-%m-%d" ) }
= post.date.strftime( site.date_format )
&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp; <i class="icon-tags"></i> Tagged as
- post.tags.each do |tag|
@@ -37,5 +44,5 @@
%a.label{:href=>tag.primary_page.url}
= tag

%div
%div{:itemprop=>"articleBody"}
~ post.content.force_encoding("UTF-8")
@@ -21,6 +21,7 @@ title_partial: blog/blog-hero-unit.html.haml
= partial( page.title_partial.nil? ? 'blog/title.html.haml' : page.title_partial, {"real_page" => page} )

- for post in page.posts
.blogpost

.blogpost{:itemprop=>"blogPost", :itemscope => "", :itemtype => "https://schema.org/BlogPosting", :itemref=>"logobar"}
= partial( 'blog/post.html.haml', {"post" => post} )
= page.posts.bootstrap_links
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.