From a78380049fca7eb6de32d60898463943731cae77 Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 21 May 2018 13:21:26 +0200 Subject: Vendor heavily modified theme --- themes/hugo-classic/exampleSite/config.toml | 33 ++++ themes/hugo-classic/exampleSite/content/_index.md | 28 ++++ .../content/post/2012-01-23-juicy-code.md | 30 ++++ .../content/post/2012-04-23-hacker-with-horn.md | 25 +++ .../post/2015-07-23-command-line-awesomeness.md | 14 ++ .../content/post/2016-02-14-markdown-guide.md | 171 +++++++++++++++++++++ .../exampleSite/static/css/theme-override.css | 1 + 7 files changed, 302 insertions(+) create mode 100644 themes/hugo-classic/exampleSite/config.toml create mode 100644 themes/hugo-classic/exampleSite/content/_index.md create mode 100644 themes/hugo-classic/exampleSite/content/post/2012-01-23-juicy-code.md create mode 100644 themes/hugo-classic/exampleSite/content/post/2012-04-23-hacker-with-horn.md create mode 100644 themes/hugo-classic/exampleSite/content/post/2015-07-23-command-line-awesomeness.md create mode 100644 themes/hugo-classic/exampleSite/content/post/2016-02-14-markdown-guide.md create mode 100644 themes/hugo-classic/exampleSite/static/css/theme-override.css (limited to 'themes/hugo-classic/exampleSite') diff --git a/themes/hugo-classic/exampleSite/config.toml b/themes/hugo-classic/exampleSite/config.toml new file mode 100644 index 0000000..f5ff3dd --- /dev/null +++ b/themes/hugo-classic/exampleSite/config.toml @@ -0,0 +1,33 @@ +baseurl = "/" +languageCode = "en-us" +title = "Classic" +theme = "hugo-classic" +googleAnalytics = "" +ignoreFiles = ["\\.Rmd$", "_files$", "_cache$"] +preserveTaxonomyNames = true +enableEmoji = true +footnotereturnlinkcontents = "↩" + +[permalinks] + post = "/post/:year/:month/:day/:slug/" + +[[menu.main]] + name = "Home" + url = "/" + weight = 1 +[[menu.main]] + name = "Categories" + url = "/categories/" + weight = 2 +[[menu.main]] + name = "Tags" + url = "/tags/" + weight = 3 +[[menu.feed]] + name = "Subscribe" + url = "/index.xml" + +[params] + description = "A simple, minimal blog for those who love text." + footer = "Open-Source | [Github](https://github.com/goodroot/hugo-classic) | [Twitter](https://twitter.com/thegoodroot)" + custom_css = ["css/theme-override.css"] diff --git a/themes/hugo-classic/exampleSite/content/_index.md b/themes/hugo-classic/exampleSite/content/_index.md new file mode 100644 index 0000000..32af099 --- /dev/null +++ b/themes/hugo-classic/exampleSite/content/_index.md @@ -0,0 +1,28 @@ +--- +title: Home +--- + +[Github repo](https://github.com/goodroot/hugo-classic) + +# Hugo.io - Classic + +### For text focused goodness + +About twenty years ago Jobs and Wozniak, the founders of Apple, came up with the very strange idea of selling information processing machines for use in the home. The business took off, and its founders made a lot of money and received the credit they deserved for being daring visionaries. But around the same time, Bill Gates and Paul Allen came up with an idea even stranger and more fantastical: **selling computer operating systems**. This was much weirder than the idea of Jobs and Wozniak. + +~~~ruby +def with_value_from_database(value) + self.class.from_database(name, value, type) +end + +def with_cast_value(value) + self.class.with_cast_value(name, value, type) +end +end +~~~ + +A computer at least had some sort of physical reality to it. It came in a box, you could open it up and plug it in and watch lights blink. An operating system had no tangible incarnation at all. It arrived on a disk, of course, but the disk was, in effect, nothing more than the box that the OS came in. + +
+ +### Blog diff --git a/themes/hugo-classic/exampleSite/content/post/2012-01-23-juicy-code.md b/themes/hugo-classic/exampleSite/content/post/2012-01-23-juicy-code.md new file mode 100644 index 0000000..4614e74 --- /dev/null +++ b/themes/hugo-classic/exampleSite/content/post/2012-01-23-juicy-code.md @@ -0,0 +1,30 @@ +--- +title: Juicy Code +author: Open Source +date: '2012-01-23' +categories: + - Code +tags: + - Juicy +slug: juicy-code +--- + +Check out this JUICY! code: + +~~~ruby +def with_value_from_database(value) + self.class.from_database(name, value, type) +end + +def with_cast_value(value) + self.class.with_cast_value(name, value, type) +end + +def with_type(type) + if changed_in_place? + with_value_from_user(value).with_type(type) + else + self.class.new(name, value_before_type_cast, type, original_attribute) + end +end +~~~ diff --git a/themes/hugo-classic/exampleSite/content/post/2012-04-23-hacker-with-horn.md b/themes/hugo-classic/exampleSite/content/post/2012-04-23-hacker-with-horn.md new file mode 100644 index 0000000..8511d11 --- /dev/null +++ b/themes/hugo-classic/exampleSite/content/post/2012-04-23-hacker-with-horn.md @@ -0,0 +1,25 @@ +--- +title: Hacker with Bullhorn +author: Open-Source +date: '2012-04-23' +categories: + - Bullhorn + - Example +slug: hacker-with-horn +--- + +Hacker with bullhorn: "Save your money! Accept one of our free tanks! It is invulnerable, and can drive across rocks and swamps at ninety miles an hour while getting a hundred miles to the gallon!" + +Prospective station wagon buyer: "I know what you say is true...but...er...I don't know how to maintain a tank!" + +Bullhorn: "You don't know how to maintain a station wagon either!" + +Buyer: "But this dealership has mechanics on staff. If something goes wrong with my station wagon, I can take a day off work, bring it here, and pay them to work on it while I sit in the waiting room for hours, listening to elevator music." + +Bullhorn: "But if you accept one of our free tanks we will send volunteers to your house to fix it for free while you sleep!" + +Buyer: "Stay away from my house, you freak!" + +Bullhorn: "But..." + +Buyer: "Can't you see that everyone is buying station wagons?" diff --git a/themes/hugo-classic/exampleSite/content/post/2015-07-23-command-line-awesomeness.md b/themes/hugo-classic/exampleSite/content/post/2015-07-23-command-line-awesomeness.md new file mode 100644 index 0000000..6914648 --- /dev/null +++ b/themes/hugo-classic/exampleSite/content/post/2015-07-23-command-line-awesomeness.md @@ -0,0 +1,14 @@ +--- +title: "Command Line Awesomeness" +date: '2012-03-12' +categories: + - Blog +tags: + - HTML +--- + +This crud is called HTML (HyperText Markup Language) and it is basically a very simple programming language instructing your web browser how to draw a page on a screen. Anyone can learn HTML and many people do. The important thing is that no matter what splendid multimedia web pages they might represent, HTML files are just telegrams. + +> When Ronald Reagan was a radio announcer, he used to call baseball games by reading the terse descriptions that trickled in over the telegraph wire and were printed out on a paper tape. He would sit there, all by himself in a padded room with a microphone, and the paper tape would eke out of the machine and crawl over the palm of his hand printed with cryptic abbreviations. If the count went to three and two, Reagan would describe the scene as he saw it in his mind's eye: "The brawny left-hander steps out of the batter's box to wipe the sweat from his brow. The umpire steps forward to sweep the dirt from home plate." and so on. When the cryptogram on the paper tape announced a base hit, he would whack the edge of the table with a pencil, creating a little sound effect, and describe the arc of the ball as if he could actually see it. His listeners, many of whom presumably thought that Reagan was actually at the ballpark watching the game, would reconstruct the scene in their minds according to his descriptions. + +This is exactly how the World Wide Web works: the HTML files are the pithy description on the paper tape, and your Web browser is Ronald Reagan. The same is true of Graphical User Interfaces in general. diff --git a/themes/hugo-classic/exampleSite/content/post/2016-02-14-markdown-guide.md b/themes/hugo-classic/exampleSite/content/post/2016-02-14-markdown-guide.md new file mode 100644 index 0000000..fc64964 --- /dev/null +++ b/themes/hugo-classic/exampleSite/content/post/2016-02-14-markdown-guide.md @@ -0,0 +1,171 @@ +--- +title: Markdown Guide +author: Open Source +date: '2014-03-14' +categories: + - Example +tags: + - Markdown +--- + +An h1 header +============ + +Paragraphs are separated by a blank line. + +2nd paragraph. *Italic*, **bold**, and `monospace`. Itemized lists +look like: + + * this one + * that one + * the other one + +Note that --- not considering the asterisk --- the actual text +content starts at 4-columns in. + +> Block quotes are +> written like so. +> +> They can span multiple paragraphs, +> if you like. + +Use 3 dashes for an em-dash. Use 2 dashes for ranges (ex., "it's all +in chapters 12--14"). Three dots ... will be converted to an ellipsis. +Unicode is supported. ☺ + + + +An h2 header +------------ + +Here's a numbered list: + + 1. first item + 2. second item + 3. third item + +Note again how the actual text starts at 4 columns in (4 characters +from the left side). Here's a code sample: + + # Let me re-iterate ... + for i in 1 .. 10 { do-something(i) } + +As you probably guessed, indented 4 spaces. By the way, instead of +indenting the block, you can use delimited blocks, if you like: + +~~~ +define foobar() { + print "Welcome to flavor country!"; +} +~~~ + +(which makes copying & pasting easier). You can optionally mark the +delimited block for Pandoc to syntax highlight it: + +~~~python +import time +# Quick, count to ten! +for i in range(10): + # (but not *too* quick) + time.sleep(0.5) + print i +~~~ + + + +### An h3 header ### + +Now a nested list: + + 1. First, get these ingredients: + + * carrots + * celery + * lentils + + 2. Boil some water. + + 3. Dump everything in the pot and follow + this algorithm: + + find wooden spoon + uncover pot + stir + cover pot + balance wooden spoon precariously on pot handle + wait 10 minutes + goto first step (or shut off burner when done) + + Do not bump wooden spoon or it will fall. + +Notice again how text always lines up on 4-space indents (including +that last line which continues item 3 above). + +Here's a link to [a website](http://foo.bar), to a [local +doc](local-doc.html), and to a [section heading in the current +doc](#an-h2-header). Here's a footnote [^1]. + +[^1]: Footnote text goes here. + +Tables can look like this: + +size material color +---- ------------ ------------ +9 leather brown +10 hemp canvas natural +11 glass transparent + +Table: Shoes, their sizes, and what they're made of + +(The above is the caption for the table.) Pandoc also supports +multi-line tables: + +-------- ----------------------- +keyword text +-------- ----------------------- +red Sunsets, apples, and + other red or reddish + things. + +green Leaves, grass, frogs + and other things it's + not easy being. +-------- ----------------------- + +A horizontal rule follows. + +*** + +Here's a definition list: + +apples + : Good for making applesauce. +oranges + : Citrus! +tomatoes + : There's no "e" in tomatoe. + +Again, text is indented 4 spaces. (Put a blank line between each +term/definition pair to spread things out more.) + +Here's a "line block": + +| Line one +| Line too +| Line tree + +and images can be specified like so: + +![example image](example-image.jpg "An exemplary image") + +Inline math equations go in like so: $\omega = d\phi / dt$. Display +math should get its own line and be put in in double-dollarsigns: + +$$I = \int \rho R^{2} dV$$ + +And note that you can backslash-escape any punctuation characters +which you wish to be displayed literally, ex.: \`foo\`, \*bar\*, etc. + +#### Images auto center: + +![Party](http://emojis.slackmojis.com/emojis/images/1475875185/1223/party-dinosaur.gif?1475875185) diff --git a/themes/hugo-classic/exampleSite/static/css/theme-override.css b/themes/hugo-classic/exampleSite/static/css/theme-override.css new file mode 100644 index 0000000..c761e7f --- /dev/null +++ b/themes/hugo-classic/exampleSite/static/css/theme-override.css @@ -0,0 +1 @@ +footer { font-size: 90%; font-family: monospace; } -- cgit