<?xml version="1.0" encoding="utf-8"?>



<feed xmlns="http://www.w3.org/2005/Atom"
    xmlns:fh="http://purl.org/syndication/history/1.0"
    xmlns:at="http://purl.org/atompub/tombstones/1.0">

    <title>Publ: Development Blog</title>
    <subtitle>A personal publishing system for the modern web</subtitle>
    <link href="https://publ.beesbuzz.biz/blog/feed?tag=cats" rel="self" />
    <link href="https://publ.beesbuzz.biz/blog/feed" rel="current" />
    <link href="https://busybee.superfeedr.com" rel="hub" />
    
    
    <link href="https://publ.beesbuzz.biz/blog/" />
    <fh:archive />
    <id>tag:publ.beesbuzz.biz,2020-01-07:blog</id>
    <updated>2018-04-18T16:00:00-07:00</updated>

    
    <entry>
        <title>Here&#39;s some cat pictures for you</title>
        <link href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you" rel="alternate" type="text/html" />
        <published>2018-04-18T16:00:00-07:00</published>
        <updated>2018-04-18T16:00:00-07:00</updated>
        <id>urn:uuid:dcb8ca7a-2091-4d1d-aed2-6a1061064ff3</id>
        <author><name>fluffy</name></author>
        <content type="html">
