<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Themes &amp;mdash; Attach to Process</title>
    <link>https://devblog.dinobansigan.com/tag:Themes</link>
    <description>Thoughts and Notes on Software Development</description>
    <pubDate>Mon, 27 Apr 2026 20:17:17 +0000</pubDate>
    <image>
      <url>https://i.snap.as/4wmUdb6N.png</url>
      <title>Themes &amp;mdash; Attach to Process</title>
      <link>https://devblog.dinobansigan.com/tag:Themes</link>
    </image>
    <item>
      <title>Attach to Process Write.as Theme</title>
      <link>https://devblog.dinobansigan.com/attach-to-process-write-as-theme?pk_campaign=rss-feed</link>
      <description>&lt;![CDATA[I thought I&#39;d share the Custom CSS and JavaScript I use on this Write.as blog. The design is inspired by this Hugo Hello Friend theme I saw on micro.blog.!--more--&#xA;&#xA;Here is the Custom CSS I use on this blog:&#xA;/ Written in 2020 by Riley Walz&#xA;&#xA; This theme is licensed under a Creative Commons Attribution 4.0 &#xA; International License.&#xA;&#xA; You should have received a copy of the license along with this&#xA; work. If not, see http://creativecommons.org/licenses/by/4.0/&#xA;/&#xA;&#xA;.post-title {&#xA;    padding-right: 1em;&#xA;}&#xA;&#xA;.book {&#xA;&#x9;display: none;&#xA;}&#xA;&#xA;.read-more {&#xA;&#x9;display: none;&#xA;}&#xA;&#xA;.h-entry {&#xA;&#x9;justify-content: space-between;&#xA;&#x9;display: flex;&#xA;}&#xA;&#xA;body#collection #wrapper article,&#xA;body#subpage #wrapper article {&#xA;&#x9;margin-bottom: 1em;&#xA;}&#xA;&#xA;.dt-published {&#xA;&#x9;flex-shrink: 0;&#xA;}&#xA;&#xA;@media screen and (max-width: 700px) {&#xA;&#x9;.h-entry {&#xA;&#x9;&#x9;display: block&#xA;&#x9;}&#xA;&#x9;body#collection #wrapper time,&#xA;&#x9;body#subpage #wrapper time {&#xA;&#x9;&#x9;font-size: 0.9em;&#xA;&#x9;}&#xA;&#x9;.post-title {&#xA;&#x9;&#x9;font-size: 1.2rem;&#xA;&#x9;}&#xA;&#x9;body#collection #wrapper article,&#xA;&#x9;body#subpage #wrapper article {&#xA;&#x9;&#x9;margin-bottom: 1.5em;&#xA;&#x9;}&#xA;}&#xA;&#xA;emailsub {&#xA;&#x9;text-align: center;&#xA;&#x9;margin-top: 50px;&#xA;}&#xA;&#xA;/ My own theme changes /&#xA;post article {&#xA;    max-width: 60rem;&#xA;}&#xA;&#xA;body#post header, body#subpage header {&#xA;&#x9;margin-bottom: 1em;&#xA;}&#xA;&#xA;body#post header h1 {&#xA;    font-size: 2em;&#xA;}&#xA;&#xA;body#post pre {&#xA;    margin-bottom: -2.5em;&#xA;}&#xA;&#xA;post-body div.e-content div.contact-form {&#xA;    display: contents;&#xA;    margin-top: -3em;&#xA;}&#xA;&#xA;fnContactEmbed {&#xA;    display: none;&#xA;}&#xA;&#xA;fnContactEmbedIframe {&#xA;&#x9;background: #FAFAD2;&#xA;&#x9;border-radius: 6px;&#xA;}&#xA;&#xA;/ Dark Theme attempt /&#xA;body {&#xA;    font-family: Inter,-apple-system,BlinkMacSystemFont,Roboto,Segoe UI,Helvetica,Arial,sans-serif!important;&#xA;    text-rendering: optimizeLegibility;&#xA;    -webkit-text-size-adjust: 100%;&#xA;    &#xA;    background: #292a2d;&#xA;    /background-secondary: #3b3d42;&#xA;    header: #252627;/&#xA;    color: #a9a9b3;&#xA;    /color-secondary: #73747b;/&#xA;    border-color: #4a4b50;&#xA;}&#xA;#post article.norm, .font.norm, body#collection article.norm, body#subpage article.norm, input#title.norm, pre.norm, span.norm, textarea.norm {&#xA;    font-family: Inter,-apple-system,BlinkMacSystemFont,Roboto,Segoe UI,Helvetica,Arial,sans-serif!important;&#xA;}&#xA;post nav a:not(.home), header nav a {&#xA;    color: #a9a9b3;&#xA;}&#xA;&#xA;body h1 a, body header h2 a, header p.description, .post-title a:link, .post-title a:visited, a, a:visited {&#xA;    color: #a9a9b3;&#xA;}&#xA;body h1 a:hover, body header h2 a:hover, div.e-content p a, div.e-content ul li a {&#xA;    color: #a9a9b3;&#xA;    text-decoration: underline;&#xA;}&#xA;body#post article time.dt-published, body#subpage article time.dt-published {&#xA;    color: #73747b;&#xA;}&#xA;&#xA;subscribe-btn {&#xA;    border: 1px #045FB4;&#xA;    background: #045FB4;&#xA;}&#xA;subscribe-btn:hover {&#xA;    text-shadow: 0px 0px 6px white;&#xA;}&#xA;&#xA;.e-content a.hashtag:link {&#xA;    background-color: #292a2d;&#xA;    border-radius: 7px;&#xA;    border-style: solid;&#xA;    border-color: #a9a9b3;&#xA;    border-width: 1px;&#xA;    padding-left: 10px;&#xA;    padding-right: 10px;&#xA;    padding-top: 2px;&#xA;    padding-bottom: 2px;&#xA;    text-decoration: none;&#xA;&#x9;font-style: normal;&#xA;    line-height: 2em;&#xA;    color: #a9a9b3;&#xA;}&#xA;.e-content a.hashtag:visited {&#xA;    color: #a9a9b3;&#xA;&#x9;text-decoration: none;&#xA;}&#xA;.e-content a.hashtag:hover span + span {&#xA;    text-decoration: none;&#xA;}&#xA;.e-content a.hashtag:hover {&#xA;    background-color: #a9a9b3;&#xA;    border-color: #a9a9b3;&#xA;    color: #292a2d;&#xA;    text-decoration: none;&#xA;}&#xA;&#xA;body footer {&#xA;    text-align: center;&#xA;    padding: 0 2em;&#xA;}&#xA;&#xA;body footer nav {&#xA;    color: #73747b;&#xA;    padding-bottom: 48px;&#xA;    margin-bottom: 0px;&#xA;}&#xA;&#xA;body footer nav a {&#xA;    font-weight: bold;&#xA;    color: #73747b!important;&#xA;    text-decoration: none!important;&#xA;    margin: 0!important;&#xA;}&#xA;body footer nav a:hover {&#xA;    color: #a9a9b3!important;&#xA;    text-decoration: underline!important;&#xA;    margin: 0!important;&#xA;}&#xA;&#xA;body #post code, body#collection code, body#post code, body#subpage code {&#xA;&#x9;font-family: Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;&#xA;&#x9;background: #282c34;&#xA;&#x9;border-color: #3b3d42;&#xA;&#x9;padding: 3px 6px 3px 6px;&#xA;&#x9;margin: 0 2px;&#xA;&#x9;border-radius: 5px;&#xA;&#x9;font-size: .9rem;&#xA;&#x9;font-weight: 400;&#xA;}&#xA;body #post pre, body#collection pre, body#post pre, body#subpage pre {&#xA;    background: #282c34;&#xA;    border: 1px solid #3b3d42;&#xA;}&#xA;&#xA;hyvor-talk-view {&#xA;    margin-top: 1em;&#xA;    margin-bottom: -4em;&#xA;}&#xA;&#xA;/ Hide post views /&#xA;header nav .views {&#xA;    display: none;&#xA;}&#xA;&#xA;/ Hide Stats link /&#xA;nav#manage ul a[href=&#34;/me/c/attach-to-process/stats&#34;],&#xA;nav#manage ul a[href=&#34;/me/c/attach-to-process/subscribers&#34;]{&#xA;  display: none;&#xA;}&#xA;&#xA;/ Highlight.js Atom One Dark Reasonable Theme /&#xA;.hljs {&#xA;&#x9;display: block!important;&#xA;&#x9;overflow-x: auto!important;&#xA;&#x9;padding: .5em!important;&#xA;&#x9;color: #abb2bf!important;&#xA;&#x9;background: #282c34!important;&#xA;}&#xA;&#xA;.hljs-keyword,&#xA;.hljs-operator {&#xA;&#x9;color: #f92672!important;&#xA;}&#xA;&#xA;.hljs-pattern-match {&#xA;&#x9;color: #f92672!important;&#xA;}&#xA;&#xA;.hljs-pattern-match .hljs-constructor {&#xA;&#x9;color: #61aeee!important;&#xA;}&#xA;&#xA;.hljs-function {&#xA;&#x9;color: #61aeee!important;&#xA;}&#xA;&#xA;.hljs-function .hljs-params {&#xA;&#x9;color: #a6e22e!important;&#xA;}&#xA;&#xA;.hljs-function .hljs-params .hljs-typing {&#xA;&#x9;color: #fd971f!important;&#xA;}&#xA;&#xA;.hljs-module-access .hljs-module {&#xA;&#x9;color: #7e57c2!important;&#xA;}&#xA;&#xA;.hljs-constructor {&#xA;&#x9;color: #e2b93d!important;&#xA;}&#xA;&#xA;.hljs-constructor .hljs-string {&#xA;&#x9;color: #9ccc65!important;&#xA;}&#xA;&#xA;.hljs-comment,&#xA;.hljs-quote {&#xA;&#x9;color: #b18eb1!important;&#xA;&#x9;font-style: italic!important;&#xA;}&#xA;&#xA;.hljs-doctag,&#xA;.hljs-formula {&#xA;&#x9;color: #c678dd!important;&#xA;}&#xA;&#xA;.hljs-deletion,&#xA;.hljs-name,&#xA;.hljs-section,&#xA;.hljs-selector-tag,&#xA;.hljs-subst {&#xA;&#x9;color: #e06c75!important;&#xA;}&#xA;&#xA;.hljs-literal {&#xA;&#x9;color: #56b6c2!important;&#xA;}&#xA;&#xA;.hljs-addition,&#xA;.hljs-attribute,&#xA;.hljs-meta-string,&#xA;.hljs-regexp,&#xA;.hljs-string {&#xA;&#x9;color: #98c379!important;&#xA;}&#xA;&#xA;.hljs-builtin,&#xA;.hljs-class .hljs-title {&#xA;&#x9;color: #e6c07b!important;&#xA;}&#xA;&#xA;.hljs-attr,&#xA;.hljs-number,&#xA;.hljs-selector-attr,&#xA;.hljs-selector-class,&#xA;.hljs-selector-pseudo,&#xA;.hljs-template-variable,&#xA;.hljs-type,&#xA;.hljs-variable {&#xA;&#x9;color: #d19a66!important;&#xA;}&#xA;&#xA;.hljs-bullet,&#xA;.hljs-link,&#xA;.hljs-meta,&#xA;.hljs-selector-id,&#xA;.hljs-symbol,&#xA;.hljs-title {&#xA;&#x9;color: #61aeee!important;&#xA;}&#xA;&#xA;.hljs-emphasis {&#xA;&#x9;font-style: italic!important;&#xA;}&#xA;&#xA;.hljs-strong {&#xA;&#x9;font-weight: 700!important;&#xA;}&#xA;&#xA;.hljs-link {&#xA;&#x9;text-decoration: underline!important;&#xA;}&#xA;&#xA;/ Attempt at blink cursor /&#xA;.logocursor {&#xA;    display: inline-block;&#xA;    width: 15px;&#xA;    height: 1.5rem;&#xA;    background: #045FB4;&#xA;    margin-left: 5px;&#xA;    border-radius: 1px;&#xA;    -webkit-animation: cursor 1s infinite;&#xA;    animation: cursor 1s infinite;&#xA;}&#xA;@-webkit-keyframes cursor {&#xA; 0% {&#xA;  opacity:0;&#xA; }&#xA; 50% {&#xA;  opacity:1;&#xA; }&#xA; to {&#xA;  opacity:0;&#xA; }&#xA;}&#xA;@keyframes cursor {&#xA; 0% {&#xA;  opacity:0&#xA; }&#xA; 50% {&#xA;  opacity:1&#xA; }&#xA; to {&#xA;  opacity:0&#xA; }&#xA;}&#xA;Note that I include the attribution to Riley Walz at the top, since I used his theme to get the home page to show up with titles and dates only.&#xA;&#xA;And here is the Custom JavaScript I use on this blog:&#xA;/ Reading Time JS Widget /&#xA;const wpm = 200; // Average reading rate in words per minute (WPM)&#xA;&#xA;let ps = document.querySelectorAll(&#39;p&#39;);&#xA;let wordCount = 0;&#xA;for (var i=0; i&lt;ps.length; i++) {&#xA;&#x9;wordCount += ps[i].innerText.split(/\s+/).length;&#xA;}&#xA;let $time = document.querySelector(&#39;#post-body .dt-published&#39;);&#xA;if ($time) {&#xA;    const minuteToRead = Math.round(wordCount / wpm)   0 ? Math.round(wordCount / wpm) : 1;&#xA;&#x9;$time.style.display = &#39;inline-block&#39;;&#xA;&#x9;$time.insertAdjacentHTML(&#34;afterend&#34;, &#39;span style=&#34;color: #73747b&#34; &amp;middot; &#39; + minuteToRead + &#39; min read/span&#39;);&#xA;}&#xA;&#xA;/ Add blinking cursor to blog title /&#xA;const blogTitle = document.getElementById(&#34;blog-title&#34;);&#xA;const blogTitleChildNodes = blogTitle.childNodes;&#xA;blogTitleChildNodes[0].innerHTML += &#39;span class=&#34;logocursor&#34;/span&#39;;&#xA;&#xA;/ Custom Footer/&#xA;const customFooterHTML = Copyright © 2018 - ${new Date().getFullYear()} by a class=&#34;home pubd&#34; href=&#34;https://dinobansigan.com/&#34; target=&#34;blank&#34;Dino Bansigan/abr /The opinions expressed herein are my own and do not represent those of my employerbr /or any other third-party views in any way.br /This work is licensed under a class=&#34;home pubd&#34; href=&#34;https://creativecommons.org/licenses/by-nc-sa/4.0?ref=chooser-v1&#34; target=&#34;_blank&#34; rel=&#34;license noopener noreferrer&#34; style=&#34;display:inline-block;&#34;CC BY-NC-SA 4.0img style=&#34;height:22px!important;margin-left:3px;vertical-align:text-bottom;&#34; src=&#34;https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1&#34;img style=&#34;height:22px!important;margin-left:3px;vertical-align:text-bottom;&#34; src=&#34;https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1&#34;img style=&#34;height:22px!important;margin-left:3px;vertical-align:text-bottom;&#34; src=&#34;https://mirrors.creativecommons.org/presskit/icons/sa.svg?ref=chooser-v1&#34;img style=&#34;height:22px!important;margin-left:3px;vertical-align:text-bottom;&#34; src=&#34;https://mirrors.creativecommons.org/presskit/icons/nc.svg?ref=chooser-v1&#34;/abr /powered by a class=&#34;home pubd&#34; href=&#34;https://write.as/&#34;write.as/a;&#xA;let x = document.querySelector(&#39;footer&#39;).getElementsByTagName(&#39;nav&#39;)[0];&#xA;x.innerHTML = customFooterHTML;&#xA;Note that I removed the scripts for getting Hyvor Talk comments added to this blog since most people don&#39;t have it. &#xA;&#xA;I also left the custom Footer script intact. So, if you&#39;re going to use it, make sure to modify the values to match your site.&#xA;&#xA;Tags: #CSS #JavaScript #Themes&#xA;&#xA;!--emailsub--&#xA;&#xA;a href=&#34;https://remark.as/p/devblog.dinobansigan.com/attach-to-process-write-as-theme&#34;Discuss.../a or leave a comment below.]]&gt;</description>
      <content:encoded><![CDATA[<p>I thought I&#39;d share the Custom CSS and JavaScript I use on this <a href="https://write.as/">Write.as</a> blog. The design is inspired by this <a href="https://hugo-hello-friend.vercel.app/">Hugo Hello Friend</a> theme I saw on <a href="https://micro.blog/">micro.blog</a>.</p>

<p>Here is the Custom CSS I use on this blog:</p>

<pre><code class="language-css">/* Written in 2020 by Riley Walz

 This theme is licensed under a Creative Commons Attribution 4.0 
 International License.

 You should have received a copy of the license along with this
 work. If not, see http://creativecommons.org/licenses/by/4.0/
*/

.post-title {
    padding-right: 1em;
}

.book {
	display: none;
}

.read-more {
	display: none;
}

.h-entry {
	justify-content: space-between;
	display: flex;
}

body#collection #wrapper article,
body#subpage #wrapper article {
	margin-bottom: 1em;
}

.dt-published {
	flex-shrink: 0;
}

@media screen and (max-width: 700px) {
	.h-entry {
		display: block
	}
	body#collection #wrapper time,
	body#subpage #wrapper time {
		font-size: 0.9em;
	}
	.post-title {
		font-size: 1.2rem;
	}
	body#collection #wrapper article,
	body#subpage #wrapper article {
		margin-bottom: 1.5em;
	}
}

#emailsub {
	text-align: center;
	margin-top: 50px;
}

