<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://pdg137.github.io/simple-pages/feed.xml" rel="self" type="application/atom+xml" /><link href="https://pdg137.github.io/simple-pages/" rel="alternate" type="text/html" /><updated>2026-01-29T21:28:48+00:00</updated><id>https://pdg137.github.io/simple-pages/feed.xml</id><title type="html">Simple pages site template</title><subtitle>Simple pages site template description.</subtitle><entry><title type="html">(Technical) Updating ruby gems</title><link href="https://pdg137.github.io/simple-pages/2026/01/29/updating-ruby-gems.html" rel="alternate" type="text/html" title="(Technical) Updating ruby gems" /><published>2026-01-29T17:55:00+00:00</published><updated>2026-01-29T17:55:00+00:00</updated><id>https://pdg137.github.io/simple-pages/2026/01/29/updating-ruby-gems</id><content type="html" xml:base="https://pdg137.github.io/simple-pages/2026/01/29/updating-ruby-gems.html"><![CDATA[<p>This is a technical thing that you should not have to do during normal
use. It might be of interest if you want to update the GitHub pages /
Jekyll software to a later version or experiment with extensions.</p>

<p>Start by making modifications to <code class="language-plaintext highlighter-rouge">Gemfile</code> as desired.</p>

<p>Then enter a special environment designed just for running bundler:</p>

<div class="language-sh highlighter-rouge"><div class="highlight"><pre class="highlight"><code>nix-shell <span class="nt">-A</span> bundler
</code></pre></div></div>

<p>From here you can run various commands:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># rewrite Gemfile.lock, applying any changes to Gemfile
bundle lock

# update gems to latest versions
bundle update

# update just one gem
bundle update some-gem
</code></pre></div></div>

<p>Notes:</p>

<ul>
  <li>The only platform in Gemfile.lock should be “ruby”. Remove the
others if they show up.</li>
  <li>After any changes, make sure to remove the hash from <code class="language-plaintext highlighter-rouge">our_gemset.nix</code>
before running <code class="language-plaintext highlighter-rouge">nix-shell</code> again.</li>
</ul>]]></content><author><name></name></author><summary type="html"><![CDATA[This is a technical thing that you should not have to do during normal use. It might be of interest if you want to update the GitHub pages / Jekyll software to a later version or experiment with extensions.]]></summary></entry><entry><title type="html">Starting a new site</title><link href="https://pdg137.github.io/simple-pages/2019/10/06/starting-a-new-site.html" rel="alternate" type="text/html" title="Starting a new site" /><published>2019-10-06T20:06:00+00:00</published><updated>2019-10-06T20:06:00+00:00</updated><id>https://pdg137.github.io/simple-pages/2019/10/06/starting-a-new-site</id><content type="html" xml:base="https://pdg137.github.io/simple-pages/2019/10/06/starting-a-new-site.html"><![CDATA[<p><em><strong>2026-01-29:</strong> Updated for the new nix-based setup.</em></p>

<h2 id="setting-up-a-linux-system-with-nix">Setting up a Linux system with Nix</h2>

<ol>
  <li>You will need a functional Linux-like system. MacOS should work
fine, but I have not tried. If you are using Windows, I recommend <a href="https://learn.microsoft.com/en-us/windows/wsl/install">WSL</a>.</li>
  <li>Install nix:
    <ul>
      <li>On relatively recent Linux versions, run <code class="language-plaintext highlighter-rouge">sudo apt install nix-bin</code> to get a recent enough version of nix.</li>
      <li>Otherwise, follow the <a href="https://nixos.org/download/">official installation instructions</a>.</li>
    </ul>
  </li>
  <li>Verify that <code class="language-plaintext highlighter-rouge">nix --version</code> gives at least version 2.18.</li>
</ol>

<h2 id="cloning-the-repository">Cloning the repository</h2>

<ol>
  <li>Follow instructions on GitHub to create a new repository. Do not initialize
it with any files such as a README.</li>
  <li>Clone the repository.</li>
  <li>From your repository, pull in this template:
    <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code> git remote add simple-pages git@github.com:pdg137/simple-pages.git
 git pull simple-pages master
