Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
textpattern-com
Advanced tools
Official 2017+ website of the Textpattern project. Requires Textpattern 4.8.5 or later.
Older versions of the above and other browsers may work, but these are the ones we verify.
Building this repository requires:
The project uses Grunt to run tasks and Sass for CSS pre-processing. First make sure you have base dependencies installed: Node.js and Grunt. You can install Node using the installer and Grunt with npm:
$ npm install -g grunt-cli
Consult the Grunt documentation for more instructions if necessary.
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:
$ cd textpattern-com-website
$ npm install
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:
$ grunt @task@
Where the @task@
is either build
or watch
.
build
task builds the project.watch
task will launch a task that watches for file changes; the project is then automatically built if a source file is modified.After you have installed all dependencies, you can run Squoosh on images to generate modern image formats quickly, for example:
$ npx squoosh-cli --webp '{"quality":50}' src/img-originals/76.png -d public/img/
See Squoosh CLI for more detailed documentation, plus encoding options. Note you should ideally optimize your images manually (per-image) to obtain the best compression level versus quality ratio.
Textpattern 4.7 introduced support for user-definable <txp:output_form />
attributes (and also the short tags syntax <txp::...>
), 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:
To create a HTML5 image snippet:
<txp::media_image id="" dark-option="" set-width="" set-height="" />
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:
<txp::media_image id="41, 42, 50" />
For example, image with an alternative dark theme version and a set width and height in pixels:
<txp::media_image id="51" dark-option="52" set-width="400" set-height="125" />
To create a HTML5 video snippet:
<txp::media_video width="" height="" mp4-url="" webm-url="" poster-url="" name="" description="" duration-seconds=""/>
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:
<txp::media_video width="640" height="480" mp4-url="/video/video1.mp4" webm-url="/video/video1.webm" poster-url="/video/video1-poster.png" name="Cat video" description="My great video of cats." duration-seconds="20" />
To create a file download snippet:
<txp::media_file category="" filename="" large-button="" />
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:
<txp::media_file category="current-release-zip" large-button="1" />
Licensed under the GPLv2 license.
FAQs
Official website of the Textpattern project.
The npm package textpattern-com receives a total of 2 weekly downloads. As such, textpattern-com popularity was classified as not popular.
We found that textpattern-com demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.