<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
 
 <title>DisentangleThings</title>
 <link href="http://ivanhanigan.github.io/feed/" rel="self"/>
 <link href="http://ivanhanigan.github.io/"/>
 <updated>2024-04-20T23:51:29+08:00</updated>
 <id>http://ivanhanigan.github.io/</id>
 <author>
   <name>ivanhanigan</name>
   <email>ivan.hanigan@gmail.com</email>
 </author>

 
 <entry>
   <title>Personal academic website with jekyll</title>
   <link href="http://ivanhanigan.github.io/2024/01/personal-academic-website-with-jekyll/"/>
   <updated>2024-01-02T00:00:00+08:00</updated>
   <id>http://ivanhanigan.github.io/2024/01/personal-academic-website-with-jekyll</id>
   <content type="html">&lt;p&gt;Having a personal academic website is great for developing and coordinating information that you can publish about your work and others can find out about you.&lt;/p&gt;

&lt;p&gt;There are a range of options from very simple approaches like the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;postcards&lt;/code&gt; package in R &lt;a href=&quot;https://github.com/seankross/postcards&quot;&gt;https://github.com/seankross/postcards&lt;/a&gt; or the more complicated approach using the &lt;a href=&quot;https://github.com/alshedivat/al-folio&quot;&gt;https://github.com/alshedivat/al-folio&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;My own blog and some other websites I created (&lt;a href=&quot;https://ivanhanigan.github.io/Ivan-Hanigan-CV/&quot;&gt;e.g. My Online CV&lt;/a&gt;) are based on some markdown templates I borrowed from other authors on github, and they all use the Jekyll static site generator framework. I have found that using jekyll on my Ubuntu linux computers is fairly straightforward but I am keen to also be able to develop sites on windoze computers.  Therefore I am going to embark on an experiment to set up a jekyll site generator using windows sub linux (WSL) as I think that running linux alongside windows applications gives a lot of access to powerful tools and a range of software from both windoze-land and linux-land. I will use this post to document the steps I take.&lt;/p&gt;

&lt;h1 id=&quot;steps&quot;&gt;Steps:&lt;/h1&gt;

&lt;h2 id=&quot;1-install-wsl&quot;&gt;1. Install WSL&lt;/h2&gt;

&lt;p&gt;Open powershell as Admin, ran&lt;/p&gt;

&lt;div class=&quot;code-header&quot;&gt;
  &lt;button class=&quot;copy-code-button&quot;&gt;
    Copy code to clipboard
  &lt;/button&gt;
&lt;/div&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;wsl &lt;span class=&quot;nt&quot;&gt;--install&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;but this just showed the wsl help text, so I found instructions that let me know if wsl is already installed, but no linux system distribution has been enabled this happens, so in my case I had to run &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;wsl --list --online&lt;/code&gt; and choose a distro. I chose &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Ubuntu&lt;/code&gt; which I assume will default to the latest version&lt;/p&gt;

&lt;h2 id=&quot;2-install-dependencies&quot;&gt;2. install dependencies&lt;/h2&gt;

&lt;div class=&quot;code-header&quot;&gt;
  &lt;button class=&quot;copy-code-button&quot;&gt;
    Copy code to clipboard
  &lt;/button&gt;
&lt;/div&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt update
&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt upgrade
&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;make build-essential curl git tree &lt;span class=&quot;nt&quot;&gt;-y&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;3-install-ruby&quot;&gt;3. install ruby&lt;/h2&gt;

&lt;div class=&quot;code-header&quot;&gt;
  &lt;button class=&quot;copy-code-button&quot;&gt;
    Copy code to clipboard
  &lt;/button&gt;
&lt;/div&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;ruby ruby-dev &lt;span class=&quot;nt&quot;&gt;-y&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;4-need-to-tell-rubys-gem-package-manager-to-place-gems-in-our-users-home-folder&quot;&gt;4. need to tell Ruby’s gem package manager to place gems in our user’s home folder.&lt;/h2&gt;

&lt;div class=&quot;code-header&quot;&gt;
  &lt;button class=&quot;copy-code-button&quot;&gt;
    Copy code to clipboard
  &lt;/button&gt;
&lt;/div&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;nano ~/.bashrc
&lt;span class=&quot;nb&quot;&gt;export &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;GEM_HOME&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$HOME&lt;/span&gt;/gems
&lt;span class=&quot;nb&quot;&gt;export &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;PATH&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$HOME&lt;/span&gt;/gems/bin:&lt;span class=&quot;nv&quot;&gt;$PATH&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Save and close the file, then activate the environment variable with the following command:&lt;/p&gt;

&lt;div class=&quot;code-header&quot;&gt;
  &lt;button class=&quot;copy-code-button&quot;&gt;
    Copy code to clipboard
  &lt;/button&gt;
&lt;/div&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;source&lt;/span&gt; ~/.bashrc
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Install Jekyll&lt;/p&gt;

&lt;div class=&quot;code-header&quot;&gt;
  &lt;button class=&quot;copy-code-button&quot;&gt;
    Copy code to clipboard
  &lt;/button&gt;
&lt;/div&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;gem &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;jekyll bundler
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;5-try-it-out&quot;&gt;5. Try it out&lt;/h2&gt;

&lt;div class=&quot;code-header&quot;&gt;
  &lt;button class=&quot;copy-code-button&quot;&gt;
    Copy code to clipboard
  &lt;/button&gt;
&lt;/div&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;jekyll new jekyll.example.com
&lt;span class=&quot;nb&quot;&gt;cd &lt;/span&gt;jekyll.example.com
bundle add webrick
jekyll serve
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;6-references&quot;&gt;6. References:&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/windows/wsl/install&quot;&gt;https://learn.microsoft.com/en-us/windows/wsl/install&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.howtoforge.com/how-to-install-jekyll-on-ubuntu-22-04/&quot;&gt;https://www.howtoforge.com/how-to-install-jekyll-on-ubuntu-22-04/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jekyllrb.com/docs/installation/windows/&quot;&gt;https://jekyllrb.com/docs/installation/windows/&lt;/a&gt;&lt;/p&gt;

&lt;h1 id=&quot;additional-stuff&quot;&gt;additional stuff&lt;/h1&gt;

&lt;h2 id=&quot;1-pandoc-for-converting-between-document-file-types-especially-markdown-to-html&quot;&gt;1. Pandoc: for converting between document file types, especially markdown to html&lt;/h2&gt;

&lt;div class=&quot;code-header&quot;&gt;
  &lt;button class=&quot;copy-code-button&quot;&gt;
    Copy code to clipboard
  &lt;/button&gt;
&lt;/div&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;pandoc
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Some cool examples are here: &lt;a href=&quot;https://zatta.link/en/web/top3-tools-for-convert-markdown-to-html.html&quot;&gt;https://zatta.link/en/web/top3-tools-for-convert-markdown-to-html.html&lt;/a&gt;&lt;/p&gt;
</content>
 </entry>
 
 
</feed>
