{"id":2820,"date":"2022-04-04T02:14:58","date_gmt":"2022-04-04T06:14:58","guid":{"rendered":"https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/?p=2820"},"modified":"2022-04-04T18:22:56","modified_gmt":"2022-04-04T22:22:56","slug":"convert-responsive-site-to-11ty","status":"publish","type":"post","link":"https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/projects\/eleventy-site\/convert-responsive-site-to-11ty\/","title":{"rendered":"Convert Responsive Site to 11ty"},"content":{"rendered":"\n<p>This isa series of videos that walk through the process of moving your site from the HTML\/CSS Responsive site to an 11ty site.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Part 1 Set Up<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/bmcc-cuny.zoom.us\/rec\/play\/kcVGrIjy5tKHw3t4Szp-a2K65_t2ApZYDidCmN5cnk3Q3U6FEAce_SL8nGqT6SxdaU34P_eAYdBZEaI5.wFIyue8ZZ7vm9Win (Passcode: 1BFX^Q9t)\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"567\" src=\"https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-content\/uploads\/sites\/2125\/2022\/04\/Screen-Shot-2022-04-04-at-1.27.18-AM-1024x567.png\" alt=\"\" class=\"wp-image-2821\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-content\/uploads\/sites\/2125\/2022\/04\/Screen-Shot-2022-04-04-at-1.27.18-AM-1024x567.png 1024w, https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-content\/uploads\/sites\/2125\/2022\/04\/Screen-Shot-2022-04-04-at-1.27.18-AM-300x166.png 300w, https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-content\/uploads\/sites\/2125\/2022\/04\/Screen-Shot-2022-04-04-at-1.27.18-AM-768x425.png 768w, https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-content\/uploads\/sites\/2125\/2022\/04\/Screen-Shot-2022-04-04-at-1.27.18-AM.png 1432w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption><a href=\"https:\/\/bmcc-cuny.zoom.us\/rec\/play\/kcVGrIjy5tKHw3t4Szp-a2K65_t2ApZYDidCmN5cnk3Q3U6FEAce_SL8nGqT6SxdaU34P_eAYdBZEaI5.wFIyue8ZZ7vm9Win\" target=\"_blank\" rel=\"noreferrer noopener\">view video<\/a> [4:38] Passcode: 1BFX^Q9t<\/figcaption><\/figure>\n\n\n\n<p>Creating the Eleventy Repository and setting up GitPod as the editor.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Part 2: Create Markdown Files<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/bmcc-cuny.zoom.us\/rec\/play\/xSGfz0t0_GPthf2TawptoDZZRCScRRLKZ_3vjy6V9h7AKZVC3LsDKzH0W2oR-Trr3r1MgDy9r38w7zJp.iI9_bi8BJHYzAWTf (Passcode: 1BFX^Q9t)\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"557\" src=\"https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-content\/uploads\/sites\/2125\/2022\/04\/Screen-Shot-2022-04-04-at-1.33.14-AM-1024x557.png\" alt=\"\" class=\"wp-image-2822\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-content\/uploads\/sites\/2125\/2022\/04\/Screen-Shot-2022-04-04-at-1.33.14-AM-1024x557.png 1024w, https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-content\/uploads\/sites\/2125\/2022\/04\/Screen-Shot-2022-04-04-at-1.33.14-AM-300x163.png 300w, https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-content\/uploads\/sites\/2125\/2022\/04\/Screen-Shot-2022-04-04-at-1.33.14-AM-768x418.png 768w, https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-content\/uploads\/sites\/2125\/2022\/04\/Screen-Shot-2022-04-04-at-1.33.14-AM.png 1437w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption><a href=\"https:\/\/bmcc-cuny.zoom.us\/rec\/play\/xSGfz0t0_GPthf2TawptoDZZRCScRRLKZ_3vjy6V9h7AKZVC3LsDKzH0W2oR-Trr3r1MgDy9r38w7zJp.iI9_bi8BJHYzAWTf\" target=\"_blank\" rel=\"noreferrer noopener\">view video<\/a> [8:32] Passcode: 1BFX^Q9t<\/figcaption><\/figure>\n\n\n\n<p>Create a Markdown file for each of the HTML files in your site. In this step you just need to create the files and add some front matter data.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Part 3: Base Template,  Passthrough files and Content<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/bmcc-cuny.zoom.us\/rec\/play\/dm6pvka5vpx7hBi4XivD2hM4ICHz09ybIRBBzfmoEYgOKWueSitfoSmvPBWZ5AAn6Wj-KwFmESPHO5aK.CQZhSiVm9UV6Pvsw (Passcode: 1BFX^Q9t)\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"572\" src=\"https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-content\/uploads\/sites\/2125\/2022\/04\/Screen-Shot-2022-04-04-at-1.43.43-AM-1024x572.png\" alt=\"\" class=\"wp-image-2824\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-content\/uploads\/sites\/2125\/2022\/04\/Screen-Shot-2022-04-04-at-1.43.43-AM-1024x572.png 1024w, https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-content\/uploads\/sites\/2125\/2022\/04\/Screen-Shot-2022-04-04-at-1.43.43-AM-300x168.png 300w, https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-content\/uploads\/sites\/2125\/2022\/04\/Screen-Shot-2022-04-04-at-1.43.43-AM-768x429.png 768w, https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-content\/uploads\/sites\/2125\/2022\/04\/Screen-Shot-2022-04-04-at-1.43.43-AM.png 1434w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption><a rel=\"noreferrer noopener\" href=\"https:\/\/bmcc-cuny.zoom.us\/rec\/play\/dm6pvka5vpx7hBi4XivD2hM4ICHz09ybIRBBzfmoEYgOKWueSitfoSmvPBWZ5AAn6Wj-KwFmESPHO5aK.CQZhSiVm9UV6Pvsw\" target=\"_blank\">view video<\/a> [17:24] Passcode: 1BFX^Q9t<\/figcaption><\/figure>\n\n\n\n<p>In this step we set up the base template (base.njk), copy over the passthrough files (CSS, JavaScript and images).  Then we move the content from each page into the Markdown files created in step 1.<\/p>\n\n\n\n<p>After the Template and Content is moved over, there are some changes that need to be made. In the video you can look at about 10:40. The changes are:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Remove all spaces between HTML elements. No blank lines. If you have them then the Markdown won&#8217;t render properly. <\/li><li>All paths need to start with \/ and remove the .html<ul><li>href=&#8221;file.html&#8221; changes to href=&#8221;\/file&#8221; <\/li><li>src=&#8221;images\/file.jpg&#8221; changes to src=&#8221;\/images\/file.jpg&#8221;<\/li><\/ul><\/li><\/ul>\n\n\n\n<p>To make this process faster and more accurate you can use a global find and replace. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Testing<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/bmcc-cuny.zoom.us\/rec\/play\/i9QIosYnIV83VMNfEjbjq1Xgzc373V5d70EL-K2R3JjVWhTaNGXvzcbAaVENm9GdP6FHfwXOKiGaOwiX.VApaIB3tTQQE0au0 (Passcode: 1BFX^Q9t)\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"566\" src=\"https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-content\/uploads\/sites\/2125\/2022\/04\/Screen-Shot-2022-04-04-at-2.12.55-AM-1024x566.png\" alt=\"\" class=\"wp-image-2825\" srcset=\"https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-content\/uploads\/sites\/2125\/2022\/04\/Screen-Shot-2022-04-04-at-2.12.55-AM-1024x566.png 1024w, https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-content\/uploads\/sites\/2125\/2022\/04\/Screen-Shot-2022-04-04-at-2.12.55-AM-300x166.png 300w, https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-content\/uploads\/sites\/2125\/2022\/04\/Screen-Shot-2022-04-04-at-2.12.55-AM-768x424.png 768w, https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-content\/uploads\/sites\/2125\/2022\/04\/Screen-Shot-2022-04-04-at-2.12.55-AM.png 1434w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption><a rel=\"noreferrer noopener\" href=\"https:\/\/bmcc-cuny.zoom.us\/rec\/play\/i9QIosYnIV83VMNfEjbjq1Xgzc373V5d70EL-K2R3JjVWhTaNGXvzcbAaVENm9GdP6FHfwXOKiGaOwiX.VApaIB3tTQQE0au0\" target=\"_blank\">view video<\/a> [3:45] Passcode: 1BFX^Q9t<\/figcaption><\/figure>\n\n\n\n<p>In this video we go through cleaning up some more parts and committing our changed files and syncing to GitHub.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This isa series of videos that walk through the process of moving your site from the HTML\/CSS Responsive site to an 11ty site. Part 1 Set Up Creating the Eleventy Repository and setting up GitPod as the editor. Part 2: Create Markdown Files Create a Markdown file for each of the HTML files in your&hellip; <a class=\"more-link\" href=\"https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/projects\/eleventy-site\/convert-responsive-site-to-11ty\/\">Continue reading <span class=\"screen-reader-text\">Convert Responsive Site to 11ty<\/span><\/a><\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","portfolio_post_id":0,"portfolio_citation":"","portfolio_annotation":"","openlab_post_visibility":"","footnotes":""},"categories":[150],"tags":[55,217,226,54,227],"coauthors":[87],"class_list":["post-2820","post","type-post","status-publish","format-standard","hentry","category-eleventy-site","tag-11ty","tag-content","tag-convert","tag-eleventy","tag-passthrough","entry"],"featured_image_urls_v2":{"full":"","thumbnail":"","medium":"","medium_large":"","large":"","1536x1536":"","2048x2048":"","post-thumbnail":"","gform-image-choice-sm":"","gform-image-choice-md":"","gform-image-choice-lg":""},"post_excerpt_stackable_v2":"<p>This isa series of videos that walk through the process of moving your site from the HTML\/CSS Responsive site to an 11ty site. Part 1 Set Up view video [4:38] Passcode: 1BFX^Q9t Creating the Eleventy Repository and setting up GitPod as the editor. Part 2: Create Markdown Files view video [8:32] Passcode: 1BFX^Q9t Create a Markdown file for each of the HTML files in your site. In this step you just need to create the files and add some front matter data. Part 3: Base Template, Passthrough files and Content view video [17:24] Passcode: 1BFX^Q9t In this step we set&hellip;<\/p>\n","category_list_v2":"<a href=\"https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/category\/projects\/eleventy-site\/\" rel=\"category tag\">Eleventy Site<\/a>","author_info_v2":{"name":"Christopher Stein","url":"https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/author\/cstein\/"},"comments_num_v2":"1 comment","uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"post-thumbnail":false,"gform-image-choice-sm":false,"gform-image-choice-md":false,"gform-image-choice-lg":false},"uagb_author_info":{"display_name":"Christopher Stein","author_link":"https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/author\/cstein\/"},"uagb_comment_info":1,"uagb_excerpt":"This isa series of videos that walk through the process of moving your site from the HTML\/CSS Responsive site to an 11ty site. Part 1 Set Up Creating the Eleventy Repository and setting up GitPod as the editor. Part 2: Create Markdown Files Create a Markdown file for each of the HTML files in your&hellip;&hellip;","_links":{"self":[{"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-json\/wp\/v2\/posts\/2820","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-json\/wp\/v2\/comments?post=2820"}],"version-history":[{"count":4,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-json\/wp\/v2\/posts\/2820\/revisions"}],"predecessor-version":[{"id":2852,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-json\/wp\/v2\/posts\/2820\/revisions\/2852"}],"wp:attachment":[{"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-json\/wp\/v2\/media?parent=2820"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-json\/wp\/v2\/categories?post=2820"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-json\/wp\/v2\/tags?post=2820"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-350-spring-22\/wp-json\/wp\/v2\/coauthors?post=2820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}