This commit is contained in:
WickedJack99
2022-09-21 15:09:44 +02:00
parent 600097aa48
commit ebeeda5984
5 changed files with 25 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.2">Jekyll</generator><link href="/feed.xml" rel="self" type="application/atom+xml" /><link href="/" rel="alternate" type="text/html" /><updated>2022-09-21T14:36:13+02:00</updated><id>/feed.xml</id><title type="html">Mr.</title><subtitle>Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.</subtitle><entry><title type="html">2022 Week 38 How to create a static website with Jekyll and deploy it on GitHubPages</title><link href="/2022/09/20/how-to-create-githubpage.html" rel="alternate" type="text/html" title="2022 Week 38 How to create a static website with Jekyll and deploy it on GitHubPages" /><published>2022-09-20T00:00:00+02:00</published><updated>2022-09-20T00:00:00+02:00</updated><id>/2022/09/20/how-to-create-githubpage</id><content type="html" xml:base="/2022/09/20/how-to-create-githubpage.html">&lt;div class=&quot;outerDiv&quot;&gt;
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.2">Jekyll</generator><link href="/feed.xml" rel="self" type="application/atom+xml" /><link href="/" rel="alternate" type="text/html" /><updated>2022-09-21T15:09:06+02:00</updated><id>/feed.xml</id><title type="html">Mr.</title><subtitle>Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.</subtitle><entry><title type="html">2022 Week 38 How to create a static website with Jekyll and deploy it on GitHubPages</title><link href="/2022/09/20/how-to-create-githubpage.html" rel="alternate" type="text/html" title="2022 Week 38 How to create a static website with Jekyll and deploy it on GitHubPages" /><published>2022-09-20T00:00:00+02:00</published><updated>2022-09-20T00:00:00+02:00</updated><id>/2022/09/20/how-to-create-githubpage</id><content type="html" xml:base="/2022/09/20/how-to-create-githubpage.html">&lt;div class=&quot;outerDiv&quot;&gt;
&lt;div id=&quot;prerequisits&quot;&gt;
&lt;h3&gt;Prerequisits&lt;/h3&gt;
Install &lt;a href=&quot;https://git-scm.com/downloads&quot; target=&quot;_blank&quot;&gt;Git&lt;/a&gt;&lt;br&gt;
@@ -46,9 +46,8 @@
Create a new Jekyll-project at localDev-directory:&lt;br&gt;
&lt;div class=&quot;console&quot;&gt;
&lt;code&gt;$ jekyll new --skip-bundle .&lt;/code&gt;&lt;br&gt;
(make sure you got the dot)
&lt;/div&gt;
&lt;br&gt;
(make sure you got the dot)&lt;br&gt;
Open the Gemfile that Jekyll created and comment out the line which starts with &lt;i&gt;gem &quot;jekyll&quot;&lt;/i&gt;&lt;br&gt;
Add the github-pages gem by editing the line starting with # gem &quot;github-pages&quot;.&lt;br&gt;
@@ -59,7 +58,7 @@
&lt;br&gt;
Now still being at the localDev-directory, install the bundle:&lt;br&gt;
&lt;div&gt;
&lt;div class=&quot;console&quot;&gt;
&lt;code&gt;$ bundle install&lt;/code&gt;&lt;br&gt;
&lt;/div&gt;
Optionally you can make changes at the &lt;i&gt;_config.yml&lt;/i&gt; file.&lt;br&gt;
@@ -73,11 +72,13 @@
&lt;h3&gt;Build Project&lt;/h3&gt;
After creating all necessary files and dirs, you can make a production build:&lt;br&gt;
Note that all files at _site will be cleared!
&lt;code&gt;$ JEKYLL_ENV=production bundle exec jekyll build&lt;/code&gt;&lt;br&gt;
&lt;div class=&quot;console&quot;&gt;
&lt;code&gt;$ JEKYLL_ENV=production bundle exec jekyll build&lt;/code&gt;
&lt;/div&gt;
Your Jekyll-project was now build and stored at _site.&lt;br&gt;
Now move the content of the localDev/_site to docs:&lt;br&gt;
&lt;div&gt;
&lt;code&gt;$ mv /localDev/_site docs&lt;/code&gt;&lt;br&gt;
&lt;div class=&quot;console&quot;&gt;
&lt;code&gt;$ cp -r _site/* ../docs&lt;/code&gt;&lt;br&gt;
&lt;/div&gt;
And push your changes to your central GitHub-Repository.
&lt;/div&gt;