Testing static site generation

matthias on 2017/11/12, last updated on 2017/11/15

This is a test post. Its main purpose is to help me see that features of hugo, the static site generator I am using, are working properly.

For consistency reasons, this post should live at /2017/11/testing-static-site-generation.

This is the actual full and relative link:

  • http://matthiaskauer.com/2017/11/testing-static-site-generation/
  • /2017/11/testing-static-site-generation/

I can also link to this heading.

Syntax highlighting

Here is the std::equal_range example from cplusplus.com.

// equal_range example
#include <iostream>     // std::cout
#include <algorithm>    // std::equal_range, std::sort
#include <vector>       // std::vector

bool mygreater (int i,int j) { return (i>j); }

int main () {
  int myints[] = {10,20,30,30,20,10,10,20};
  std::vector<int> v(myints,myints+8);                         // 10 20 30 30 20 10 10 20
  std::pair<std::vector<int>::iterator,std::vector<int>::iterator> bounds;

  // using default comparison:
  std::sort (v.begin(), v.end());                              // 10 10 10 20 20 20 30 30
  bounds=std::equal_range (v.begin(), v.end(), 20);            //          ^        ^

  // using "mygreater" as comp:
  std::sort (v.begin(), v.end(), mygreater);                   // 30 30 20 20 20 10 10 10
  bounds=std::equal_range (v.begin(), v.end(), 20, mygreater); //       ^        ^

  std::cout << "bounds at positions " << (bounds.first - v.begin());
  std::cout << " and " << (bounds.second - v.begin()) << '\n';

  return 0;
}

Math

Here is a random formula from my research on control systems.

\[ F_1 x_1 + \ldots + F_n x_n \leq F_0 \]

Images

Bootstrap responsive and centered

figure shortcode

figcaption: I don't exactly wear it every day but still quite often

figitle: My Casio watch

figcaption: I don't exactly wear it every day but still quite often

More text

Tables

Pure HTML

Firstname Lastname Age
Jill Smith 50
Eve Jackson 94

With <table class="table"> for bootstrap

Firstname Lastname Age
Jill Smith 50
Eve Jackson 94

Github-flavored markdown

Docs


Firstname Lastname Age
Jill Smith 50
Eve Jackson 94

Typography

See: https://getbootstrap.com/docs/3.3/css/#type

Inline

lead paragraph

Hi, there, important (not really visible difference in many styles)

This line of text is meant to be treated as deleted text.

This line of text is meant to be treated as no longer accurate.

This line of text is meant to be treated as an addition to the document.

This line of text will render as underlined

Background

Primary

Success

Info

Warning

Danger

Boxes

Lore impsum....
My warning for you...

asdfsdf

asdfasf

Here are

Some text

some

Some text

headings

Some text

I want to use

Some text

the last one

More text

Jumbotron

Hello, world!

...

Learn more