<![CDATA[

<div class="gallery"><a href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you"></a><a href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you"></a><a href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you"></a><a href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you"></a><a href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you"></a><a href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you"></a><a href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you"></a><a href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you"><img src="https://publ.beesbuzz.biz/static/_img/16/15d7/DSC01272-Version-2_dd761f516d_240x240_255-0-1790-1535.jpg" width="240" height="240" srcset="https://publ.beesbuzz.biz/static/_img/16/15d7/DSC01272-Version-2_dd761f516d_240x240_255-0-1790-1535.jpg 1x, https://publ.beesbuzz.biz/static/_img/16/15d7/DSC01272-Version-2_dd761f516d_480x480_255-0-1790-1535.jpg 2x" loading="lazy" alt="DSC01272 - Version 2.jpg"></a><a href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you"><img src="https://publ.beesbuzz.biz/static/_img/6b/3e9e/DSC07661_b79cc58592_240x240_386-0-1921-1535.jpg" width="240" height="240" srcset="https://publ.beesbuzz.biz/static/_img/6b/3e9e/DSC07661_b79cc58592_240x240_386-0-1921-1535.jpg 1x, https://publ.beesbuzz.biz/static/_img/6b/3e9e/DSC07661_b79cc58592_480x480_386-0-1921-1535.jpg 2x" loading="lazy" alt="DSC07661.jpg" title="In particular, image galleries support a few neat things."></a><a href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you"><img src="https://publ.beesbuzz.biz/static/_img/40/e4a5/DSC07672_3ba5b6d9a0_240x240_386-0-1921-1535.jpg" width="240" height="240" srcset="https://publ.beesbuzz.biz/static/_img/40/e4a5/DSC07672_3ba5b6d9a0_240x240_386-0-1921-1535.jpg 1x, https://publ.beesbuzz.biz/static/_img/40/e4a5/DSC07672_3ba5b6d9a0_480x480_386-0-1921-1535.jpg 2x" loading="lazy" alt="DSC07672.jpg" title="For example, the blog and feed templates will only show a few images."></a><a href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you"></a><a href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you"></a><a href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you"></a><a href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you"></a><a href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you"></a><a href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you"></a><a href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you"></a><a href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you"></a><a href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you"></a><a href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you"></a><a href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you"></a><a href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you"></a>There are 19 more cat pictures!</div>


<p>(If it isn&rsquo;t obvious, many of the images have captions. Try clicking on one!)</p><p>Anyway, this means Publ is now ready for me to start migrating my site over to
it. Eep/yay!</p><p>Oh, and if you want to see what the Markdown for the gallery looks like, here you go:</p><figure class="blockcode"><figcaption>[{240,240,resize=&ldquo;fill&rdquo;,count<em>offset=7,div</em>class=&ldquo;gallery&rdquo;,more<em>text=&ldquo;There are {remain} more cat pictures!&rdquo;,more</em>class=&ldquo;caption&rdquo;}](</figcaption><pre class="highlight" data-language="markdown" data-line-numbers><span class="line" id="e249cb1L1"><a class="line-number" href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you#e249cb1L1"></a><span class="line-content">IMG_20130701_223914.jpg &quot;Why are there cat photos here?&quot;</span></span>
<span class="line" id="e249cb1L2"><a class="line-number" href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you#e249cb1L2"></a><span class="line-content">|1373225533243.jpg</span></span>
<span class="line" id="e249cb1L3"><a class="line-number" href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you#e249cb1L3"></a><span class="line-content">|1377619425569.jpg</span></span>
<span class="line" id="e249cb1L4"><a class="line-number" href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you#e249cb1L4"></a><span class="line-content">|1383506651641.jpg</span></span>
<span class="line" id="e249cb1L5"><a class="line-number" href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you#e249cb1L5"></a><span class="line-content">|DSC00124.jpg &quot;Well, I thought this would be a cute way to demonstrate...&quot;</span></span>
<span class="line" id="e249cb1L6"><a class="line-number" href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you#e249cb1L6"></a><span class="line-content">|DSC00125.jpg &quot;Image galleries!&quot;</span></span>
<span class="line" id="e249cb1L7"><a class="line-number" href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you#e249cb1L7"></a><span class="line-content">|DSC00605.jpg</span></span>
<span class="line" id="e249cb1L8"><a class="line-number" href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you#e249cb1L8"></a><span class="line-content">|DSC01272 - Version 2.jpg{fill_crop_x=.33}</span></span>
<span class="line" id="e249cb1L9"><a class="line-number" href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you#e249cb1L9"></a><span class="line-content">|DSC07661.jpg &quot;In particular, image galleries support a few neat things.&quot;</span></span>
<span class="line" id="e249cb1L10"><a class="line-number" href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you#e249cb1L10"></a><span class="line-content">|DSC07672.jpg &quot;For example, the blog and feed templates will only show a few images.&quot;</span></span>
<span class="line" id="e249cb1L11"><a class="line-number" href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you#e249cb1L11"></a><span class="line-content">|DSC07926.jpg</span></span>
<span class="line" id="e249cb1L12"><a class="line-number" href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you#e249cb1L12"></a><span class="line-content">|DSC07929.jpg</span></span>
<span class="line" id="e249cb1L13"><a class="line-number" href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you#e249cb1L13"></a><span class="line-content">|DSC07935.jpg &quot;And those images will link to the entry itself.&quot;</span></span>
<span class="line" id="e249cb1L14"><a class="line-number" href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you#e249cb1L14"></a><span class="line-content">|DSC08896.jpg &quot;But then when you click through, the whole gallery appears!&quot;</span></span>
<span class="line" id="e249cb1L15"><a class="line-number" href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you#e249cb1L15"></a><span class="line-content">|DSC09705.jpg &quot;And we use Lightbox.js to present them nicely.&quot;</span></span>
<span class="line" id="e249cb1L16"><a class="line-number" href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you#e249cb1L16"></a><span class="line-content">|IMG_0072.jpg &quot;This is how I feel too.&quot;</span></span>
<span class="line" id="e249cb1L17"><a class="line-number" href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you#e249cb1L17"></a><span class="line-content">|IMG_0074.jpg</span></span>
<span class="line" id="e249cb1L18"><a class="line-number" href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you#e249cb1L18"></a><span class="line-content">|IMG_0086.jpg</span></span>
<span class="line" id="e249cb1L19"><a class="line-number" href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you#e249cb1L19"></a><span class="line-content">|IMG_0118.jpg</span></span>
<span class="line" id="e249cb1L20"><a class="line-number" href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you#e249cb1L20"></a><span class="line-content">|IMG_0122.jpg</span></span>
<span class="line" id="e249cb1L21"><a class="line-number" href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you#e249cb1L21"></a><span class="line-content">|IMG_0131.jpg</span></span>
<span class="line" id="e249cb1L22"><a class="line-number" href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you#e249cb1L22"></a><span class="line-content">|IMG_0133.jpg</span></span>
<span class="line" id="e249cb1L23"><a class="line-number" href="https://publ.beesbuzz.biz/blog/249-Here-s-some-cat-pictures-for-you#e249cb1L23"></a><span class="line-content">)</span></span>
</pre></figure><p>The <code>{240,240,resize=&quot;fill&quot;,count_offset=7}</code> in the alt text means &ldquo;make thumbnails 240x240, and in a view with
a limit, skip the first 7 entries&rdquo; (this is how <code>DSC01272 - Version 2.jpg</code> is used as the poster frame
on the index and feed), and each image is separated by a <code>|</code>. Oh, and spaces are allowed in filenames, and
newlines are allowed in the image specification.</p><p>Also, the <code>{fill_crop_x=.33}</code> parameter on <code>DSC01272 - Version 2.jpg</code> shifts the crop rectangle a little bit so
that Fiona is nicely centered in the thumbnail square. :)</p><p>Another thing to note: these files (including the .md file) are all stored in a directory called <code>/blog/catpics</code>,
but the entry has a <code>Category: blog</code> on it to make it appear as if it&rsquo;s in the <code>blog</code> category. Image file lookups
are relative to the markdown file, not to the URL, so I can move this directory anywhere on the site and it will
continue to work.</p>

]]>
        </content>
    </entry>
    

    
</feed>