Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/minimal-bootstrap-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Betz <zwbetz@gmail.com>2018-11-27 23:49:25 +0300
committerZachary Betz <zwbetz@gmail.com>2018-11-27 23:49:25 +0300
commit74322e9842342f0610e004cd4d7b5414bc54cde4 (patch)
treebd57e05ee62ce1a7a01284507514fbc9f4a3bfb1 /exampleSite
parentf7228138e3262f2d6195d5789ea78fd4bf420862 (diff)
Update example site date format. Move post publish date to below title link. Add dev notes on how to build site against theme locally. Remove an old post
Diffstat (limited to 'exampleSite')
-rw-r--r--exampleSite/config.toml8
-rw-r--r--exampleSite/content/contact.md2
-rw-r--r--exampleSite/content/post/make-a-beep-sound-when-console-outputs-certain-text.md61
3 files changed, 7 insertions, 64 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index f25fa5c..5cc51e9 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -16,7 +16,7 @@ enableGitInfo = false
navbarLinkColor = "rgba(255, 255, 255, 0.75)"
navbarLinkHoverColor = "rgba(255, 255, 255, 1)"
wrapperMaxWidth = "800px"
- customDateFormat = "January 2, 2006"
+ customDateFormat = "Jan 2, 2006"
customCodeStyle = true
customBlockquoteStyle = true
showPostSummary = false
@@ -40,4 +40,8 @@ enableGitInfo = false
[[menu.nav]]
name = "Contact"
url = "/contact/"
- weight = 3 \ No newline at end of file
+ weight = 3
+ [[menu.nav]]
+ name = "RSS"
+ url = "/index.xml"
+ weight = 4 \ No newline at end of file
diff --git a/exampleSite/content/contact.md b/exampleSite/content/contact.md
index 1f7be13..ff98cab 100644
--- a/exampleSite/content/contact.md
+++ b/exampleSite/content/contact.md
@@ -3,4 +3,4 @@ title = "Contact"
date = "2014-04-09"
+++
-Thanks for visiting this theme demo. If you're interested, checkout my other stuff over at <https://zwbetz.com/>. \ No newline at end of file
+Thanks for visiting this theme demo. If you're interested, checkout my other stuff over at <https://zwbetz.com> \ No newline at end of file
diff --git a/exampleSite/content/post/make-a-beep-sound-when-console-outputs-certain-text.md b/exampleSite/content/post/make-a-beep-sound-when-console-outputs-certain-text.md
deleted file mode 100644
index ac3d972..0000000
--- a/exampleSite/content/post/make-a-beep-sound-when-console-outputs-certain-text.md
+++ /dev/null
@@ -1,61 +0,0 @@
----
-title: "Make a beep sound when console outputs certain text"
-date: 2018-09-18T21:07:39-05:00
-publishdate: 2018-09-18
-lastmod: 2018-09-18
-draft: false
----
-
-Originally this was a question posed on the [hugo discussion forums](https://discourse.gohugo.io/t/can-hugo-server-notify-with-audio-on-error/14247).
-
-When running `hugo server`, the user wanted to be notified with a beep of any error messages that were output by the console.
-
-This isn't a use case for me personally but I thought it was a fun problem to solve.
-
----
-
-My original solution for Mac:
-
-```bash
-hugo server 2>&1 | tee /dev/tty | while read line ; do echo $line | say --rate=500 ; done
-```
-
-Explained:
-
-`hugo server 2>&1` -- Redirect `stderr` to `stdout`, then pipe `stdout`
-
-`tee /dev/tty` -- Pipe `stdout` while still showing it in the console
-
-`while read line ; do echo $line` -- Echo each line, then pipe it
-
-`say --rate=500` -- Use the Mac `say` command to read from `stdin` at a rate of 500 words per minute
-
----
-
-The user then mentioned he was on Windows, so I tweaked it and gave him additional instructions:
-
-1. Download and install [git bash](https://git-scm.com/downloads)
-2. Download [voice.exe](https://www.elifulkerson.com/projects/commandline-text-to-speech.php) then add it to your `PATH`
-3. In a git bash window run:
-
-```bash
-hugo server 2>&1 | tee /dev/tty | while read line ; do echo $line | if [[ $line = *"ERROR"* ]] ; then voice.exe --rate=10 ; fi ; done
-```
-
-Explained:
-
-`if [[ $line = *"ERROR"* ]] ; then voice.exe --rate=10 ; fi` -- This time, only speak the line if it contains the text `ERROR`. And since it's Windows, use `voice.exe` at its fasted rate of speech, `10`
-
----
-
-Finally, after more research, I came up with this solution to address the original question:
-
-```bash
-hugo server 2>&1 | tee /dev/tty | while read line ; do echo $line | if [[ $line = *"ERROR"* ]] ; then rundll32 user32.dll,MessageBeep ; fi ; done
-```
-
-Explained:
-
-`rundll32 user32.dll,MessageBeep` -- Instead of speaking the line, actually make a "beep" sound by using the [Windows MessageBeep function](https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-messagebeep)
-
-See [Windows Rundll and Rundll32 interface](https://support.microsoft.com/en-us/help/164787/info-windows-rundll-and-rundll32-interface) for more info.