{% extends '../layout/admin.html' %} {% block html_title %}{{ customTitle(t('Customize')) }} {% endblock %} {% block style_css_block %} {% if 'kibela' === layoutType() %} {% if env === 'development' %} {% else %} {% endif %} {% else %} {% if env === 'development' %} {% else %} {% endif %} {% endif %} {% endblock %} {% block html_additional_headers %} {% parent %} {{ cdnStyleTag('jquery-ui') }} {% endblock %} {% block content_header %}
{% endblock %} {% block content_main %}
{% set smessage = req.flash('successMessage') %} {% if smessage.length %}
{{ smessage }}
{% endif %} {% set emessage = req.flash('errorMessage') %} {% if emessage.length %}
{{ emessage }}
{% endif %}
{% include './widget/menu.html' with {current: 'customize'} %}
{{ t('customize_page.Layout') }}

Simple and Clear

  • Full screen layout and thin margins/paddings
  • Show and post comments at the bottom of the page
  • Affix Table-of-contents

Easy Viewing Structure

  • Center aligned contents
  • Show and post comments at the bottom of the page
  • Affix Table-of-contents

Separated Functions

  • Collapsible Sidebar
  • Show and post comments in Sidebar
  • Collapsible Table-of-contents

{{ t('customize_page.Theme') }}

{% if env === 'development' %}
DEBUG MESSAGE: development build では、リアルタイムプレビューが無効になります
{% endif %}
{# Light Themes #}
{% include 'widget/theme-colorbox.html' with { name: 'default', bg: '#ffffff', topbar: '#334455', theme: '#112744'} %} {% include 'widget/theme-colorbox.html' with { name: 'nature', bg: '#f9fff3', topbar: '#118050', theme: '#460039'} %} {% include 'widget/theme-colorbox.html' with { name: 'mono-blue', bg: '#F7FBFD', topbar: '#00587A', theme: '#00587A'} %} {% include 'widget/theme-colorbox.html' with { name: 'wood', bg: '#fffefb', topbar: '#aaa45f', theme: '#dddebf'} %} {% include 'widget/theme-colorbox.html' with { name: 'island', bg: '#8ecac0', topbar: '#0c2a44', theme: '#cef2ef'} %} {% include 'widget/theme-colorbox.html' with { name: 'christmas', bg: '#fffefb', topbar: '#b3000c', theme: '#017e20'} %}
{# Dark Themes #}
{% include 'widget/theme-colorbox.html' with { name: 'default-dark', bg: '#212731', topbar: '#151515', theme: '#f75b36'} %} {% include 'widget/theme-colorbox.html' with { name: 'future', bg: '#16282D', topbar: '#011414', theme: '#04B4AE'} %} {% include 'widget/theme-colorbox.html' with { name: 'blue-night', bg: '#061F2F', topbar: '#27343B', theme: '#0090C8'} %} {% include 'widget/theme-colorbox.html' with { name: 'halloween', bg: '#030003', topbar: '#cc5d1f', theme: '#e9af2b'} %}
{{ t('customize_page.Behavior') }} {% set isBehaviorGrowi = 'growi' === settingForm['customize:behavior'] || 'crowi-plus' === settingForm['customize:behavior'] %}

  • Both of /page and /page/ shows the same page
  • /nonexistent_page shows editing form
  • All pages shows the list of sub pages if using GROWI Enhanced Layout

  • /page shows the page
  • /page/ shows the list of sub pages
    • If portal is applied to /page/ , the portal and the list of sub pages are shown
  • /nonexistent_page shows editing form
  • /nonexistent_page/ the list of sub pages
{{ t('customize_page.Function') }}

{{ t("customize_page.function_choose") }}

{{ t("customize_page.subpage_display") }}

{{ t("customize_page.performance_decrease") }}
{{ t("customize_page.list_page_display") }}

{{ t("customize_page.save_edit") }}
{{ t("customize_page.by_invalidating") }}

{{ t("customize_page.attach_title_header_desc") }}

{{ t("customize_page.recent_created_page_num_desc") }}

{{ t('customize_page.Code Highlight') }}

{{ t('customize_page.nocdn_desc') }}

{{ cdnHighlightJsStyleTag(highlightJsStyle()) }}

Examples:

function $initHighlight(block, cls) {
  try {
    if (cls.search(/\bno\-highlight\b/) != -1)
      return process(block, true, 0x0F) +
              ` class="${cls}"`;
  } catch (e) {
    /* handle exception */
  }
  for (var i = 0 / 2; i < classes.length; i++) {
    if (checkCondition(classes[i]) === undefined)
      console.log('undefined');
  }
}

export  $initHighlight;

カスタム Title

<title>タグのコンテンツをカスタマイズできます。
{{sitename}}がサイト名、{{page}}がページ名またはページパスに置換されます

Default Value: {{page}} - {{sitename}}
Default Output:

<title>/Sandbox - {{ appTitle }}</title>

カスタムヘッダーHTML

システム全体に適用される HTML を記述できます。<header> タグ内の他の <script> タグ読み込み前に展開されます。
変更の反映はページの更新が必要です。

Examples:

<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.13.0/build/languages/yaml.min.js" defer></script>

Ctrl+Space でコード補完

{{ t('customize_page.Custom CSS') }}

{{ t("customize_page.write_CSS") }}
{{ t("customize_page.reflect_change") }}

{{ t("customize_page.ctrl_space") }}

{{ t('customize_page.Custom script') }}

{{ t("customize_page.write_java") }}
{{ t("customize_page.reflect_change") }}

Placeholders:
(Available after load event)

$
jQuery instance
crowi
Crowi context instance
Crowi
Crowi legacy instance (jQuery based)
crowiRenderer
Crowi Renderer instance
crowiPlugin
GROWI plugin manager instance

Examples:

console.log($('.main-container'));

window.addEventListener('load', (event) => {
  console.log('config: ', crowi.config);
});

{{ t("customize_page.ctrl_space") }}

{% endblock content_main %} {% block body_end %} {% parent %}
{% endblock %} {% block content_footer %} {% endblock content_footer %}