Johannes Zellner 11 лет назад
Сommit
c253443b3a
7 измененных файлов с 173 добавлено и 0 удалено
  1. 2 0
      .gitignore
  2. 30 0
      articles/foo.md
  3. 21 0
      gulpfile.js
  4. 16 0
      package.json
  5. BIN
      src/avatar.jpg
  6. 71 0
      src/index.css
  7. 33 0
      src/index.ejs

+ 2 - 0
.gitignore

@@ -0,0 +1,2 @@
+node_modules
+dist

+ 30 - 0
articles/foo.md

@@ -0,0 +1,30 @@
+
+# Organizing things in the digital era
+
+### Shared information
+
+We live in the day and age, where physical analog ways to store information is increasingly rare and appears to be only still relevant for personal style or where the medium is used to emphasize the meaning. Let it be literally set in stone, or specialty magazines, where the fun of having a physical medium gives further enjoyment. For most textual information it is irrelevant where it is stored, how it is produced and consumed, as long as the focus is on the information. It is the center piece and the content is the only reason a document serves any purpose.
+
+So what are the main points, why digital content replaced the analog media? What makes a todo list or a quote written in a digital format so much more useful, rather than a piece of paper? Surely for public and scientific knowledge, books and news, a huge advantage is the ability to ensure loss less copies and wide distribution without being bound to physical restrictions. With the omnipresence of smartphones the availability of access to that information is, even considering time slices without data connection, vastly higher. Just think how much weight one would have to carry around, to bring his current personal reading material (a book), paperwork, newspaper, magazines and so forth, on a daily commuting trip to work? How often do we access information, which we haven't considered important at the point in time when the information was physically accessible? Luckily this is no news for us, those darker days are gone. Now information is just a few lookups away, usually within seconds.
+
+This is the situation we currently live in, work related and public information is fully digitized. For scientific and general knowledge, stats and news, we can rely on current and high quality sources, available instantly.
+
+### Personal information
+
+But what about all the personal long- and short-term thoughts, the information we want to keep for ourselves, pieces of information, which we accumulate to the point where it might be shared, combined, reused or dismissed?
+
+A lot of that information ends up at social media streams, people just express themselves, much like you would be sitting in a bar with friends, sharing experiences, thoughts and ideas. But is all data firstly for other people? Do we not have relevant and often a lot of irrelevant, timely bound information we simply store for ourselves? This may contain a shopping list, a quote or poem we would keep, information about a person we know, a cooking recipe, thoughts, ideas and unfinished sentences waiting to be picked up again. What tools are there to help organizing, simply dump such diverse pieces of information, find it again on the spot and be able to transform, amend or also delete forever?
+
+Having distinct apps, containing information of just a single type, like a bookmark manager or todo lists, adds a lot of cognitive overhead, because one has to firstly categorize the information, find the right app, think about the way to enter the information. Finding the information back, often requires a very similar process, where we hope the category was obvious enough in the first place, otherwise we search through the wrong haystack (app) for the wanted data.
+
+### Share with yourself
+
+This is where [guacamoly](https://github.com/nebulade/guacamoly) shines. Like a blank sheet, ready to take embrace your mental dump. No categorization required, but the ability to quickly add hash tags. A single place to put the information and move on.
+
+Accessing the information resembles a social news feed. This allows hassle free lookup of short-time information. The familiar tagging as well as regular full text search, has proven to work very well in other situations, no need to think upfront about format and categories.
+
+Bringing the great way of data handling in social media into the truly personal space, allows us to finally enjoy all the perks we are already used to from our public and work life.
+
+[![Install](https://cloudron.io/img/button32.png)](https://cloudron.io/button.html?app=de.nebulon.guacamoly)
+
+Try out *guacamoly* on your Cloudron.

+ 21 - 0
gulpfile.js

@@ -0,0 +1,21 @@
+var ejs = require('gulp-ejs'),
+    gulp = require('gulp'),
+    fs = require('fs'),
+    md = require('markdown-it')();
+
+
+gulp.task('default', function () {
+    var data = {
+        articles: [{
+            content: md.render(fs.readFileSync('./articles/foo.md').toString(), {
+                html: true,
+                linkify: true,
+                typographer: true
+            })
+        }]
+    };
+
+    gulp.src('./src/*.ejs').pipe(ejs(data)).pipe(gulp.dest('./dist/'));
+    gulp.src('./src/*.css').pipe(gulp.dest('./dist/'));
+    gulp.src('./src/*.jpg').pipe(gulp.dest('./dist/'));
+});

+ 16 - 0
package.json

@@ -0,0 +1,16 @@
+{
+  "name": "blog",
+  "version": "1.0.0",
+  "description": "",
+  "main": "index.js",
+  "scripts": {
+    "test": "echo \"Error: no test specified\" && exit 1"
+  },
+  "author": "",
+  "license": "ISC",
+  "devDependencies": {
+    "gulp": "^3.9.0",
+    "gulp-ejs": "^1.2.2",
+    "markdown-it": "^5.1.0"
+  }
+}

BIN
src/avatar.jpg


+ 71 - 0
src/index.css

@@ -0,0 +1,71 @@
+html, body {
+    width: 100%;
+    padding: 0;
+    margin: 0;
+    font-family: 'Arimo', sans-serif;
+    color: rgba(0, 0, 0, 0.8);
+}
+
+a {
+    text-decoration: none;
+}
+
+.container {
+    width: 768px;
+    padding: 100px 0;
+    margin: auto;
+}
+
+.time {
+    font-size: small;
+    text-align: right;
+}
+
+article {
+    width: 100%;
+    font-size: 21px;
+}
+
+nav {
+    display: block;
+    position: fixed;
+    top: 32px;
+    width: 100%;
+    height: 64px;
+    text-align: right;
+}
+
+.author {
+    display: inline-block;
+    margin: 0 32px;
+    height: 64px;
+    width: 64px;
+    overflow: hidden;
+    white-space: nowrap;
+    color: transparent;
+    transition: all 500ms ease-in-out;
+    opacity: 0.5;
+}
+
+.author:hover {
+    color: rgba(0, 0, 0, 0.8);
+    width: 300px;
+    opacity: 1;
+}
+
+.name {
+    display: inline-block;
+    vertical-align: middle;
+    text-align: left;
+}
+
+.avatar {
+    display: inline-block;
+    vertical-align: middle;
+    width: 64px;
+    height: 64px;
+    border-radius: 32px;
+    background-image: url('avatar.jpg');
+    background-position: center;
+    background-size: cover;
+}

+ 33 - 0
src/index.ejs

@@ -0,0 +1,33 @@
+<html>
+
+<head>
+    <title> Thinking while walking </title>
+
+    <link href='https://fonts.googleapis.com/css?family=Arimo' rel='stylesheet' type='text/css'>
+
+    <link rel="stylesheet" media="all" href="index.css">
+</head>
+
+<body>
+
+<nav>
+    <div class="author">
+        <div class="avatar"></div>
+        <div class="name">
+            Johannes Zellner<br/>
+            <a href="https://cloudron.io">cloudron.io</a>
+        </div>
+    </div>
+</nav>
+
+<div class="container">
+    <article>
+        <div class="time">10th of January, 2016</div>
+    <% articles.forEach(function (article) { %>
+        <%- article.content %>
+    <% }) %>
+    </article>
+</div>
+
+</body>
+</html>