## [Unreleased]
### Added
## [Unreleased]
### Added
+- JSDoc config
+- Eslint config
- Binary to add and update blog posts
- Template for index
- Static Files
- Binary to add and update blog posts
- Template for index
- Static Files
`blog --publish`
Will publish the blog.
`blog --publish`
Will publish the blog.
+
+## How to publish
+
+At the moment, the app does not include any publishers. [surge][surge] is an easy
+way to do it, just point it to your static directory.
+
+
+[surge]: https://surge.sh
}
if (argument === 'publish') {
}
if (argument === 'publish') {
- await internals.blog.update(value);
+ await internals.blog.publish(value);
--- /dev/null
+'use strict';
+
+/* globals window */
+
+((window) => {
+
+ const internals = {
+ kEntryPoint: '.event-details',
+
+ // Application entry point, for now just band to keyboard
+
+ main() {
+
+ window.document.addEventListener('keydown', internals._onKeyDown);
+ },
+
+ // Handles key events to point to the correct blog post.
+
+ _onKeyDown(event) {
+
+ if (['1','2','3'].indexOf(event.key) > -1) {
+ window.location.hash = event.key;
+ }
+ }
+ };
+
+ window.addEventListener('load', internals.main);
+})(window);
+ <script src="/js/blog.js"></script>
+
<link href="css/style.css" rel="stylesheet">
</head>
<link href="css/style.css" rel="stylesheet">
</head>