{"id":8359,"date":"2015-02-14T18:30:00","date_gmt":"2015-02-14T18:30:00","guid":{"rendered":"http:\/\/superdevresources.com\/redirects-jekyll-github-pages\/"},"modified":"2020-06-18T12:07:22","modified_gmt":"2020-06-18T06:37:22","slug":"redirects-jekyll-github-pages","status":"publish","type":"post","link":"https:\/\/superdevresources.com\/redirects-jekyll-github-pages\/","title":{"rendered":"How to redirect URLs on Jekyll site hosted on GitHub Pages"},"content":{"rendered":"<p>While <a href=\"\/github-pages-jekyll\/\">hosting your site or blog with GitHub pages<\/a> is quite useful in terms of saving time and money, there are certain limitations too, such as not being in control of the webserver which is serving your website. Usually redirects are recommended to be setup on the webserver, however if your site is hosted with GitHub pages, you don\u2019t have that option. In this post, we will see how we can do client side redirects instead, using meta tags in HTML pages.<\/p>\n<h2 id=\"understanding-url-redirects\">Understanding URL redirects<\/h2>\n<p><a href=\"http:\/\/en.wikipedia.org\/wiki\/URL_redirection\">URL redirection<\/a> allows you to map an existing url to a new URL in order to notify the browser and search engines of a page that has been moved to a new location. There are many <a href=\"http:\/\/en.wikipedia.org\/wiki\/URL_redirection#Purposes\">other reasons<\/a> for which you may need a URL redirect.<\/p>\n<h3 id=\"server-side-redirects\">Server side redirects<\/h3>\n<p>Generally the URL redirection is done using a <a href=\"http:\/\/en.wikipedia.org\/wiki\/HTTP_301\">301 redirect<\/a> (Moved permanently) on the server side. For e.g. a 301 redirect on a apache server would be done as follows:<\/p>\n<figure class=\"highlight\">\n<pre><code class=\"language-bash\">Redirect permanent \/oldlocation http:\/\/www.domain.com\/newlocation<\/code><\/pre>\n<\/figure>\n<h3 id=\"client-side-redirects-using-meta-refresh-tag\">Client side redirects using Meta refresh tag<\/h3>\n<p>There are multiple ways of doing a client side redirect such as using a JavaScript code. However, the widely accepted way is using the <a href=\"http:\/\/www.w3.org\/TR\/WCAG10-HTML-TECHS\/#meta-element\">Meta Refresh tag<\/a>. This meta tag sends the user to a new URL after a certain amount of time, and is used as a simple form of redirection when a server side redirect is not possible. This meta tag looks as shown below and is added to the <code class=\"highlighter-rouge\">&lt;head&gt;<\/code> section of a HTML page.<\/p>\n<figure class=\"highlight\">\n<pre><code class=\"language-html\"><span class=\"nt\">&lt;meta<\/span> <span class=\"na\">http-equiv=<\/span><span class=\"s\">\"Refresh\"<\/span> <span class=\"na\">content=<\/span><span class=\"s\">\"0; url=http:\/\/www.domain.com\/newlocation\"<\/span> <span class=\"nt\">\/&gt;<\/span><\/code><\/pre>\n<\/figure>\n<h2 id=\"how-to-redirect-url-in-jekyll-site-on-github-pages\">How to redirect URL in Jekyll Site on GitHub Pages?<\/h2>\n<p>Since the server side redirect is not possible when you are hosting your Jekyll site on <a href=\"https:\/\/pages.github.com\/\">GitHub Pages<\/a> we have to resort to a client side redirect using the Meta refresh technique. We can do this using one of the two options below.<\/p>\n<h3 id=\"jekyllredirectfrom-pluginhttpsgithubcomjekylljekyll-redirect-from\"><a href=\"https:\/\/github.com\/jekyll\/jekyll-redirect-from\">1. JekyllRedirectFrom Plugin<\/a><\/h3>\n<p>There are very few plugins which are whitelisted by GitHub pages, and <a href=\"https:\/\/github.com\/github\/pages-gem\/blob\/master\/lib\/github-pages.rb#L30\">JekyllRedirectFrom plugin is one of them<\/a>. JekyllRedirectFrom can be used to setup multiple redirects for a URL on jekyll sites.<\/p>\n<p>All you need to do is add the <strong>jekyll-redirect-from<\/strong> gem to your jekyll project and add a <code class=\"highlighter-rouge\">redirect_from<\/code> in the YAML front matter of post or a page to specify the older locations from which the current location is mapping to. Similary a <code class=\"highlighter-rouge\">redirect_to<\/code> can be used to map the current location to a new location. The <code class=\"highlighter-rouge\">redirect_to<\/code> can be handy when redirecting to external domains. Complete installation and usage instructions are available at the plugins <a href=\"https:\/\/github.com\/jekyll\/jekyll-redirect-from\">GitHub page<\/a>.<\/p>\n<h3 id=\"utilizing-a-redirected-layout\">2. Utilizing a Redirected Layout<\/h3>\n<p>This second technique would allow you to set up redirects for your pages without resorting to any plugin. All you need to do is create a layout named <strong>redirected.html<\/strong> in your <strong>_layouts<\/strong> folder. The content of this layout would be as shown below:<\/p>\n<figure class=\"highlight\">\n<pre><code class=\"language-html\"><span class=\"cp\">&lt;!DOCTYPE html&gt;<\/span>\n<span class=\"nt\">&lt;html&gt;<\/span>\n<span class=\"nt\">&lt;head&gt;<\/span>\n<span class=\"nt\">&lt;link<\/span> <span class=\"na\">rel=<\/span><span class=\"s\">\"canonical\"<\/span> <span class=\"na\">href=<\/span><span class=\"s\">\"{{ page.redirect_to }}\"<\/span><span class=\"nt\">\/&gt;<\/span>\n<span class=\"nt\">&lt;meta<\/span> <span class=\"na\">http-equiv=<\/span><span class=\"s\">\"content-type\"<\/span> <span class=\"na\">content=<\/span><span class=\"s\">\"text\/html; charset=utf-8\"<\/span> <span class=\"nt\">\/&gt;<\/span>\n<span class=\"nt\">&lt;meta<\/span> <span class=\"na\">http-equiv=<\/span><span class=\"s\">\"refresh\"<\/span> <span class=\"na\">content=<\/span><span class=\"s\">\"0;url={{ page.redirect_to }}\"<\/span> <span class=\"nt\">\/&gt;<\/span>\n<span class=\"nt\">&lt;\/head&gt;<\/span>\n<span class=\"nt\">&lt;body&gt;<\/span>\n    <span class=\"nt\">&lt;h1&gt;<\/span>Redirecting...<span class=\"nt\">&lt;\/h1&gt;<\/span>\n      <span class=\"nt\">&lt;a<\/span> <span class=\"na\">href=<\/span><span class=\"s\">\"{{ page.redirect_to }}\"<\/span><span class=\"nt\">&gt;<\/span>Click here if you are not redirected.<span class=\"nt\">&lt;a&gt;<\/span>\n      <span class=\"nt\">&lt;script&gt;<\/span><span class=\"nx\">location<\/span><span class=\"o\">=<\/span><span class=\"s1\">'{{ page.redirect_to }}'<\/span><span class=\"nt\">&lt;\/script&gt;<\/span>\n<span class=\"nt\">&lt;\/body&gt;<\/span>\n<span class=\"nt\">&lt;\/html&gt;<\/span><\/code><\/pre>\n<\/figure>\n<p>Once you have this layout ready, then to set up redirect from any page, all you need to do is specify <strong>redirected<\/strong> as your layout in its YAML front matter and specify the destination in <code class=\"highlighter-rouge\">redirect_to<\/code> as shown below.<\/p>\n<figure class=\"highlight\">\n<pre><code class=\"language-bash\">---\nlayout: redirected\nsitemap: <span class=\"nb\">false\n<\/span>permalink: \/oldlocation\/\nredirect_to:  \/newlocation\/\n---<\/code><\/pre>\n<\/figure>\n<p>Note that, I have also included <code class=\"highlighter-rouge\">sitemap: false<\/code> in the front matter as I don\u2019t want the redirected pages to be included in the sitemap.<\/p>\n<h2 id=\"search-engines-and-meta-refresh-tags\">Search Engines and Meta Refresh tags<\/h2>\n<p>As I mentioned earlier, using a server side 301 redirect is a much better option and supported by all search engines. But what about redirects using a <strong>meta refresh<\/strong> tag for redirect? Is that search engine friendly?<\/p>\n<p>The answer is Yes. While Google doesn\u2019t recommend its use, it has listed the <strong>meta refresh<\/strong> tag in its list of <a href=\"https:\/\/support.google.com\/webmasters\/answer\/79812?hl=en\">supported meta tags<\/a>. Also, as per my own experience, the pages I redirected using the meta refresh technique got updated to the new URL in Google Search results in a few days.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While hosting your site or blog with GitHub pages is quite useful in terms of saving time and &#8230; <a title=\"How to redirect URLs on Jekyll site hosted on GitHub Pages\" class=\"read-more\" href=\"https:\/\/superdevresources.com\/redirects-jekyll-github-pages\/\" aria-label=\"Read more about How to redirect URLs on Jekyll site hosted on GitHub Pages\"><span><\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":1693,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[160,146],"class_list":["post-8359","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development","tag-developer-tools","tag-jekyll","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","no-featured-image-padding","resize-featured-image"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to redirect URLs on Jekyll site hosted on GitHub Pages - Super Dev Resources<\/title>\n<meta name=\"description\" content=\"While hosting your site or blog with GitHub pages is quite useful in terms of saving time and money, there are certain limitations too, such as not being\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/8945495.slot27.online\/redirects-jekyll-github-pages\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to redirect URLs on Jekyll site hosted on GitHub Pages - Super Dev Resources\" \/>\n<meta property=\"og:description\" content=\"While hosting your site or blog with GitHub pages is quite useful in terms of saving time and money, there are certain limitations too, such as not being\" \/>\n<meta property=\"og:url\" content=\"https:\/\/8945495.slot27.online\/redirects-jekyll-github-pages\/\" \/>\n<meta property=\"og:site_name\" content=\"Super Dev Resources\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/superdevresources\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/kanishkkunal\" \/>\n<meta property=\"article:published_time\" content=\"2015-02-14T18:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-06-18T06:37:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/8945495.slot27.online\/wp-content\/uploads\/2014\/12\/octojekyll-opt.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"500\" \/>\n\t<meta property=\"og:image:height\" content=\"336\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Kanishk Kunal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@kanishkkunal\" \/>\n<meta name=\"twitter:site\" content=\"@superdevres42\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kanishk Kunal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/8945495.slot27.online\\\/redirects-jekyll-github-pages\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/8945495.slot27.online\\\/redirects-jekyll-github-pages\\\/\"},\"author\":{\"name\":\"Kanishk Kunal\",\"@id\":\"https:\\\/\\\/45.32.231.40\\\/#\\\/schema\\\/person\\\/f9643723f546eebd0f61d356d1b71a6d\"},\"headline\":\"How to redirect URLs on Jekyll site hosted on GitHub Pages\",\"datePublished\":\"2015-02-14T18:30:00+00:00\",\"dateModified\":\"2020-06-18T06:37:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/8945495.slot27.online\\\/redirects-jekyll-github-pages\\\/\"},\"wordCount\":627,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/45.32.231.40\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/8945495.slot27.online\\\/redirects-jekyll-github-pages\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/superdevresources.com\\\/wp-content\\\/uploads\\\/2014\\\/12\\\/octojekyll-opt.jpg\",\"keywords\":[\"Developer Tools\",\"Jekyll\"],\"articleSection\":[\"Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/8945495.slot27.online\\\/redirects-jekyll-github-pages\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/8945495.slot27.online\\\/redirects-jekyll-github-pages\\\/\",\"url\":\"https:\\\/\\\/8945495.slot27.online\\\/redirects-jekyll-github-pages\\\/\",\"name\":\"How to redirect URLs on Jekyll site hosted on GitHub Pages - Super Dev Resources\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/45.32.231.40\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/8945495.slot27.online\\\/redirects-jekyll-github-pages\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/8945495.slot27.online\\\/redirects-jekyll-github-pages\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/superdevresources.com\\\/wp-content\\\/uploads\\\/2014\\\/12\\\/octojekyll-opt.jpg\",\"datePublished\":\"2015-02-14T18:30:00+00:00\",\"dateModified\":\"2020-06-18T06:37:22+00:00\",\"description\":\"While hosting your site or blog with GitHub pages is quite useful in terms of saving time and money, there are certain limitations too, such as not being\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/8945495.slot27.online\\\/redirects-jekyll-github-pages\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/8945495.slot27.online\\\/redirects-jekyll-github-pages\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/8945495.slot27.online\\\/redirects-jekyll-github-pages\\\/#primaryimage\",\"url\":\"https:\\\/\\\/superdevresources.com\\\/wp-content\\\/uploads\\\/2014\\\/12\\\/octojekyll-opt.jpg\",\"contentUrl\":\"https:\\\/\\\/superdevresources.com\\\/wp-content\\\/uploads\\\/2014\\\/12\\\/octojekyll-opt.jpg\",\"width\":500,\"height\":336},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/8945495.slot27.online\\\/redirects-jekyll-github-pages\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/superdevresources.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Development\",\"item\":\"https:\\\/\\\/superdevresources.com\\\/category\\\/development\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to redirect URLs on Jekyll site hosted on GitHub Pages\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/45.32.231.40\\\/#website\",\"url\":\"https:\\\/\\\/45.32.231.40\\\/\",\"name\":\"Super Dev Resources\",\"description\":\"Design, Development, Business &amp; Marketing Resources\",\"publisher\":{\"@id\":\"https:\\\/\\\/45.32.231.40\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/45.32.231.40\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/45.32.231.40\\\/#organization\",\"name\":\"Super Dev Resources\",\"url\":\"https:\\\/\\\/45.32.231.40\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/45.32.231.40\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/superdevresources.com\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/sdr.png\",\"contentUrl\":\"https:\\\/\\\/superdevresources.com\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/sdr.png\",\"width\":512,\"height\":512,\"caption\":\"Super Dev Resources\"},\"image\":{\"@id\":\"https:\\\/\\\/45.32.231.40\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/superdevresources\",\"https:\\\/\\\/x.com\\\/superdevres42\",\"https:\\\/\\\/www.pinterest.com\\\/superdevres42\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/45.32.231.40\\\/#\\\/schema\\\/person\\\/f9643723f546eebd0f61d356d1b71a6d\",\"name\":\"Kanishk Kunal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5424ef843870b34c2c001631cda37a0d41253eb5e019710f0f3eb11a38c0b2f7?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5424ef843870b34c2c001631cda37a0d41253eb5e019710f0f3eb11a38c0b2f7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5424ef843870b34c2c001631cda37a0d41253eb5e019710f0f3eb11a38c0b2f7?s=96&d=mm&r=g\",\"caption\":\"Kanishk Kunal\"},\"description\":\"Kanishk is a Software Engineer turned Online Entrepreneur who has created many successful apps and websites. He devotes most of his time punching his keyboard and swiping his smartphone. Follow him on Twitter @kanishkkunal\",\"sameAs\":[\"https:\\\/\\\/kanishkkunal.com\",\"https:\\\/\\\/www.facebook.com\\\/kanishkkunal\",\"https:\\\/\\\/www.instagram.com\\\/kanishkkunal\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/kanishkkunal\",\"https:\\\/\\\/in.pinterest.com\\\/kanishkkunal\\\/\",\"https:\\\/\\\/x.com\\\/kanishkkunal\",\"kanishkkunal\"],\"url\":\"https:\\\/\\\/superdevresources.com\\\/author\\\/kanishk\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to redirect URLs on Jekyll site hosted on GitHub Pages - Super Dev Resources","description":"While hosting your site or blog with GitHub pages is quite useful in terms of saving time and money, there are certain limitations too, such as not being","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:\/\/8945495.slot27.online\/redirects-jekyll-github-pages\/","og_locale":"en_US","og_type":"article","og_title":"How to redirect URLs on Jekyll site hosted on GitHub Pages - Super Dev Resources","og_description":"While hosting your site or blog with GitHub pages is quite useful in terms of saving time and money, there are certain limitations too, such as not being","og_url":"https:\/\/8945495.slot27.online\/redirects-jekyll-github-pages\/","og_site_name":"Super Dev Resources","article_publisher":"https:\/\/www.facebook.com\/superdevresources","article_author":"https:\/\/www.facebook.com\/kanishkkunal","article_published_time":"2015-02-14T18:30:00+00:00","article_modified_time":"2020-06-18T06:37:22+00:00","og_image":[{"width":500,"height":336,"url":"https:\/\/8945495.slot27.online\/wp-content\/uploads\/2014\/12\/octojekyll-opt.jpg","type":"image\/jpeg"}],"author":"Kanishk Kunal","twitter_card":"summary_large_image","twitter_creator":"@kanishkkunal","twitter_site":"@superdevres42","twitter_misc":{"Written by":"Kanishk Kunal","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/8945495.slot27.online\/redirects-jekyll-github-pages\/#article","isPartOf":{"@id":"https:\/\/8945495.slot27.online\/redirects-jekyll-github-pages\/"},"author":{"name":"Kanishk Kunal","@id":"https:\/\/45.32.231.40\/#\/schema\/person\/f9643723f546eebd0f61d356d1b71a6d"},"headline":"How to redirect URLs on Jekyll site hosted on GitHub Pages","datePublished":"2015-02-14T18:30:00+00:00","dateModified":"2020-06-18T06:37:22+00:00","mainEntityOfPage":{"@id":"https:\/\/8945495.slot27.online\/redirects-jekyll-github-pages\/"},"wordCount":627,"commentCount":2,"publisher":{"@id":"https:\/\/45.32.231.40\/#organization"},"image":{"@id":"https:\/\/8945495.slot27.online\/redirects-jekyll-github-pages\/#primaryimage"},"thumbnailUrl":"https:\/\/superdevresources.com\/wp-content\/uploads\/2014\/12\/octojekyll-opt.jpg","keywords":["Developer Tools","Jekyll"],"articleSection":["Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/8945495.slot27.online\/redirects-jekyll-github-pages\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/8945495.slot27.online\/redirects-jekyll-github-pages\/","url":"https:\/\/8945495.slot27.online\/redirects-jekyll-github-pages\/","name":"How to redirect URLs on Jekyll site hosted on GitHub Pages - Super Dev Resources","isPartOf":{"@id":"https:\/\/45.32.231.40\/#website"},"primaryImageOfPage":{"@id":"https:\/\/8945495.slot27.online\/redirects-jekyll-github-pages\/#primaryimage"},"image":{"@id":"https:\/\/8945495.slot27.online\/redirects-jekyll-github-pages\/#primaryimage"},"thumbnailUrl":"https:\/\/superdevresources.com\/wp-content\/uploads\/2014\/12\/octojekyll-opt.jpg","datePublished":"2015-02-14T18:30:00+00:00","dateModified":"2020-06-18T06:37:22+00:00","description":"While hosting your site or blog with GitHub pages is quite useful in terms of saving time and money, there are certain limitations too, such as not being","breadcrumb":{"@id":"https:\/\/8945495.slot27.online\/redirects-jekyll-github-pages\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/8945495.slot27.online\/redirects-jekyll-github-pages\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/8945495.slot27.online\/redirects-jekyll-github-pages\/#primaryimage","url":"https:\/\/superdevresources.com\/wp-content\/uploads\/2014\/12\/octojekyll-opt.jpg","contentUrl":"https:\/\/superdevresources.com\/wp-content\/uploads\/2014\/12\/octojekyll-opt.jpg","width":500,"height":336},{"@type":"BreadcrumbList","@id":"https:\/\/8945495.slot27.online\/redirects-jekyll-github-pages\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/superdevresources.com\/"},{"@type":"ListItem","position":2,"name":"Development","item":"https:\/\/superdevresources.com\/category\/development\/"},{"@type":"ListItem","position":3,"name":"How to redirect URLs on Jekyll site hosted on GitHub Pages"}]},{"@type":"WebSite","@id":"https:\/\/45.32.231.40\/#website","url":"https:\/\/45.32.231.40\/","name":"Super Dev Resources","description":"Design, Development, Business &amp; Marketing Resources","publisher":{"@id":"https:\/\/45.32.231.40\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/45.32.231.40\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/45.32.231.40\/#organization","name":"Super Dev Resources","url":"https:\/\/45.32.231.40\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/45.32.231.40\/#\/schema\/logo\/image\/","url":"https:\/\/superdevresources.com\/wp-content\/uploads\/2016\/12\/sdr.png","contentUrl":"https:\/\/superdevresources.com\/wp-content\/uploads\/2016\/12\/sdr.png","width":512,"height":512,"caption":"Super Dev Resources"},"image":{"@id":"https:\/\/45.32.231.40\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/superdevresources","https:\/\/x.com\/superdevres42","https:\/\/www.pinterest.com\/superdevres42\/"]},{"@type":"Person","@id":"https:\/\/45.32.231.40\/#\/schema\/person\/f9643723f546eebd0f61d356d1b71a6d","name":"Kanishk Kunal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/5424ef843870b34c2c001631cda37a0d41253eb5e019710f0f3eb11a38c0b2f7?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5424ef843870b34c2c001631cda37a0d41253eb5e019710f0f3eb11a38c0b2f7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5424ef843870b34c2c001631cda37a0d41253eb5e019710f0f3eb11a38c0b2f7?s=96&d=mm&r=g","caption":"Kanishk Kunal"},"description":"Kanishk is a Software Engineer turned Online Entrepreneur who has created many successful apps and websites. He devotes most of his time punching his keyboard and swiping his smartphone. Follow him on Twitter @kanishkkunal","sameAs":["https:\/\/kanishkkunal.com","https:\/\/www.facebook.com\/kanishkkunal","https:\/\/www.instagram.com\/kanishkkunal\/","https:\/\/www.linkedin.com\/in\/kanishkkunal","https:\/\/in.pinterest.com\/kanishkkunal\/","https:\/\/x.com\/kanishkkunal","kanishkkunal"],"url":"https:\/\/superdevresources.com\/author\/kanishk\/"}]}},"jetpack_featured_media_url":"https:\/\/superdevresources.com\/wp-content\/uploads\/2014\/12\/octojekyll-opt.jpg","jetpack-related-posts":[{"id":8358,"url":"https:\/\/superdevresources.com\/github-pages-jekyll\/","url_meta":{"origin":8359,"position":0},"title":"Super Dev Resources now running on GitHub Pages powered by Jekyll","author":"Kanishk Kunal","date":"December 8, 2014","format":false,"excerpt":"[Update] Super Dev Resources is now back on WordPress. Read about it here. We have moved hosting of\u00a0Super Dev Resources\u00a0blog to GitHub Pages. At the core, Jekyll is being used to generate static HTML pages for this site which is getting hosted by GitHub. WordPress to Jekyll Earlier we were\u2026","rel":"","context":"In \"Jekyll\"","block_context":{"text":"Jekyll","link":"https:\/\/superdevresources.com\/tag\/jekyll\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/superdevresources.com\/wp-content\/uploads\/2014\/12\/octojekyll-opt.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":9010,"url":"https:\/\/superdevresources.com\/host-static-website-free\/","url_meta":{"origin":8359,"position":1},"title":"Best Free Static Website Hosting with Custom Domain &#8211; Top 10 Hosting Platforms","author":"Kanishk Kunal","date":"February 27, 2017","format":false,"excerpt":"With the increasing popularity of static site generators, a lot of services have come up allowing you to host static website or JAM-stack site for free. However, not all these services allow mapping your site to a custom domain. If you are looking for hosting a static site completely free\u2026","rel":"","context":"In &quot;Development&quot;","block_context":{"text":"Development","link":"https:\/\/superdevresources.com\/category\/development\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/superdevresources.com\/wp-content\/uploads\/2017\/02\/github-pages.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/superdevresources.com\/wp-content\/uploads\/2017\/02\/github-pages.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/superdevresources.com\/wp-content\/uploads\/2017\/02\/github-pages.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/superdevresources.com\/wp-content\/uploads\/2017\/02\/github-pages.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/superdevresources.com\/wp-content\/uploads\/2017\/02\/github-pages.jpg?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":7353,"url":"https:\/\/superdevresources.com\/static-site-generators\/","url_meta":{"origin":8359,"position":2},"title":"10 Most Popular Static Site Generators","author":"SDR Team","date":"July 14, 2021","format":false,"excerpt":"When it comes to developing faster and leaner websites, the best option you have is to use a static site generator over more complex Content Management Systems like WordPress. A static site generator allows you to generate static HTML pages that can be easily served by any webserver without relying\u2026","rel":"","context":"In &quot;Development&quot;","block_context":{"text":"Development","link":"https:\/\/superdevresources.com\/category\/development\/"},"img":{"alt_text":"top static site generators","src":"https:\/\/i0.wp.com\/superdevresources.com\/wp-content\/uploads\/2021\/07\/top-static-site-generators.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/superdevresources.com\/wp-content\/uploads\/2021\/07\/top-static-site-generators.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/superdevresources.com\/wp-content\/uploads\/2021\/07\/top-static-site-generators.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/superdevresources.com\/wp-content\/uploads\/2021\/07\/top-static-site-generators.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":13120,"url":"https:\/\/superdevresources.com\/jekyll-themes\/","url_meta":{"origin":8359,"position":3},"title":"15+ Best Jekyll Themes &#038; Templates for Blogging and Portfolio","author":"SDR Team","date":"March 1, 2017","format":false,"excerpt":"Static Websites are an easy way to build an online presence\u00a0and Jekyll is one of the most popular static site builder with blogging support. In this article, we present a collection of the best Jekyll themes which are both free as well as premium and can be used to quickly\u2026","rel":"","context":"In &quot;Themes &amp; Templates&quot;","block_context":{"text":"Themes &amp; Templates","link":"https:\/\/superdevresources.com\/category\/themes-templates\/"},"img":{"alt_text":"frisco","src":"https:\/\/i0.wp.com\/superdevresources.com\/wp-content\/uploads\/2017\/03\/frisco.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/superdevresources.com\/wp-content\/uploads\/2017\/03\/frisco.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/superdevresources.com\/wp-content\/uploads\/2017\/03\/frisco.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/superdevresources.com\/wp-content\/uploads\/2017\/03\/frisco.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/superdevresources.com\/wp-content\/uploads\/2017\/03\/frisco.jpg?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/superdevresources.com\/wp-content\/uploads\/2017\/03\/frisco.jpg?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":8351,"url":"https:\/\/superdevresources.com\/tag-cloud-jekyll\/","url_meta":{"origin":8359,"position":4},"title":"Generating Tag cloud on Jekyll blog without plugin","author":"Kanishk Kunal","date":"January 11, 2015","format":false,"excerpt":"Jekyll doesn\u2019t come with an out of box solution for generating Tag clouds, however with the support of Liquid markups and some basic CSS styling, we can generate Tag clouds ourselves without the need of any plugin. In the post I will show how I generate Tag clouds on my\u2026","rel":"","context":"In &quot;Development&quot;","block_context":{"text":"Development","link":"https:\/\/superdevresources.com\/category\/development\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/superdevresources.com\/wp-content\/uploads\/2014\/12\/octojekyll-opt.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":29761,"url":"https:\/\/superdevresources.com\/how-to-create-seo-friendly-urls\/","url_meta":{"origin":8359,"position":5},"title":"How to Create SEO-Friendly URLs","author":"SDR Team","date":"March 7, 2022","format":false,"excerpt":"The URL structures of different websites vary. One URL may be designated for an e-commerce site while another may be set for a blog. Multiple URL architectures are frequently utilized to accommodate the goals and requirements of various websites. Regardless of the differences between websites, the URL structure should be\u2026","rel":"","context":"In &quot;Digital Marketing&quot;","block_context":{"text":"Digital Marketing","link":"https:\/\/superdevresources.com\/category\/marketing\/"},"img":{"alt_text":"seo friendly urls","src":"https:\/\/i0.wp.com\/superdevresources.com\/wp-content\/uploads\/2022\/03\/seo-friendly-urls.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/superdevresources.com\/wp-content\/uploads\/2022\/03\/seo-friendly-urls.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/superdevresources.com\/wp-content\/uploads\/2022\/03\/seo-friendly-urls.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/superdevresources.com\/wp-content\/uploads\/2022\/03\/seo-friendly-urls.png?resize=700%2C400&ssl=1 2x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/superdevresources.com\/wp-json\/wp\/v2\/posts\/8359","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/superdevresources.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/superdevresources.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/superdevresources.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/superdevresources.com\/wp-json\/wp\/v2\/comments?post=8359"}],"version-history":[{"count":0,"href":"https:\/\/superdevresources.com\/wp-json\/wp\/v2\/posts\/8359\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/superdevresources.com\/wp-json\/wp\/v2\/media\/1693"}],"wp:attachment":[{"href":"https:\/\/superdevresources.com\/wp-json\/wp\/v2\/media?parent=8359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/superdevresources.com\/wp-json\/wp\/v2\/categories?post=8359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/superdevresources.com\/wp-json\/wp\/v2\/tags?post=8359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}