+ quote;?> ++ + + + quote) && $teaserType === 'trimmed'):?> +
+ quote;?> ++ + + body, $p->url);?> +
diff --git a/config/config.ini.example b/config/config.ini.example
index e6acaf5e..972f790e 100644
--- a/config/config.ini.example
+++ b/config/config.ini.example
@@ -199,7 +199,7 @@ autosave.enable = "true"
show.version = "true"
; Set the theme here
-views.root = "themes/twentysixteen"
+views.root = "themes/tailwind"
; Framework config. No need to edit.
views.layout = "layout"
diff --git a/install.php b/install.php
index 3aa714cb..da1768de 100644
--- a/install.php
+++ b/install.php
@@ -397,9 +397,9 @@ protected function runForm()
-
-
-
+
+
+
diff --git a/robots.txt b/robots.txt
index 28a0a6be..f3f9b23d 100644
--- a/robots.txt
+++ b/robots.txt
@@ -18,31 +18,19 @@
User-agent: *
+# Allow directories
+Allow: /system/resources/
+
# Disallow directories
Disallow: /config/
Disallow: /system/
-Disallow: /themes/
-Disallow: /vendor/
Disallow: /cache/
+Disallow: /lang/
# Disallow files
-Disallow: /changelog.txt
Disallow: /composer.json
Disallow: /composer.lock
Disallow: /composer.phar
# Disallow paths
-Disallow: /search/
Disallow: /admin/
-
-# Allow themes
-Allow: /themes/*/css/
-Allow: /themes/*/images/
-Allow: /themes/*/img/
-Allow: /themes/*/js/
-Allow: /themes/*/fonts/
-
-# Allow content images
-Allow: /content/images/*.jpg
-Allow: /content/images/*.png
-Allow: /content/images/*.gif
\ No newline at end of file
diff --git a/system/admin/views/update.html.php b/system/admin/views/update.html.php
index 2f72fd81..1fe412fc 100644
--- a/system/admin/views/update.html.php
+++ b/system/admin/views/update.html.php
@@ -7,7 +7,7 @@
$updater = new HubUpdater(array(
'name' => 'danpros/htmly',
- 'prerelease' => !!config("prerelease"),
+ 'prerelease' => config("prerelease"),
));
$dir = 'cache/';
diff --git a/system/htmly.php b/system/htmly.php
index 7810be91..90e88530 100644
--- a/system/htmly.php
+++ b/system/htmly.php
@@ -3,6 +3,9 @@
use PragmaRX\Google2FA\Google2FA;
+// Get search query. Redir to /search/
+get_search_query();
+
// Load the configuration file
config('source', $config_file);
@@ -19,9 +22,6 @@
// Publish scheduled post
publish_scheduled();
-// Get search query. Redir to /search/
-get_search_query();
-
// The front page of the blog
get('/index', function () {
diff --git a/system/resources/images/share-facebook.png b/system/resources/images/share-facebook.png
new file mode 100644
index 00000000..5541821e
Binary files /dev/null and b/system/resources/images/share-facebook.png differ
diff --git a/system/resources/images/share-twitter.png b/system/resources/images/share-twitter.png
new file mode 100644
index 00000000..26f102bd
Binary files /dev/null and b/system/resources/images/share-twitter.png differ
diff --git a/themes/clean/css/style.css b/themes/clean/css/style.css
index bd0afb0e..ad24c3e8 100644
--- a/themes/clean/css/style.css
+++ b/themes/clean/css/style.css
@@ -745,15 +745,11 @@ aside .copyright p {
}
.share a.twitter {
- background: url(../../readable/img/share-twitter.png) left top no-repeat;
+ background: url(../../../system/resources/images/share-twitter.png) left top no-repeat;
}
.share a.facebook {
- background: url(../../readable/img/share-facebook.png) left top no-repeat;
-}
-
-.share a.googleplus {
- background: url(../../readable/img/share-googleplus.png) left top no-repeat;
+ background: url(../../../system/resources/images/share-facebook.png) left top no-repeat;
}
.share a:hover {
diff --git a/themes/logs/css/style.css b/themes/logs/css/style.css
index 70c0415b..f615186b 100644
--- a/themes/logs/css/style.css
+++ b/themes/logs/css/style.css
@@ -553,15 +553,11 @@ ul li, ol li {
}
.share a.twitter {
- background: url(../../readable/img/share-twitter.png) left top no-repeat;
+ background: url(../../../system/resources/images/share-twitter.png) left top no-repeat;
}
.share a.facebook {
- background: url(../../readable/img/share-facebook.png) left top no-repeat;
-}
-
-.share a.googleplus {
- background: url(../../readable/img/share-googleplus.png) left top no-repeat;
+ background: url(../../../system/resources/images/share-facebook.png) left top no-repeat;
}
.share a:hover {
diff --git a/themes/tailwind/404-search.html.php b/themes/tailwind/404-search.html.php
new file mode 100644
index 00000000..571ebe2d
--- /dev/null
+++ b/themes/tailwind/404-search.html.php
@@ -0,0 +1,21 @@
+
+
Please search to find what you're looking for or visit our homepage instead.
+Please search to find what you're looking for or visit our homepage instead.
++ quote;?> ++ + + + quote) && $teaserType === 'trimmed'):?> +
+ quote;?> ++ + + body, $p->url);?> +
+ quote;?> ++ + + + quote) && $teaserType === 'trimmed'):?> +
+ quote;?> ++ + + body, $p->url);?> +