diff --git a/layout/common/article.ftl b/layout/common/article.ftl
index 7cd0443..f6dccb0 100644
--- a/layout/common/article.ftl
+++ b/layout/common/article.ftl
@@ -4,15 +4,15 @@
style="display: block"#if> >
<#if is_post?? || is_page?? || is_sheet??>
<#else >
- <#if post.thumbnail?? && post.thumbnail!='' && (settings.post_thumbnail_enable?? && settings.post_thumbnail_enable)>
+ <#if check_post_thumbnail_enable()>
<#if index>
-
+
<#else>
-
+
#if>
diff --git a/layout/common/head.ftl b/layout/common/head.ftl
index eaa043d..c7026b3 100644
--- a/layout/common/head.ftl
+++ b/layout/common/head.ftl
@@ -5,4 +5,26 @@
<#else>
<#assign theme_base = settings.theme_static_base>
#if>
-#if>
\ No newline at end of file
+#if>
+
+<#function check_post_thumbnail_enable>
+ <#return (settings.post_thumbnail_enable?? && settings.post_thumbnail_enable != 'false')>
+#function>
+
+<#assign time_count = 0>
+<#function post_thumbnail_url src>
+ <#assign time_count = time_count + 1>
+ <#if check_post_thumbnail_enable()>
+ <#assign timestamp = .now?long + time_count>
+ <#assign random_pic = timestamp?substring(timestamp?length - 1) + ".jpg">
+ <#if settings.post_thumbnail_enable == 'true'>
+ <#if src != ''>
+ <#return src>
+ <#else>
+ <#return theme_base + "/source/images/cover/" + random_pic>
+ #if>
+ <#elseif settings.post_thumbnail_enable == 'random_pic'>
+ <#return theme_base + "/source/images/cover/" + random_pic>
+ #if>
+ #if>
+#function>
\ No newline at end of file
diff --git a/layout/plugin/style.theme.ftl b/layout/plugin/style.theme.ftl
index 4b8f1ef..5999b1d 100644
--- a/layout/plugin/style.theme.ftl
+++ b/layout/plugin/style.theme.ftl
@@ -1,5 +1,14 @@
-