- a11y improvements. #136 by @robdekort
- A
php please peak:add-collectioncommand to generate all files needed for a brand new completely custom collection. You get a collection file, a collection blueprint (with all Peak goodies), and index page and a show page. And it's all mounted, setup and ready to go. Files new/changed:app/Console/Commands/AddCollection.phpapp/Console/Commands/stubs/collection_blueprint_private_dated.yaml.stubapp/Console/Commands/stubs/collection_blueprint_private.yaml.stubapp/Console/Commands/stubs/collection_blueprint_public_dated.yaml.stubapp/Console/Commands/stubs/collection_blueprint_public.yaml.stubapp/Console/Commands/stubs/collection.yaml.stubapp/Console/Commands/stubs/index.antlers.html.stubapp/Console/Commands/stubs/show.antlers.html.stub
- Use
{}around variables in:app/Console/Commands/AddBlock.php.
- Added a
no_resultsstring to:resources/lang/en/strings.php.
- Added a wrapper around pagination that takes a custom class in:
resources/views/components/_pagination.antlers.html.
- Refactor
app/Console/Commands/AddBlock.phpand addedapp/Console/Commands/stubs/block.html.stubandapp/Console/Commands/stubs/fieldset.yaml.stub.
- Add unique # to social images filename to circumvent caching issues in
app/Jobs/GenerateSocialImagesJob.php.
- The default generated block template is pimped up a little:
app/Console/Commands/AddBlock.php.
- A
php please peak:add-blockcommand to generate all files needed for a fresh page builder block. You get a named fieldset, a named partial and the fieldset get's added with instructions toresources/fieldsets/page_builder.yaml. You can use all your saved time to learn about NFT's. Please don't though, it's stupid and bad for the environment. Go play with your kids.
- Split out mobile and desktop navigation into two partials in
resources/views/navigation/_main.antlers.html,resources/views/navigation/_main_desktop.antlers.htmlandresources/views/navigation/_main_mobile.antlers.html.
- Use correct field name (
what_to_addinstead offallback) for collection titles on show pages inresources/views/snippets/_seo.antlers.html.
- Hey,
x-trapis back. Why? Because I continue screwing this up:package.json,resources/js/site.js,resources/views/navigation/_main.antlers.htmlare changed. All is fine now. I promise. Sort of. No I don't. - Added
x-collapseto the mobile navigation:package.json,resources/js/site.js,resources/views/navigation/_main.antlers.html. - Updated the mobile nav layout in
resources/views/navigation/_main.antlers.html.
- Remove x-trap. It wasn't doing anything as there are no input elements in the main nav and it was booted wrong. Sorry:
package.json,resources/js/site.js,resources/views/navigation/_main.antlers.html. - Add mime type to svg favicon. Thanks Daniel.
- Update dependencies.
- Remove useless font swap rule from
tailwind.config.site.js.
- Set copyright year and name in a global in
resources/blueprints/globals/configuration.yamlandresources/views/layout/_footer.antlers.html. - Define for which sites hreflang tags should be auto generated in
resources/blueprints/globals/seo.yamlandresources/views/snippets/_seo.antlers.html.
- Rename default site to
Englishinconfig/statamic/sites.php.
- Toggles to set on which environments Peak should auto-add noindex/nofollow, trackers and the cookie banner:
resources/blueprints/globals/seo.yamlandresources/views/snippets/_seo.antlers.html.
- Update dependencies.
- Remove whitespace from
resources/views/default.antlers.html. Thanks Flemming.
- Use
mime_typedata from the actual image inresources/views/components/_picture.antlers.html. Thanks Daniel. - Rename fields for Change Collection Title in
resources/blueprints/globals/seo.yamlandstatamic-peak/resources/views/snippets/_seo.antlers.html. - Improve
resources/views/components/_buttons.antlers.htmlwith flex and flex gap.
- Make the footer sticky. Thanks Daniel.
- Propertly include
x-trap.
- Add
x-trapto trap focus inresources/views/navigation/_main.antlers.html. Also changed:resources/site.jsandpackage.json.
- Update dependencies.
- Remove unreliable backdrop blur variant in
tailwind.config.peak.js.
- Ok that previous version simply wasn’t finished. The last resort wouldn’t even dive into OG tags. Can you imagine? Now it does. But all in the collection grid. You might have to copy and paste stuff one or two times, but the wild fallback cascade became kind of a last resort on itself anyway. This is cleaner. Thanks again Mountain Watcher David. Updated files:
resources/views/snippets/_seo.antlers.html,resources/views/snippets/_fallback_description.antlers.htmlandresources/blueprints/globals/seo.yaml.
- Add a last resort meta description field in
resources/views/snippets/_seo.antlers.htmlandresources/blueprints/globals/seo.yaml. Thanks David!
- Render form field instructions when they are being used in
resources/views/snippets/_form_fields.antlers.html.
- Clean up
resources/views/components/_notification.antlers.htmlby using Antlers conditional variable fallbacks.
- Grant editors the ability to rename and move assets in
resources/users/roles.yamlsince 3.2 automagically updates all asset references. Lovely!
- Add SEO global option to add content to the page title on a per collection basis in:
resources/views/snippets/_seo.antlers.html, andresources/blueprints/globals/seo.yaml.
- Add
strip_tagsmodifier inresources/views/snippets/_fallback_description.antlers.htmlwhen fallback is set tofield.
- Installing Peak now uses the new Starter Kit functionality in Peak. Check the docs.
- Add the new Peak branding to the default templates, pages and e-mails.
- Add some starter content to explain what Peak can do.
- Use the Glide tag in
resources/views/snippets/_background_image.antlers.htmlso you can use either an asset or a hard coded image. E.g:{{ partial:snippets/background_image image="visuals/some-image.jpg" selector="footer" }}. - Set widths to fields in the redirect grid in
resources/blueprints/globals/redirects.yaml. - Update
README.example.mdwith zero downtime deployment{CLEAR_NEW_RELEASE}command. - Change
font-blacktofont-boldinresources/views/typography/_h2.antlers.htmlandresources/views/typography/_h3.antlers.html.
- Clean up JS logic in
resources/views/components/_cookie_banner.antlers.html. - Add fallback-description to social-media image partial
resources/views/components/_social_image.antlers.html. Thanks Goldnead. - Added a no-script explainer text to
resources/views/snippets/_noscript.antlers.htmlandresources/lang/en/strings.php. - Removed
peak:warmcommand (app/Console/Commands/WarmCommand.php) as this is now built into Statamic. Also updatedapp/Console/Kernel.php,README.example.mdandconfig/statamic/static_caching.phpto reflect this change. - Automatically add
w-full h-fullwhen calling inresources/views/components/_picture.antlers.htmlusingcover="true". - Add default asset container to the bard field in
resources/fieldsets/article.yaml. - Use
overflow-autoinstead ofoverflow-scrollto prevent an always visible scrollbar on Windows inresources/views/components/_table.antlers.html. - Updated dependencies.
- Fix bugs after reorganizing the favicons feature into 'Browser appearance'. Files changed:
app/Listeners/GenerateFavicons.php,resources/views/manifest/manifest.antlers.htmlandresources/views/snippets/_browser_appearance.antlers.html.
- Get rid of
JSON.parse()when using$persistinresources/views/components/_toolbar.antlers.html,resources/views/components/_dark_mode_toggle.antlers.htmlandresources/views/components/_cookie_banner.antlers.html. The final release of the plugin does this for us automatically. - Use the
queueflag inREADME.example.mdfor the assets generate presets command so the queue get's used when available.
- Use Alpine's v3 persist plugin throughout peak: cookie banner, dark mode toggle, toolbar in
resources/views/components/_cookie_banner.antlers.html,resources/views/components/_dark_mode_toggle.antlers.htmlandresources/views/components/_toolbar.antlers.html.
- Use the GTM Consent API for cookie consent: https://developers.google.com/tag-manager/consent in
resources/views/components/_cookie_banner.antlers.htmlandresources/views/snippets/_seo.antlers.html. - Enable the cookie banner for Google Analytics as well. It's not needed anymore to traffic GA through GTM if you don't anonymize IP's (please don't though) in
resources/blueprints/globals/seo.yamlandresources/views/snippets/_seo.antlers.html. - Adds the ability to specify which cookies you accept.
- Adds the ability to revoke cookie consent when you
{{ yield:reset_cookie_consent }}inresources/views/layout/_footer.antlers.html. - Remove all cookie functions from the window object in
resources/js/site.js.
- Add the ability to set fallback meta, OG and Twitter descriptions in
resources/views/snippets/_seo.antlers.html,resources/blueprints/globals/seo.yaml,resources/views/snippets/_fallback_description.antlers.htmlandapp/Tags/ScopeValue.php. - Reorder tracking fields in the SEO global blueprint in
resources/blueprints/globals/seo.yaml.
- Add a new browser appearance appearance global for configuring browser specific meta tags.
- Merge favicons globals into a new Browser appearance global:
content/globals/browser_appearance.yamlandresources/blueprints/globals/browser_appearance.yamland rename certain fields. - The favicon listener in
app/Listeners/GenerateFavicons.phpnow listens tobrowser_appearanceinstead offavicons. - Rename
resources/views/snippets/_favicons.antlers.htmltoresources/views/snippets/_browser_appearance.antlers.htmland add new browser appearance logic. - Call in
browser_appearancepartial instead offaviconsinresources/views/layout.antlers.html.
- Peak now ships with compiled assets so
npm i && npm run devis not needed upon installation. This is in preparation to the new starter kits feature coming in Statamic 3.2. - Add a noscript partial
resources/views/snippets/_noscript.antlers.htmland import it inresources/views/layout.antlers.html. Use it to disable the CSS that hides x-cloak elements for users that have Javascript disabled. - Add default file upload styling in
resources/views/vendor/statamic/forms/fields/assets.antlers.htmlandtailwind.config.site.js. - Rename dark mode localizable strings in
resources/views/components/_dark_mode_toggle.antlers.htmlandresources/lang/en/strings.php. - Change 'CACHING_STRATEGY' for 'STATAMIC_STATIC_CACHING_STRATEGY' to be on par with Statamic in
.env.exampleandconfig/statamic/static_caching.php. - Rename
bardtoarticleinresources/views/search.antlers.html. - Explain how redirects work better in
resources/blueprints/globals/redirects.yaml. - Use a unique form ID per form in
resources/views/page_builder/_form.antlers.html. Thanks Daniel. - Seperate form fields from form logic in
resources/views/page_builder/_form.antlers.htmlby addingresources/views/snippets/_form_fields.antlers.html. Thanks Daniel. - Use placeholder data in
resources/views/vendor/statamic/forms/fields/text.antlers.htmlandresources/views/vendor/statamic/forms/fields/textarea.antlers.html. Thanks Sense and Image. - Exclude the sitemap from static caching in
config/statamic/static_caching.php. Thanks Sense and Image.
- Update S3 filesystem config.
- Comment all scheduled commands in
App/Console/Kernel.phpby default. - Use
x-effectto toggleno-scrollon the body inresources/views/navigation_main.antlers.html. - Remove
scope="set"fromresources/views/page_builder/_article.antlers.htmlsince it wasn't being used in the actual sets, and the data is usually so far nested in that it won't collide with anything.
- Fix id selectors in
resources/views/social_images.antlers.html. Sorry folks.
- Remove Alpine logic from the social images template to prevent issues with Browsershot and Puppeteer. Thanks Michael for finding this issue.
- Yield a translateable page title on the
resources/views/search.antlers.htmltemplate just like on the 404 template.
- Use
.xmlfor sitemap template and remove redundantcontent_typefrom route. - Add a custom Tailwind variant to check support of backdrop blur so you can do stuff like:
supports-backdrop-blur:bg-opacity-80.
- Make cookie banner decline button actually readeable by default.
- No more whitespace in the default textarea view in
resources/views/vendor/statamic/forms/fields/textarea.antlers.html. Upgrade to AlpineJS v3: - Defer loading of the script tag in the document head in
resources/views/layout.antlers.html. - Import Alpine, Start Alpine and set window.Alpine in
resources/js/site.js. - Use
@clickinresources/views/components/_search_form.antlers.html. - Use
.outsideinresources/views/components/_search_form.antlers.htmlandresources/views/navigation/_main.antlers.html. - Properly setup Alpine.data function function in
resources/views/page_builder/_form.antlers.html.
Upgrade to Tailwind 2.2:
- Move
::selectionfrom the tailwind config toresources/views/layout.antlers.htmlas utility classes. - Added caret color utilities to the appropriate published form views.
- Remove the now redudant
transformutility (so isfilterbut we don't use it by default). - Re-added an empty
safelistarray intailwind.config.jssince the JIT engine now supports protecting classes from being purged.
- Add ->filter() method to warm command.
- Fixes bug that caused wrong URL's in JSON-ld breadcrumbs in
resources/views/snippets/_seo.antlers.html.
- Move
fontFamilysettings out ofextend. - Add
fontWeightsettings.
- Add a more informative toast notification message when generation social images.
- Return
0in the warm script to prevent deployment errors.
- Fix typo in
resources/views/components/_dark_mode_toggle.antlers.html. Thanks Jelle. - Fix color contrast issue in
resources/views/components/_cookie_banner.antlers.html. - Remove duplicate
localizablekey inresources/blueprints/globals/redirects.yaml.
- Generating social images is now a job and queuable when you use Redis.
- You can include and exclude URL's for the static caching warm command. Thanks Jelle.
- The .env example is more structured. Thanks Jelle.
- Make redirects localizable.
- Don't show canonical links when the entry has
seo_noindexset inresources/views/snippets/_seo.antlers.html. Thanks for the headsup Fabbow! - Only show
hreflangtags whenseo_canonical_typeis pointing to itself and when the entry doesn't haveseo_noindexset inresources/views/snippets/_seo.antlers.html. Thanks for the headsup Fabbow!
- Fixed typo. Thanks Matthew.
- Merged in config file difference from more recent Statamic updates.
- Use grid display for social sharing images in the SEO tab.
- Updated dependencies.
- Clear cache after generating social images.
- Track changes in git for the
faviconsandsocial_imagesasset containers. - .gitkeep
public/social_images.
- The ability to auto generate social images based on a template you control. Read the docs here.
- Social images are now saved in a seperate asset container.
- You can now remove the toolbar for the current request. Thanks Jelle Roorda.
- Add
strongrule intailwind.config.typography.jsand set it to the DEFAULT neutral color. - Remove duplicate
if localcheck inresources/views/components/_toolbar.antlers.html. Thanks Vlad. - No hyphen in
Email addressinresources/blueprints/forms/contact.yamlandresources/lang/en.json.
- Updated template comment/description system for future benefit.
- Move the
button_attributespartial to snippets as it's not a component and update the partials requiring it it. - Rename
bardhandle toarticlejust likepage_builderisn't calledreplicator.
- Remove extra quote in the search results view. Thanks Craig.
- The property
minifyFontValuesis added and set tofalseinwebpack.mix.jsto prevent cssNano from stripping quotes from font names. Thanks Vlad. - The
window.getTokenfunction has been touched by an actual developer, so it's shorter now. Thanks Jonas.
- Use regular expression for sorting breakpoints to use in the Peak toolbar to make it a little more secure.
- Set some sensible
localizabledefaults to all fields so using Peak in a multisite environment means less configuration.
- Use
config:app:nameinstead ofsite:namein the SEO partial. When you use descriptive site names in a multisite situation (e.g. 'Dutch', or 'English'), the partial won't fall back to that in the page title. - Support for extending breakpoints in the breakpoint indicator.
- Remove redundant title from e-mail templates.
- Fixed tpyo in SEO partial causing the Twitter image not to load. Thanks Eric.
- Revamped the default color config.
- Add the sizing utility to the pull quote set.
- Add
@click.awayto subnav list instead of parent anchor to prevent accidentally closing the subnav. - Fix focus styles in Safari for buttons and the search input.
- Revert using
sluginstead oftitle | slugifyfor link blocks as we don't know if there is aslug. - Use
asinstead oftagto overrule typography partial tags. This is a little more natural:{{ partial:typograph/h1 as="h2" }}. - Use padding in navigation links instead of spacing the items. Thanks Daniel.
- The Tailwind highlight utility.
- Improved
GenerateFavicons.phplistener so it doesn't break thephp please multisitecommand. Thanks Jelle Roorda.
- Add a
noticestate and icon toresources/views/components/_notification.antlers.html.
- Repeat search form on the search results template in
resources/views/search.antlers.html. - Use
sluginstead oftitle | slugifyfor link blocks a11y ID's.
- Remove the ability for editors to create users, since they can't select roles due to a Statamic issue. Superusers have to do this.
- Remove
smsizing utility in one specific breakpoint missed before.
- Remove
validation: requiredfromresources/fieldsets/link_blocks.yamlandresources/fieldsets/button.yamldue to validation currently not working as expected in Statamic. Please open an issue or a PR if this is needed in more places. - Added some conditionalis to
resources/views/page_builder/_link_blocks.antlers.htmlandresources/views/components/_button.antlers.htmldue to the validation being removed.
- Use Tailwind 2.1 with native JIT support.
- Also add current locale as hreflang tag in
resources/views/snippets/_seo.antlers.html. - Make social media
aria-labelinresources/views/layout/_footer.antlers.htmlmore descriptive. - Alphabetize strings based on category in
resources/lang/en/strings.php.
- Use the new
honepotvariable instead of hard coding it. - Close mobile sub navigation when clicking the the parent again.
- The
menuandcloselabels in the menu button are now localisable.
- Add
x-cloaktoresources/views/components/_search_form.antlers.html. - Editor role can view and delete contact form submissions by default.
- Use
{{ xml_header }}inresources/views/sitemap.xml. Thanks Taylor. - Somewhere along the way the
overflow-scrollgot lost on the table partial. It's back now for a better mobile experience.
- The caption partial should, and now is located in
resources/views/typography/_caption.antlers.nl. - Update
.env.examplewith the right whitelabel variables.
- DRY caption for
_figure.antlers.html,_table.antlers.htmland_video.antlers.htmlinresources/views/components/_caption.antlers.nl. - Add some HTML content to the empty configuration global.
- Remove
smsizing utility. - Move sizing utilities and
js-focus-visibleto the Tailwind base layer so we don't need to whitelist those classes. - Remove purge options options from
tailwind.config.js, since the JIT compiler doesn't actually use Purge CSS. - Use
max-w-noneon.proseinstead of disabling themax-widthin thetailwind.config.typography.jsas per the Tailwind Typography docs.
- Disable margin on p's in li's in ul's or ol's in
tailwind.config.typography.js.
- Remove
app/Tags/DynamicToken.phpand move this logic to to the window as a global helper function so you can reusewindow.getToken().
- Add empty
altattributes to SVG icons for improved a11y according to best practices. This makes sure VoiceOver won't read the filename for those decorative icons. - Update
composer.jsonto use Statamic 3.1.*.
- Add Twitter Image Alt meta tag.
- Add Twitter
Summary Large Imagecard support. - Propertly enforce
focus-visiblewhere applicable.
Peak now has it's own docs thanks to Robert Guss: the Peak docs.
- Add a tag to get a collections mount URL. So you can use
{{ mount_url from="news" }}to generate aView all news articleslink. Thanks Simon Bédard. - Add
~as a page title separator. - Properly define the warm command in it's own file. Important: you must now run
php please peak:warmorphp artisan statamic:peak:warm.
- Remove
npm i && npm run devfrompost-create-projectincomposer.jsonto prevent issues when using the Statamic CLI together with the Tailwind JIT compiler.
- Use Tailwinds JIT compiler.
- Ensure a full stop in the alt text in
resources/views/components/_picture.antlers.html. - Use defined variable in Dynamic Token tag. Thanks Alexander.
- Default to
radmode, but setSTATAMIC_THEMEtobusinessin.env.example. - Restore an empty
public/vendor/app/css/cp.cssto prevent a 404 error in the console.
- Add a
classattribute to the button partial.
- Update
app/Http/Controllers/DynamicToken.phpandapp/Tags/DyamicToken.phpto use async/await instead of Ajax and return JSON so you can use the dynamic token route in other places as well. - Only show
resources/views/components/_toolbar.antlers.htmlwhen environment islocaland not when you're logged in as that won't work with static caching.
- Support for Statamic 3.1 white labeling.
- Disable
max-widthonproseclass by default (as it's already in a container). - Disable
size-modifiersfor Tailwind Typography by default since we use fluid typography. - Fix Knowledge Graph JSON-ld Organisation logo url.
- Contain Knowledge Graph JSON-ld Organisation logo in it's square.
- Scope sitemap results to prevent empty
<url>entries in it. - Actually use
.envIMAGE_MANIPULATION_DRIVERinconfig/statamic/assets.php(defaults togd).
- Use
inverted="true"onresources/views/components/_buttons.antlers.htmlorresources/views/component/_button.antlers.htmlto use inverted styled buttons. Usefull on contrasting backgrounds (BYOS: bring your own styling). - Added GitHub to the Social Media blueprint. Thanks Gal.
- Added an optional dark mode toggle. Follow the instructions in README or
resources/views/components/_dark_mode_toggle.antlers.htmlon how to enable (class based) Dark Mode. - Search disabled and removed from partials by default to clean the templates up a little. Follow the instructions in README or
resources/views/components/_search_form.antlers.htmlon how to enable search.
- Add commented
IMAGE_MANIPULATION_DRIVER=imagickto.env.exampleto make it easier to enable Imagick.
- Disable darkmode by default. That shaves of some dev build size and will make your debugger faster. Woof!
- Use Mailhog as the default SMTP config in
.env.examplesince it's a local service and free, unlike Mailtrap, the Laravel default. Runbrew install mailhog,valet proxy mailhog http://127.0.0.1:8025and catch your mails onhttps://mailhog.test.
- Published the password reset blade views and removed rad mode to be in line with the login view. This method will likely improve siginificantly with the upcoming release of Statamic 3.1 containing white-labeling features.
- Make DynamicToken check work with both non www and www domains. Thanks Frederik.
- Only make search submit button enabled when the search input field has a value. Thanks for reporting Kerns.
- Use fixed positioning for the toolbar instead of absolute.
- The ability to override different favicons with custom assets.
- The Tailwind breakpoint pill replaced by a toolbar in the top right corner. It also contains an edit button when you're logged in. The toolbar can be permantly fixed to your window by toggling the button. A great idea by Kerns.
- Use fakerphp/faker instead of fzaninotto/faker. Thanks Julius.
- Update Tailwind and other JS dependencies.
- Use the
{{ svg }}tag where possible.
- Redirects old URL's to new URL's and present it in a fancy grid. That's it. Only kicks in when a 404 is triggered. Just like the SEO global it's only accessible to the superusers and the
marketeerrole (which you add to users with theeditorrole).
- Rewrote and simplified the favicon image generation. You can now use any SVG, don't need a squared viewport and it will still be centered in the resulting PNG's.
- Specify asset container for image fields.
- Disabled centering your favicon for when you're SVG viewport is not already squared due to possible bugs. For now.
- Add favicon support. Generate favicons for modern browsers with a single SVG. Thanks to David for the inspiration!
- Added a
marketeerrole you can grant certaineditorsto access the SEO globals.
- Add
replicator_preview: falseby default to bard fields inresources/fieldsets/common.yaml. - Make subnav toggable. Thank you Philip.
- The readme.
- Add a consent field to the default form.
- Don't e-mail form fields that have
consentas a handle: those are usually single checkbox field that have to be checked for the form to be valid. - Yield a SEO title to
resources/views/snippets/_seo.antlers.htmlfromresources/views/error/404.antlers.htmlto render a page title on the error page. This pattern is reusable to optional other error pages.
- Update deploy scripts in
README.example.md. - Add
route:cachecommand to optional schedule inapp/Console/Kernel.php. - Set the optional clear and warm schedule to daily by default instead of hourly in
app/Console/Kernel.php.
- Fix typo's in
README.example.md. Thanks Sam. - Fix forge deploy script.
- Fix error in Ploi deployment script.
- Use Tailwind layers to instruct PurgeCSS in
tailwind.config.jsandresources/css/custom.css. Thanks for the tip Tom. - Update JS dependencies.
- Update Forge/Ploi references in the README files.
- Ignore errors in the
php artisan warmcommand inroutes/console.php. - Remove
php artisan inspirefromroutes/console.php. - Add note in
README.example.mdfor Ploi users.
- Actually commit the
1.18.9changes regarding site locale. Sorry! - Remove unused
scrollMarginTopdeclaration fromtailwind.config.typography.js.
- Use the proper locale variable
site:localefor localizing form e-mails. The previous variablelocalereturnsdefaultfor the default site and that could cause issues translating your e-mails. Thanks Jason. - The README.md now has inline and updated screenshots.
- Revoke all cookie consent given before a certain date so users have to consent again. Handy when your privacy policy changed.
- Add a field called
button_typeto buttons. It has two options by default:inlineandbutton. The templateviews/components/_button.antlers.htmldefaults tobutton.
- Translatable labels using the
{{ trans key="{ label }" }}pattern for checkboxes, radio's and selects. - Updated JS dependencies.
- Damned trailing comma's! #65 Thanks Vannut.
- Persons and organizations deserve their own URL. #65 Thanks Vannut.
- Added
resources/css/custom.cssif you prefer defining your custom CSS in actual CSS.
- Consistent use of template string in
tailwind.config.peak.js.
- The page builder replicator is now localizable by default. Thanks Manuel.
- Update DynamicToken route to be compatible with Laravel 8. Thanks Duncan.
- Update
tailwind.config.jsproper key fordarkMode, removefutureandexpirementalkeys. Thanks Vlad.
- Fix CSS selector and value so the negative margin bottom actually works on last childs with a class of
w-fullin theouter-grid. Thank you Manuel.
- Prevent cookie banner from showing when GTM is off.
- Style.
- Search functionality. Disabled by default. See the readme for more details on how to enable and extend search.
- Updated and added (missing) inline documentation.
- You can now either link to an asset (PDF) or entry from the cookie banner regarding more information about your privacy policy.
- Breaking: Added an optional cookie notification banner. This changes some SEO field handles and the SEO yield name. If you're updating manually make sure you:
- overwrite
resources/blueprints/seo.yaml - overwrite
resources/views/snippets/_seo.antlers.html - merge
resources/lang/en/strings.php - merge
resources/js/site.js - rename
yield:google_tag_managertoyield:seo_bodyinresources/views/layout.antlers.html - add
resources/components/_cookie_banner.antlers.html
- overwrite
Note: tracking and cookie consent by default only work on the
productionenvironment.
- Upgrade to Laravel Mix 6.
- Modernzr integration for WebP detection (previously used in the background image snippet).
- Include
package-lock.jsonfor now to prevent compilation errors. Compatibility for Laravel Mix 6 is in the works but thelaravel-mix-modernizrplugin isn't compatible yet. Keep an eye out on: https://github.com/studio1902/statamic-peak/tree/feature/laravel-mix-6
- Updated
README.example.mdwith NGINX config for static resource caching. - Updated composer.json to support PHP8.
- Return of the
lastvariant formarginas this is used inresources/views/typography/_paragraph.antlers.html.
- Don't purge
.js-focus-visibleotherwise focus-visible won't work on production. - Don't overwrite default transition duration but extend it.
- Change default transition length to 300ms.
- Add
motion-safevariant fortransitionDuration.
- Use and implement
focus-visiblePolyfill: https://github.com/studio1902/statamic-peak#focus-visible - Use and implement the
motion-safevariant: https://github.com/studio1902/statamic-peak#reduced-motion - Add Cloudflare Web Analytics Tracker. Thanks Vaggelis!
- Remove deprecated
scrolling-touchutility fromresources/views/navigation/_main.antlers.html.
- Fixed a bug in the Tailwind config that prevented the VS Code Intellisense plugin from working.
- Use
config:app:namefor the logo aria-label. - Tpyo's removed from the README. Thanks Jelle!
- Updated the example README with a space for both the production and the development env vars.
- Added a helper utility by adding the class
?to quickly identify elements on screen. Original idea by Gavin Joyce. - Added the
php artisan statamic:assets:generate-presetto the deploy script part of the README.example.md.
- Link to the new Tailwind Typography repo in the inline docs.
- A Table set for Bard.
- A new and bigger asset preset.
- Hide contact form success message after 2500secs. Thanks Frederik!
- Don't let the site be indexed when not in production. Thanks Frederik!
- Improve default form styling.
- Fix Tailwind prose classes not compiling.
- Only apply prose class to
resources/views/components/_text.antlers.htmlso bard sets don't inherit prose styles. - Update bard sets styling with margin y.
- Upgraded to Tailwind 2.
- Applied the Tailwind 2 migration guide.
- Now importing Tailwind color sets.
- Extend variants instead of overwriting them.
- Use default transition duration and easing.
- The common asset fieldset now uses list mode to render assets in the CP.
- Don't init an alpine component on the body for the mobile navigation logic. Move it to where it's actually being used (thanks @philipboomy).
- [Breaking] Ditch the old and use the new Tailwind form plugin. No more specificity and config, just use utility classes in your partials: https://github.com/tailwindlabs/tailwindcss-forms
- [Breaking] Use Tailwind's aspect ratio plugin for media embeds: https://github.com/tailwindlabs/tailwindcss-aspect-ratio
- [Breaking] Remove Peak's custom breakpoint.
- [Breaking] Add config to use Tailwinds new experimental breakpoint: https://github.com/tailwindlabs/tailwindcss/pull/2468/files
- Completely reworked buttons to support internal linking, external linking, linking to phone numbers, e-mail addresses and downloadable assets. The button fieldset uses the just fixed conditional logic in available in Statamic.
- Default to position center for background images which saves us a conditional check (thanks @philipboomy).
- Remove localization workaround in mail templates that's not needed anymore since Statamic 3.0.18.
- Actually use the alt attribute in mail templates.
- Collapse page builder replicator sets by default.
- Only output SEO tracker code on production environment.