opengov/gcweb

使用WET-BOEW实现的主题

安装次数: 2,316

依赖项: 2

建议者: 0

安全性: 0

星星: 4

关注者: 4

分支: 0

公开问题: 1

语言:Twig

类型:drupal-theme

dev-master 2024-06-10 14:06 UTC

This package is auto-updated.

Last update: 2024-09-10 14:41:51 UTC


README

GCWeb Bootstrap

这是一个轻量级、可访问且响应式的主题,集成了加拿大政府网站体验工具包(WET)前端框架,用于GCWeb,并基于Bootstrap作为基础主题,以实现更快速和更简单的网站开发。

该主题利用WET-BOEW集中部署模板解决方案(CDTS)来遵循与Canada.ca的通用外观和感觉。

需求

为了使用composer获取库,请在composer的仓库部分定义以下内容

"repositories": [
    {
        "type": "composer",
        "url": "https://packages.drupal.org/8"
    },
    {
        "type"    : "package",
        "package" : {
            "name"    : "wet-boew/wet-boew",
            "version" : "v4.0.31",
            "type"    : "drupal-library",
            "dist"    : {
                "url"  : "https://github.com/wet-boew/wet-boew-cdn/archive/v4.0.31.tar.gz",
                "type" : "tar"
            },
            "source"  : {
                "url"       : "https://github.com/wet-boew/wet-boew-cdn.git",
                "type"      : "git",
                "reference" : "v4.0.31"
            }
        }
    },
    {
        "type"    : "package",
        "package" : {
            "name"    : "wet-boew/theme-gcweb",
            "version" : "v5.1",
            "type"    : "drupal-library",
            "dist"    : {
                "url"  : "https://github.com/wet-boew/themes-cdn/archive/v5.1-gcweb.tar.gz",
                "type" : "tar"
            },
            "source"  : {
                "url"       : "https://github.com/wet-boew/themes-cdn.git",
                "type"      : "git",
                "reference" : "v5.1-gcweb"
            }
        }
    }
],

安装

  • 使用composer安装主题
composer require opengov/gcweb

配置

要启用GCWeb主题,请转到管理 -> 外观,选择安装并在GCWeb下将其设置为默认。