/*** My own theme changes ***/
#post article {
    max-width: 60rem;
}

body#post header, body#subpage header {
	margin-bottom: 1em;
}

body#post header h1 {
    font-size: 2em;
}

body#post pre {
    margin-bottom: -2.5em;
}

#post-body div.e-content div.contact-form {
    display: contents;
    margin-top: -3em;
}

#fnContactEmbed {
    display: none;
}

#fnContactEmbedIframe {
	background: #FAFAD2;
	border-radius: 6px;
}

/* Dark Theme attempt */
body {
    font-family: Inter,-apple-system,BlinkMacSystemFont,Roboto,Segoe UI,Helvetica,Arial,sans-serif!important;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    
    background: #292a2d;
    /*background-secondary: #3b3d42;
    header: #252627;*/
    color: #a9a9b3;
    /*color-secondary: #73747b;*/
    border-color: #4a4b50;
}
#post article.norm, .font.norm, body#collection article.norm, body#subpage article.norm, input#title.norm, pre.norm, span.norm, textarea.norm {
    font-family: Inter,-apple-system,BlinkMacSystemFont,Roboto,Segoe UI,Helvetica,Arial,sans-serif!important;
}
#post nav a:not(.home), header nav a {
    color: #a9a9b3;
}

body h1 a, body header h2 a, header p.description, .post-title a:link, .post-title a:visited, a, a:visited {
    color: #a9a9b3;
}
body h1 a:hover, body header h2 a:hover, div.e-content p a, div.e-content ul li a {
    color: #a9a9b3;
    text-decoration: underline;
}
body#post article time.dt-published, body#subpage article time.dt-published {
    color: #73747b;
}

