Search
🕞

YAML code block reference

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.
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.
â€ĸ
Meaningless if Google Adsense is not activated.

backgroundColor

â€ĸ
â€ĸ
Value should be double-quoted.
â€ĸ
Change background color of the page with the value.
â€ĸ
This option only works when value of theme is custom.

channeltalkId

â€ĸ
Value: your-plugin-key or false.
â€ĸ
Check Channel Talk first.
â€ĸ
Enable channel plugin with your-plugin-key or
â€ĸ
Disable channel plugin with the value of false

cleanUrl

â€ĸ
Value: valid/clean-url
â€ĸ
Check 🍰Clean URL first.
â€ĸ
Create 🍰Clean URL for the page with the value.

description

â€ĸ
Value: A description for the page between 50 and 160 characters in length.

disqus

â€ĸ
Value: your-short-name or false
â€ĸ
Check Disqus first.
â€ĸ
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 should be double-quoted
â€ĸ
Change color of fonts of the page with the value.
â€ĸ
This option only works when value of theme is custom.

fonts

â€ĸ
defaultFont
â—Ļ
Value: font name
â—Ļ
Change font for the body with the value.
â€ĸ
headerFont
â—Ļ
Value: font name
â—Ļ
Change font for the header with the value.

gotoTop

â€ĸ
The format of each value comes from Go-to-top button of https://app.oopy.io/styles page.
â€ĸ
You can enable/disable go-to-top button for the page.

hideBreadcrumbs

â€ĸ
Value: true or false
â€ĸ
Show/hide the navigation bar of the page.
â€ĸ
Equivalent of Hide Top Navigator of https://app.oopy.io/styles

hideCollectionProperties

â€ĸ
Value: true or false
â€ĸ
Show/hide the properties of the database item page.
â€ĸ
Equivalent of Hide database properties in pages of https://app.oopy.io/styles/collections

hideCollectionSearch

â€ĸ
Value: true or false
â€ĸ
Show/hide the search section of a collection in the page.
â€ĸ
Equivalent of Hide 'Search' on database of https://app.oopy.io/styles/collections

hideFooter

â€ĸ
Value: true or false
â€ĸ
Show/hide the Made with Oopy component at the bottom of the page.
â€ĸ
Equivalent of Hide Oopy logo at the bottom of https://app.oopy.io/styles

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
â€ĸ
Equivalent of Hide linked database arrow icons of https://app.oopy.io/styles/collections

hideSearch

â€ĸ
Value: true or false
â€ĸ
Show/hide the Search component in the navigation bar.
â€ĸ
Equivalent of Display search button of https://app.oopy.io/styles

overlay

â€ĸ
Value: snow, maple, cherry, or false
â€ĸ
Show/hide seasonal overlay of the page with the value.
â€ĸ
Equivalent of Apply seasonal overlay of https://app.oopy.io/styles

pagePassword

â€ĸ
Value: false
â€ĸ
Disable 🔐Beta) Page Password for the page.
â€ĸ
Setting password with code block is not allowed.

pageviewType

â€ĸ
Value: default, round or stack
â€ĸ
Change pageviewType of the page with the value.
â€ĸ
If showPageview is disabled, this option does not work.
â€ĸ
Equivalent of three types of Display Pageview Count of https://app.oopy.io/styles

scrollProgressBar

â€ĸ
show
â—Ļ
Value: true or false
â€ĸ
color
â—Ļ
â€ĸ
Enable/disable progress bar of the page with the value.
â€ĸ
Equivalent of Scroll progress bar of https://app.oopy.io/styles

showPageview

â€ĸ
Value: true or false
â€ĸ
Enable/disable pageview component of the page.
â€ĸ
Equivalent of Display Pageview Count of https://app.oopy.io/styles

showShareButton

â€ĸ
Value: true or false
â€ĸ
Enable/disable Share component in the navigation bar of the page.
â€ĸ
Equivalent of Display share button of https://app.oopy.io/styles

showThemeButton

â€ĸ
Value: true or false
â€ĸ
Enable/disable Theme switch component in the navigation bar of the page.
â€ĸ
Equivalent of Theme selection button of https://app.oopy.io/styles

theme

â€ĸ
Value: light, dark or custom
â€ĸ
Change the theme of the page with the value.
â€ĸ
Equivalent of Colors of https://app.oopy.io/styles

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

â€ĸ
"Gothic A1" is the name of font

Prev