Introduction
There are so many options you can customize per page with YAML code block(
Head YAML Code Block). This page is a detailed explanation for all the options you can use.
Head YAML Code Block). This page is a detailed explanation for all the options you can use.With this feature, you can control features page by page. If you don't want to control them page by page -in most cases-, setting them in the admin is a more easy-to-use and less cumbersome way.
Example code blocks with all keys available
adsense: false
backgroundColor: "#123456"
channeltalkId: false
cleanUrl: "/your/clean-url"
description: "The page description for SEO"
disqus: false
facebookCustomerChatId: false
fontColor: "rgb(255,255,255)"
fonts:
defaultFont: "Roboto"
headerFont: "Gothic A1"
gotoTop:
show: true
fitToScreen: false
align: "left"
alignPixel: 0
bottom: 16
hideBreadcrumbs: false
hideCollectionProperties: true
hideCollectionSearch: true
hideFooter: false
hidePageLinkIndicator: true
hideSearch: false
overlay: false
pagePassword: false
pageviewType: "snow"
scrollProgressBar:
show: true
color: "#123A45"
showPageview: true
showShareButton: false
showThemeButton: true
theme: "custom"
title: "The page title for SEO"
YAML
ëŗĩėŦ
You can only declare keys of your interest, of course.
When the page with the code block is rendered, the code block takes effects. In other words, you need to visit the web-page to make the code block work.
How to use
Syntax and meaning
adsense
âĸ
Value: false
âĸ
Disable adsense for the page.
âĸ
backgroundColor
âĸ
Value: color format
âĸ
Value should be double-quoted.
âĸ
Change background color of the page with the value.
âĸ
channeltalkId
âĸ
Value: your-plugin-key or false.
âĸ
âĸ
Enable channel plugin with your-plugin-key or
âĸ
Disable channel plugin with the value of false
cleanUrl
âĸ
Value: valid/clean-url
âĸ
âĸ
description
âĸ
Value: A description for the page between 50 and 160 characters in length.
disqus
âĸ
Value: your-short-name or false
âĸ
âĸ
Enable disqus with your-short-name or
âĸ
Disable disqus with false
facebookCustomerChatId
âĸ
Value: your-facebook-chat-id or false
âĸ
âĸ
Enable facebook chat plugin with your-facebook-chat-id or
âĸ
Disable facebook chat plugin with false
fontColor
âĸ
Value: color format
âĸ
Value should be double-quoted
âĸ
Change color of fonts of the page with the value.
âĸ
fonts
âĸ
âĸ
gotoTop
âĸ
âĸ
You can enable/disable go-to-top button for the page.
hideBreadcrumbs
âĸ
Value: true or false
âĸ
Show/hide the navigation bar of the page.
âĸ
hideCollectionProperties
âĸ
Value: true or false
âĸ
Show/hide the properties of the database item page.
âĸ
hideCollectionSearch
âĸ
Value: true or false
âĸ
Show/hide the search section of a collection in the page.
âĸ
hideFooter
âĸ
Value: true or false
âĸ
Show/hide the Made with Oopy component at the bottom of the page.
âĸ
hidePageLinkIndicator
âĸ
Value: true or false
âĸ
Show/hide the arrow of
âĻ
Link to the page
âĻ
Link to the original database(in the linked database)
âĸ
Disable link to the original database of the linked database
âĸ
hideSearch
âĸ
Value: true or false
âĸ
Show/hide the Search component in the navigation bar.
âĸ
overlay
âĸ
Value: snow, maple, cherry, or false
âĸ
Show/hide seasonal overlay of the page with the value.
âĸ
pagePassword
âĸ
Value: false
âĸ
âĸ
Setting password with code block is not allowed.
pageviewType
âĸ
Value: default, round or stack
âĸ
Change pageviewType of the page with the value.
âĸ
âĸ
scrollProgressBar
âĸ
show
âĻ
Value: true or false
âĸ
color
âĻ
Value: color format
âĸ
Enable/disable progress bar of the page with the value.
âĸ
showPageview
âĸ
Value: true or false
âĸ
Enable/disable pageview component of the page.
âĸ
showShareButton
âĸ
Value: true or false
âĸ
Enable/disable Share component in the navigation bar of the page.
âĸ
showThemeButton
âĸ
Value: true or false
âĸ
Enable/disable Theme switch component in the navigation bar of the page.
âĸ
theme
âĸ
Value: light, dark or custom
âĸ
Change the theme of the page with the value.
âĸ
title
âĸ
Value: A title for the page less than 64 characters in length.
Value formats
Color format
1.
RGB format: rgb(255, 255, 255)
2.
HEX format: #123A56
Font name
âĸ
Available fonts: https://app.oopy.io/styles/fonts
"Gothic A1" is the name of font