#subscribe-btn {
    border: 1px #045FB4;
    background: #045FB4;
}
#subscribe-btn:hover {
    text-shadow: 0px 0px 6px white;
}

.e-content a.hashtag:link {
    background-color: #292a2d;
    border-radius: 7px;
    border-style: solid;
    border-color: #a9a9b3;
    border-width: 1px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
    text-decoration: none;
	font-style: normal;
    line-height: 2em;
    color: #a9a9b3;
}
.e-content a.hashtag:visited {
    color: #a9a9b3;
	text-decoration: none;
}
.e-content a.hashtag:hover span + span {
    text-decoration: none;
}
.e-content a.hashtag:hover {
    background-color: #a9a9b3;
    border-color: #a9a9b3;
    color: #292a2d;
    text-decoration: none;
}

body footer {
    text-align: center;
    padding: 0 2em;
}

body footer nav {
    color: #73747b;
    padding-bottom: 48px;
    margin-bottom: 0px;
}

body footer nav a {
    font-weight: bold;
    color: #73747b!important;
    text-decoration: none!important;
    margin: 0!important;
}
body footer nav a:hover {
    color: #a9a9b3!important;
    text-decoration: underline!important;
    margin: 0!important;
}

body #post code, body#collection code, body#post code, body#subpage code {
	font-family: Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;
	background: #282c34;
	border-color: #3b3d42;
	padding: 3px 6px 3px 6px;
	margin: 0 2px;
	border-radius: 5px;
	font-size: .9rem;
	font-weight: 400;
}
body #post pre, body#collection pre, body#post pre, body#subpage pre {
    background: #282c34;
    border: 1px solid #3b3d42;
}

