mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 03:36:41 +02:00
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:
@@ -1,29 +1,30 @@
|
||||
baseurl = "https://nishanths.github.io/"
|
||||
baseurl = "https://you.github.io/" # TODO
|
||||
builddrafts = false
|
||||
canonifyurls = true
|
||||
contentdir = "content"
|
||||
languageCode = "en-US"
|
||||
layoutdir = "layouts"
|
||||
publishdir = "public"
|
||||
author = "Nishanth Shanmugham"
|
||||
title = "Nishanth Shanmugham"
|
||||
author = "Arthur Dent"
|
||||
title = "Arthur Dent"
|
||||
pygmentsuseclasses = true
|
||||
disqusShortname = "cocoaexamplesite" # TODO: optional, comment out to disable Disqus
|
||||
|
||||
[permalinks]
|
||||
fixed = ":title/"
|
||||
posts = "posts/:slug/"
|
||||
|
||||
[params]
|
||||
Author = "Nishanth Shanmugham"
|
||||
Author = "Arthur Dent"
|
||||
CacheBuster = true
|
||||
DateForm = "Jan 2, 2006"
|
||||
DateFormFull = "Mon Jan 2 2006 15:04:05 MST"
|
||||
Description = "The website description"
|
||||
Email = "nishanths@utexas.edu"
|
||||
Description = "Don't panic"
|
||||
Email = "you@example.space" # TODO:
|
||||
FaviconFile = "img/leaf.ico"
|
||||
GATracker = "<Google-Analyics-ID>"
|
||||
GitHub = "//github.com/nishanths"
|
||||
Initials = "ns" # displayed on single post page
|
||||
GATracker = "XYZ" # TODO:
|
||||
GitHub = "//github.com/you" # TODO:
|
||||
Initials = "ad" # displayed on single post page
|
||||
Lang = "en"
|
||||
LinkedIn = "//linkedin.com/in/nshanmugham"
|
||||
Twitter = "//twitter.com/nshanmugham"
|
||||
LinkedIn = "//linkedin.com/in/you" # TODO:
|
||||
Twitter = "//twitter.com/you" # TODO:
|
||||
|
@@ -5,14 +5,14 @@ title = "About"
|
||||
|
||||
+++
|
||||
|
||||
I'm a software engineer and student at UT Austin. I primarily program in JavaScript. I currently work at Evernote. I also teach a web development class as part of <a href="//cs.utexas.edu/users/mad">MAD</a>, a computer science campus organization.
|
||||
Along with [Ford Prefect](https://en.wikipedia.org/wiki/Ford_Prefect_\(character\)), Dent barely escapes the Earth's destruction as it is demolished to make way for a *hyperspace bypass*. Arthur spends the next several years, still wearing his dressing gown, helplessly launched from crisis to crisis while trying to straighten out his lifestyle.
|
||||
|
||||
I love soccer and mediterranean food. You can find recent open source work on <a target="_blank" href="//github.com/nishanths">GitHub</a>.
|
||||
> He rather enjoys tea, but seems to have trouble obtaining it in the far reaches of the galaxy.
|
||||
|
||||
Please feel free to get in touch at <a href="mailto:nishanths@utexas.edu">nishanths@utexas.edu</a>.
|
||||
In time, he learns how to fly and carves a niche for himself as a sandwich-maker.
|
||||
|
||||
<img src="//placehold.it/1000x1000" class="profile">
|
||||
<img src="//placehold.it/300x300" class="profile">
|
||||
|
||||
<br />
|
||||
|
||||
<a href="colophon/">About this site</a>
|
||||
[About this site](colophon/)
|
||||
|
@@ -5,16 +5,8 @@ title = "Code"
|
||||
|
||||
+++
|
||||
|
||||
* [iterators.js](https://github.com/nishanths/iterators.js): Useful functional iterators for node and the browser
|
||||
* [Spitfire](https://github.com/nishanths/spitfire-live): HackTX 2015, Winner – a real-time rhyming assistant
|
||||
* [markdown-viewer-component](https://github.com/nishanths/markdown-viewer-component): Web Component that renders Markdown placed inside an element as HTML
|
||||
* [cocoa-hugo-theme](https://github.com/nishanths/cocoa-hugo-theme): Distraction-free reading theme for Hugo, the static site generator
|
||||
* [slack-texts](https://github.com/nishanths/slack-texts): Important channel messages also sent to your phone via SMS
|
||||
* [YWeatherAPI](https://github.com/nishanths/YWeatherAPI): Powerful Yahoo! Weather API wrapper for Mac and iOS
|
||||
* [uMAD 2015](https://github.com/utcsmad/umad-website-2015): Website for the student developer conference built with Middleman
|
||||
* [What's Playing](https://github.com/nishanths/what-s-playing): Desktop notifications for online music playback changes
|
||||
* [QuickCal](https://github.com/nishanths/QuickCal): Highlight and add dates from any website to Google Calendar
|
||||
* [YouTube Pause](https://github.com/nishanths/youtube-pause-chrome): Spacebar pauses the video instead of scrolling down the page. [CNET](http://www.cnet.com/how-to/chrome-pause-youtube-videos-with-the-spacebar/)
|
||||
* [ISBN Search](https://duckduckgo.com/?q=ISBN+number+0-06-250217-4&ia=books): DuckDuckGo module to lookup book information by ISBN
|
||||
* [HTML Entities Encoder &](https://duckduckgo.com/?q=html+encode+the+paragraph+sign&ia=answer) [Decoder](https://duckduckgo.com/?q=decoded+html+for+%26%23x00a5%3B&ia=answer): Encode and decode HTML entities on DuckDuckGo using natural queries
|
||||
* [Auto-Browser](https://github.com/nishanths/auto-browser): HackTX 2014, Top 10
|
||||
The Hitchhiker's Guide to the Galaxy is a comedy science fiction series created by [Douglas Adams](https://en.wikipedia.org/wiki/Douglas_Adams). Originally a radio comedy broadcast on BBC Radio 4 in 1978, it was later adapted to other formats, and over several years it gradually became an international multi-media phenomenon. Adaptations have included stage shows, a "trilogy" of five books published between 1979 and 1992, a sixth novel penned by [Eoin Colfer](https://en.wikipedia.org/wiki/Eoin_Colfer) in 2009, a 1981 TV series, a 1984 computer game, and three series of three-part comic book adaptations of the first three novels published by DC Comics between 1993 and 1996. There were also two series of towels, produced by Beer-Davies, that are considered by some fans to be an "official version" of The Hitchhiker's Guide to the Galaxy, as they include text from the first novel.
|
||||
|
||||
### Movie
|
||||
|
||||
A Hollywood-funded film version, produced and filmed in the UK, was released in April 2005, and radio adaptations of the third, fourth, and fifth novels were broadcast from 2004 to 2005. Adams did many of these adaptations, including the novels, the TV series, the computer game, and the earliest drafts of the Hollywood film’s screenplay, and some of the stage shows introduced new material written by Adams.
|
||||
|
@@ -6,9 +6,9 @@ heading = "About This Site"
|
||||
|
||||
+++
|
||||
|
||||
This website is the place where I write about JavaScript, git, and tech. It is also a personal homepage.
|
||||
This website is a personal homepage.
|
||||
|
||||
The site is built with <a target="_blank" href="//gohugo.io">Hugo</a>—a static site generator made with Go and is hosted on GitHub Pages. The website <a target="_blank" href="//github.com/nishanths/nishanths.me">source code</a> is available on GitHub. It uses the <a target="_blank" href="//github.com/nishanths/cocoa-hugo-theme">cocoa</a> theme. The posts are written in Markdown.
|
||||
The site is built with <a target="_blank" href="//gohugo.io">Hugo</a>—a static site generator made with Go. The website [source code](/) is available on GitHub. It uses the <a target="_blank" href="//github.com/nishanths/cocoa-hugo-theme">cocoa</a> theme. The posts are written in Markdown.
|
||||
|
||||
The primary font face is Open Sans and the monospace font face is Ubuntu Mono. The social icons are from the Ionicons font set. CSS classes for code syntax highlighting are inserted during compile-time by Hugo using Pygments.
|
||||
|
||||
|
17
exampleSite/content/posts/lesmiserables-hugo.md
Normal file
17
exampleSite/content/posts/lesmiserables-hugo.md
Normal 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.
|
23
exampleSite/content/posts/metamorphosis-kafka.md
Normal file
23
exampleSite/content/posts/metamorphosis-kafka.md
Normal 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.
|
@@ -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.
|
@@ -1,8 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="canonical" href="/code"/>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
||||
<meta http-equiv="refresh" content="0;url=/code"/>
|
||||
</head>
|
||||
</html>
|
@@ -110,6 +110,14 @@ li {
|
||||
|
||||
// Miscenllaneous
|
||||
|
||||
em {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
strong {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
hr {
|
||||
position: relative;
|
||||
margin: 1.75rem 0;
|
||||
|
@@ -647,6 +647,12 @@ img.profile {
|
||||
list-style-type: disc;
|
||||
list-style-position: inside;
|
||||
}
|
||||
.section.main .content .markdown em {
|
||||
font-style: italic;
|
||||
}
|
||||
.section.main .content .markdown strong {
|
||||
font-weight: 700;
|
||||
}
|
||||
.section.main .content .markdown hr {
|
||||
position: relative;
|
||||
margin: 1.75rem 0;
|
||||
|
Reference in New Issue
Block a user