Malexandre
Thoughts from a random software engineer

Styles showdown

Blog · Published the 20 Aug 17
740 words · 4 min read

I open sourced my theme, and everyone can use it with their Hugo setup. I think it’s also easy to port to another blog platform if you want. Here is an example of all the styles available.

Headings

A h1 header

A h2 header

A h3 header

A h4 header

A h5 header
A h6 header

Text

Full sentence

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis.

Text-level semantics

The a element example

The abbr element and abbr element with title examples

The b element example

The cite element example

The code element example

The del element example

The dfn element and dfn element with title examples

The em element example

The i element example

The ins element example

The kbd element example

The mark element example

The q element inside a q element example

The s element example

The samp element example

The small element example

The span element example

The strong element example

The sub element example

The sup element example

The var element example

The u element example


Blockquotes

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue. Ut a est eget ligula molestie gravida. Curabitur massa. Donec eleifend, libero at sagittis mollis, tellus est malesuada tellus, at luctus turpis elit sit amet quam. Vivamus pretium ornare est.

Pullquote

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue. Ut a est eget ligula molestie gravida.

Markup

<blockquote class="pullquote">
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in mi at felis aliquet congue. Ut a est eget ligula molestie gravida.</p>
</blockquote>

Lists

Ordered List

  1. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
  2. Aliquam tincidunt mauris eu risus.
  3. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. This bullet tests content going onto two lines

Un-ordered list

  • Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
  • Aliquam tincidunt mauris eu risus.
  • Lorem ipsum dolor sit amet, consectetuer adipiscing elit. This bullet tests content going onto two lines

Definition List

Definition Title
Consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco.
Lorem ipsum dolor sit amet
Consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris commodo consequat.

Nested Lists

  • Morbi in sem quis dui placerat ornare. Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu. Cras consequat.
  • Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus.
    • Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
    • Aliquam tincidunt mauris eu risus:
      1. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
      2. Aliquam tincidunt mauris eu risus.
      3. Vestibulum auctor dapibus neque.
    • Vestibulum auctor dapibus neque.
  • Phasellus ultrices nulla quis nibh. Quisque a lectus. Donec consectetuer ligula vulputate sem tristique cursus. Nam nulla quam, gravida non, commodo a, sodales sit amet, nisi.
  • Pellentesque fermentum dolor. Aliquam quam lectus, facilisis auctor, ultrices ut, elementum vulputate, nunc.

Media

Image

Kitten

Kitten

Figure

Figcaption content

Code and Syntax Highlight

int charArrayToInt32Array(char * clearText, unsigned int * int32result) {
  int i = 0, j = 0, total = 0;
  int dec[4] = {24, 16, 8, 0};
  unsigned int returnedInteger = 0;

  // A comment
  for (i=0; clearText[i]; i+=4) {
    returnedInteger = 0;
    for (j=0; j <= 3 ; j++) {
      returnedInteger |= (unsigned int) (clearText[i+j] << dec[j]) ;
    }

    int32result[total] = returnedInteger;
    total++;
  }
  return total;
}
<div class="wrapper">
  <!-- a comment -->
  <p><b>HTML</b> syntax highlighting</p>
</div>
.wrapper {
  /* a comment */
  width: 960px;
  margin: 0 auto;
}
// a comment
var s = "JavaScript syntax highlighting";
alert(s);
<!-- no comment -->
No language indicated, so no syntax highlighting.
But let's throw in a <b>tag</b>.

Tables

Markdown Less Pretty
Still renders nicely
1 2 3

Button

I used the basic button from Pure.css.

Marc Alexandre
Full-Stack Engineer for more than 5 years, working on performance, scalability and user experience. I grew a great knowledge of Python, Javascript, Node and Angular, but I also like to follow all the other technologies.
comments powered by Disqus