diff --git a/_site/content/posts/modules/hackernews.md b/_site/content/posts/modules/hackernews.md new file mode 100644 index 00000000..5f137a23 --- /dev/null +++ b/_site/content/posts/modules/hackernews.md @@ -0,0 +1,74 @@ +--- +title: "Hacker News" +date: 2018-08-02T16:36:08-04:00 +draft: false +--- + +Added in `v0.1.2`. + +Displays stories from Hacker News. + +hackernews screenshot + +## Source Code + +```bash +wtf/hackernews/ +``` + +## Keyboard Commands + +Key: `[return]`
+Action: Open the selected story in the browser. + +Key: `j`
+Action: Select the next story in the list. + +Key: `k`
+Action: Select the previous story in the list. + +Key: `r`
+Action: Refresh the data. + +Key: `↓`
+Action: Select the next story in the list. + +Key: `↑`
+Action: Select the previous story in the list. + +## Configuration + +```yaml +hackernews: + enabled: true + numberOfStories: 10 + position: + top: 4 + left: 1 + height: 1 + width: 2 + storyType: top + refreshInterval: 900 +``` + +### Attributes + +`enabled`
+Determines whether or not this module is executed and if its data displayed onscreen.
+Values: `true`, `false`. + +`numberOfStories`
+_Optional_
+Defines number of stories to be displayed. Default is `10`
+ +`position`
+Defines where in the grid this module's widget will be displayed.
+ +`storyType`
+_Optional_
+Values: `new`, `top`, `job`, `ask` + +`refreshInterval`
+How often, in seconds, this module will update its data.
+Values: A positive integer, `0..n`. diff --git a/_site/static/imgs/modules/hackernews.png b/_site/static/imgs/modules/hackernews.png new file mode 100644 index 00000000..899d4cb5 Binary files /dev/null and b/_site/static/imgs/modules/hackernews.png differ diff --git a/_site/themes/hyde-hyde/layouts/partials/sidebar.html b/_site/themes/hyde-hyde/layouts/partials/sidebar.html index 67d7c189..438647a7 100644 --- a/_site/themes/hyde-hyde/layouts/partials/sidebar.html +++ b/_site/themes/hyde-hyde/layouts/partials/sidebar.html @@ -29,6 +29,7 @@ + diff --git a/docs/404.html b/docs/404.html index 1fb112cd..ecafbfe3 100644 --- a/docs/404.html +++ b/docs/404.html @@ -82,6 +82,7 @@ height="0" width="0" style="display:none;visibility:hidden"> + diff --git a/docs/categories/index.html b/docs/categories/index.html index 6c4eb6ec..a481fa53 100644 --- a/docs/categories/index.html +++ b/docs/categories/index.html @@ -84,6 +84,7 @@ height="0" width="0" style="display:none;visibility:hidden"> + diff --git a/docs/imgs/modules/hackernews.png b/docs/imgs/modules/hackernews.png new file mode 100644 index 00000000..899d4cb5 Binary files /dev/null and b/docs/imgs/modules/hackernews.png differ diff --git a/docs/index.html b/docs/index.html index cbf5cf1b..17acc8a8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -83,6 +83,7 @@ height="0" width="0" style="display:none;visibility:hidden"> + diff --git a/docs/index.xml b/docs/index.xml index 900a47b4..d80fa280 100644 --- a/docs/index.xml +++ b/docs/index.xml @@ -6,11 +6,27 @@ Recent content on WTF - A Terminal Dashboard Hugo -- gohugo.io en-us - Tue, 31 Jul 2018 20:21:37 -0700 + Thu, 02 Aug 2018 16:36:08 -0400 + + Hacker News + https://wtfutil.com/posts/modules/hackernews/ + Thu, 02 Aug 2018 16:36:08 -0400 + + https://wtfutil.com/posts/modules/hackernews/ + Added in v0.1.2. +Displays stories from Hacker News. +Source Code wtf/hackernews/ Keyboard Commands Key: [return] Action: Open the selected story in the browser. +Key: j Action: Select the next story in the list. +Key: k Action: Select the previous story in the list. +Key: r Action: Refresh the data. +Key: ↓ Action: Select the next story in the list. +Key: ↑ Action: Select the previous story in the list. + + Twitter https://wtfutil.com/posts/modules/twitter/ diff --git a/docs/posts/configuration/attributes/index.html b/docs/posts/configuration/attributes/index.html index 00c977b9..ba4470b2 100644 --- a/docs/posts/configuration/attributes/index.html +++ b/docs/posts/configuration/attributes/index.html @@ -82,6 +82,7 @@ height="0" width="0" style="display:none;visibility:hidden"> + diff --git a/docs/posts/configuration/index.html b/docs/posts/configuration/index.html index a8797e56..6df824d6 100644 --- a/docs/posts/configuration/index.html +++ b/docs/posts/configuration/index.html @@ -82,6 +82,7 @@ height="0" width="0" style="display:none;visibility:hidden"> + diff --git a/docs/posts/configuration/iterm2/index.html b/docs/posts/configuration/iterm2/index.html index 7eddd5b9..18d1b895 100644 --- a/docs/posts/configuration/iterm2/index.html +++ b/docs/posts/configuration/iterm2/index.html @@ -82,6 +82,7 @@ height="0" width="0" style="display:none;visibility:hidden"> + diff --git a/docs/posts/glossary/index.html b/docs/posts/glossary/index.html index ebf031b1..5349138d 100644 --- a/docs/posts/glossary/index.html +++ b/docs/posts/glossary/index.html @@ -82,6 +82,7 @@ height="0" width="0" style="display:none;visibility:hidden"> + diff --git a/docs/posts/index.html b/docs/posts/index.html index a909ba5b..6f66b37f 100644 --- a/docs/posts/index.html +++ b/docs/posts/index.html @@ -84,6 +84,7 @@ height="0" width="0" style="display:none;visibility:hidden"> + @@ -123,6 +124,13 @@ height="0" width="0" style="display:none;visibility:hidden">

Posts