#hyvor-talk-view {
    margin-top: 1em;
    margin-bottom: -4em;
}

/* Hide post views */
header nav .views {
    display: none;
}

/* Hide Stats link */
nav#manage ul a[href=&#34;/me/c/attach-to-process/stats&#34;],
nav#manage ul a[href=&#34;/me/c/attach-to-process/subscribers&#34;]{
  display: none;
}

/* Highlight.js Atom One Dark Reasonable Theme */
.hljs {
	display: block!important;
	overflow-x: auto!important;
	padding: .5em!important;
	color: #abb2bf!important;
	background: #282c34!important;
}

.hljs-keyword,
.hljs-operator {
	color: #f92672!important;
}

.hljs-pattern-match {
	color: #f92672!important;
}

.hljs-pattern-match .hljs-constructor {
	color: #61aeee!important;
}

.hljs-function {
	color: #61aeee!important;
}

.hljs-function .hljs-params {
	color: #a6e22e!important;
}

.hljs-function .hljs-params .hljs-typing {
	color: #fd971f!important;
}

.hljs-module-access .hljs-module {
	color: #7e57c2!important;
}

.hljs-constructor {
	color: #e2b93d!important;
}

.hljs-constructor .hljs-string {
	color: #9ccc65!important;
}

.hljs-comment,
.hljs-quote {
	color: #b18eb1!important;
	font-style: italic!important;
}

