From 1ae6e4be0339aba0754c2bbb2089cb60e757fe50 Mon Sep 17 00:00:00 2001 From: Skywt2003 Date: Wed, 28 Jul 2021 10:06:21 +0800 Subject: [PATCH] Compelete index.php & bugs fix --- assets/style.css | 14 +++++++++++++ header.php | 2 +- homepage.php | 51 +++++++++++++++++++++++++++++++----------------- 3 files changed, 48 insertions(+), 19 deletions(-) diff --git a/assets/style.css b/assets/style.css index b412f72..b770eae 100644 --- a/assets/style.css +++ b/assets/style.css @@ -61,4 +61,18 @@ code, pre { font-size: .9em; background: #f0f0f0; color: #444; +} + +.flex-container { + display: flex; + height: 100vh; + flex-flow: column nowrap; + justify-content: center; + align-items: center; + align-content: center; +} + +.flex-footer { + display: block; + } \ No newline at end of file diff --git a/header.php b/header.php index dac59c0..977dc62 100644 --- a/header.php +++ b/header.php @@ -87,7 +87,7 @@ options->frontPage, 'file') !== FALSE) {?> diff --git a/homepage.php b/homepage.php index d27d034..82b657c 100644 --- a/homepage.php +++ b/homepage.php @@ -13,12 +13,7 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit; - <?php $this->archiveTitle(array( - 'category' => _t('分类 %s 下的文章'), - 'search' => _t('包含关键字 %s 的文章'), - 'tag' => _t('标签 %s 下的文章'), - 'author' => _t('%s 发布的文章') - ), '', ' - '); ?><?php $this->options->title(); ?> + <?php $this->options->title(); ?> @@ -45,9 +40,9 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit; - + header(); ?> @@ -56,9 +51,9 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit; -
+
-