125 lines
9.6 KiB
XML
125 lines
9.6 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.3.3">Jekyll</generator><link href="/feed.xml" rel="self" type="application/atom+xml" /><link href="/" rel="alternate" type="text/html" /><updated>2024-07-25T20:11:10+00:00</updated><id>/feed.xml</id><title type="html">Shaun’s blog</title><subtitle>My blog site on TTGit</subtitle><entry><title type="html">Code blocks</title><link href="/2024/06/12/code-blocks.html" rel="alternate" type="text/html" title="Code blocks" /><published>2024-06-12T01:42:00+00:00</published><updated>2024-06-12T01:42:00+00:00</updated><id>/2024/06/12/code-blocks</id><content type="html" xml:base="/2024/06/12/code-blocks.html"><![CDATA[<p>A few code blocks you might like</p>
|
|||
|
|
|||
|
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt"><p></span>Test only<span class="nt"></p></span>
|
|||
|
<span class="nt"><div</span> <span class="na">id=</span><span class="s">"hi"</span><span class="nt">><span></span></div></span>
|
|||
|
</code></pre></div></div>
|
|||
|
|
|||
|
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nb">echo</span> <span class="s2">"hello world"</span> <span class="o">></span> testfile.txt
|
|||
|
<span class="nb">cat </span>testfile.txt
|
|||
|
</code></pre></div></div>
|
|||
|
|
|||
|
<div class="language-javascript highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nx">console</span><span class="p">.</span><span class="nf">log</span><span class="p">(</span><span class="dl">"</span><span class="s2">Hello world</span><span class="dl">"</span><span class="p">);</span>
|
|||
|
<span class="nx">console</span><span class="p">.</span><span class="nf">error</span><span class="p">(</span><span class="dl">"</span><span class="s2">Something happened</span><span class="dl">"</span><span class="p">);</span>
|
|||
|
</code></pre></div></div>
|
|||
|
|
|||
|
<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="na">steps</span><span class="pi">:</span>
|
|||
|
<span class="na">testmessage</span><span class="pi">:</span>
|
|||
|
<span class="na">image</span><span class="pi">:</span> <span class="s">ubuntu</span>
|
|||
|
<span class="na">commands</span><span class="pi">:</span>
|
|||
|
<span class="pi">-</span> <span class="s">echo "Hello world"</span>
|
|||
|
<span class="pi">-</span> <span class="s">echo "I run on TTGit"</span>
|
|||
|
</code></pre></div></div>
|
|||
|
|
|||
|
<div class="language-json highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">[</span><span class="w">
|
|||
|
</span><span class="p">{</span><span class="w">
|
|||
|
</span><span class="nl">"id"</span><span class="p">:</span><span class="w"> </span><span class="s2">"0"</span><span class="p">,</span><span class="w">
|
|||
|
</span><span class="nl">"name"</span><span class="p">:</span><span class="w"> </span><span class="s2">"shaun"</span><span class="p">,</span><span class="w">
|
|||
|
</span><span class="nl">"website"</span><span class="p">:</span><span class="w"> </span><span class="s2">"https://www.ttnrtsite.me"</span><span class="w">
|
|||
|
</span><span class="p">}</span><span class="w">
|
|||
|
</span><span class="p">]</span><span class="w">
|
|||
|
</span></code></pre></div></div>
|
|||
|
|
|||
|
<div class="language-css highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">html</span> <span class="p">{</span>
|
|||
|
<span class="nl">background-color</span><span class="p">:</span> <span class="no">black</span><span class="p">;</span>
|
|||
|
<span class="nl">color</span><span class="p">:</span> <span class="no">white</span><span class="p">;</span>
|
|||
|
<span class="py">user-select</span><span class="p">:</span> <span class="nb">none</span><span class="p">;</span>
|
|||
|
<span class="p">}</span>
|
|||
|
|
|||
|
<span class="nt">body</span> <span class="p">{</span>
|
|||
|
<span class="nl">height</span><span class="p">:</span> <span class="m">100vh</span><span class="p">;</span>
|
|||
|
<span class="nl">margin</span><span class="p">:</span> <span class="m">0</span><span class="p">;</span>
|
|||
|
<span class="nl">padding</span><span class="p">:</span> <span class="m">0</span><span class="p">;</span>
|
|||
|
<span class="p">}</span>
|
|||
|
</code></pre></div></div>
|
|||
|
|
|||
|
<div class="language-markdown highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="gh"># Heading 1</span>
|
|||
|
Something <span class="gs">**NEW**</span>
|
|||
|
</code></pre></div></div>]]></content><author><name></name></author><summary type="html"><![CDATA[A few code blocks you might like]]></summary></entry><entry><title type="html">Test post</title><link href="/2024/06/02/test-post.html" rel="alternate" type="text/html" title="Test post" /><published>2024-06-02T00:41:37+00:00</published><updated>2024-06-02T00:41:37+00:00</updated><id>/2024/06/02/test-post</id><content type="html" xml:base="/2024/06/02/test-post.html"><![CDATA[<h2 id="header-1">Header 1</h2>
|
|||
|
<h3 id="header-2">Header 2</h3>
|
|||
|
<h4 id="header-3">Header 3</h4>
|
|||
|
<h5 id="header-4">Header 4</h5>
|
|||
|
<h6 id="header-5">Header 5</h6>
|
|||
|
|
|||
|
<p>Basic paragrpah! Nothing new..</p>
|
|||
|
|
|||
|
<p><em>Sidded text to the left or right</em></p>
|
|||
|
|
|||
|
<p><strong>Boldded text for importent information</strong></p>
|
|||
|
|
|||
|
<p><del>crossed out for no reason</del></p>
|
|||
|
|
|||
|
<ul class="task-list">
|
|||
|
<li class="task-list-item"><input type="checkbox" class="task-list-item-checkbox" disabled="disabled" checked="checked" />Checked</li>
|
|||
|
<li class="task-list-item"><input type="checkbox" class="task-list-item-checkbox" disabled="disabled" />Not checked</li>
|
|||
|
</ul>
|
|||
|
|
|||
|
<ol>
|
|||
|
<li>A computer</li>
|
|||
|
<li>A blog</li>
|
|||
|
<li>A server</li>
|
|||
|
</ol>
|
|||
|
|
|||
|
<ul>
|
|||
|
<li>First type out your post</li>
|
|||
|
<li>Then save your changes</li>
|
|||
|
<li>Add, commit and then push all of your changes</li>
|
|||
|
</ul>
|
|||
|
|
|||
|
<table>
|
|||
|
<thead>
|
|||
|
<tr>
|
|||
|
<th>Name</th>
|
|||
|
<th>Date</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody>
|
|||
|
<tr>
|
|||
|
<td>Me</td>
|
|||
|
<td>0/2/2/2</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>You</td>
|
|||
|
<td>1/2/3/4</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>This</td>
|
|||
|
<td>5/6/7/8</td>
|
|||
|
</tr>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
|
|||
|
<p><code class="language-plaintext highlighter-rouge">Simple code line block</code></p>
|
|||
|
|
|||
|
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nb">echo</span> <span class="s2">"hello world!"</span> <span class="o">></span> testfile.txt
|
|||
|
<span class="nb">cat </span>testfile.txt
|
|||
|
</code></pre></div></div>
|
|||
|
|
|||
|
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt"><p></span>Hello world<span class="nt"></p></span>
|
|||
|
<span class="nt"><div</span> <span class="na">id=</span><span class="s">"ide"</span><span class="nt">></div></span>
|
|||
|
</code></pre></div></div>]]></content><author><name></name></author><summary type="html"><![CDATA[Header 1 Header 2 Header 3 Header 4 Header 5]]></summary></entry><entry><title type="html">Welcome to Jekyll!</title><link href="/jekyll/update/2024/06/02/welcome-to-jekyll.html" rel="alternate" type="text/html" title="Welcome to Jekyll!" /><published>2024-06-02T00:41:37+00:00</published><updated>2024-06-02T00:41:37+00:00</updated><id>/jekyll/update/2024/06/02/welcome-to-jekyll</id><content type="html" xml:base="/jekyll/update/2024/06/02/welcome-to-jekyll.html"><![CDATA[<p>You’ll find this post in your <code class="language-plaintext highlighter-rouge">_posts</code> directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run <code class="language-plaintext highlighter-rouge">jekyll serve</code>, which launches a web server and auto-regenerates your site when a file is updated.</p>
|
|||
|
|
|||
|
<p>Jekyll requires blog post files to be named according to the following format:</p>
|
|||
|
|
|||
|
<p><code class="language-plaintext highlighter-rouge">YEAR-MONTH-DAY-title.MARKUP</code></p>
|
|||
|
|
|||
|
<p>Where <code class="language-plaintext highlighter-rouge">YEAR</code> is a four-digit number, <code class="language-plaintext highlighter-rouge">MONTH</code> and <code class="language-plaintext highlighter-rouge">DAY</code> are both two-digit numbers, and <code class="language-plaintext highlighter-rouge">MARKUP</code> is the file extension representing the format used in the file. After that, include the necessary front matter. Take a look at the source for this post to get an idea about how it works.</p>
|
|||
|
|
|||
|
<p>Jekyll also offers powerful support for code snippets:</p>
|
|||
|
|
|||
|
<figure class="highlight"><pre><code class="language-ruby" data-lang="ruby"><span class="k">def</span> <span class="nf">print_hi</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
|||
|
<span class="nb">puts</span> <span class="s2">"Hi, </span><span class="si">#{</span><span class="nb">name</span><span class="si">}</span><span class="s2">"</span>
|
|||
|
<span class="k">end</span>
|
|||
|
<span class="n">print_hi</span><span class="p">(</span><span class="s1">'Tom'</span><span class="p">)</span>
|
|||
|
<span class="c1">#=> prints 'Hi, Tom' to STDOUT.</span></code></pre></figure>
|
|||
|
|
|||
|
<p>Check out the <a href="https://jekyllrb.com/docs/home">Jekyll docs</a> for more info on how to get the most out of Jekyll. File all bugs/feature requests at <a href="https://github.com/jekyll/jekyll">Jekyll’s GitHub repo</a>. If you have questions, you can ask them on <a href="https://talk.jekyllrb.com/">Jekyll Talk</a>.</p>]]></content><author><name></name></author><category term="jekyll" /><category term="update" /><summary type="html"><![CDATA[You’ll find this post in your _posts directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run jekyll serve, which launches a web server and auto-regenerates your site when a file is updated.]]></summary></entry></feed>
|