浏览代码

Jackson: Initial commit. (#5153)

* Jackson: Initial commit.
* Jackson: Add index.html to fix "Template part has been deleted or is unavailable" error. This can be removed when a fix lands in Gutenberg.

Co-authored-by: Jason Crist <jcrist@pbking.com>
alaczek 3 年之前
父节点
当前提交
b7aa6a64aa
共有 5 个文件被更改,包括 140 次插入0 次删除
  1. 32 0
      jackson/block-templates/index.html
  2. 31 0
      jackson/readme.txt
  3. 二进制
      jackson/screenshot.jpg
  4. 29 0
      jackson/style.css
  5. 48 0
      jackson/theme.json

+ 32 - 0
jackson/block-templates/index.html

@@ -0,0 +1,32 @@
+<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
+
+<!-- wp:query {"tagName":"main","layout":{"inherit":true}} -->
+<main class="wp-block-query">
+<!-- wp:post-template -->
+<!-- wp:group -->
+<div class="wp-block-group">
+	<!-- wp:post-title {"isLink":true} /-->
+	<!-- wp:post-featured-image {"isLink":true} /-->
+	<!-- wp:post-excerpt /-->
+	<!-- wp:template-part {"slug":"post-meta-icons"} /-->
+	<!-- wp:spacer {"height":40} -->
+	<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>
+	<!-- /wp:spacer -->
+</div>
+<!-- /wp:group -->
+<!-- /wp:post-template -->
+<!-- wp:group {"layout":{"inherit":true}} -->
+	<div class="wp-block-group">
+	<!-- wp:query-pagination -->
+		<!-- wp:query-pagination-previous /-->
+
+		<!-- wp:query-pagination-numbers /-->
+
+		<!-- wp:query-pagination-next /-->
+	<!-- /wp:query-pagination -->
+	</div>
+	<!-- /wp:group -->
+</main>
+<!-- /wp:query -->
+
+<!-- wp:template-part {"slug":"footer","tagName":"footer","className":"site-footer-container"} /-->

+ 31 - 0
jackson/readme.txt

@@ -0,0 +1,31 @@
+=== Jackson ===
+Contributors: Automattic
+Requires at least: 5.8
+Tested up to: 5.8
+Requires PHP: 5.7
+License: GPLv2 or later
+License URI: http://www.gnu.org/licenses/gpl-2.0.html
+
+== Description ==
+
+Jackson is a minimalist theme, designed for single-page websites. Its single post and page layouts have no header, navigation menus, or widgets by default, so the page you design in the WordPress editor is the same page you’ll see on the front end.
+
+== Changelog ==
+
+= 1.0.0 =
+* Initial release
+
+== Copyright ==
+
+Jackson WordPress Theme, (C) 2021 Automattic
+Jackson is distributed under the terms of the GNU GPL.
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.

二进制
jackson/screenshot.jpg


+ 29 - 0
jackson/style.css

@@ -0,0 +1,29 @@
+/*
+Theme Name: Jackson
+Theme URI: https://wordpress.com/theme/jackson
+Author: Automattic
+Author URI: https://automattic.com/
+Description: Jackson is a minimalist theme, designed for single-page websites.
+Requires at least: 5.8
+Tested up to: 5.8
+Requires PHP: 5.7
+Version: 1.0.0
+License: GNU General Public License v2 or later
+License URI: https://raw.githubusercontent.com/Automattic/themes/trunk/LICENSE
+Template: blockbase
+Text Domain: jackson
+Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks, auto-loading-homepage
+
+Jackson WordPress Theme, (C) 2021 Automattic, Inc.
+Jackson is distributed under the terms of the GNU GPL.
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+*/

+ 48 - 0
jackson/theme.json

@@ -0,0 +1,48 @@
+{
+    "version": 2,
+    "settings": {
+        "color": {
+            "palette": [
+                {
+                    "slug": "foreground",
+                    "color": "#000000",
+                    "name": "Foreground",
+                    "default": "#333333"
+                },
+                {
+                    "slug": "background",
+                    "color": "#ffffff",
+                    "name": "Background",
+                    "default": "#ffffff"
+                }
+            ]
+        },
+        "typography": {
+            "fontFamilies": [
+                {
+                    "fontFamily": "\"DM Sans\", sans-serif",
+                    "slug": "body-font",
+                    "name": "Body (DM Sans)",
+                    "google": "family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700\"",
+                    "fontSlug": "dm-sans"
+                },
+                {
+                    "fontFamily": "\"DM Sans\", sans-serif",
+                    "slug": "heading-font",
+                    "name": "Heading (DM Sans)",
+                    "google": "family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700\"",
+                    "fontSlug": "dm-sans"
+                }
+            ]
+        },
+        "custom": {
+			"color": {
+				"foreground": "var(--wp--preset--color--foreground)",
+				"background": "var(--wp--preset--color--background)",
+				"primary": "var(--wp--preset--color--foreground)",
+				"secondary": "var(--wp--preset--color--foreground)",
+				"tertiary": "var(--wp--preset--color--background)"
+			}
+        }
+    }
+}