In html/about/index.html:
{% extends "layouts/layout.njk" %}
{% set base_path = "../../" %}
{% set page_title = "about" %} In data.json:
| // https://make.wordpress.org/core/2020/03/02/general-block-editor-api-updates/ | |
| // https://github.com/WordPress/gutenberg/tree/trunk/packages/core-data | |
| import { | |
| PanelRow, TextControl, | |
| } from '@wordpress/components'; | |
| import { useSelect } from '@wordpress/data'; | |
| import { useEntityProp } from '@wordpress/core-data'; | |
| import { PluginDocumentSettingPanel } from '@wordpress/edit-post'; | |
| import { registerPlugin } from '@wordpress/plugins'; |
| <?php | |
| /** | |
| * Block helpers | |
| * add special classes when certain blocks appear, put this in your functions.php file or include it somewhere | |
| */ | |
| // add block classes in body and post class | |
| function blocks_body_class( $classes ) { | |
| global $post; |
| Windows Registry Editor Version 5.00 | |
| [HKEY_CLASSES_ROOT\.md] | |
| @="markdown" | |
| [HKEY_CLASSES_ROOT\.md\ShellNew] | |
| "NullFile"="" | |
| [HKEY_CLASSES_ROOT\markdown] | |
| @="Blank Markdown file" |
In html/about/index.html:
{% extends "layouts/layout.njk" %}
{% set base_path = "../../" %}
{% set page_title = "about" %} In data.json:
| return function(text) { | |
| var map = { | |
| '&': '&', | |
| '&': "&", | |
| '<': '<', | |
| '>': '>', | |
| '"': '"', | |
| ''': "'", | |
| '’': "’", | |
| '‘': "‘", |
| //* Page Section with field for unique class. | |
| function contentSection( $atts, $content = null ) { | |
| $content = preg_replace('#^<\/p>|<p>$#', '', $content); | |
| $a = shortcode_atts( array( | |
| 'class' => 'Add Classes Here', | |
| ), $atts ); | |
| return '<div class="full-block '."{$a['class']}".' "><div class="wrap">' . do_shortcode($content) . '</div></div>'; | |
| } |
##Sass Functions Cheat Sheet
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
|---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
| /* Modern Font Stacks */ | |
| /* System */ | |
| font-family: system, -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif; | |
| /* System (Bootstrap 5.2.0) */ | |
| font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; | |
| /* Times New Roman-based serif */ | |
| font-family: Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif; |