-
local_url = current_page.metadata.page
-
url = local_url || current_page.url
-
title = current_page.metadata.page || locals # locals should be first but there’s a bug
-
description = locals || current_page.metadata.page
-
standalone_url = !!extensions ? url.sub(//$/, ‘/standalone’) : url.sub(/.html$/, ‘-standalone.html’)
-
if resource_file(current_page).match(/-?standalone/?$/)
html¶ ↑
-
else article.glypto-model
header - if title h3._title - if local_url = link_to title, local_url - else = title - if description p._description = description ._standalone = link_to standalone_url, target: '_blank' do i.fa.fa-external-link title="Standalone version" section.glypto-model-stage - if current_page.metadata.page.iframe iframe src="#{url_for(standalone_url)}" height="0" width="100%" frameborder="0" scrolling="no" onload='javascript:resizeIframe(this);' - else figure = html = partial 'glyptotheque/model-utils', locals: { html: html }
-
unless locals
-
stylesheets = current_page.metadata.page || current_page.metadata.page || current_page.data || current_page.data
-
javascripts = current_page.metadata.page || current_page.metadata.page || current_page.data || current_page.data
-
if stylesheets
-
content_for :stylesheets, include_stylesheets(stylesheets)
-
-
if javascripts
-
content_for :javascripts, include_javascripts(javascripts)
-
-
-