Skip to content

HTMLy v3.1.1

Latest

Choose a tag to compare

@danpros danpros released this 03 Nov 06:08

What's New

  • Theme settings. Now we have separate settings for main and theme settings.
  • Theme selection is now on its own page.

Note for theme settings

  • For theme screenshots, htmly will automatically display an image with the screenshot file name.
  • Theme information and settings are declared in theme.json and will be displayed in /admin/themes/your-theme. Here is an example:
{
  "name": "Theme One",
  "version": "1.0.0",
  "author": "Your Name",
  "homepage": "https://www.example.com"
  "description": "A modern and sleek theme for blogs.",
  "settings": [
    {
      "type": "checkbox",
      "name": "recent_posts",
      "label": "Recent Posts",
      "value": "",
      "info": "Enable Recent Posts widget"
    },
    {
      "type": "select",
      "name": "layout",
      "label": "Layout Style",
      "value": "",
      "options": ["grid", "list", "masonry"],
      "info": "Choose homepage layout"
    }
  ]
}

To get the settings value, use theme_config('setting_name')

What's Changed

Full Changelog: v3.1.0...v3.1.1