├── Style ├── Moudle │ ├── Sidebar │ │ ├── index_sidebar.css │ │ ├── sidebar_tags.css │ │ ├── article_sidebar.css │ │ ├── scroll-to-top.css │ │ ├── sidebar.css │ │ └── sidebar_classify.css │ ├── footer.css │ ├── comments.css │ └── navbar.css ├── Page │ ├── 404.css │ ├── post.css │ ├── article │ │ ├── article.css │ │ └── article_style.css │ ├── Template_about │ │ └── about.css │ ├── Template_works │ │ └── works.css │ └── index.css ├── public.css ├── theme.css └── shared-style.css ├── Image ├── icon.png └── 404Cover.png ├── screenshot.png ├── Javascript ├── nav_menu.js ├── comments.js ├── scroll_to_top.js ├── theme_switch.js ├── article_index.js └── jquery-3.5.1.min.js ├── .gitignore ├── Moudle ├── Sidebar │ ├── sidebar-tags.php │ ├── index_sidebar.php │ ├── sidebar-classify.php │ ├── article-sidebar.php │ └── scroll-to-top.php ├── footer.php ├── header.php ├── article.php ├── navbar.php └── comments.php ├── Template_about.php ├── page.php ├── post.php ├── README.md ├── LICENSE ├── Template_works.php ├── 404.php ├── index.php └── functions.php /Style/Moudle/Sidebar/index_sidebar.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Image/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HIM049/SimpleRR/HEAD/Image/icon.png -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HIM049/SimpleRR/HEAD/screenshot.png -------------------------------------------------------------------------------- /Image/404Cover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HIM049/SimpleRR/HEAD/Image/404Cover.png -------------------------------------------------------------------------------- /Javascript/nav_menu.js: -------------------------------------------------------------------------------- 1 | function navMenu() { 2 | document.getElementsByClassName("nav-list")[0].classList.toggle("unfold"); 3 | } -------------------------------------------------------------------------------- /Style/Moudle/Sidebar/sidebar_tags.css: -------------------------------------------------------------------------------- 1 | .sidebar-tag-tags { 2 | display: inline-block; 3 | font-weight: 700; 4 | padding-right: 5px; 5 | } -------------------------------------------------------------------------------- /Javascript/comments.js: -------------------------------------------------------------------------------- 1 | function switchDisplay() { 2 | switchCommentsButton.classList.toggle("unfold"); 3 | commentForm.classList.toggle("unfold"); 4 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # If you prefer the allow list template instead of the deny list, see community template: 2 | # https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore 3 | # 4 | # sftp 配置文件 5 | sftp.json 6 | 7 | -------------------------------------------------------------------------------- /Style/Page/404.css: -------------------------------------------------------------------------------- 1 | .content-box { 2 | margin: 120px auto; 3 | } 4 | 5 | .img-box { 6 | width: 350px; 7 | margin: 0 auto; 8 | } 9 | 10 | .content-box .text { 11 | text-align: center; 12 | font-size: 40px; 13 | font-weight: 700; 14 | } -------------------------------------------------------------------------------- /Style/Page/post.css: -------------------------------------------------------------------------------- 1 | .article-box { 2 | padding-right: 300px; 3 | } 4 | 5 | @media (max-width: 1030px) { 6 | .article-box { 7 | padding-right: 0; 8 | margin: 0 auto; 9 | } 10 | .sidebar { 11 | display: none; 12 | } 13 | } -------------------------------------------------------------------------------- /Style/Page/article/article.css: -------------------------------------------------------------------------------- 1 | .article-TopImg { 2 | width: 100%; 3 | height: auto; 4 | margin-bottom: 20px; 5 | border-radius: 10px; 6 | box-shadow: var(--shandow); 7 | } 8 | 9 | .article-title { 10 | font-size: 20px; 11 | font-weight: 800; 12 | padding: 20px; 13 | text-align: center; 14 | } -------------------------------------------------------------------------------- /Style/Moudle/Sidebar/article_sidebar.css: -------------------------------------------------------------------------------- 1 | .article-sidebar-index h2 { 2 | font-size: 18px; 3 | padding-bottom: 10px; 4 | } 5 | 6 | .atalog { 7 | padding: 10px; 8 | } 9 | 10 | .tag-box { 11 | padding: 10px; 12 | border-left: var(--sidebarBorder); 13 | } 14 | 15 | .tag-box:hover { 16 | border-left: var(--sidebarBorderHover); 17 | padding-left: 15px; 18 | } -------------------------------------------------------------------------------- /Style/Page/Template_about/about.css: -------------------------------------------------------------------------------- 1 | .article-box { 2 | max-width: 750px; 3 | padding-right: 300px; 4 | } 5 | 6 | .article-body { 7 | background: var(--cardBackgroundColour); 8 | padding: 20px; 9 | border-radius: 10px; 10 | box-shadow: var(--shandow); 11 | } 12 | 13 | @media (max-width: 1030px) { 14 | .article-box { 15 | padding-right: 0; 16 | margin: 0 auto; 17 | } 18 | } -------------------------------------------------------------------------------- /Style/Moudle/Sidebar/scroll-to-top.css: -------------------------------------------------------------------------------- 1 | .scroll-to-top { 2 | /* 回到顶部按钮盒子 */ 3 | display: flex; 4 | } 5 | 6 | .scroll-to-top a { 7 | /* 回到顶部按钮主体 */ 8 | width: 100%; 9 | display: flex; 10 | } 11 | 12 | .scroll-to-top a:hover { 13 | cursor: pointer; 14 | } 15 | 16 | .scroll-to-top a svg { 17 | padding: 10px; 18 | margin: 0 auto; 19 | } 20 | 21 | .scroll-to-top a svg path { 22 | /* 按钮图标颜色 */ 23 | fill: var(--fontColour); 24 | } 25 | 26 | .scroll-to-top a:hover svg path { 27 | fill: var(--primaryColour); 28 | } -------------------------------------------------------------------------------- /Style/Moudle/Sidebar/sidebar.css: -------------------------------------------------------------------------------- 1 | .sidebar { 2 | width: 280px; 3 | height: 100%; 4 | right: 0; 5 | top: 0px; 6 | transition: none; 7 | position: absolute; 8 | } 9 | 10 | .sidebar .sidebar-box { 11 | position: sticky; 12 | top: 20px; 13 | } 14 | 15 | .sidebar-fix { 16 | top: 20px; 17 | } 18 | 19 | .sidebar h2 { 20 | /* 侧边栏卡片标题 */ 21 | font-size: 18px; 22 | padding-bottom: 10px; 23 | } 24 | 25 | @media (max-width: 1030px) { 26 | .sidebar { 27 | position: unset; 28 | padding-top: 20px; 29 | } 30 | } -------------------------------------------------------------------------------- /Style/Moudle/footer.css: -------------------------------------------------------------------------------- 1 | .footer { 2 | /* background: var(--cardBackgroundColour); */ 3 | margin-top: 20px; 4 | height: 100px; 5 | border-radius: 10px; 6 | display: flex; 7 | align-items: center; 8 | /* box-shadow: var(--shandow); */ 9 | } 10 | 11 | .footer-text { 12 | margin: 0 auto; 13 | text-align: center; 14 | } 15 | 16 | .footer-text-line1 p { 17 | font-weight: 700; 18 | font-size: 16px; 19 | } 20 | 21 | .footer-text a { 22 | text-decoration: underline dotted; 23 | } 24 | 25 | .footer-text a:hover { 26 | color: var(--primaryColour); 27 | } -------------------------------------------------------------------------------- /Style/Moudle/Sidebar/sidebar_classify.css: -------------------------------------------------------------------------------- 1 | .index-sidebar-classify { 2 | /* 侧边栏分类栏 */ 3 | padding: 10px; 4 | } 5 | 6 | .index-sidebar-classify-li { 7 | display: flex; 8 | justify-content: space-between; 9 | padding: 10px; 10 | border-left: var(--sidebarBorder); 11 | background: var(--cardBackgroundColour); 12 | } 13 | 14 | .index-sidebar-classify-li:hover { 15 | border-left: var(--sidebarBorderHover); 16 | padding-left: 15px; 17 | /* background: linear-gradient(to right, var(--primaryColourPale), var(--cardBackgroundColour)); */ 18 | /* 这是一个废弃的方案,采用主题色过渡到卡片色作为选中强调 */ 19 | } -------------------------------------------------------------------------------- /Moudle/Sidebar/sidebar-tags.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Template_about.php: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | 15 | need('./Moudle/header.php'); ?> 16 | 17 | 18 | 19 | 20 | need('./Moudle/navbar.php'); ?> 21 |options->pageText(); ?>
16 |41 | 42 | fields->intro) { 44 | $this->fields->intro(); 45 | } 46 | ?> 47 |
48 |category(' '); ?> | date('Y-m-d'); ?>
50 |commentsNum(_t('暂无评论'), _t('已有 %d 条评论')); ?>
98 | 99 | have()): ?> 100 | listComments(); ?> 101 | pageNav('« 前一页', '后一页 »'); ?> 102 | 103 |
date('Y-m-d'); ?> reply("回复"); ?>
36 |