Fill example site with general content

Fix markdown for italic and other font styles
Improve sample pages and posts in example site
Update example site config

Resolves #5 :)
This commit is contained in:
Nishanth Shanmugham
2015-12-21 04:42:44 -06:00
parent dcb1f76cc8
commit 3e847e7817
10 changed files with 78 additions and 61 deletions

View File

@@ -0,0 +1,17 @@
+++
date = "2015-12-21T04:05:25-06:00"
draft = false
title = "Les Misérables by Victor Hugo"
+++
Although this detail has no connection whatever with the real substance of what we are about to relate, it will not be superfluous, if merely for the sake of exactness in all points, to mention here the various rumors and remarks which had been in circulation about him from the very moment when he arrived in the diocese.
### Bool
True or false, that which is said of men often occupies as important a place in their lives, and above all in their destinies, as that which they do. M. Myriel was the son of a councillor of the [Parliament of Aix](https://en.wikipedia.org/wiki/Parliament_of_Aix-en-Provence); hence he belonged to the nobility of the bar. It was said that his father, destining him to be the heir of his own post, had married him at a very early age, eighteen or twenty, in accordance with a custom which is rather widely prevalent in parliamentary families. In spite of this marriage, however, it was said that Charles Myriel created a great deal of talk. He was well formed, though rather short in stature, elegant, graceful, intelligent; the whole of the first portion of his life had been devoted to the world and
to gallantry.
> "The halls are nothing but rooms, and it is with difficulty that the air can be changed in them."
This conversation took place in the gallery dining-room on the ground-floor. The [Bishop](https://www.youtube.com/watch?v=dQw4w9WgXcQ) remained silent for a moment; then he turned abruptly to the director of the hospital.

View File

@@ -0,0 +1,23 @@
+++
date = "2015-12-21T04:03:46-06:00"
draft = false
title = "Metamorphosis by Franz Kafka"
+++
### Part One
One morning, when *Gregor Samsa* woke from troubled dreams, he found himself transformed in his bed into a horrible vermin.
> He lay on his armour-like back, and if he lifted his head a little he could see his brown belly, slightly domed and divided by arches into stiff sections.
The bedding was hardly able to cover it and seemed ready to slide off any moment. His many legs, pitifully thin compared with the size of the rest of him, waved about helplessly as he looked.
### Part Two
It was not until it was getting dark that evening that Gregor awoke from his deep and coma-like sleep. He would have woken soon afterwards anyway even if he hadn't been disturbed, as he had had enough sleep and felt fully rested. But he had the impression that some hurried steps and the sound of the door leading into the front room being carefully shut had woken him.
* He pushed himself over to the door, feeling his way clumsily with his antennae - of which he was now beginning to learn the value - in order to see what had been happening there.
* The whole of his left side seemed like one, painfully stretched scar, and he limped badly on his two rows of legs.
The light from the [electric street lamps](https://en.wikipedia.org/wiki/Street_light) shone palely here and there onto the ceiling and tops of the furniture, but down below, where Gregor was, it was dark.

View File

@@ -1,22 +0,0 @@
+++
date = "2015-08-22T15:45:30-07:00"
draft = false
title = "Redirect webpages using HTML"
slug = "redirect-webpages-html"
+++
Webpage redirection is great for automatically redirecting people visiting an old URL to a new URL where the content has moved to. It can be done using JavaScript, but there is also a convenient HTML-only solution.
To redirect visitors reaching `yourwebsite.com/blog` to `yourwebsite.com/posts`, add this to the `<head>` section of the HTML at `yourwebsite.com/blog`:
{{< highlight html "linenos=inline" >}}
<meta http-equiv="refresh" content="0;url='/posts'" />
<link rel="canonical" href="/posts" />
{{</highlight>}}
### walkthrough
Setting `http-equiv="refresh"` in the first line performs the actual redirect. The number in the `content` attribute specified in seconds tells the browser how long to wait before redirecting. In this example, `0` redirects immediately. Increasing the wait may be useful for briefly displaying a 404 page before automatically switching to the home page. The `url` specfies the destination for the redirect. In this example, we wanted to switch to `/posts`.
The second line is optional; it helps search engines know which the preferred version of the page is. Usually, this is the redirect destination.