</code></pre></div>    </div>
  </li>
</ol>

<h2 id="running-the-server">Running the server</h2>

<ol>
  <li>Run <code class="language-plaintext highlighter-rouge">nix-shell</code>.  It should download a bunch of stuff and then give
you a prompt after a few minutes.</li>
  <li>Run <code class="language-plaintext highlighter-rouge">./server</code>.  The server will be available at http://localhost:4000/</li>
  <li>WSL users: you will need to run a browser in WSL (e.g.
<code class="language-plaintext highlighter-rouge">chromium http://localhost:4000/</code>) or else <a href="https://jwstanly.com/blog/article/Port+Forwarding+WSL+2+to+Your+LAN/">forward port
4000</a>
to the Windows system.</li>
</ol>

<h2 id="publishing-your-pages">Publishing your pages</h2>

<ol>
  <li>Run <code class="language-plaintext highlighter-rouge">git push</code> to update your pages on GitHub.</li>
  <li>In your project settings on GitHub, find the section for Pages, and set
it to “master branch”.</li>
  <li>Find that section again and follow the link to your new site.</li>
</ol>

<h2 id="making-changes">Making changes</h2>

<ol>
  <li>Edit files as desired.</li>
  <li>Run the server to preview them. (Note that it auto-updates as you edit.)</li>
  <li>Run <code class="language-plaintext highlighter-rouge">git commit -a</code>, check what appears, write a commit message, save, and exit.</li>
  <li>Run <code class="language-plaintext highlighter-rouge">git push</code>.</li>
  <li>After a minute, GitHub pages should be showing the updated pages.</li>
</ol>]]></content><author><name></name></author><summary type="html"><![CDATA[2026-01-29: Updated for the new nix-based setup.]]></summary></entry><entry><title type="html">(Outdated) Windows installation</title><link href="https://pdg137.github.io/simple-pages/windows/2019/10/06/windows-installation.html" rel="alternate" type="text/html" title="(Outdated) Windows installation" /><published>2019-10-06T17:52:04+00:00</published><updated>2019-10-06T17:52:04+00:00</updated><id>https://pdg137.github.io/simple-pages/windows/2019/10/06/windows-installation</id><content type="html" xml:base="https://pdg137.github.io/simple-pages/windows/2019/10/06/windows-installation.html"><![CDATA[<p><em><strong>2026-01-29 note:</strong> I no longer recommend running simple-pages from
Windows directly. It’s much easier to run in WSL.</em></p>

<p>Basic instructions for GitHub pages are <a href="https://help.github.com/en/articles/testing-your-github-pages-site-locally-with-jekyll">here</a>.</p>

<ol>
  <li>Learn how to use a good text editor. Good choices:
    <ul>
      <li><a href="https://atom.io">Atom</a></li>
      <li><a href="https://notepad-plus-plus.org">Notepad++</a></li>
      <li><a href="https://www.gnu.org/software/emacs/">Emacs</a> (advanced)</li>
    </ul>
  </li>
  <li>Download and install <a href="https://git-scm.com/download/win">Git for Windows</a>.</li>
  <li>Download and run the latest Ruby+Devkit from <a href="https://rubyinstaller.org/">Ruby Installer</a>.</li>
  <li>Download a copy of the <a href="https://github.com/pdg137/simple-pages/">simple-pages</a> repository and rename it to your own project’s name.</li>
  <li>In the project folder, run <code class="language-plaintext highlighter-rouge">update.bat</code>.  This will take a few minutes to download and build various Ruby packages from the Internet.</li>
  <li>Run <code class="language-plaintext highlighter-rouge">server.bat</code>.</li>
</ol>

<p>A browser tab should open with a preview of your new site! Next you can
customize your site with <code class="language-plaintext highlighter-rouge">_config.yml</code> and <code class="language-plaintext highlighter-rouge">index.md</code> and start writing posts.</p>]]></content><author><name></name></author><category term="windows" /><summary type="html"><![CDATA[2026-01-29 note: I no longer recommend running simple-pages from Windows directly. It’s much easier to run in WSL.]]></summary></entry></feed>