Skip to content

Commit

Permalink
MAJOR overhaul to system
Browse files Browse the repository at this point in the history
Fixes:

Images/hyperlinks within meta tags
chrisdiana/cms.js#95

Google crawler issues
chrisdiana/cms.js#93

URLs using history instead of hashes
chrisdiana/cms.js#80

Also:
Embedded marked in the example as a default option for users
Implement github CI on pushes to verify repo
Include example site in deployed package
Switch onroute and onload to be separate methods outside of the config
object
Add dynamic page titles based on content
Add dynamic Last-Modified headers for automatic post dates
Add support for nested content
Add support for paths in the URL
Retool search to support searching body content
Add method to retrieve all tags for a given collection
Add SEO-specific page title (text that displays in the browser for the
page)
Add support for images within metadata (goes along with the bugfix)
Fix onroute to only be called AFTER the content has been rendered
Add debug logging method
  • Loading branch information
cdp1337 committed Nov 8, 2022
1 parent 0dd9d80 commit cba1809
Show file tree
Hide file tree
Showing 31 changed files with 9,988 additions and 1,771 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
["@babel/env", {
"modules": false
}]
],
]
}
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: CMS.JS CI Test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
# Install dependencies in a ci mode
- run: npm ci
# Check for issues and compile the base code
- run: npm run compile
# Minify the application (to ensure minification works without error)
- run: npm run minify
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.DS_Store
node_modules/*
release/*
release/*.tgz
*.swp
npm-debug.log
examples/js/cms.js

23 changes: 20 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ CMS.js supports two website modes, Github and Server. Host your website on Githu

1. Clone the [starter repo](https://github.com/chrisdiana/cms.js-starter): `git clone https://github.com/chrisdiana/cms.js-starter.git` or download the [latest release here](https://github.com/chrisdiana/cms.js/releases/latest)
2. Configure `js/config.js` to your liking
3. Make sure to set your Github settings in `js/config.js` if using Github mode
4. If using Github mode, create a new branch from your master or working branch called `gh-pages` (Github's default branch for hosting)
5. Visit your site! (which should be located at `https://yourusername.github.io/cms.js-starter`)
3. Configure `.htaccess` to your web URL path if installed in a subdirectory
4. Make sure to set your Github settings in `js/config.js` if using Github mode
5. If using Github mode, create a new branch from your master or working branch called `gh-pages` (Github's default branch for hosting)
6. Visit your site! (which should be located at `https://yourusername.github.io/cms.js-starter`)


## CDN
Expand Down Expand Up @@ -112,3 +113,19 @@ All forms of contribution are welcome: bug reports, bug fixes, pull requests and
## List of contributors

You can find the list of contributors [here](https://github.com/chrisdiana/cms.js/graphs/contributors).


## Building

### Instructions for Windows

@todo, (I don't have windows, sorry)

### Instructions for Debian/Ubuntu

```bash
sudo apt install npm
# from within the cms.js project directory,
NODE_ENV=dev npm install
sudo a2enmod include rewrite
```
Loading

0 comments on commit cba1809

Please sign in to comment.