Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
My head partial for LessAccounting.com, using middlemanapp.com.
- if current_page.data.title.blank?
%title
Accounting Software | Small Business Bookkeeping Software
%meta{:property => "og:title", :content => "Simple Accounting Software for Business" }
- else
%title
= current_page.data.title
%meta{:property => "og:title", :content => current_page.data.title }
- if current_page.data.short.blank?
%meta{ :name => "Description", :content => "Small business accounting software from Less Everything, because your job title isn't accountant! Accounting software features: invoicing, proposals, CRM and more." }
%meta{:property => 'og:description', :content => 'Bookkeeping is less terrible with http://LessAccounting.com, perfect for freelancers and small businesses.' }
- else
%meta{ :name => "Description", :content => current_page.data.short }
%meta{:property => 'og:description', :content => current_page.data.short }
- if current_page.data.image.blank?
%meta{:property => 'og:image', :content => 'https://lessaccounting.com/images/og.png' }
- else
%meta{:property => "og:image", :content => "https://lessaccounting.com/#{current_page.data.image}" }
- if current_page.data.author.blank?
%meta{ :name => "Author", :content => "Less Everything (http://lesseverything.com)" }
- else
%meta{ :name => "Author", :content => current_article.data.author }
%meta{:property => 'og:url', :content => "http://lessaccounting.com#{current_page.url}" }
%meta{:property => 'og:type', :content => 'website' }
%meta{:property => 'og:site_name', :content => 'LessAccounting' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment