https://github.com/textpattern/textpattern-com-website
Official website of the Textpattern project.
https://github.com/textpattern/textpattern-com-website
textpattern textpattern-website web-design website
Last synced: 6 months ago
JSON representation
Official website of the Textpattern project.
- Host: GitHub
- URL: https://github.com/textpattern/textpattern-com-website
- Owner: textpattern
- License: gpl-2.0
- Created: 2013-07-05T07:14:32.000Z (over 12 years ago)
- Default Branch: main
- Last Pushed: 2025-04-28T11:44:41.000Z (9 months ago)
- Last Synced: 2025-04-29T15:31:50.776Z (9 months ago)
- Topics: textpattern, textpattern-website, web-design, website
- Language: JavaScript
- Homepage: https://textpattern.com
- Size: 20.2 MB
- Stars: 24
- Watchers: 4
- Forks: 8
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Textpattern.com website
Official 2017+ website of the [Textpattern](https://textpattern.com/) project. **Requires Textpattern 4.8.5 or later.**
## Supported web browsers
- Chrome, Edge, Firefox, Safari and Opera the last two recent stable releases.
- Firefox ESR latest major point release.
Older versions of the above and other browsers may work, but these are the ones we verify.
## Requirements
Building this repository requires:
- [Node.js](https://nodejs.org/)
- [Grunt](https://gruntjs.com/)
## Setup
### Installing required tools
The project uses [Grunt](https://gruntjs.com/) to run tasks and [Sass](https://sass-lang.com/) for CSS pre-processing. First make sure you have base dependencies installed: [Node.js](https://nodejs.org/) and [Grunt](https://gruntjs.com/). You can install Node using the [installer](https://nodejs.org/) and Grunt with npm:
```ShellSession
$ npm install -g grunt-cli
```
Consult the Grunt documentation for more instructions if necessary.
### Installing dependencies
After you have the base dependencies taken care of, you can install the project's dependencies. Navigate to the project's directory, and run the dependency manager:
```ShellSession
$ cd textpattern-com-website
$ npm install
```
## Building
This repository hosts sources and needs to be built before it can be used. After you have installed all dependencies, you will be able to run tasks using Grunt, including building:
```ShellSession
$ grunt @task@
```
Where the `@task@` is either `build` or `watch`.
- The `build` task builds the project.
- The `watch` task will launch a task that watches for file changes; the project is then automatically built if a source file is modified.
## Shortcodes
Textpattern 4.7 introduced support for user-definable `` attributes (and also the short tags syntax ``), allowing for our own version of 'shortcodes' within articles (**note:** remember to also use `notextile.` when within Textile content). This site uses the following tags:
### Image
To create a HTML5 image snippet:
`id` accepts either a single image ID, or comma separated image IDs if you want multiple images. For blogs/articles the ideal image width is `832` pixels for the standard resolution version and `1664` pixels for the double resolution version (which is optional, but should be provided if possible).
`dark-option` is optional (for a single image ID), for if you need to provide an alternative image when website is in Dark Mode.
`set-width` and `set-height` are optional (for a single image ID), for if you need to provide explicit maximum dimensions (in pixels) for an image. Otherwise (when not set), images default to being fully responsive (expanding to fill their container).
For example, comma separated image IDs:
For example, image with an alternative dark theme version and a set width and height in pixels:
### Video
To create a HTML5 video snippet:
`poster-url`, `name`, `description` and `duration-seconds` are optional, but should be provided if possible to provide valid Schema.org microdata. If not used, remove those attributes from your shortcode.
For example:
### File
To create a file download snippet:
`category` and `filename` are interchangeable (use one or the other, where appropriate) - if both are provided then `category` is used in preference and `filename` is ignored.
`large-button` is optional. If set to `1`, this will render a larger style button.
For example:
## Plugins used
- [`etc_cache`](https://github.com/etc-plugins/etc_cache)
- [`smd_thumbnail`](https://github.com/bloke/smd_thumbnail)
## License
Licensed under the [GPLv2 license](https://github.com/textpattern/textpattern-com-website/blob/main/LICENSE).