Add missing imports, reorder them alphabetically
This commit is contained in:
parent
fd714e93ff
commit
7ef89ae93d
4 changed files with 12 additions and 6 deletions
|
@ -1,8 +1,9 @@
|
||||||
|
import blog from Hablo.Config;
|
||||||
|
import Metadata;
|
||||||
|
import Remarkable;
|
||||||
|
import Template;
|
||||||
import * as Dom from UnitJS.Dom;
|
import * as Dom from UnitJS.Dom;
|
||||||
import * as Fun from UnitJS.Fun;
|
import * as Fun from UnitJS.Fun;
|
||||||
import Metadata;
|
|
||||||
import Template;
|
|
||||||
import Remarkable;
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
article: article,
|
article: article,
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
import blog from Hablo.Config;
|
||||||
|
import Template;
|
||||||
import * as Async from UnitJS.Async;
|
import * as Async from UnitJS.Async;
|
||||||
import * as Cache from UnitJS.Cache;
|
import * as Cache from UnitJS.Cache;
|
||||||
import * as Dom from UnitJS.Dom;
|
import * as Dom from UnitJS.Dom;
|
||||||
|
@ -101,7 +103,7 @@ function renderAnswers(comments) {
|
||||||
]),
|
]),
|
||||||
Dom.make('div', {
|
Dom.make('div', {
|
||||||
class: "metadata",
|
class: "metadata",
|
||||||
innerHTML: modules.template.render('metadata', {
|
innerHTML: Template.render('metadata', {
|
||||||
author: author(descendant.account.url, descendant.account.username),
|
author: author(descendant.account.url, descendant.account.username),
|
||||||
date: date(descendant.created_at)
|
date: date(descendant.created_at)
|
||||||
})
|
})
|
||||||
|
@ -148,7 +150,7 @@ function tags(key) {
|
||||||
function get(key) {
|
function get(key) {
|
||||||
return Dom.make('div', {
|
return Dom.make('div', {
|
||||||
class: "metadata",
|
class: "metadata",
|
||||||
innerHTML: modules.template.render('metadata', {
|
innerHTML: Template.render('metadata', {
|
||||||
author: author(key),
|
author: author(key),
|
||||||
date: date(key),
|
date: date(key),
|
||||||
tags: tags(key)
|
tags: tags(key)
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
|
import {article, articlesList} from DomRenderer;
|
||||||
|
import blog from Hablo.Config;
|
||||||
import * as Async from UnitJS.Async;
|
import * as Async from UnitJS.Async;
|
||||||
import * as Cache from UnitJS.Cache;
|
import * as Cache from UnitJS.Cache;
|
||||||
import * as Dom from UnitJS.Dom;
|
import * as Dom from UnitJS.Dom;
|
||||||
import * as Fun from UnitJS.Fun;
|
import * as Fun from UnitJS.Fun;
|
||||||
import {article, articlesList} from DomRenderer;
|
|
||||||
|
|
||||||
var articles = Cache.make(function(key) {
|
var articles = Cache.make(function(key) {
|
||||||
var url = ["", blog.path.articlesPath, key + '.md'].join('/');
|
var url = ["", blog.path.articlesPath, key + '.md'].join('/');
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
import blog from Hablo.Config;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
render: render
|
render: render
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue