{"id":8687,"date":"2015-07-08T23:06:05","date_gmt":"2015-07-08T22:06:05","guid":{"rendered":"https:\/\/wp.okra.host\/article\/installing-jekyll\/"},"modified":"2021-03-07T14:47:14","modified_gmt":"2021-03-07T13:47:14","slug":"installing-jekyll","status":"publish","type":"ht_kb","link":"https:\/\/kb.okra.host\/de\/article\/installing-jekyll\/","title":{"rendered":"Installing Jekyll"},"content":{"rendered":"<h2 id=\"overview\" >\u00dcbersicht<\/h2>\n<p><a href=\"http:\/\/jekyllrb.com\">Jekyll<\/a> is a lightweight blogging platform written in Ruby. Jekyll compiles into a static site with no dynamic endpoints, making it extremely secure and fast. Posts are written using <a href=\"https:\/\/guides.github.com\/features\/mastering-markdown\/\">Markdown<\/a> syntax.<\/p>\n<div id=\"attachment_1065\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2015\/07\/jekyll-default-blog.png\" rel=\"lightbox-0\" data-lbwps-width=\"979\" data-lbwps-height=\"594\" data-lbwps-srcsmall=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2015\/07\/jekyll-default-blog.png\"><img decoding=\"async\" aria-describedby=\"caption-attachment-1065\" loading=\"lazy\" class=\"size-medium wp-image-1065\" src=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2015\/07\/jekyll-default-blog-300x182.png\" alt=\"A basic Jekyll blog\" width=\"300\" height=\"182\" \/><\/a><\/p>\n<p id=\"caption-attachment-1065\" class=\"wp-caption-text\">A basic Jekyll blog<\/p>\n<\/div>\n<h2 id=\"quickstart\" >Schnellstart<\/h2>\n<ol>\n<li>Login to the <a title=\"Zugriff auf das Terminal\" href=\"https:\/\/kb.okra.host\/de\/terminal\/accessing-terminal\/\">Terminal<\/a><\/li>\n<li style=\"text-align: left\">Select a Ruby <a href=\"https:\/\/kb.okra.host\/de\/ruby\/changing-ruby-versions\/\">interpreter to use<\/a>. If you would like to use the system default version, specif <code>default<\/code> for the version:\n<pre data-language=\"shell\"><code>rvm use default<\/code><\/pre>\n<\/li>\n<li>Install the Jekyll gem and its dependencies using gem:\n<pre data-language=\"shell\"><code>gem install --no-rdoc --no-ri passenger rack passenger jekyll rack-jekyll<\/code><\/pre>\n<\/li>\n<li>Create a filesystem layout.\u00a0You only need to initialize a new Jekyll instance using <code>jekyll new<\/code>. Jekyll will refuse to initialize a project if the directory already exists, but this behavior may be overrode with <code>--force<\/code>:\n<pre data-language=\"shell\"><code>cd \/var\/www\r\nmkdir jekyll\/\r\ncd jekyll\r\njekyll new --force .<\/code><\/pre>\n<ul>\n<li><span style=\"color: #3366ff\"><strong>Note 1:\u00a0<\/strong><span style=\"color: #000000\">pay attention to the presence of &#8220;<code>.<\/code>&#8221; after <code>--force<\/code>. This is not a typo.<\/span><\/span><\/li>\n<li><span style=\"color: #3366ff\"><strong>Note 2:<\/strong><\/span>\u00a0although it may be a Ruby application, Jekyll compiles your site from source, creating a static site. A Passenger-compatible <a href=\"https:\/\/kb.okra.host\/de\/cgi-passenger\/passenger-application-layout\/\">Dateisystem-Layout<\/a>\u00a0is, therefore, unnecessary.<\/li>\n<\/ul>\n<\/li>\n<li>Compile your Jekyll website Jekyll from its source and place the files under <code>\u00f6ffentlich\/<\/code>. By default, Jekyll places output into <code>_site\/<\/code>. We like consistency, so link <code>_site\/<\/code> an <code>\u00f6ffentlich\/<\/code> to serve as the <a href=\"https:\/\/kb.okra.host\/de\/web-content\/where-is-site-content-served-from\/\">Dokumentenstamm<\/a>.\n<pre data-language=\"shell\"><code>jekyll build\r\nln -s _site\/ public<\/code><\/pre>\n<\/li>\n<li>Attach <code>\/var\/www\/jekyll\/public<\/code> zu einer <a href=\"https:\/\/kb.okra.host\/de\/web-content\/creating-subdomain\/\">Subdomain<\/a> (or <a href=\"https:\/\/kb.okra.host\/de\/control-panel\/creating-addon-domain\/\">Addon-Dom\u00e4ne<\/a>) within the control panel.<\/li>\n<li>Access Jekyll! You&#8217;re all set!<\/li>\n<\/ol>\n<h3 id=\"live-building\" >Live building<\/h3>\n<p>When making changes on-the-fly, you may want Jekyll to automatically recompile your site whenever it detects a change to its source. You can easily do this with <code>jekyll build --watch:<\/code><\/p>\n<pre style=\"padding-left: 60px\">Configuration file: \/var\/www\/jekyll\/_config.yml\r\n Source: \/var\/www\/jekyll\r\n Destination: _site\r\n Generating... \r\n done.\r\n Auto-regeneration: enabled for '\/var\/www\/jekyll'\r\n Regenerating: 3 file(s) changed at 2015-07-08 14:59:50 ...done in 0.375904515 seconds<\/pre>\n<h2 id=\"see-also\" >Siehe auch<\/h2>\n<ul>\n<li><a href=\"http:\/\/jekyll.sandbox.apnscp.com\">Jekyll running<\/a> on Sol, a <a href=\"https:\/\/kb.okra.host\/de\/platform\/determining-platform-version\/\">v6 platform<\/a><\/li>\n<li><a href=\"http:\/\/jekyllrb.com\/docs\/resources\/\">Jekyll resources<\/a><\/li>\n<li><a href=\"http:\/\/jekyllrb.com\/docs\/frontmatter\/\">Jekyll documentation<\/a><\/li>\n<li><a href=\"https:\/\/talk.jekyllrb.com\/\">Jekyll help community<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Overview Jekyll is a lightweight blogging platform written in Ruby. Jekyll compiles into a static site with no dynamic endpoints, making it extremely secure and fast. Posts are written using Markdown syntax. A basic Jekyll blog Quickstart Login to the terminal Select a Ruby interpreter to use. If you would&#8230;<\/p>","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[66],"ht-kb-tag":[],"class_list":["post-8687","ht_kb","type-ht_kb","status-publish","format-standard","has-post-thumbnail","hentry","ht_kb_category-ruby"],"_links":{"self":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8687","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/comments?post=8687"}],"version-history":[{"count":1,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8687\/revisions"}],"predecessor-version":[{"id":8688,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8687\/revisions\/8688"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/media\/8689"}],"wp:attachment":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/media?parent=8687"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb-category?post=8687"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb-tag?post=8687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}