{"id":353,"date":"2020-12-12T10:29:50","date_gmt":"2020-12-12T10:29:50","guid":{"rendered":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/?p=353"},"modified":"2020-12-22T12:56:39","modified_gmt":"2020-12-22T12:56:39","slug":"gist","status":"publish","type":"post","link":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/2020\/12\/12\/gist\/","title":{"rendered":"Gist"},"content":{"rendered":"<p>github gists (code snippits) can be shown by pasting the url to the gist, works for public and secret gists. This is the css for the list of embed links on the homepage of this blog. The list of links is provided by the Display Posts plugin.<\/p>\n<style>.gist table { margin-bottom: 0; }<\/style>\n<div style=\"tab-size: 8\" id=\"gist106898084\" class=\"gist\">\n<div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n<div class=\"gist-data\">\n<div class=\"js-gist-file-update-container js-task-list-container\">\n<div id=\"file-displaypostsmenu-css\" class=\"file my-2\">\n<div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-css  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"displaypostsmenu.css content, created by troutcolor on 10:28AM on December 12, 2020.\"\n    ><\/p>\n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n<p>  <template class=\"js-file-alert-template\"><\/p>\n<div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" data-component=\"Octicon\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg><br \/>\n    <span><br \/>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.<br \/>\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a><br \/>\n    <\/span><\/p>\n<div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters<br \/>\n<\/a>\n<\/div>\n<\/div>\n<p><\/template><br \/>\n<template class=\"js-line-alert-template\"><br \/>\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\"><br \/>\n    <svg aria-hidden=\"true\" data-component=\"Octicon\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg><br \/>\n<\/span><\/template><\/p>\n<table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"displaypostsmenu.css\">\n<tr>\n<td id=\"file-displaypostsmenu-css-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC1\" class=\"blob-code blob-code-inner js-file-line\">.embedlinks .listing-item {<\/td>\n<\/tr>\n<tr>\n<td id=\"file-displaypostsmenu-css-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC2\" class=\"blob-code blob-code-inner js-file-line\">\tdisplay: block;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-displaypostsmenu-css-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC3\" class=\"blob-code blob-code-inner js-file-line\">\tfloat: left;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-displaypostsmenu-css-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC4\" class=\"blob-code blob-code-inner js-file-line\">\tmargin: 4px;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-displaypostsmenu-css-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC5\" class=\"blob-code blob-code-inner js-file-line\">\tpadding: 4px;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-displaypostsmenu-css-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC6\" class=\"blob-code blob-code-inner js-file-line\">\tbackground: lightgray;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-displaypostsmenu-css-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC7\" class=\"blob-code blob-code-inner js-file-line\">\tborder-radius: 10px;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-displaypostsmenu-css-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC8\" class=\"blob-code blob-code-inner js-file-line\">}<\/td>\n<\/tr>\n<tr>\n<td id=\"file-displaypostsmenu-css-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC9\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-displaypostsmenu-css-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC10\" class=\"blob-code blob-code-inner js-file-line\">.embedlinks .listing-item a {<\/td>\n<\/tr>\n<tr>\n<td id=\"file-displaypostsmenu-css-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC11\" class=\"blob-code blob-code-inner js-file-line\">\ttext-decoration: none;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-displaypostsmenu-css-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC12\" class=\"blob-code blob-code-inner js-file-line\">\tcolor: black;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-displaypostsmenu-css-L13\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"13\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC13\" class=\"blob-code blob-code-inner js-file-line\">\tfont-weight: bold;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-displaypostsmenu-css-L14\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"14\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC14\" class=\"blob-code blob-code-inner js-file-line\">}<\/td>\n<\/tr>\n<tr>\n<td id=\"file-displaypostsmenu-css-L15\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"15\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC15\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-displaypostsmenu-css-L16\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"16\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC16\" class=\"blob-code blob-code-inner js-file-line\">.embedlinks .listing-item a:visited {<\/td>\n<\/tr>\n<tr>\n<td id=\"file-displaypostsmenu-css-L17\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"17\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC17\" class=\"blob-code blob-code-inner js-file-line\">\ttext-decoration: none;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-displaypostsmenu-css-L18\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"18\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC18\" class=\"blob-code blob-code-inner js-file-line\">\tcolor: black;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-displaypostsmenu-css-L19\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"19\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC19\" class=\"blob-code blob-code-inner js-file-line\">\tfont-weight: bold;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-displaypostsmenu-css-L20\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"20\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC20\" class=\"blob-code blob-code-inner js-file-line\">}<\/td>\n<\/tr>\n<tr>\n<td id=\"file-displaypostsmenu-css-L21\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"21\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC21\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-displaypostsmenu-css-L22\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"22\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC22\" class=\"blob-code blob-code-inner js-file-line\">.embedlinks .listing-item a:hover {<\/td>\n<\/tr>\n<tr>\n<td id=\"file-displaypostsmenu-css-L23\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"23\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC23\" class=\"blob-code blob-code-inner js-file-line\">\ttext-decoration: none;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-displaypostsmenu-css-L24\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"24\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC24\" class=\"blob-code blob-code-inner js-file-line\">\tcolor: red;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-displaypostsmenu-css-L25\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"25\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC25\" class=\"blob-code blob-code-inner js-file-line\">\tfont-weight: bold;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-displaypostsmenu-css-L26\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"26\"><\/td>\n<td id=\"file-displaypostsmenu-css-LC26\" class=\"blob-code blob-code-inner js-file-line\">}<\/td>\n<\/tr>\n<\/table>\n<\/div><\/div>\n<\/p><\/div>\n<\/div><\/div>\n<div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/troutcolor\/dfaefd36d40c0259f03fd723b5873bfa\/raw\/6ca49260071f326968f501bca21bbf16a0e61047\/displaypostsmenu.css\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a><br \/>\n        <a href=\"https:\/\/gist.github.com\/troutcolor\/dfaefd36d40c0259f03fd723b5873bfa#file-displaypostsmenu-css\" class=\"Link--inTextBlock\"><br \/>\n          displaypostsmenu.css<br \/>\n        <\/a><br \/>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n<\/p><\/div>\n<\/div>\n<p>The list is produced with the following shortcode:<\/p>\n<p>[display-posts posts_per_page=\"100\" orderby=\"title\" order=\"ASC\" wrapper=\"div\" wrapper_class=\"embedlinks\"]<\/p>\n<p>After activation the Display Posts plugin.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>github gists (code snippits) can be shown by pasting the url to the gist, works for public and secret gists. This is the css for the list of embed links on the homepage of this blog. The list of links is provided by the Display Posts plugin. This file contains hidden or bidirectional Unicode text &hellip; <a href=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/2015\/04\/24\/youtube-video\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">YouTube Video<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":22,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-353","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/wp-json\/wp\/v2\/posts\/353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/wp-json\/wp\/v2\/comments?post=353"}],"version-history":[{"count":3,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/wp-json\/wp\/v2\/posts\/353\/revisions"}],"predecessor-version":[{"id":414,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/wp-json\/wp\/v2\/posts\/353\/revisions\/414"}],"wp:attachment":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/wp-json\/wp\/v2\/media?parent=353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/wp-json\/wp\/v2\/categories?post=353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/embeds\/wp-json\/wp\/v2\/tags?post=353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}