*p5.brush
p5.brush.js is a versatile library for the p5.js ecosystem, tailored for artists, designers, and hobbyists who wish to explore natural textures in generative art. This library extends the drawing capa
A minimal, responsive, accessible and SEO-friendly Cecil blog theme.
Translation pending
PluginsTwig · JavaScriptGitHub @CecilappOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
Cecil Paper theme, a port of AstroPaper: minimal, responsive, accessible and SEO-friendly blog theme
Translation pending
Taken from the repository README
Loading the full README.
Read the full README ↗The Paper theme for Cecil is a minimal, responsive, accessible and SEO-friendly blog theme, ported from AstroPaper by Sat Naing.
BlogPosting), sitemap and Atom feeds:::note, :::tip, :::important, :::warning, :::caution…) and Cecil notes (steps, accordion, tabs, cards)Paper\PaperPlugin pluginAllow the theme installer plugin in the composer.json file of your Cecil project (required since Composer 2.2):
{
"config": {
"allow-plugins": {
"cecil/theme-installer": true
}
}
}
Then require the theme:
composer require cecil/theme-paper
Or download the latest archive and uncompress its content in
themes/paper, together with the darkmodetoggle theme inthemes/darkmodetoggle.
Add paper and darkmodetoggle in the theme section of your configuration file (cecil.yml):
theme:
- paper
- darkmodetoggle
Write your posts in pages/posts/, and disable the pagination of the homepage in pages/index.md (its content is the introduction of the homepage):
---
title: Hello
pagination: false
---
Welcome to my blog.
| Variable | Description |
|---|---|
title | Title of the post |
description | Description, used in the posts lists and the meta tags |
date | Publication date |
updated | Modification date (displayed when more recent than date) |
author | Author (site author by default) |
tags | Tags |
featured | Displays the post in the Featured section of the homepage |
draft | Unpublishes the post |
image | Open Graph image (otherwise an image is generated) |
hide_edit | Hides the Edit page link |
Add [toc] in the body of a post to display a collapsible table of contents.
Install the FlexSearch component theme to display a search button in the header:
composer require cecil/theme-flexsearch
theme:
- flexsearch
- paper
- darkmodetoggle
Options and their default values:
paper:
posts:
section: posts # section containing the blog posts
home: 4 # number of recent posts displayed on the homepage
dir: ltr # text direction: ltr or rtl
archives: true # displays the archives link in the header
back_button: true # displays the "Go back" button on posts
edit:
url: '' # e.g.: https://github.com/<user>/<repo>/edit/main/pages/ (empty to disable)
og:
dynamic: true # generates Open Graph images of posts (and of the site) without image
socials: [] # social links: [{name: github, url: 'https://github.com/username'}]
share: # share links of posts (`false` to disable)
- {name: whatsapp, url: 'https://wa.me/?text='}
- {name: facebook, url: 'https://www.facebook.com/sharer.php?u='}
- {name: x, url: 'https://x.com/intent/post?url='}
- {name: telegram, url: 'https://t.me/share/url?url='}
- {name: pinterest, url: 'https://pinterest.com/pin/create/button/?url='}
- {name: mail, url: 'mailto:?subject=See%20this%20post&body='}
Icons available for social and share links: github, x, linkedin, facebook, telegram, whatsapp, pinterest and mail (add your own in assets/paper/icons/<name>.svg).
The theme also sets these Cecil options:
taxonomies:
tags: tag
menus:
main: # the header menu (the homepage entry is not displayed)
- {id: index, enabled: false}
- {id: posts, name: Posts, url: posts, weight: 10}
- {id: tags, name: Tags, url: tags, weight: 20}
pages:
pagination:
max: 4 # posts per page
default:
archives: # the archives page (`published: false` to disable it)
path: archives
layout: archives
metatags:
articles: posts
[!NOTE] A
menus.mainlist defined by the site replaces the theme one: declare the Posts and Tags entries again.
If the posts section is not posts, set paper.posts.section, metatags.articles, and map the section to the posts layouts:
layouts:
sections:
blog: posts
When a post has no image, an Open Graph image (1200 × 628) is generated with its title, author and the site title, and published next to the post (og.png). Other pages use an image of the site (title and description) when the image option of the site is not set.
It requires the PHP GD extension with FreeType support. The background (assets/paper/og-background.png) and the fonts (assets/paper/fonts/) can be overridden by the site.
Override the CSS custom properties in a stylesheet of the site (extend the head_css block of page.html.twig):
:root, [data-theme='light'] {
--background: #fdfdfd;
--foreground: #282728;
--accent: #006cac;
--accent-foreground: #ffffff;
--muted: #e6e6e6;
--muted-foreground: #6b7280;
--border: #ece9e9;
}
[data-theme='dark'] {
--background: #212737;
--foreground: #eaedf3;
--accent: #ff6b01;
--accent-foreground: #ffffff;
--muted: #343f60;
--muted-foreground: #afb9ca;
--border: #ab4b08;
}
The font family can be changed with --paper-font.
The theme is translated in English and French (translations/messages.fr.yml). Add your own translations in the translations/ directory of the site.
Styles are built with Tailwind CSS (assets/paper/tailwind.css → assets/paper/paper.css):
composer install
composer css:build # or css:watch
Run the demo site:
composer install --working-dir=demo # dark mode toggle and FlexSearch themes
php demo/link.php
php cecil.phar serve demo
The PHP classes of the theme live in extensions/Paper/ (Paper namespace), and are registered by the Paper\PaperPlugin plugin, declared in config.yml:
extensions:
plugins:
Paper: Paper\PaperPlugin
| Class | Role |
|---|---|
Paper\PaperPlugin | Registers the extensions of the theme |
Paper\Twig\PaperExtension | paper_group_by_date filter and paper_og_image function (Twig) |
A site can disable or replace an extension by its name, e.g. layouts: {extensions: {PaperExtension: false}}.
Paper is a free software distributed under the terms of the MIT license.