<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Home on Darkatse</title><link>https://darkatse.com/</link><description>Recent content in Home on Darkatse</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sun, 14 Feb 2016 00:00:00 +0000</lastBuildDate><atom:link href="https://darkatse.com/index.xml" rel="self" type="application/rss+xml"/><item><title>Introduction</title><link>https://darkatse.com/docs/01-intro/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://darkatse.com/docs/01-intro/</guid><description>&lt;p&gt;The Hugo Paged theme was inspired by &lt;a href="https://pagedjs.org"&gt;the paged.js website&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h2 id="the-pagedjs-website"&gt;The paged.js website&lt;/h2&gt;&#10;&lt;p&gt;The paged.js library is awesome. Its website is also beautiful.&lt;/p&gt;&#10;&lt;h3 id="the-crop-marks"&gt;The crop marks&lt;/h3&gt;&#10;&lt;p&gt;I love the crop marks. I couldn&amp;rsquo;t imagine that they were made from three rectangles:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code class="language-html"&gt;&amp;lt;div class=&amp;quot;crop-h&amp;quot;&amp;gt;&amp;lt;/div&amp;gt; &amp;lt;!-- horizontal lines --&amp;gt;&#10;&amp;lt;div class=&amp;quot;crop-v&amp;quot;&amp;gt;&amp;lt;/div&amp;gt; &amp;lt;!-- vertical lines --&amp;gt;&#10;&amp;lt;div class=&amp;quot;crop-c&amp;quot;&amp;gt;&amp;lt;/div&amp;gt; &amp;lt;!-- cover some segments --&amp;gt;&#10;&lt;/code&gt;&lt;/pre&gt;&#10;&lt;p&gt;Make their position absolute, and shrink them a little bit:&lt;/p&gt;</description></item><item><title>Getting started</title><link>https://darkatse.com/docs/02-get-started/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://darkatse.com/docs/02-get-started/</guid><description>&lt;p&gt;There are two ways to get started with this theme, depending on whether you use R or Hugo.&lt;/p&gt;&#10;&lt;h2 id="r-users"&gt;R users&lt;/h2&gt;&#10;&lt;p&gt;If you use R, the easiest way to get started is to install &lt;a href="https://github.com/rstudio/blogdown"&gt;the &lt;strong&gt;blogdown&lt;/strong&gt; package&lt;/a&gt;, and create a new site with this theme:&lt;/p&gt;&#10;&lt;pre&gt;&lt;code class="language-r"&gt;install.packages('blogdown')&#10;blogdown::new_site(theme = 'yihui/hugo-paged')&#10;&lt;/code&gt;&lt;/pre&gt;&#10;&lt;p&gt;Or you can &lt;a href="https://bookdown.org/yihui/blogdown/a-quick-example.html"&gt;create a new RStudio &lt;strong&gt;blogdown&lt;/strong&gt; project&lt;/a&gt; (if you use RStudio) with the &lt;code&gt;yihui/hugo-paged&lt;/code&gt; theme.&lt;/p&gt;&#10;&lt;h2 id="hugo-users"&gt;Hugo users&lt;/h2&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Create a new Hugo site with &lt;code&gt;hugo new&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://github.com/yihui/hugo-paged/archive/refs/heads/main.zip"&gt;Download this theme from Github&lt;/a&gt; and unzip it to the &lt;code&gt;themes/hugo-paged&lt;/code&gt; directory.&lt;/li&gt;&#10;&lt;li&gt;Move all content of the &lt;code&gt;exampleSite&lt;/code&gt; directory in this theme to the root directory of the new site.&lt;/li&gt;&#10;&lt;li&gt;Run &lt;code&gt;hugo server&lt;/code&gt; and start playing with the new site.&lt;/li&gt;&#10;&lt;/ol&gt;</description></item><item><title>Customization</title><link>https://darkatse.com/docs/03-customization/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://darkatse.com/docs/03-customization/</guid><description>&lt;p&gt;The more you know, the less real work you will get done. You have been warned.&lt;/p&gt;&#10;&lt;h2 id="site-config"&gt;Site config&lt;/h2&gt;&#10;&lt;p&gt;In your site config file (&lt;code&gt;hugo.yaml&lt;/code&gt; or &lt;code&gt;config.yaml&lt;/code&gt;), you can customize some options such as the top menu or footer, which should be straightforward to understand if you take a look at the &lt;code&gt;exampleSite&lt;/code&gt;&amp;rsquo;s config file.&lt;/p&gt;&#10;&lt;p&gt;If you want to add a logo to the left of the top navigation bar, you can use the &lt;code&gt;logo&lt;/code&gt; parameter, e.g.,&lt;/p&gt;</description></item><item><title>A Plain Markdown Post</title><link>https://darkatse.com/blog/2016-02-14-hello-markdown/</link><pubDate>Sun, 14 Feb 2016 00:00:00 +0000</pubDate><guid>https://darkatse.com/blog/2016-02-14-hello-markdown/</guid><description>&lt;h2 id="sample-text"&gt;Sample Text&lt;/h2&gt;&#10;&lt;h3 id="third-level-header"&gt;Third-level header&lt;/h3&gt;&#10;&lt;h4 id="fourth-level-header"&gt;Fourth-level header&lt;/h4&gt;&#10;&lt;p&gt;A paragraph (with a footnote):&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Lorem ipsum&lt;/strong&gt; dolor sit amet, consectetur adipiscing elit, sed do eiusmod&#10;tempor incididunt ut labore et dolore &lt;em&gt;magna aliqua&lt;/em&gt;. Ut enim ad minim veniam,&#10;quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo&#10;consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum&#10;dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident,&#10;sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;sup id="fnref:1"&gt;&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref"&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;</description></item><item><title>Lorem Ipsum</title><link>https://darkatse.com/blog/2015-07-23-lorem-ipsum/</link><pubDate>Thu, 23 Jul 2015 00:00:00 +0000</pubDate><guid>https://darkatse.com/blog/2015-07-23-lorem-ipsum/</guid><description>&lt;p&gt;&lt;strong&gt;Lorem ipsum&lt;/strong&gt; dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore &lt;em&gt;magna aliqua&lt;/em&gt;. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;&#10;&lt;p&gt;Quisque mattis volutpat lorem vitae feugiat. Praesent porta est quis porta imperdiet. Aenean porta, mi non cursus volutpat, mi est mollis libero, id suscipit orci urna a augue. In fringilla euismod lacus, vitae tristique massa ultricies vitae. Mauris accumsan ligula tristique, viverra nulla sed, porta sapien. Vestibulum facilisis nec nisl blandit convallis. Maecenas venenatis porta malesuada. Ut ac erat tortor. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla sodales quam sit amet tincidunt egestas. In et turpis at orci vestibulum ullamcorper. Aliquam sed ante libero. Sed hendrerit arcu lacus.&lt;/p&gt;</description></item><item><title>About Hugo Paged</title><link>https://darkatse.com/about/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://darkatse.com/about/</guid><description>&lt;p&gt;I immediately loved the design of &lt;a href="https://pagedjs.org"&gt;the paged.js website&lt;/a&gt; when I first saw it a couple of years ago.&lt;sup id="fnref:1"&gt;&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref"&gt;1&lt;/a&gt;&lt;/sup&gt; I have published a few books before, so the crop marks on the website caught my attention first, which gave me a familiar feel of printed books. The second thing that I appreciated was the rotated floral heart bullet behind the title of each page, i.e.,&lt;/p&gt;&#10;&lt;div style="font-size:9em;text-align:center;color:#ccc;"&gt;❧&lt;/div&gt;&#10;&lt;p&gt;So I wrote a Hugo theme that mimics the style of the paged.js website. I tried not to look at its HTML/CSS source code, but I had to read the source to figure out:&lt;/p&gt;</description></item><item><title>Search</title><link>https://darkatse.com/search/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://darkatse.com/search/</guid><description>&lt;p&gt;The searching is performed via fuse.js. For the search keywords, white spaces act as the &lt;code&gt;AND&lt;/code&gt; operator, and &lt;code&gt;|&lt;/code&gt; acts as the &lt;code&gt;OR&lt;/code&gt; operator. To match an exact phrase, double quote it. For example, &lt;code&gt;R Markdown&lt;/code&gt; matches articles that contain both &lt;code&gt;R&lt;/code&gt; and &lt;code&gt;Markdown&lt;/code&gt;, &lt;code&gt;R | Markdown&lt;/code&gt; matches articles that contain &lt;code&gt;R&lt;/code&gt; or &lt;code&gt;Markdown&lt;/code&gt;, and &lt;code&gt;&amp;quot;R Markdown&amp;quot;&lt;/code&gt; matches articles that contain the whole phrase &lt;code&gt;R Markdown&lt;/code&gt;.&lt;/p&gt;&#10;&lt;style type="text/css"&gt;&#10;.main {&#10; width: 100%;&#10;}&#10;#search-input {&#10; width: 100%;&#10; font-size: 1.2em;&#10; padding: .5em;&#10;}&#10;.search-results b {&#10; background-color: yellow;&#10;}&#10;.search-preview {&#10; margin-left: 2em;&#10;}&#10;.single .main a, .single .main h2 {&#10; border-bottom: none;&#10;}&#10;&lt;/style&gt;&#10;&lt;input type="search" id="search-input"&gt;&#10;&lt;div class="search-results"&gt;&#10;&lt;section&gt;&#10;&lt;h2 class="toc-line"&gt;&lt;a target="_blank"&gt;&lt;/a&gt;&lt;span class="dots"&gt;&lt;/span&gt;&lt;span class="page-num small"&gt;&lt;/span&gt;&lt;/h2&gt;&#10;&lt;div class="search-preview"&gt;&lt;/div&gt;&#10;&lt;/section&gt;&#10;&lt;/div&gt;&#10;&lt;script src="https://cdn.jsdelivr.net/npm/fuse.js@6.6.2" defer&gt;&lt;/script&gt;&#10;&lt;script src="https://cdn.jsdelivr.net/npm/@xiee/utils/js/fuse-search.min.js" defer&gt;&lt;/script&gt;</description></item></channel></rss>