rubycentral-theme

所属分类:Ruby编程
开发工具:CSS
文件大小:0KB
下载次数:0
上传日期:2023-10-16 22:00:03
上 传 者sh-1993
说明:  虫草中心主题,,
(rubycentral theme,,)

文件列表:
.babelrc (103, 2023-12-05)
.browserslistrc (8, 2023-12-05)
.editorconfig (253, 2023-12-05)
.eslintrc.js (478, 2023-12-05)
.prettierrc (100, 2023-12-05)
.stylelintrc.json (7342, 2023-12-05)
assets/ (0, 2023-12-05)
assets/images/ (0, 2023-12-05)
assets/images/arrow.svg (1013, 2023-12-05)
assets/images/blurb-icon.svg (3308, 2023-12-05)
assets/images/close-menu.svg (911, 2023-12-05)
assets/images/community-icon.svg (4311, 2023-12-05)
assets/images/contact-icon.svg (3460, 2023-12-05)
assets/images/darkarrow.svg (1021, 2023-12-05)
assets/images/directors-icon.svg (3010, 2023-12-05)
assets/images/favicon.png (1715, 2023-12-05)
assets/images/gem-logo.svg (3301, 2023-12-05)
assets/images/history-icon.svg (2856, 2023-12-05)
assets/images/open-menu.svg (507, 2023-12-05)
assets/images/rails-icon.svg (5014, 2023-12-05)
assets/images/ruby-icon.svg (2205, 2023-12-05)
assets/images/rubygems-icon.svg (2273, 2023-12-05)
assets/images/staff-icon.svg (3435, 2023-12-05)
assets/images/support-icon.svg (4218, 2023-12-05)
assets/images/video-icon.svg (959, 2023-12-05)
author.hbs (0, 2023-12-05)
default.hbs (1955, 2023-12-05)
home.hbs (6631, 2023-12-05)
import-posts/ (0, 2023-12-05)
import-posts/json-to-ghost.js (362, 2023-12-05)
import-posts/package-lock.json (45572, 2023-12-05)
import-posts/package.json (286, 2023-12-05)
import-posts/posts.yaml (672734, 2023-12-05)
... ...

# Ruby Central theme for Ghost ### Setup Clone this repo first, and set it up: ```bash git clone git@github.com:rubycentral/rubycentral-theme.git cd rubycentral-theme npm install ``` Then, set up a local Ghost install for development, and symlink in the theme: ```bash cd .. mkdir ghost-dev cd ghost-dev npm install -g ghost-cli ghost install local ``` Next, symlink from the theme checkout to your local Ghost themes folder: ``` bash # in /ghost-dev ln -s [absolute path on your machine]/rubycentral-theme ./content/themes/rubycentral-theme ghost restart ``` Now, you need to activate the symlinked theme. 1. From a fresh install, you'll need to create a fake account, like `me@example.com` and password `123abc123abc`. Go to [http://localhost:2368/ghost/#/setup](http://localhost:2368/ghost/#/setup). 1. Open your local Ghost theme settings, by default [localhost:2368/ghost/#/settings/design/change-theme](http://localhost:2368/ghost/#/settings/design/change-theme). 1. Click the "Advanced" button in the top right. 1. Push "Activate" for `rubycentral-theme`. If you don't see it, it's not symlinked properly. 1. Browse to [localhost:2368](http://localhost:2368) and you should now see the theme, but with no content. The example posts may not be styled properly, this is ok. Finally, to seed your local Ghost install with directors, staff, and posts, you will need to import everything in `imports/`. 1. Open your local Ghost experimental settings at [localhost:2368/ghost/#/settings/labs](http://localhost:2368/ghost/#/settings/labs) 1. Go to [https://rubycentral.ghost.io/ghost/#/settings/labs] and click "Export your content". You should get a `.json` file locally. 1. On the same page, click "download redirects" and "download routes" also. We will upload these too. 1. Click "Open Importer", and then upload the `.json` file. 1. Click "Upload redirects YAML/JSON" and choose `redirects.yaml`. 1. Click "Upload routes YAML" and choose `routes.yaml`. 1. In `/rubycentral-theme`, start the live reload server and compile your JS/CSS assets, and watch for changes: `npm run dev`. If you do not do this, your text will look unstyled. 1. Wait a few moments and run `ghost restart`. You should now see images and content, including posts. ### Development As you make changes, ideally your browser will automatically reload. You might have to refresh by hand after each change. If you can't see your changes, and you're sure that `npm run dev` is still going, you'll likely need to disable your browser's caching. Go to the Network tab in your dev tools and toggle "Disable cache". ### Deployment The theme will automatically check, zip, and upload to Ghost via GitHub Actions. If you want to try it yourself locally: ```bash # Fix any CSS issues, compile your JS/CSS assets for production, and create a ZIP file npm run zip # Scan your theme for potential incompatibilties with gscan npm run check ```

近期下载者

相关文件


收藏者