.hljs-doctag,
.hljs-formula {
	color: #c678dd!important;
}

.hljs-deletion,
.hljs-name,
.hljs-section,
.hljs-selector-tag,
.hljs-subst {
	color: #e06c75!important;
}

.hljs-literal {
	color: #56b6c2!important;
}

.hljs-addition,
.hljs-attribute,
.hljs-meta-string,
.hljs-regexp,
.hljs-string {
	color: #98c379!important;
}

.hljs-built_in,
.hljs-class .hljs-title {
	color: #e6c07b!important;
}

.hljs-attr,
.hljs-number,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-pseudo,
.hljs-template-variable,
.hljs-type,
.hljs-variable {
	color: #d19a66!important;
}

.hljs-bullet,
.hljs-link,
.hljs-meta,
.hljs-selector-id,
.hljs-symbol,
.hljs-title {
	color: #61aeee!important;
}

.hljs-emphasis {
	font-style: italic!important;
}

.hljs-strong {
	font-weight: 700!important;
}

.hljs-link {
	text-decoration: underline!important;
}

/* Attempt at blink cursor */
.logo__cursor {
    display: inline-block;
    width: 15px;
    height: 1.5rem;
    background: #045FB4;
    margin-left: 5px;
    border-radius: 1px;
    -webkit-animation: cursor 1s infinite;
    animation: cursor 1s infinite;
}
@-webkit-keyframes cursor {
 0% {
  opacity:0;
 }
 50% {
  opacity:1;
 }
 to {
  opacity:0;
 }
}
@keyframes cursor {
 0% {
  opacity:0
 }
 50% {
  opacity:1
 }
 to {
  opacity:0
 }
}
</code></pre>

<p><em>Note that I include the attribution to Riley Walz at the top, since I used his theme to get the home page to show up with titles and dates only.</em></p>

<p>And here is the Custom JavaScript I use on this blog:</p>

<pre><code class="language-js">/* Reading Time JS Widget */
const wpm = 200; // Average reading rate in words per minute (WPM)

let ps = document.querySelectorAll(&#39;p&#39;);
let wordCount = 0;
for (var i=0; i&lt;ps.length; i++) {
	wordCount += ps[i].innerText.split(/\s+/).length;
}
let $time = document.querySelector(&#39;#post-body .dt-published&#39;);
if ($time) {
    const minuteToRead = Math.round(wordCount / wpm) &gt; 0 ? Math.round(wordCount / wpm) : 1;
	$time.style.display = &#39;inline-block&#39;;
	$time.insertAdjacentHTML(&#34;afterend&#34;, &#39;&lt;span style=&#34;color: #73747b&#34;&gt; &amp;middot; &#39; + minuteToRead + &#39; min read&lt;/span&gt;&#39;);
}

/* Add blinking cursor to blog title */
const blogTitle = document.getElementById(&#34;blog-title&#34;);
const blogTitleChildNodes = blogTitle.childNodes;
blogTitleChildNodes[0].innerHTML += &#39;&lt;span class=&#34;logo__cursor&#34;&gt;&lt;/span&gt;&#39;;

/* Custom Footer*/
const customFooterHTML = `Copyright © 2018 - ${new Date().getFullYear()} by &lt;a class=&#34;home pubd&#34; href=&#34;https://dinobansigan.com/&#34; target=&#34;_blank&#34;&gt;Dino Bansigan&lt;/a&gt;&lt;br /&gt;The opinions expressed herein are my own and do not represent those of my employer&lt;br /&gt;or any other third-party views in any way.&lt;br /&gt;This work is licensed under &lt;a class=&#34;home pubd&#34; href=&#34;https://creativecommons.org/licenses/by-nc-sa/4.0?ref=chooser-v1&#34; target=&#34;_blank&#34; rel=&#34;license noopener noreferrer&#34; style=&#34;display:inline-block;&#34;&gt;CC BY-NC-SA 4.0&lt;img style=&#34;height:22px!important;margin-left:3px;vertical-align:text-bottom;&#34; src=&#34;https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1&#34;&gt;&lt;img style=&#34;height:22px!important;margin-left:3px;vertical-align:text-bottom;&#34; src=&#34;https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1&#34;&gt;&lt;img style=&#34;height:22px!important;margin-left:3px;vertical-align:text-bottom;&#34; src=&#34;https://mirrors.creativecommons.org/presskit/icons/sa.svg?ref=chooser-v1&#34;&gt;&lt;img style=&#34;height:22px!important;margin-left:3px;vertical-align:text-bottom;&#34; src=&#34;https://mirrors.creativecommons.org/presskit/icons/nc.svg?ref=chooser-v1&#34;&gt;&lt;/a&gt;&lt;br /&gt;powered by &lt;a class=&#34;home pubd&#34; href=&#34;https://write.as/&#34;&gt;write.as&lt;/a&gt;`;
let x = document.querySelector(&#39;footer&#39;).getElementsByTagName(&#39;nav&#39;)[0];
x.innerHTML = customFooterHTML;
</code></pre>

<p>Note that I removed the scripts for getting Hyvor Talk comments added to this blog since most people don&#39;t have it.</p>

<p>I also left the custom Footer script intact. So, if you&#39;re going to use it, make sure to modify the values to match your site.</p>

<p><em>Tags: <a href="https://devblog.dinobansigan.com/tag:CSS" class="hashtag"><span>#</span><span class="p-category">CSS</span></a> <a href="https://devblog.dinobansigan.com/tag:JavaScript" class="hashtag"><span>#</span><span class="p-category">JavaScript</span></a> <a href="https://devblog.dinobansigan.com/tag:Themes" class="hashtag"><span>#</span><span class="p-category">Themes</span></a></em></p>



<p><strong><a href="https://remark.as/p/devblog.dinobansigan.com/attach-to-process-write-as-theme">Discuss...</a></strong> or leave a comment below.</p>
]]></content:encoded>
      <guid>https://devblog.dinobansigan.com/attach-to-process-write-as-theme</guid>
      <pubDate>Mon, 21 Feb 2022 17:59:41 +0000</pubDate>
    </item>
  </channel>
</rss>