Skip to content

Instantly share code, notes, and snippets.

View jnix284's full-sized avatar

Jennifer Nixon jnix284

View GitHub Profile
@jnix284
jnix284 / code-block-pre-tag
Created May 31, 2023 23:33
code block tag
<p>To create a code block, you will need to add two tags outside of the paragraph tags, first pre, then code:</p>
<pre><code>.pwr-adc {
width: 100%;
display: block;
overflow: hidden;
}
.pwr-adc--border-top:before {
background-color: rgba(var(--clr-base-dk-rgb), .1);
content: "";
height: 1px;
@jnix284
jnix284 / inline-code-tag
Created May 31, 2023 23:31
inline code tag
<p>To create inline code with the proper syntax, add <code>then your code here</code> before ending the paragraph</p>
@jnix284
jnix284 / code-highlight-language-class
Created May 26, 2023 21:45
code highlight language class ID
Objective C
<pre><code class="language-objectivec">#import
int main(int argc, const char * argv[]) {
@autoreleasepool {
// insert code here...
NSLog(@"Hello, World!");
}
return 0;
}
@jnix284
jnix284 / blog-post-sharethis.html
Created May 25, 2023 22:27
blog post sharethis embed example
{# BLOG POST PAGES - Via Page Header #}
{%- macro include_embeds_on_blog_post_pages_via_header() -%}
    {# Insert your embed code here #}
<script type="text/javascript" src="https://platform-api.sharethis.com/js/sharethis.js#property=..." async="async"></script>
{%- endmacro -%}
@jnix284
jnix284 / example-macro-embed.html
Created May 25, 2023 22:27
embed example macro
{# ALL PAGES - Via Page Footer #}
{%- macro include_embeds_on_all_pages_via_footer() -%}
    {# Insert your embed code here #}
    
{%- endmacro -%}
@jnix284
jnix284 / all-pages-header-embed.html
Created May 25, 2023 22:26
All Pages Header embed
{# ALL PAGES - Via Page Header #}
{%- macro include_embeds_on_all_pages_via_header() -%}
    {# Insert your embed code here 
     *
     * EXAMPLE:
     * <script type="text/javascript" src="https://platform-api.sharethis.com/js/sharethis.js#property=..." async="async"></script>
    #}
    
{%- endmacro -%}
@jnix284
jnix284 / embeds-macro.html
Created May 25, 2023 22:25
embeds macro example
{%- macro include_embeds_on_all_pages_via_header() -%}
    {# Insert your embed code here #}
{%- endmacro -%}
@jnix284
jnix284 / allpages-comment.html
Created May 25, 2023 22:23
embeds.html comment example
{# ALL PAGES - Via Page Header #}
@jnix284
jnix284 / pwr-child-css
Created April 12, 2023 11:14
Child CSS Priority
{% set overwrite_child_css_path = '../../child.css' %}
@jnix284
jnix284 / pwr-snazzy-map-lazyload-iframe.html
Last active March 23, 2023 01:56
Map Embed with Lazyloading
<iframe class="lazyload" data-src="https://snazzymaps.com/embed/132230" width="100%" height="600px" style="border:none;"></iframe>