Is This Thing On?

Hello there! I’m Rounak. I’m trying to pick up blogging as a hobby, write about the things I am currently working on and also write about some interesting places I travel to. Thanks for spending the time to reach this random piece written by me.

There isn’t much to read in this post since this is mostly a test to make sure that things look good and the posts render properly. Got this idea from a post by Pradyun who I found on twitter.

Acknowledgements

This blog is built using Hexo and the theme is by probberechts. There is also a dark mode for the theme which I’ll integrate soon with a toggle button but I like the light theme better for this particular template. Hmmm, weird.

Testing how things look

Well, since this is the first time I’m using a blog framework, I am going to use this post as an excuse to verify that all the content-related styling looks good. I’m utilizing content from an example post from Pixyll (a Jekyll theme) here.


All links are easy to locate and discern, yet don’t detract from the harmony of a paragraph. The same goes for italics and bold elements. Even the strikeout works if for some reason you need to update your post.

Code, with syntax highlighting

Here’s an example of some python code.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class SubstitutionPreprocessor(Preprocessor):

def __init__(self, substitutions):
super().__init__()
self.substitutions = substitutions

def run(self, lines):
new_lines = []
for line in lines:
for pattern, subn in self.substitutions.items():
line = line.replace(pattern, subn)
new_lines.append(line)
return new_lines


class SubstitutionExtension(MarkdownExtensionMixin):
def extendMarkdown(self, md, md_globals):
md.preprocessors.add('subn', SubstitutionPreprocessor(md), '_begin')

Here’s some CSS:

1
2
3
4
.foobar {
/* Named colors rule */
color: tomato;
}

Here’s some JavaScript:

1
2
3
4
5
6
7
var isPresent = require('is-present')

module.exports = function doStuff(things) {
if (isPresent(things)) {
doOtherStuff(things)
}
}

Headings!

You know how they look

Raaiighht?

Lists

  • Apples
  • Oranges
  • Milk
  1. Eat the food
  2. Feed the dog
  3. Mow the lawn

Images look great, too

cactus

cactus

Stylish blockquotes included

This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.

And a lot more!

I’ll be using the above elements in my blog posts but if I use anything new then I’ll surely add them to this list.