diff --git a/database/db.js b/database/db.js index 23ddd4b..2a1a14a 100644 --- a/database/db.js +++ b/database/db.js @@ -42,7 +42,7 @@ const init = function (db) { table.integer('enabled') table.integer('timestamp') }).then(() => { - db.table('users').where({username: 'root'}).then((user) => { + db.table('users').where({ username: 'root' }).then((user) => { if (user.length > 0) { return } require('bcrypt').hash('root', 10, function (error, hash) { diff --git a/public/css/home.css b/public/css/home.css index 8c329c5..5ccc1fd 100644 --- a/public/css/home.css +++ b/public/css/home.css @@ -161,3 +161,8 @@ img[data-dz-thumbnail] { padding-left: 0.25rem; padding-right: 0.25rem; } + +#linksColumn>span { + padding: 0 0.3rem; + color: #7f8c8d; +} diff --git a/views/_globals.njk b/views/_globals.njk index e943356..2e8e82b 100644 --- a/views/_globals.njk +++ b/views/_globals.njk @@ -7,14 +7,17 @@ {% set home_subtitle = "A modern self-hosted file upload service" %} {# - This will be appended to all CSS and JS files, and should be changed on every updates to make sure clients load the very latest version of them. + This will be appended to all CSS and JS files, + and should be changed on every updates to make sure clients load the very latest version of them. #} -{% set v = "hEmd7tjh6Q" %} +{% set v = "8HSPG0eoRX" %} {# These will be the links in the homepage and the No-JS uploader. - You may remove icons by removing "icon" property. It will then automatically use "attrs.title" as the display text. + You may remove icons by changing "home_icons" to false. + It will then automatically use "attrs.title" as the display text. #} +{% set home_icons = true %} {% set home_links = [ { attrs: { diff --git a/views/_layout.njk b/views/_layout.njk index be37d6c..4fcd550 100644 --- a/views/_layout.njk +++ b/views/_layout.njk @@ -15,7 +15,7 @@ {% endblock %} - {% block meta %} + {% block opengraph %} @@ -51,6 +51,7 @@
{% block content %}{% endblock %} + {% block scripts %} {% endblock %} diff --git a/views/_partial/links.njk b/views/_partial/links.njk index 517ee3f..6dc0478 100644 --- a/views/_partial/links.njk +++ b/views/_partial/links.njk @@ -1,3 +1,7 @@ +{% if plain_links or not globals.home_icons %} +{% set separator = (joiner('|')) %} +{% endif %} + {% macro attrs(obj) %} {% set space = joiner(' ') %} {% for id, val in obj -%} @@ -8,16 +12,17 @@