项目作者: Woorg

项目描述 :
fictional-university WordPress theme
高级语言: CSS
项目地址: git://github.com/Woorg/fictional-university.git
创建时间: 2021-05-03T20:45:51Z
项目社区:https://github.com/Woorg/fictional-university

开源协议:MIT License

下载


Sage

Packagist
devDependency Status
Build Status

Sage is a WordPress starter theme with a modern development workflow.

Features

See a working example at roots-example-project.com.

Requirements

Make sure all dependencies have been installed before moving on:

Theme installation

Install Sage using Composer from your WordPress themes directory (replace your-theme-name below with the name of your theme):

  1. # @ app/themes/ or wp-content/themes/
  2. $ composer create-project roots/sage your-theme-name

To install the latest development version of Sage, add dev-master to the end of the command:

  1. $ composer create-project roots/sage your-theme-name dev-master

During theme installation you will have options to update style.css theme headers, select a CSS framework, and configure Browsersync.

Theme structure

  1. themes/your-theme-name/ # → Root of your Sage based theme
  2. ├── app/ # → Theme PHP
  3. ├── Controllers/ # → Controller files
  4. ├── admin.php # → Theme customizer setup
  5. ├── filters.php # → Theme filters
  6. ├── helpers.php # → Helper functions
  7. └── setup.php # → Theme setup
  8. ├── composer.json # → Autoloading for `app/` files
  9. ├── composer.lock # → Composer lock file (never edit)
  10. ├── dist/ # → Built theme assets (never edit)
  11. ├── node_modules/ # → Node.js packages (never edit)
  12. ├── package.json # → Node.js dependencies and scripts
  13. ├── resources/ # → Theme assets and templates
  14. ├── assets/ # → Front-end assets
  15. ├── config.json # → Settings for compiled assets
  16. ├── build/ # → Webpack and ESLint config
  17. ├── fonts/ # → Theme fonts
  18. ├── images/ # → Theme images
  19. ├── scripts/ # → Theme JS
  20. └── styles/ # → Theme stylesheets
  21. ├── functions.php # → Composer autoloader, theme includes
  22. ├── index.php # → Never manually edit
  23. ├── screenshot.png # → Theme screenshot for WP admin
  24. ├── style.css # → Theme meta information
  25. └── views/ # → Theme templates
  26. ├── layouts/ # → Base templates
  27. └── partials/ # → Partial templates
  28. └── vendor/ # → Composer packages (never edit)

Theme setup

Edit app/setup.php to enable or disable theme features, setup navigation menus, post thumbnail sizes, and sidebars.

Theme development

  • Run yarn from the theme directory to install dependencies
  • Update resources/assets/config.json settings:
    • devUrl should reflect your local development hostname
    • publicPath should reflect your WordPress folder structure (/wp-content/themes/sage for non-Bedrock installs)

Build commands

  • yarn start — Compile assets when file changes are made, start Browsersync session
  • yarn build — Compile and optimize the files in your assets directory
  • yarn build:production — Compile assets for production

Documentation

Contributing

Contributions are welcome from everyone. We have contributing guidelines to help you get started.

Sage sponsors

Help support our open-source development efforts by becoming a patron.

Kinsta KM Digital itineris Helsingborg Design LAB

Community

Keep track of development and community news.