{"id":40385,"date":"2022-11-11T10:10:11","date_gmt":"2022-11-11T10:10:11","guid":{"rendered":"https:\/\/puresourcecode.com\/?p=40385"},"modified":"2022-11-11T10:10:16","modified_gmt":"2022-11-11T10:10:16","slug":"embed-github-gists-on-wordpress","status":"publish","type":"post","link":"https:\/\/puresourcecode.com\/tools\/embed-github-gists-on-wordpress\/","title":{"rendered":"Embed GitHub Gists on WordPress"},"content":{"rendered":"\n<p>With the code in this post, we can embed <a href=\"https:\/\/gist.github.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">GitHub Gists<\/a> on WordPress. Gist is an easy method to share code snippets or excerpts of data with others. Gist is owned by <a href=\"https:\/\/puresourcecode.com\/tag\/github\/\">GitHub<\/a> and used by millions of developers across the world.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"493\" src=\"https:\/\/i0.wp.com\/puresourcecode.com\/wp-content\/uploads\/2022\/11\/image-7.png?resize=640%2C493&#038;ssl=1\" alt=\"Home Page of Gist for creating a new code snippet - Embed GitHub Gists on WordPress\" class=\"wp-image-40408\" srcset=\"https:\/\/i0.wp.com\/puresourcecode.com\/wp-content\/uploads\/2022\/11\/image-7.png?resize=1024%2C789&amp;ssl=1 1024w, https:\/\/i0.wp.com\/puresourcecode.com\/wp-content\/uploads\/2022\/11\/image-7.png?resize=300%2C231&amp;ssl=1 300w, https:\/\/i0.wp.com\/puresourcecode.com\/wp-content\/uploads\/2022\/11\/image-7.png?resize=768%2C592&amp;ssl=1 768w, https:\/\/i0.wp.com\/puresourcecode.com\/wp-content\/uploads\/2022\/11\/image-7.png?resize=600%2C462&amp;ssl=1 600w, https:\/\/i0.wp.com\/puresourcecode.com\/wp-content\/uploads\/2022\/11\/image-7.png?w=1089&amp;ssl=1 1089w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><figcaption class=\"wp-element-caption\">Home Page of Gist for creating a new code snippet<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Today, I\u2019m excited to share this very handy code snippet which allow you to embed a GitHub gist on your blog, simply by pasting the gist url.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-add-the-function\">Add the function<\/h2>\n\n\n\n<p>Paste the following code into your&nbsp;functions.php&nbsp;file. Once done, simply paste the URL of a Github gist into a post or page.<\/p>\n\n\n\n<p>The gist will be automatically&nbsp;embedded&nbsp;in your&nbsp;WordPress&nbsp;blog.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\n\/**\n * \n * Example: https:\/\/gist.github.com\/erossini\/b91c67212c793a261629e287de4b411e\n * Usage:\n * &#x5B;gist]erossini\/b91c67212c793a261629e287de4b411e&#x5B;\/gist]\n * &#x5B;gist id=&quot;erossini\/b91c67212c793a261629e287de4b411e&quot; \/]\n *\n * If a gist has multiple files you can select one  \n * &#x5B;gist id=&quot;erossini\/b91c67212c793a261629e287de4b411e&quot; file=&quot;file-name&quot; \/]\n *\/\n \nfunction add_gist_github_shortcode( $atts, $content = NULL ) {\n   extract( shortcode_atts( array(\n            &#039;id&#039; =&gt; &#039;&#039;,\n            &#039;file&#039; =&gt; &#039;&#039;,\n        ), $atts ) );\n   if (function_exists( &#039;is_amp_endpoint&#039; ) &amp;&amp; is_amp_endpoint()) {\n        return sprintf(&#039;&lt;amp-gist data-gistid=&quot;%s&quot; %s layout=&quot;fixed-height&quot; height=&quot;250&quot;&gt;&lt;\/amp-gist&gt;&#039;, \n            $id ? $id : trim(esc_attr($content)), \n            $file ? &#039;data-file=&quot;&#039; . esc_attr( $file ) . &#039;&quot;&#039; : &#039;&#039;\n        );\n    } else {\n           return sprintf(&#039;&lt;script src=&quot;https:\/\/gist.github.com\/%s.js%s&quot;&gt;&lt;\/script&gt;&#039;, \n               $id ? $id : trim(esc_attr($content)) , \n               $file ? &#039;?file=&#039; . esc_attr( $file ) : &#039;&#039; \n           );\n   }\n}\nadd_shortcode(&#039;gist&#039;, &#039;add_gist_github_shortcode&#039;);\n?&gt;\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">Use the shortcode<\/h2>\n\n\n\n<p>Two ways you could embed gist to WordPress blog post. Here is the best way to add Gist to WordPress using Shortcode?<\/p>\n\n\n\n<p>This is the first method. Basically, you have to use the &#8220;tag&#8221; <code>gist<\/code> and add the <strong>Gist ID<\/strong>.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;gist]erossini\/1fad3e32630de777dd0d2183ae41e80f&#x5B;\/gist]\n<\/pre><\/div>\n\n\n<p>The second method is similar to the first one but, in this case, you specified the ID explicitly.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;gist id=&quot;erossini\/1fad3e32630de777dd0d2183ae41e80f&quot; \/]\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>With the code in this post, we can embed Github Gists on WordPress. Gist is an easy method to share code snippets.<\/p>\n","protected":false},"author":1,"featured_media":40329,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_has_post_settings":[],"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"With the code in this post, we can embed #GitHub #Gists on #WordPress. Gist is an easy method to share code snippets.","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[89],"tags":[9833,9834,55,9295],"hashtags":[],"class_list":["post-40385","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tools","tag-gist","tag-gist-github","tag-github","tag-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Embed GitHub Gists on WordPress - PureSourceCode<\/title>\n<meta name=\"description\" content=\"With the code in this post, we can embed GitHub Gists on WordPress. Gist is an easy method to share code snippets.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/puresourcecode.com\/tools\/embed-github-gists-on-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Embed GitHub Gists on WordPress - PureSourceCode\" \/>\n<meta property=\"og:description\" content=\"With the code in this post, we can embed GitHub Gists on WordPress. Gist is an easy method to share code snippets.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/puresourcecode.com\/tools\/embed-github-gists-on-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"PureSourceCode\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/puresourcecode\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/henryLdn\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-11T10:10:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-11T10:10:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/puresourcecode.com\/wp-content\/uploads\/2022\/11\/github-wallpaper-scaled.jpeg?fit=2560%2C1440&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1440\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Enrico\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@erossiniuk\" \/>\n<meta name=\"twitter:site\" content=\"@puresourcecode\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Enrico\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/puresourcecode.com\\\/tools\\\/embed-github-gists-on-wordpress\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/puresourcecode.com\\\/tools\\\/embed-github-gists-on-wordpress\\\/\"},\"author\":{\"name\":\"Enrico\",\"@id\":\"https:\\\/\\\/puresourcecode.com\\\/#\\\/schema\\\/person\\\/d0ff2e1c52b0d470af84246fd09f1f16\"},\"headline\":\"Embed GitHub Gists on WordPress\",\"datePublished\":\"2022-11-11T10:10:11+00:00\",\"dateModified\":\"2022-11-11T10:10:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/puresourcecode.com\\\/tools\\\/embed-github-gists-on-wordpress\\\/\"},\"wordCount\":188,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/puresourcecode.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/puresourcecode.com\\\/tools\\\/embed-github-gists-on-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/puresourcecode.com\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/github-wallpaper-scaled.jpeg?fit=2560%2C1440&ssl=1\",\"keywords\":[\"gist\",\"gist-github\",\"github\",\"wordpress\"],\"articleSection\":[\"Tools\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/puresourcecode.com\\\/tools\\\/embed-github-gists-on-wordpress\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/puresourcecode.com\\\/tools\\\/embed-github-gists-on-wordpress\\\/\",\"url\":\"https:\\\/\\\/puresourcecode.com\\\/tools\\\/embed-github-gists-on-wordpress\\\/\",\"name\":\"Embed GitHub Gists on WordPress - PureSourceCode\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/puresourcecode.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/puresourcecode.com\\\/tools\\\/embed-github-gists-on-wordpress\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/puresourcecode.com\\\/tools\\\/embed-github-gists-on-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/puresourcecode.com\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/github-wallpaper-scaled.jpeg?fit=2560%2C1440&ssl=1\",\"datePublished\":\"2022-11-11T10:10:11+00:00\",\"dateModified\":\"2022-11-11T10:10:16+00:00\",\"description\":\"With the code in this post, we can embed GitHub Gists on WordPress. Gist is an easy method to share code snippets.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/puresourcecode.com\\\/tools\\\/embed-github-gists-on-wordpress\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/puresourcecode.com\\\/tools\\\/embed-github-gists-on-wordpress\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/puresourcecode.com\\\/tools\\\/embed-github-gists-on-wordpress\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/puresourcecode.com\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/github-wallpaper-scaled.jpeg?fit=2560%2C1440&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/puresourcecode.com\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/github-wallpaper-scaled.jpeg?fit=2560%2C1440&ssl=1\",\"width\":2560,\"height\":1440,\"caption\":\"github wallpaper\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/puresourcecode.com\\\/tools\\\/embed-github-gists-on-wordpress\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/puresourcecode.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Embed GitHub Gists on WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/puresourcecode.com\\\/#website\",\"url\":\"https:\\\/\\\/puresourcecode.com\\\/\",\"name\":\"PureSourceCode.com\",\"description\":\"All technologies, only pure source code\",\"publisher\":{\"@id\":\"https:\\\/\\\/puresourcecode.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/puresourcecode.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/puresourcecode.com\\\/#organization\",\"name\":\"PureSourceCode\",\"url\":\"https:\\\/\\\/puresourcecode.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/puresourcecode.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/puresourcecode.com\\\/wp-content\\\/uploads\\\/job-manager-uploads\\\/company_logo\\\/2021\\\/05\\\/psc_logo.png?fit=512%2C512&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/puresourcecode.com\\\/wp-content\\\/uploads\\\/job-manager-uploads\\\/company_logo\\\/2021\\\/05\\\/psc_logo.png?fit=512%2C512&ssl=1\",\"width\":512,\"height\":512,\"caption\":\"PureSourceCode\"},\"image\":{\"@id\":\"https:\\\/\\\/puresourcecode.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/puresourcecode\",\"https:\\\/\\\/x.com\\\/puresourcecode\",\"https:\\\/\\\/www.youtube.com\\\/erossini?sub_confirmation=1\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/puresourcecode.com\\\/#\\\/schema\\\/person\\\/d0ff2e1c52b0d470af84246fd09f1f16\",\"name\":\"Enrico\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a41f0bf0ce51e827836b745ab21dabdb477fc4a05f80632fb9a96a76a72d26c1?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a41f0bf0ce51e827836b745ab21dabdb477fc4a05f80632fb9a96a76a72d26c1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a41f0bf0ce51e827836b745ab21dabdb477fc4a05f80632fb9a96a76a72d26c1?s=96&d=mm&r=g\",\"caption\":\"Enrico\"},\"description\":\"My greatest passion is technology. I am interested in multiple fields and I have a lot of experience in software design and development. I started professional development when I was 6 years. Today I am a strong full-stack .NET developer (C#, Xamarin, Azure)\",\"sameAs\":[\"https:\\\/\\\/puresourcecode.com\",\"https:\\\/\\\/www.facebook.com\\\/henryLdn\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rossiniuk\\\/\",\"https:\\\/\\\/x.com\\\/erossiniuk\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UC2jeteqpm3sUDqQpKGqpCLg\",\"https:\\\/\\\/www.tumblr.com\\\/blog\\\/erossiniuk\"],\"url\":\"https:\\\/\\\/puresourcecode.com\\\/author\\\/enrico\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Embed GitHub Gists on WordPress - PureSourceCode","description":"With the code in this post, we can embed GitHub Gists on WordPress. Gist is an easy method to share code snippets.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/puresourcecode.com\/tools\/embed-github-gists-on-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"Embed GitHub Gists on WordPress - PureSourceCode","og_description":"With the code in this post, we can embed GitHub Gists on WordPress. Gist is an easy method to share code snippets.","og_url":"https:\/\/puresourcecode.com\/tools\/embed-github-gists-on-wordpress\/","og_site_name":"PureSourceCode","article_publisher":"https:\/\/www.facebook.com\/puresourcecode","article_author":"https:\/\/www.facebook.com\/henryLdn","article_published_time":"2022-11-11T10:10:11+00:00","article_modified_time":"2022-11-11T10:10:16+00:00","og_image":[{"width":2560,"height":1440,"url":"https:\/\/i0.wp.com\/puresourcecode.com\/wp-content\/uploads\/2022\/11\/github-wallpaper-scaled.jpeg?fit=2560%2C1440&ssl=1","type":"image\/jpeg"}],"author":"Enrico","twitter_card":"summary_large_image","twitter_creator":"@erossiniuk","twitter_site":"@puresourcecode","twitter_misc":{"Written by":"Enrico","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/puresourcecode.com\/tools\/embed-github-gists-on-wordpress\/#article","isPartOf":{"@id":"https:\/\/puresourcecode.com\/tools\/embed-github-gists-on-wordpress\/"},"author":{"name":"Enrico","@id":"https:\/\/puresourcecode.com\/#\/schema\/person\/d0ff2e1c52b0d470af84246fd09f1f16"},"headline":"Embed GitHub Gists on WordPress","datePublished":"2022-11-11T10:10:11+00:00","dateModified":"2022-11-11T10:10:16+00:00","mainEntityOfPage":{"@id":"https:\/\/puresourcecode.com\/tools\/embed-github-gists-on-wordpress\/"},"wordCount":188,"commentCount":0,"publisher":{"@id":"https:\/\/puresourcecode.com\/#organization"},"image":{"@id":"https:\/\/puresourcecode.com\/tools\/embed-github-gists-on-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/puresourcecode.com\/wp-content\/uploads\/2022\/11\/github-wallpaper-scaled.jpeg?fit=2560%2C1440&ssl=1","keywords":["gist","gist-github","github","wordpress"],"articleSection":["Tools"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/puresourcecode.com\/tools\/embed-github-gists-on-wordpress\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/puresourcecode.com\/tools\/embed-github-gists-on-wordpress\/","url":"https:\/\/puresourcecode.com\/tools\/embed-github-gists-on-wordpress\/","name":"Embed GitHub Gists on WordPress - PureSourceCode","isPartOf":{"@id":"https:\/\/puresourcecode.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/puresourcecode.com\/tools\/embed-github-gists-on-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/puresourcecode.com\/tools\/embed-github-gists-on-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/puresourcecode.com\/wp-content\/uploads\/2022\/11\/github-wallpaper-scaled.jpeg?fit=2560%2C1440&ssl=1","datePublished":"2022-11-11T10:10:11+00:00","dateModified":"2022-11-11T10:10:16+00:00","description":"With the code in this post, we can embed GitHub Gists on WordPress. Gist is an easy method to share code snippets.","breadcrumb":{"@id":"https:\/\/puresourcecode.com\/tools\/embed-github-gists-on-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/puresourcecode.com\/tools\/embed-github-gists-on-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/puresourcecode.com\/tools\/embed-github-gists-on-wordpress\/#primaryimage","url":"https:\/\/i0.wp.com\/puresourcecode.com\/wp-content\/uploads\/2022\/11\/github-wallpaper-scaled.jpeg?fit=2560%2C1440&ssl=1","contentUrl":"https:\/\/i0.wp.com\/puresourcecode.com\/wp-content\/uploads\/2022\/11\/github-wallpaper-scaled.jpeg?fit=2560%2C1440&ssl=1","width":2560,"height":1440,"caption":"github wallpaper"},{"@type":"BreadcrumbList","@id":"https:\/\/puresourcecode.com\/tools\/embed-github-gists-on-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/puresourcecode.com\/"},{"@type":"ListItem","position":2,"name":"Embed GitHub Gists on WordPress"}]},{"@type":"WebSite","@id":"https:\/\/puresourcecode.com\/#website","url":"https:\/\/puresourcecode.com\/","name":"PureSourceCode.com","description":"All technologies, only pure source code","publisher":{"@id":"https:\/\/puresourcecode.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/puresourcecode.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/puresourcecode.com\/#organization","name":"PureSourceCode","url":"https:\/\/puresourcecode.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/puresourcecode.com\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/puresourcecode.com\/wp-content\/uploads\/job-manager-uploads\/company_logo\/2021\/05\/psc_logo.png?fit=512%2C512&ssl=1","contentUrl":"https:\/\/i0.wp.com\/puresourcecode.com\/wp-content\/uploads\/job-manager-uploads\/company_logo\/2021\/05\/psc_logo.png?fit=512%2C512&ssl=1","width":512,"height":512,"caption":"PureSourceCode"},"image":{"@id":"https:\/\/puresourcecode.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/puresourcecode","https:\/\/x.com\/puresourcecode","https:\/\/www.youtube.com\/erossini?sub_confirmation=1"]},{"@type":"Person","@id":"https:\/\/puresourcecode.com\/#\/schema\/person\/d0ff2e1c52b0d470af84246fd09f1f16","name":"Enrico","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/a41f0bf0ce51e827836b745ab21dabdb477fc4a05f80632fb9a96a76a72d26c1?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a41f0bf0ce51e827836b745ab21dabdb477fc4a05f80632fb9a96a76a72d26c1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a41f0bf0ce51e827836b745ab21dabdb477fc4a05f80632fb9a96a76a72d26c1?s=96&d=mm&r=g","caption":"Enrico"},"description":"My greatest passion is technology. I am interested in multiple fields and I have a lot of experience in software design and development. I started professional development when I was 6 years. Today I am a strong full-stack .NET developer (C#, Xamarin, Azure)","sameAs":["https:\/\/puresourcecode.com","https:\/\/www.facebook.com\/henryLdn","https:\/\/www.linkedin.com\/in\/rossiniuk\/","https:\/\/x.com\/erossiniuk","https:\/\/www.youtube.com\/channel\/UC2jeteqpm3sUDqQpKGqpCLg","https:\/\/www.tumblr.com\/blog\/erossiniuk"],"url":"https:\/\/puresourcecode.com\/author\/enrico\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/puresourcecode.com\/wp-content\/uploads\/2022\/11\/github-wallpaper-scaled.jpeg?fit=2560%2C1440&ssl=1","jetpack-related-posts":[{"id":316,"url":"https:\/\/puresourcecode.com\/news\/microsoft\/github-package-registry\/","url_meta":{"origin":40385,"position":0},"title":"GitHub Package Registry","author":"Enrico","date":"May 13, 2019","format":false,"excerpt":"GitHub Package Registry, a package management service that makes it easy to publish public or private packages next to your source code","rel":"","context":"In &quot;Microsoft&quot;","block_context":{"text":"Microsoft","link":"https:\/\/puresourcecode.com\/category\/news\/microsoft\/"},"img":{"alt_text":"github-package-registry-1200x630","src":"https:\/\/i0.wp.com\/puresourcecode.com\/myimg\/news\/github-package-registry-1200x630_thumb.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/puresourcecode.com\/myimg\/news\/github-package-registry-1200x630_thumb.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/puresourcecode.com\/myimg\/news\/github-package-registry-1200x630_thumb.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":297,"url":"https:\/\/puresourcecode.com\/news\/microsoft\/microsoft-snaps-up-github-for-7-5-billion\/","url_meta":{"origin":40385,"position":1},"title":"Microsoft snaps up GitHub for $7.5 billion","author":"Enrico","date":"June 5, 2018","format":false,"excerpt":"As we anticipated yesterday, Microsoft has reached an agreement to buy GitHub, the source repository and collaboration platform, in a deal worth $7.5 billion. The all-stock deal is expected to close by the end of the year, subject to regulatory approval in the US and EU. Decade-old GitHub is built\u2026","rel":"","context":"In &quot;Microsoft&quot;","block_context":{"text":"Microsoft","link":"https:\/\/puresourcecode.com\/category\/news\/microsoft\/"},"img":{"alt_text":"microsoft-github-800x421","src":"https:\/\/i0.wp.com\/puresourcecode.com\/myimg\/news\/microsoft-github-800x421_thumb.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/puresourcecode.com\/myimg\/news\/microsoft-github-800x421_thumb.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/puresourcecode.com\/myimg\/news\/microsoft-github-800x421_thumb.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":296,"url":"https:\/\/puresourcecode.com\/news\/microsoft\/microsoft-has-reportedly-acquired-github\/","url_meta":{"origin":40385,"position":2},"title":"Microsoft has reportedly acquired GitHub","author":"Enrico","date":"June 4, 2018","format":false,"excerpt":"Microsoft has reportedly acquired GitHub, and could announce the deal as early as Monday. Bloomberg reports that the software giant has agreed to acquire GitHub, and that the company chose Microsoft partly because of CEO Satya Nadella. Business Insider first reported that Microsoft had been in talks with GitHub recently.\u2026","rel":"","context":"In &quot;Microsoft&quot;","block_context":{"text":"Microsoft","link":"https:\/\/puresourcecode.com\/category\/news\/microsoft\/"},"img":{"alt_text":"pplware_microsoft_github01-1024x498","src":"https:\/\/i0.wp.com\/puresourcecode.com\/myimg\/news\/pplware_microsoft_github01-1024x498_thumb.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/puresourcecode.com\/myimg\/news\/pplware_microsoft_github01-1024x498_thumb.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/puresourcecode.com\/myimg\/news\/pplware_microsoft_github01-1024x498_thumb.jpg?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":307,"url":"https:\/\/puresourcecode.com\/net7\/github-now-gives-free-users-unlimited-private-repositories\/","url_meta":{"origin":40385,"position":3},"title":"GitHub now gives free users unlimited private repositories","author":"Enrico","date":"January 8, 2019","format":false,"excerpt":"GitHub is by far the most popular way to build and share software. That said, one weakness of the platform is that it limits who can create private repositories \u2013 that is, software projects that aren\u2019t visible to the broader public, and are shared only with a handful of pre-defined\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"github-unlimited-private-repositories","src":"https:\/\/i0.wp.com\/puresourcecode.com\/myimg\/news\/github-unlimited-private-repositories.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/puresourcecode.com\/myimg\/news\/github-unlimited-private-repositories.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/puresourcecode.com\/myimg\/news\/github-unlimited-private-repositories.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":29198,"url":"https:\/\/puresourcecode.com\/dotnet\/blazor\/add-code-snippet-in-razor-pages\/","url_meta":{"origin":40385,"position":4},"title":"Add Code Snippet in Razor pages","author":"Enrico","date":"January 26, 2022","format":false,"excerpt":"In this new post, I show you how to add code snippet in Razor pages for Blazor WebAssembly\u00a0and\u00a0Blazor Server using highlight.js","rel":"","context":"In &quot;Blazor&quot;","block_context":{"text":"Blazor","link":"https:\/\/puresourcecode.com\/category\/dotnet\/blazor\/"},"img":{"alt_text":"programming code snippet","src":"https:\/\/i0.wp.com\/puresourcecode.com\/wp-content\/uploads\/2022\/01\/programming-code-scaled.jpg?fit=1200%2C798&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/puresourcecode.com\/wp-content\/uploads\/2022\/01\/programming-code-scaled.jpg?fit=1200%2C798&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/puresourcecode.com\/wp-content\/uploads\/2022\/01\/programming-code-scaled.jpg?fit=1200%2C798&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/puresourcecode.com\/wp-content\/uploads\/2022\/01\/programming-code-scaled.jpg?fit=1200%2C798&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/puresourcecode.com\/wp-content\/uploads\/2022\/01\/programming-code-scaled.jpg?fit=1200%2C798&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":35141,"url":"https:\/\/puresourcecode.com\/tools\/create-documentation-with-docsify-and-github-pages\/","url_meta":{"origin":40385,"position":5},"title":"Create documentation with Docsify and GitHub Pages","author":"Enrico","date":"June 17, 2022","format":false,"excerpt":"Documentation is an essential part of making any project useful to users. Here how to Create documentation with Docsify and GitHub Pages","rel":"","context":"In &quot;Tools&quot;","block_context":{"text":"Tools","link":"https:\/\/puresourcecode.com\/category\/tools\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/puresourcecode.com\/wp-content\/uploads\/2022\/06\/github-pages.png?fit=1200%2C885&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/puresourcecode.com\/wp-content\/uploads\/2022\/06\/github-pages.png?fit=1200%2C885&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/puresourcecode.com\/wp-content\/uploads\/2022\/06\/github-pages.png?fit=1200%2C885&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/puresourcecode.com\/wp-content\/uploads\/2022\/06\/github-pages.png?fit=1200%2C885&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/puresourcecode.com\/wp-content\/uploads\/2022\/06\/github-pages.png?fit=1200%2C885&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"jetpack_shortlink":"https:\/\/wp.me\/pbPHZq-avn","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/puresourcecode.com\/wp-json\/wp\/v2\/posts\/40385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/puresourcecode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/puresourcecode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/puresourcecode.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/puresourcecode.com\/wp-json\/wp\/v2\/comments?post=40385"}],"version-history":[{"count":10,"href":"https:\/\/puresourcecode.com\/wp-json\/wp\/v2\/posts\/40385\/revisions"}],"predecessor-version":[{"id":40409,"href":"https:\/\/puresourcecode.com\/wp-json\/wp\/v2\/posts\/40385\/revisions\/40409"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/puresourcecode.com\/wp-json\/wp\/v2\/media\/40329"}],"wp:attachment":[{"href":"https:\/\/puresourcecode.com\/wp-json\/wp\/v2\/media?parent=40385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/puresourcecode.com\/wp-json\/wp\/v2\/categories?post=40385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/puresourcecode.com\/wp-json\/wp\/v2\/tags?post=40385"},{"taxonomy":"hashtags","embeddable":true,"href":"https:\/\/puresourcecode.com\/wp-json\/wp\/v2\/hashtags?post=40385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}