template:ad-hominem
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
template:ad-hominem [2021-06-17 11:14] – [HTML Blocks] sascha-leib | template:ad-hominem [2024-03-27 13:11] (current) – [Cookies Banner] sascha-leib | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- template ---- | ---- template ---- | ||
- | description | + | description |
author | author | ||
email : ad@hominem.info | email : ad@hominem.info | ||
- | lastupdate_dt : 2021-06-14 | + | lastupdate_dt : 2024-02-07 |
- | compatible | + | compatible |
depends | depends | ||
- | conflicts | + | conflicts |
similar | similar | ||
- | screenshot_img: | + | screenshot_img: |
- | tags : responsive, sidebar, mobile, print, html5, css3, semantic, clean, accessible, | + | tags : responsive, sidebar, mobile, print, html5, css3, semantic, clean, dark, dark-mode, customizable, |
- | downloadurl | + | downloadurl |
bugtracker | bugtracker | ||
sourcerepo | sourcerepo | ||
---- | ---- | ||
- | This is an attempt to create a very simple and lightweight template for DokuWiki that stays true to the ideas of the original design but modernizes the code and improve on the usability. | + | This is an attempt to create a very simple and lightweight template for DokuWiki that stays true to the ideas of the original design, but modernizes the code and improve on the usability. |
- | It was designed to work for my DokuWiki site of the same name (link, see below) but may be useful for others, too. | + | It was designed to work for my DokuWiki site of the same name (now migrated to [[https:// |
- | Please keep in mind that this is still "work in progress", | + | This is provided |
Feedback and bug reports are of course always welcome :-) | Feedback and bug reports are of course always welcome :-) | ||
Line 33: | Line 33: | ||
* This also works for Wikipedia links! | * This also works for Wikipedia links! | ||
* Looks good in print. | * Looks good in print. | ||
- | * Tries to implement | + | * The template implements |
- | * Neatly formatted and standards-compliant code (where possible – the main page text comes from the DokuWiki renderer | + | * [[wp> |
+ | * Neatly formatted and standards-compliant code (where possible – again, | ||
* Makes better use of larger screens (target is half of a 4K screen), but because the template is fully responsive, smaller is no problem (down to ca. 300px wide) | * Makes better use of larger screens (target is half of a 4K screen), but because the template is fully responsive, smaller is no problem (down to ca. 300px wide) | ||
* improvements to edit view, media manager, etc. | * improvements to edit view, media manager, etc. | ||
+ | * User-side controlled “dark mode”, i.e. follows the client side dark mode settings. | ||
+ | * Improvements to the default functionality, | ||
+ | * Configuration to override the " | ||
+ | * Integrated " | ||
+ | * Compatible with PHP8 and DokuWiki “Kaos”. | ||
===== Download and Install ====== | ===== Download and Install ====== | ||
- | Use the following URL to download this template: | + | The easiest way to install |
+ | |||
+ | Alternatively, | ||
* https:// | * https:// | ||
- | Refer to [[: | + | Refer to [[: |
===== Configuration ===== | ===== Configuration ===== | ||
- | ==== Icons ==== | ||
- | Similar | + | The configuration options are now documented on the [[https:// |
+ | |||
+ | In short, the following configuration features are available: | ||
+ | |||
+ | * Icons and site logos – specific names to be used to overwrite | ||
+ | |||
+ | * Page blocks – you can upload HTML snippets that are then inserted at specific places of all pages, e.g. in the footer or the sidebar. | ||
+ | |||
+ | * Template options in the site configuration page (section: " | ||
+ | |||
+ | Details on how to configure these can be found on the page linked above. | ||
+ | |||
+ | ===== Cookies Banner ===== | ||
+ | |||
+ | This template has its own, built-in " | ||
+ | |||
+ | There are three settings that control the behaviour of this | ||
+ | |||
+ | * " | ||
+ | |||
+ | * "The message | ||
+ | |||
+ | * "Link to the “More information” page": this is either an internal | ||
+ | |||
+ | ==== Override Home Link ==== | ||
+ | |||
+ | The template has an option to override the " | ||
+ | |||
+ | If you enter, for example, "/ | ||
+ | |||
+ | Leaving the field empty will keep the original behaviour (home is your wiki homepage) intact. | ||
+ | |||
+ | ===== Dark Mode ===== | ||
+ | |||
+ | This template supports client-controlled “dark mode”. This means that visitors to your site who have "dark mode" activated on their machines will see the site in a suitable dark colour scheme. | ||
+ | |||
+ | The following screenshots show the light and dark mode side by side: | ||
+ | |||
+ | {{ https:// | ||
+ | |||
+ | Generally, there is nothing to do for a site admin, but please be aware of this, and make sure to check your site in dark mode from time to time (or in light mode, if you normally use dark mode). | ||
+ | |||
+ | There are two potential issues to be aware of: | ||
+ | |||
+ | * If you used the " | ||
+ | |||
+ | * If possible, create images in a way that they also work with dark backgrounds. Especially if you use transparency, | ||
+ | |||
+ | There is more documentation available on the project’s [[https:// | ||
+ | |||
+ | And, of course, you can also override the dark mode colours using the [[plugin: | ||
- | > Note on SVG images: by default, the media manager does not allow the upload of SVG images. To use them, please add a configuration setting in '' | + | ===== Cookies ===== |
- | **Site logo:** this is the logo that appears in the top-left corner of every page. Note that this template uses a different default size (64×64 pixels) than the standard template. This file can be named “'' | + | This template also comes with its own implementation of the [[plugin:cookielaw|Cookielaw Plugin]], and as such, also sets a cookie to remember |
- | **Favicon: | + | The “'' |
- | **Apple Touch Icon:** Used by iOS devices when the user places a bookmark | + | Please keep in mind, however, that the DokuWiki system sets additional cookies, which are explained |
- | ==== HTML Blocks | + | ===== 2-column “compact” print style ===== |
- | The template looks for HTML files that will be included at specific places in the page. This is useful for repeating sections, configuration options, etc. These files can be located in the ''/ | + | Since 1.5 there is now an option to switch from the default " |
- | === Metadata === | + | This " |
- | The file “'' | + | Most importantly, use the class "'' |
- | === Header === | + | If you use the [[plugin: |
- | An area in the page header, located just below the search field, is reserved for the content of the file “'' | + | > '' |
+ | > … | ||
+ | > ''</ | ||
- | === Sidebar === | + | Another option is the [[plugin: |
- | There are two hooks for HTML files in the sidebar: one on top (called “'' | + | > '' |
+ | > … | ||
+ | > '' | ||
- | === Page Content === | + | Last but not least: ''< |
- | A repeating section on top of the main page content (above the “youarehere” links) can be added by placing a file called “'' | + | Other print-related classes include |
- | Likewise, at the bottom of the page (after the “Last changed” item). The file to be inserted here has to be called “'' | + | ===== HTML Tags ===== |
- | === Footer === | + | As of DokuWiki “Jack Jackrum”, embedding HTML tags in the DokuWiki code is no longer supported. In order to still allow semantic markup to be added, the autor of this template also provides a plugin, [[plugin: |
- | There is a footer section reserved for a static HTML file called “'' | + | This has been developed with, and is designed to be used with this template |
- | ===== Sites using this Template | + | ===== Visit my site ===== |
- | * [[https:// | + | The best way to experience this template is by browsing my sites, which make full use of it: |
+ | * [[https:// | ||
+ | * [[https:// | ||
template/ad-hominem.1623921296.txt.gz · Last modified: 2021-06-17 11:14 by sascha-leib