From 918d5c1f9b3263d21d13a1b6fe1852c880e57b02 Mon Sep 17 00:00:00 2001 From: "pmoreno.rodriguez" <60596353+pmoreno-rodriguez@users.noreply.github.com> Date: Fri, 20 Jan 2023 15:49:21 +0100 Subject: [PATCH 01/20] Added custom 'Read more' text for items in blog --- blueprints/blog.yaml | 7 +++++++ templates/partials/blog-list-item.html.twig | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/blueprints/blog.yaml b/blueprints/blog.yaml index bb2e387..0e764e0 100644 --- a/blueprints/blog.yaml +++ b/blueprints/blog.yaml @@ -103,3 +103,10 @@ form: 0: PLUGIN_ADMIN.DISABLED validate: type: bool + header.readmore_text: + type: text + toggleable: true + default: 'Read more' + size: large + label: EDITORIAL.ADMIN.BLOG.BLOG_CONTENT_ITEMS_READMORE_TEXT + description: EDITORIAL.ADMIN.BLOG.BLOG_CONTENT_ITEMS_READMORE_TEXT_DESCRIPTION diff --git a/templates/partials/blog-list-item.html.twig b/templates/partials/blog-list-item.html.twig index c7245d3..86d4644 100644 --- a/templates/partials/blog-list-item.html.twig +++ b/templates/partials/blog-list-item.html.twig @@ -1,5 +1,6 @@ {% set image = page.media[page.header.featured_image] ?: page.media.images|first %} {% set title = page.title %} +{% set readmore_txt = blog.header.readmore_text|raw|default('Read more') %}
{% if image %} @@ -28,6 +29,6 @@ {% endif %}

From 9ff929263c919ef11fb13edd0ec29ba1bd46a0b0 Mon Sep 17 00:00:00 2001 From: "pmoreno.rodriguez" <60596353+pmoreno-rodriguez@users.noreply.github.com> Date: Mon, 23 Jan 2023 09:54:02 +0100 Subject: [PATCH 02/20] Updated blueprints translation variables and added listing_title variable --- blueprints.yaml | 106 ++++++++++++++++++++++++++++-------------------- 1 file changed, 61 insertions(+), 45 deletions(-) mode change 100644 => 100755 blueprints.yaml diff --git a/blueprints.yaml b/blueprints.yaml old mode 100644 new mode 100755 index dcd635b..62f9737 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -52,8 +52,8 @@ form: underline: true themeSlogan: type: text - label: Theme Slogan - help: Use this to add a text snippet to the sitename. + label: EDITORIAL.ADMIN.THEME.SLOGAN + help: EDITORIAL.ADMIN.THEME.SLOGAN_HELP favicon: type: file label: EDITORIAL.ADMIN.THEME.FAVICON @@ -67,7 +67,7 @@ form: accept: ['image/png', '.ico'] custom_logo_enabled: type: toggle - label: EDITORIAL.ADMIN.THEME.CUSTOM_LOGO_ENABLED + label: EDITORIAL.ADMIN.THEME.CUSTOM_LOGO.ENABLED highlight: 1 default: 1 options: @@ -82,20 +82,20 @@ form: validate: min: 50 max: 150 - label: EDITORIAL.ADMIN.THEME.CUSTOM_LOGO_WIDTH + label: EDITORIAL.ADMIN.THEME.CUSTOM_LOGO.WIDTH custom_logo: type: file - label: EDITORIAL.ADMIN.THEME.CUSTOM_LOGO + label: EDITORIAL.ADMIN.THEME.CUSTOM_LOGO.LOGO size: large destination: 'theme://images/logo' multiple: false markdown: true - description: EDITORIAL.ADMIN.THEME.CUSTOM_LOGO_DESCRIPTION + description: EDITORIAL.ADMIN.THEME.CUSTOM_LOGO.DESCRIPTION accept: - image/* custom_logo_mobile: type: file - label: EDITORIAL.ADMIN.THEME.CUSTOM_LOGO_MOBILE + label: EDITORIAL.ADMIN.THEME.CUSTOM_LOGO.MOBILE size: large destination: 'theme://images/logo' multiple: false @@ -103,36 +103,36 @@ form: - image/* contact_section: type: fieldset - title: EDITORIAL.ADMIN.THEME.CONTACT_INFORMATION_TITLE + title: EDITORIAL.ADMIN.THEME.CONTACT.INFORMATION_TITLE collapsible: true collapsed: true icon: id-card-o fields: - contact_text: + contact.text: type: text - label: EDITORIAL.ADMIN.THEME.CONTACT_TEXT + label: EDITORIAL.ADMIN.THEME.CONTACT.TEXT contact.email: - label: EDITORIAL.ADMIN.THEME.CONTACT_EMAIL + label: EDITORIAL.ADMIN.THEME.CONTACT.EMAIL type: email default: webmaster@example.com contact.phone: - label: EDITORIAL.ADMIN.THEME.CONTACT_PHONE + label: EDITORIAL.ADMIN.THEME.CONTACT.PHONE type: text default: (555) 555-5555 contact.street: - label: EDITORIAL.ADMIN.THEME.CONTACT_ADDRESS_STREET + label: EDITORIAL.ADMIN.THEME.CONTACT.ADDRESS.STREET type: text default: 123 Any Street contact.city: - label: EDITORIAL.ADMIN.THEME.CONTACT_ADDRESS_CITY + label: EDITORIAL.ADMIN.THEME.CONTACT.ADDRESS.CITY type: text default: AnyTown contact.state: - label: EDITORIAL.ADMIN.THEME.CONTACT_ADDRESS_STATE + label: EDITORIAL.ADMIN.THEME.CONTACT.ADDRESS.STATE type: text default: CA contact.zip: - label: EDITORIAL.ADMIN.THEME.CONTACT_ADDRESS_ZIP + label: EDITORIAL.ADMIN.THEME.CONTACT.ADDRESS.ZIP type: text default: 12345 blog_section: @@ -140,19 +140,19 @@ form: collapsible: true collapsed: true icon: bold - title: EDITORIAL.ADMIN.THEME.BLOG_DEFAULTS + title: EDITORIAL.ADMIN.THEME.BLOG.DEFAULTS fields: blog-page: type: text - label: EDITORIAL.ADMIN.THEME.BLOG_PAGE_LABEL - help: EDITORIAL.ADMIN.THEME.BLOG_PAGE_HELP + label: EDITORIAL.ADMIN.THEME.BLOG.PAGE_LABEL + help: EDITORIAL.ADMIN.THEME.BLOG.PAGE_HELP size: medium default: '/blog' featured: type: toggle - label: EDITORIAL.ADMIN.THEME.FEATUREDPOSTS + label: EDITORIAL.ADMIN.THEME.FEATURED.LABEL highlight: 1 default: 1 options: @@ -163,29 +163,45 @@ form: featured_tag: type: text markdown: true - label: EDITORIAL.ADMIN.THEME.FEATUREDPOSTS_CATEGORY - description: EDITORIAL.ADMIN.THEME.FEATUREDPOSTS_CATEGORY_DESCRIPTION + label: EDITORIAL.ADMIN.THEME.FEATURED.CATEGORY + description: EDITORIAL.ADMIN.THEME.FEATURED.CATEGORY_DESCRIPTION size: medium default: 'featured' featured_number: type: range - label: EDITORIAL.ADMIN.THEME.FEATUREDPOSTS_NUMBER - description: EDITORIAL.ADMIN.THEME.FEATUREDPOSTS_NUMBER_DESCRIPTION + label: EDITORIAL.ADMIN.THEME.FEATURED.NUMBER + description: EDITORIAL.ADMIN.THEME.FEATURED.NUMBER_DESCRIPTION default: 3 validate: min: 1 max: 5 + listing_title.taxonomy.category: + type: text + label: EDITORIAL.ADMIN.THEME.BLOG.LISTING_TITLE.TAXONOMY.CATEGORY + default: 'Posts in Category: ' + listing_title.taxonomy.tag: + type: text + label: EDITORIAL.ADMIN.THEME.BLOG.LISTING_TITLE.TAXONOMY.TAG + default: 'Posts with Tag: ' + listing_title.taxonomy.author: + type: text + label: EDITORIAL.ADMIN.THEME.BLOG.LISTING_TITLE.TAXONOMY.AUTHOR + default: 'Posts written by Author: ' + listing_title.blog: + type: text + label: EDITORIAL.ADMIN.THEME.BLOG.LISTING_TITLE.BLOG + default: 'Blog' social_section: type: fieldset collapsible: true collapsed: true icon: rss - title: EDITORIAL.ADMIN.THEME.SOCIAL_TITLE + title: EDITORIAL.ADMIN.THEME.SOCIAL.TITLE fields: social_enabled: type: toggle - label: EDITORIAL.ADMIN.THEME.SOCIAL_ENABLED + label: EDITORIAL.ADMIN.THEME.SOCIAL.ENABLED highlight: 1 default: 1 options: @@ -195,7 +211,7 @@ form: type: bool social: name: social - label: EDITORIAL.ADMIN.THEME.SOCIAL_ICONS + label: EDITORIAL.ADMIN.THEME.SOCIAL.ICONS type: list style: vertical collapsed: false @@ -203,24 +219,24 @@ form: fields: .name: type: text - label: EDITORIAL.ADMIN.THEME.SOCIAL_NAME + label: EDITORIAL.ADMIN.THEME.SOCIAL.NAME .url: type: text - label: EDITORIAL.ADMIN.THEME.SOCIAL_URL + label: EDITORIAL.ADMIN.THEME.SOCIAL.URL .icon: type: iconpicker - label: EDITORIAL.ADMIN.THEME.SOCIAL_ICON + label: EDITORIAL.ADMIN.THEME.SOCIAL.ICON custommenu_section: type: fieldset collapsible: true collapsed: true icon: bars - title: EDITORIAL.ADMIN.THEME.CUSTOM_MENU_TITLE + title: EDITORIAL.ADMIN.THEME.CUSTOM_MENU.TITLE fields: custommenu_enabled: type: toggle - label: EDITORIAL.ADMIN.THEME.CUSTOM_MENU_ENABLE - help: EDITORIAL.ADMIN.THEME.CUSTOM_MENU_ENABLE_HELP + label: EDITORIAL.ADMIN.THEME.CUSTOM_MENU.ENABLE + help: EDITORIAL.ADMIN.THEME.CUSTOM_MENU.ENABLE_HELP default: 0 highlight: 1 options: @@ -231,27 +247,27 @@ form: custommenu: name: menu type: list - label: EDITORIAL.ADMIN.THEME.CUSTOM_MENU_TITLE + label: EDITORIAL.ADMIN.THEME.CUSTOM_MENU.LABEL fields: .text: type: text - label: EDITORIAL.ADMIN.THEME.CUSTOM_MENU_ITEM_TEXT - description: EDITORIAL.ADMIN.THEME.CUSTOM_MENU_ITEM_TEXT_DESCRIPTION + label: EDITORIAL.ADMIN.THEME.CUSTOM_MENU.ITEM.TEXT + description: EDITORIAL.ADMIN.THEME.CUSTOM_MENU.ITEM.TEXT_DESCRIPTION .icon: type: text - label: EDITORIAL.ADMIN.THEME.CUSTOM_MENU_ITEM_ICON - description: EDITORIAL.ADMIN.THEME.CUSTOM_MENU_ITEM_ICON_DESCRIPTION + label: EDITORIAL.ADMIN.THEME.CUSTOM_MENU.ITEM.ICON + description: EDITORIAL.ADMIN.THEME.CUSTOM_MENU.ITEM.ICON_DESCRIPTION .url: type: text - label: EDITORIAL.ADMIN.THEME.CUSTOM_MENU_ITEM_URL - description: EDITORIAL.ADMIN.THEME.CUSTOM_MENU_ITEM_URL_DESCRIPTION + label: EDITORIAL.ADMIN.THEME.CUSTOM_MENU.ITEM.URL + description: EDITORIAL.ADMIN.THEME.CUSTOM_MENU.ITEM.URL_DESCRIPTION .target: type: select - label: EDITORIAL.ADMIN.THEME.CUSTOM_MENU_ITEM_TARGET + label: EDITORIAL.ADMIN.THEME.CUSTOM_MENU.ITEM.TARGET.LABEL default: _self size: medium options: - _blank: EDITORIAL.ADMIN.THEME.CUSTOM_MENU_ITEM_TARGET_BLANK - _parent: EDITORIAL.ADMIN.THEME.CUSTOM_MENU_ITEM_TARGET_PARENT - _self: EDITORIAL.ADMIN.THEME.CUSTOM_MENU_ITEM_TARGET_SELF - _top: EDITORIAL.ADMIN.THEME.CUSTOM_MENU_ITEM_TARGET_TOP + _blank: EDITORIAL.ADMIN.THEME.CUSTOM_MENU.ITEM.TARGET.BLANK + _parent: EDITORIAL.ADMIN.THEME.CUSTOM_MENU.ITEM.TARGET.PARENT + _self: EDITORIAL.ADMIN.THEME.CUSTOM_MENU.ITEM.TARGET.SELF + _top: EDITORIAL.ADMIN.THEME.CUSTOM_MENU.ITEM.TARGET.TOP From 4f9118e1436c1a2dce9ea4a5840112dd5095c6e4 Mon Sep 17 00:00:00 2001 From: "pmoreno.rodriguez" <60596353+pmoreno-rodriguez@users.noreply.github.com> Date: Mon, 23 Jan 2023 10:04:16 +0100 Subject: [PATCH 03/20] Updated translations variables --- languages.yaml | 352 ++++++++++++++++++++++++++++--------------------- 1 file changed, 203 insertions(+), 149 deletions(-) mode change 100644 => 100755 languages.yaml diff --git a/languages.yaml b/languages.yaml old mode 100644 new mode 100755 index 9348096..1470f85 --- a/languages.yaml +++ b/languages.yaml @@ -9,58 +9,75 @@ en: HEADER_OPTIONS: Header Options FAVICON: Choose your own favicon FAVICON_DESCRIPTION: Will be used instead of default favicon `theme://images/favicon.png` - SLOGAN: Slogan - CUSTOM_LOGO_ENABLED: Enabled Logo - CUSTOM_LOGO_WIDTH: Custom Logo Width - CUSTOM_LOGO: Custom Logo - CUSTOM_LOGO_DESCRIPTION: Will be used instead of default logo `theme://images/logo.png` - CUSTOM_LOGO_MOBILE: Mobile Custom Logo - CONTACT_INFORMATION_TITLE: Contact Information - CONTACT_INFORMATION_TEXT: Contact information is displayed in the sidebar area. - CONTACT_TEXT: Contact Information Text - CONTACT_EMAIL: Email - CONTACT_PHONE: Phone - CONTACT_ADDRESS_STREET: Street Address - CONTACT_ADDRESS_CITY: City - CONTACT_ADDRESS_STATE: State - CONTACT_ADDRESS_ZIP: Postal Code - BLOG_DEFAULTS: Blog Defaults - BLOG_PAGE_LABEL: Blog Page - BLOG_PAGE_HELP: The route to the blog page when working with blog sidebar - FEATUREDPOSTS: Enable Featured posts in Sidebar - FEATUREDPOSTS_NUMBER: Featured posts number to show - FEATUREDPOSTS_NUMBER_DESCRIPTION: Number of featured posts that will be showed in sidebar - FEATUREDPOSTS_CATEGORY: Featured category - FEATUREDPOSTS_CATEGORY_DESCRIPTION: Set name to featured category.
`You must include this name in Options->Taxonomy->Category` - SOCIAL_TITLE: Social Media - SOCIAL_TEXT: Include full url's to your various social media presences. An icon/ link will appear at the top of the page for each respective platform. - SOCIAL_ENABLED: Enable Social Icons - SOCIAL_ICONS: Social Icons - SOCIAL_NAME: Social Name - SOCIAL_URL: URL Link to Social - SOCIAL_ICON: Icon to Social - CUSTOM_MENU_TITLE: 'Custom Menu Items' - CUSTOM_MENU_ENABLE: 'Display Custom Menu Items' - CUSTOM_MENU_ENABLE_HELP: 'Determines if any defined custom menu entries are displayed in the menubar.' - CUSTOM_MENU_ITEM_TEXT: 'Text' - CUSTOM_MENU_ITEM_TEXT_DESCRIPTION: 'Text label for menu item.' - CUSTOM_MENU_ITEM_ICON: 'Icon' - CUSTOM_MENU_ITEM_ICON_DESCRIPTION: 'Font Awesome icon for menu item.' - CUSTOM_MENU_ITEM_URL: 'URL' - CUSTOM_MENU_ITEM_URL_DESCRIPTION: 'URL for menu item.' - CUSTOM_MENU_ITEM_TARGET: 'Target' - CUSTOM_MENU_ITEM_TARGET_BLANK: 'Open in a new window' - CUSTOM_MENU_ITEM_TARGET_PARENT: 'Open in the parent frame' - CUSTOM_MENU_ITEM_TARGET_SELF: 'Open in the same frame as clicked' - CUSTOM_MENU_ITEM_TARGET_TOP: 'Open in the full body of the window' + SLOGAN: Theme Slogan + SLOGAN_HELP: Use this to add a text snippet to the sitename. + CUSTOM_LOGO: + ENABLED: Enabled Logo + WIDTH: Custom Logo Width + LOGO: Custom Logo + DESCRIPTION: Will be used instead of default logo `theme://images/logo.png` + MOBILE: Mobile Custom Logo + CONTACT: + INFORMATION_TITLE: Contact Information + INFORMATION_TEXT: Contact information is displayed in the sidebar area. + TEXT: Contact Information Text + EMAIL: Email + PHONE: Phone + ADDRESS: + STREET: Street Address + CITY: City + STATE: State + ZIP: Postal Code + BLOG: + DEFAULTS: Blog Defaults + PAGE_LABEL: Blog Page + PAGE_HELP: The route to the blog page when working with blog sidebar + LISTING_TITLE: + TAXONOMY: + CATEGORY: Set Title to filter posts by Category + TAG: Set Title to filter posts by Tag + AUTHOR: Set Title to filter posts by Author + BLOG: Set Title for blog without filter + FEATURED: + LABEL: Enable Featured posts in Sidebar + NUMBER: Featured posts number to show + NUMBER_DESCRIPTION: Number of featured posts that will be showed in sidebar + CATEGORY: Featured Tag + CATEGORY_DESCRIPTION: Set name to featured tag.
`You must include this name in Options->Taxonomy->Tag` + SOCIAL: + TITLE: Social Media + TEXT: Include full url's to your various social media presences. An icon/ link will appear at the top of the page for each respective platform. + ENABLED: Enable Social Icons + ICONS: Social Icons + NAME: Social Name + URL: URL Link to Social + ICON: Icon to Social + CUSTOM_MENU: + TITLE: 'Custom Menu Items' + ENABLE: 'Display Custom Menu Items' + ENABLE_HELP: 'Determines if any defined custom menu entries are displayed in the menubar.' + LABEL: 'Menu Items' + ITEM: + TEXT: 'Text' + TEXT_DESCRIPTION: 'Text label for menu item.' + ICON: 'Icon' + ICON_DESCRIPTION: 'Font Awesome icon for menu item.' + URL: 'URL' + URL_DESCRIPTION: 'URL for menu item.' + TARGET: + LABEL: 'Target' + BLANK: 'Open in a new window' + PARENT: 'Open in the parent frame' + SELF: 'Open in the same frame as clicked' + TOP: 'Open in the full body of the window' MODULAR: BANNER: - TAB: Banner - SUBTITLE: Subtitle BUTTON_TEXT: Button Text BUTTON_URL: Button URL - IMAGE: Image - IMAGE_DESCRIPTION: Select one image + CONTACT: + TAB: Settings + ADDRESS_SECTION: Address + ADDRESS_DETAILS: Address Details FEATURES: TAB: Features ICON: Icon @@ -77,39 +94,49 @@ en: THREE_COLS: Standard = 3 / 2 / 1 columns LIMIT: Limit LIMIT_HELP: Maximum number of posts to display. + READMORE_TEXT: Readmore button text + READMORE_TEXT_DESCRIPTION: Set custom text for Read more button BLOG: - BLOG_TAB: Blog Config - BLOG_ROUTE: Blog Route - BLOG_HELP: The route to the main blog page that contains the "Show ..." configuration - BLOG_CONTENT_TITLE: Content Definition - BLOG_CONTENT_ITEMS: Items - BLOG_CONTENT_ITEMS_LIMIT: Max Item Count - BLOG_CONTENT_ITEMS_ORDER_BY: Order By - BLOG_CONTENT_ITEMS_ORDER_BY_DATE: Date - BLOG_CONTENT_ITEMS_ORDER_BY_TITLE: Title - BLOG_CONTENT_ITEMS_ORDER_BY_FOLDER: Folder - BLOG_CONTENT_ITEMS_ORDER_BY_DEFAULT: Default - BLOG_CONTENT_ITEMS_ORDER_DIR: Order - BLOG_CONTENT_ITEMS_ORDER_DIR_ASC: Ascending - BLOG_CONTENT_ITEMS_ORDER_DIR_DESC: Descending - BLOG_CONTENT_ITEMS_SHOW_BREADCRUMBS: Show Breadcrumbs - BLOG_CONTENT_ITEMS_PAGINATION: Pagination - BLOG_CONTENT_ITEMS_URL_TAXONOMY_FILTERS: URL Taxonomy Filters + TAB: Blog Config + ROUTE: Blog Route + ROUTE_HELP: The route to the main blog page that contains the "Show ..." configuration + TITLE: Content Definition + ITEMS: + LABEL: Items + LIMIT: Max Item Count + ORDER_BY: + LABEL: Order By + DATE: Date + TITLE: Title + FOLDER: Folder + DEFAULT: Default + DIR: Order + DIR_ASC: Ascending + DIR_DESC: Descending + SHOW_BREADCRUMBS: Show Breadcrumbs + PAGINATION: Pagination + URL_TAXONOMY_FILTERS: URL Taxonomy Filters + READMORE_TEXT: Readmore button text + READMORE_TEXT_DESCRIPTION: Set custom text for Read more button ITEM: - ITEM_TAB: Blog Item - ITEM_OPTIONS: Options - ITEM_SUMMARY: Summary Item - ITEM_SUMMARY_ENABLED: Enabled Summary - ITEM_SUMMARY_FORMAT: Summary Format - ITEM_SUMMARY_FORMAT_SHORT: Use the first occurence of delimter or size - ITEM_SUMMARY_FORMAT_LONG: Summary delimiter will be ignored - ITEM_SUMMARY_SIZE: Size - ITEM_SUMMARY_DELIMITER: Summary Delimiter + TAB: Blog Item + OPTIONS: Options + SUMMARY: + TITLE: Summary Item + ENABLED: Enabled Summary + FORMAT: Summary Format + FORMAT_SHORT: Use the first occurence of delimter or size + FORMAT_LONG: Summary delimiter will be ignored + SIZE: Size + DELIMITER: Summary Delimiter DEFAULT: HEADER_SUBTITLE: Subtitle FEATURED_IMAGE_LABEL: Featured Image FEATURED_IMAGE_HELP: Select a file for use as the page's top featured image MENU_TEXT: Menu + MISC: + FEATURED_MORE: More featured posts + NO_FEATURED: No featured posts es: EDITORIAL: ADMIN: @@ -121,58 +148,75 @@ es: HEADER_SECTION: Sección de encabezado FAVICON: Elige tu propio favicon FAVICON_DESCRIPTION: Se usará en lugar del favicon predeterminado `theme://images/favicon.png` - SLOGAN: Eslogan - CUSTOM_LOGO_ENABLED: Activar logo - CUSTOM_LOGO_WIDTH: Ancho del logo personalizado - CUSTOM_LOGO: Logo personalizado - CUSTOM_LOGO_DESCRIPTION: Este logo se usará en lugar del log por defecto `theme://images/grav-logo.svg` - CUSTOM_LOGO_MOBILE: Logo personalizado para dispositivos móviles - CONTACT_INFORMATION_TITLE: Información de contacto - CONTACT_INFORMATION_TEXT: Información de contacto que se mostrará en la barra lateral. - CONTACT_TEXT: Texto de la Información de contacto - CONTACT_EMAIL: Email - CONTACT_PHONE: Teléfono - CONTACT_ADDRESS_STREET: Dirección Postal - CONTACT_ADDRESS_CITY: Ciudad - CONTACT_ADDRESS_STATE: Estado - CONTACT_ADDRESS_ZIP: Código Postal - BLOG_DEFAULTS: Opciones de Blog - BLOG_PAGE_LABEL: Página de Blog - BLOG_PAGE_HELP: La ruta a la página del blog cuando se trabaja con la barra lateral del blog - FEATUREDPOSTS: Activar artículos destacados en la barra lateral - FEATUREDPOSTS_NUMBER: Número de artículos destacados a mostrar - FEATUREDPOSTS_NUMBER_DESCRIPTION: Número de artículos destacados que se mostrarán en la barra lateral - FEATUREDPOSTS_CATEGORY: Categoría para destacados - FEATUREDPOSTS_CATEGORY_DESCRIPTION: Establezca un nombre para la categoría de artículos destacados.
`Deberá incluir este nombre en Opciones->Taxonomía->Categoría` - SOCIAL_TITLE: Redes Sociales - SOCIAL_TEXT: Incluya las direcciones URL completas de sus distintas direcciones en las redes sociales. Aparecerá un icono/enlace en la parte superior de la página para cada plataforma respectiva. - SOCIAL_ENABLED: Activar Iconos Sociales - SOCIAL_ICONS: Iconos Redes Sociales - SOCIAL_NAME: Nombre de la Red Social - SOCIAL_URL: Enlace de la Red Social - SOCIAL_ICON: Icono de la Red Social - CUSTOM_MENU_TITLE: 'Elementos de menú personalizados' - CUSTOM_MENU_ENABLE: 'Mostrar elementos de menú personalizados' - CUSTOM_MENU_ENABLE_HELP: 'Determina si se muestra alguna entrada de menú personalizada definida en la barra de menú.' - CUSTOM_MENU_ITEM_TEXT: 'Texto' - CUSTOM_MENU_ITEM_TEXT_DESCRIPTION: 'Etiqueta de texto para el elemento del menú.' - CUSTOM_MENU_ITEM_ICON: 'Icono' - CUSTOM_MENU_ITEM_ICON_DESCRIPTION: 'Icono de Font Awesome para el elemento del menú.' - CUSTOM_MENU_ITEM_URL: 'URL' - CUSTOM_MENU_ITEM_URL_DESCRIPTION: 'URL para el elemento del menú.' - CUSTOM_MENU_ITEM_TARGET: 'Destino' - CUSTOM_MENU_ITEM_TARGET_BLANK: 'Abrir en nueva ventana' - CUSTOM_MENU_ITEM_TARGET_PARENT: 'Abrir en el marco principal' - CUSTOM_MENU_ITEM_TARGET_SELF: 'Abrir en el marco en el que se hizo click' - CUSTOM_MENU_ITEM_TARGET_TOP: 'Abierto en todo el cuerpo de la ventana.' + SLOGAN: Slogan del Tema + SLOGAN_HELP: Use esto para agregar un fragmento de texto al nombre del sitio. + CUSTOM_LOGO: + ENABLED: Activar logo + WIDTH: Ancho del logo personalizado + LOGO: Logo personalizado + DESCRIPTION: Este logo se usará en lugar del log por defecto `theme://images/grav-logo.svg` + MOBILE: Logo personalizado para dispositivos móviles + CONTACT: + INFORMATION_TITLE: Información de contacto + INFORMATION_TEXT: Información de contacto que se mostrará en la barra lateral. + TEXT: Texto de la Información de contacto + EMAIL: Email + PHONE: Teléfono + ADDRESS: + STREET: Dirección Postal + CITY: Ciudad + STATE: Estado + ZIP: Código Postal + BLOG: + DEFAULTS: Opciones de Blog + PAGE_LABEL: Página de Blog + PAGE_HELP: La ruta a la página del blog cuando se trabaja con la barra lateral del blog + LISTING_TITLE: + TAXONOMY: + CATEGORY: Establecer Título para filtro de entradas por Categoría + TAG: Establecer Título para filtro de entradas por Etiqueta + AUTHOR: Establecer Título para filtro de entradas por Autor + BLOG: Establecer Título para el blog sin filtro + FEATURED: + LABEL: Activar artículos destacados en la barra lateral + NUMBER: Número de artículos destacados a mostrar + NUMBER_DESCRIPTION: Número de artículos destacados que se mostrarán en la barra lateral + CATEGORY: Etiqueta para destacados + CATEGORY_DESCRIPTION: Establezca un nombre para la etiqueta de artículos destacados.
`Deberá incluir este nombre en Opciones->Taxonomía->Etiqueta` + SOCIAL: + TITLE: Redes Sociales + TEXT: Incluya las direcciones URL completas de sus distintas direcciones en las redes sociales. Aparecerá un icono/enlace en la parte superior de la página para cada plataforma respectiva. + ENABLED: Activar Iconos Sociales + ICONS: Iconos Redes Sociales + NAME: Nombre de la Red Social + URL: Enlace de la Red Social + ICON: Icono de la Red Social + CUSTOM_MENU: + TITLE: 'Elementos de menú personalizados' + ENABLE: 'Mostrar elementos de menú personalizados' + ENABLE_HELP: 'Determina si se muestra alguna entrada de menú personalizada definida en la barra de menú.' + LABEL: 'Elementos del menú' + ITEM: + TEXT: 'Texto' + TEXT_DESCRIPTION: 'Etiqueta de texto para el elemento del menú.' + ICON: 'Icono' + ICON_DESCRIPTION: 'Icono de Font Awesome para el elemento del menú.' + URL: 'URL' + URL_DESCRIPTION: 'URL para el elemento del menú.' + TARGET: + LABEL: 'Destino' + BLANK: 'Abrir en nueva ventana' + PARENT: 'Abrir en el marco principal' + SELF: 'Abrir en el marco en el que se hizo click' + TOP: 'Abierto en todo el cuerpo de la ventana.' MODULAR: BANNER: - TAB: Banner - SUBTITLE: Subtítulo BUTTON_TEXT: Texto del botón BUTTON_URL: URL del botón - IMAGE: Imagen - IMAGE_DESCRIPTION: Selecione una imagen + CONTACT: + TAB: Opciones + ADDRESS_SECTION: Dirección + ADDRESS_DETAILS: Detalles de la dirección FEATURES: TAB: Características ICON: Icono @@ -189,36 +233,46 @@ es: THREE_COLS: Estándar = 3 / 2 / 1 columnas LIMIT: Límite LIMIT_HELP: Máximo número de entradas para mostrar + READMORE_TEXT: Texto del botón `Leer más` + READMORE_TEXT_DESCRIPTION: Especifique un texto personalizado para el botón `leer más` BLOG: - BLOG_TAB: Configuración del Blog - BLOG_ROUTE: Ruta del Blog - BLOG_HELP: La ruta de la página principal del Blog a la que hace referencia "Mostrar ..." en la configuración - BLOG_CONTENT_TITLE: Definición de Contenido - BLOG_CONTENT_ITEMS: Artículos - BLOG_CONTENT_ITEMS_LIMIT: Límite máximo de artículos - BLOG_CONTENT_ITEMS_ORDER_BY: Ordenar por - BLOG_CONTENT_ITEMS_ORDER_BY_DATE: Fecha - BLOG_CONTENT_ITEMS_ORDER_BY_TITLE: Título - BLOG_CONTENT_ITEMS_ORDER_BY_FOLDER: Carpeta - BLOG_CONTENT_ITEMS_ORDER_BY_DEFAULT: Por defecto - BLOG_CONTENT_ITEMS_ORDER_DIR: Orden - BLOG_CONTENT_ITEMS_ORDER_DIR_ASC: Ascendente - BLOG_CONTENT_ITEMS_ORDER_DIR_DESC: Descendente - BLOG_CONTENT_ITEMS_SHOW_BREADCRUMBS: Mostrar Migas de pan - BLOG_CONTENT_ITEMS_PAGINATION: Paginación - BLOG_CONTENT_ITEMS_URL_TAXONOMY_FILTERS: Filtros de taxonomía de URL + TAB: Configuración del Blog + ROUTE: Ruta del Blog + ROUTE_HELP: La ruta de la página principal del Blog a la que hace referencia "Mostrar ..." en la configuración + TITLE: Definición de Contenido + ITEMS: + LABEL: Artículos + LIMIT: Límite máximo de artículos + ORDER_BY: + LABEL: Ordenar por + DATE: Fecha + TITLE: Título + FOLDER: Carpeta + DEFAULT: Por defecto + DIR: Orden + DIR_ASC: Ascendente + DIR_DESC: Descendente + SHOW_BREADCRUMBS: Mostrar Migas de pan + PAGINATION: Paginación + URL_TAXONOMY_FILTERS: Filtros de taxonomía de URL + READMORE_TEXT: Texto del botón `Leer más` + READMORE_TEXT_DESCRIPTION: Especifique un texto personalizado para el botón `leer más` ITEM: - ITEM_TAB: Artículo de Blog - ITEM_OPTIONS: Opciones - ITEM_SUMMARY: Resumen de Artículo - ITEM_SUMMARY_ENABLED: Activar Resumen - ITEM_SUMMARY_FORMAT: Formato de Resumen - ITEM_SUMMARY_FORMAT_SHORT: Utilizar la primera aparición de delimitador o tamaño - ITEM_SUMMARY_FORMAT_LONG: Se ignorará el delimitador de resumen - ITEM_SUMMARY_SIZE: Tamaño - ITEM_SUMMARY_DELIMITER: Delimitador de Resumen + TAB: Artículo de Blog + OPTIONS: Opciones + SUMMARY: + TITLE: Resumen de Artículo + ENABLED: Activar Resumen + FORMAT: Formato de Resumen + FORMAT_SHORT: Utilizar la primera aparición de delimitador o tamaño + FORMAT_LONG: Se ignorará el delimitador de resumen + SIZE: Tamaño + DELIMITER: Delimitador de Resumen DEFAULT: HEADER_SUBTITLE: Subtitle FEATURED_IMAGE_LABEL: Imagen destacada FEATURED_IMAGE_HELP: Seleccione un archivo para usarlo como la imagen destacada superior de la página - MENU_TEXT: Menu \ No newline at end of file + MENU_TEXT: Menu + MISC: + FEATURED_MORE: Más entradas destacadas + NO_FEATURED: No hay entradas destacadas \ No newline at end of file From 73b5db03a309db333c4c4bbd911a4dc60ab48c2a Mon Sep 17 00:00:00 2001 From: "pmoreno.rodriguez" <60596353+pmoreno-rodriguez@users.noreply.github.com> Date: Mon, 23 Jan 2023 10:08:19 +0100 Subject: [PATCH 04/20] Replacing custom.css with misc.css --- assets/css/misc.css | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100755 assets/css/misc.css diff --git a/assets/css/misc.css b/assets/css/misc.css new file mode 100755 index 0000000..5b87b18 --- /dev/null +++ b/assets/css/misc.css @@ -0,0 +1,43 @@ +/*# Custom CSS Styles */ + +#breadcrumbs { + height: 2rem; + line-height: 1.7rem; + padding-left: 0rem; +} + +#breadcrumbs span { + display: inline-block; + padding: 0 0.2rem; +} + + +/* Active the pagination numbers in small screens */ + +@media screen and (max-width: 480px) { + ul.pagination li:nth-child(n+2):nth-last-child(n+2) { + display: inline-block; + } + ul.pagination li:first-child { + padding-right: 0; + } +} + + +/* Class for tags and categories */ + +.tags { + color: #5a2908; + font-size: 0.9em; + border-bottom: none; +} + +.data-post { + color: #7c6556; + font-size: 0.9em; + text-transform: none; +} + +#header .logo { + font-size: 2.125em; +} From 57827a8b8ff193e5055c8e72b0320e2f8b9cfef9 Mon Sep 17 00:00:00 2001 From: "pmoreno.rodriguez" <60596353+pmoreno-rodriguez@users.noreply.github.com> Date: Mon, 23 Jan 2023 10:09:13 +0100 Subject: [PATCH 05/20] Rebuilded blueprints --- blueprints/blog.yaml | 34 +++++++++++++++++----------------- blueprints/item.yaml | 16 ++++++++-------- 2 files changed, 25 insertions(+), 25 deletions(-) mode change 100644 => 100755 blueprints/blog.yaml mode change 100644 => 100755 blueprints/item.yaml diff --git a/blueprints/blog.yaml b/blueprints/blog.yaml old mode 100644 new mode 100755 index 0e764e0..6380a00 --- a/blueprints/blog.yaml +++ b/blueprints/blog.yaml @@ -26,25 +26,25 @@ form: default: item blog: type: tab - title: EDITORIAL.ADMIN.BLOG.BLOG_TAB + title: EDITORIAL.ADMIN.BLOG.TAB fields: content_title: type: spacer - title: EDITORIAL.ADMIN.BLOG.BLOG_CONTENT_TITLE + title: EDITORIAL.ADMIN.BLOG.TITLE header.content.items: type: textarea yaml: true - label: EDITORIAL.ADMIN.BLOG.BLOG_CONTENT_ITEMS + label: EDITORIAL.ADMIN.BLOG.ITEMS.LABEL default: '@self.children' validate: type: yaml header.content.limit: type: text - label: EDITORIAL.ADMIN.BLOG.BLOG_CONTENT_ITEMS_LIMIT + label: EDITORIAL.ADMIN.BLOG.ITEMS.LIMIT default: 5 validate: required: true @@ -53,26 +53,26 @@ form: header.content.order.by: type: select - label: EDITORIAL.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_BY + label: EDITORIAL.ADMIN.BLOG.ITEMS.ORDER_BY.LABEL default: date options: - folder: EDITORIAL.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_BY_FOLDER - title: EDITORIAL.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_BY_TITLE - date: EDITORIAL.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_BY_DATE - default: EDITORIAL.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_BY_DEFAULT + folder: EDITORIAL.ADMIN.BLOG.ITEMS.ORDER_BY.FOLDER + title: EDITORIAL.ADMIN.BLOG.ITEMS.ORDER_BY.TITLE + date: EDITORIAL.ADMIN.BLOG.ITEMS.ORDER_BY.DATE + default: EDITORIAL.ADMIN.BLOG.ITEMS.ORDER_BY.DEFAULT header.content.order.dir: type: select - label: EDITORIAL.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_DIR + label: EDITORIAL.ADMIN.BLOG.ITEMS.DIR default: desc options: - asc: EDITORIAL.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_DIR_ASC - desc: EDITORIAL.ADMIN.BLOG.BLOG_CONTENT_ITEMS_ORDER_DIR_DESC + asc: EDITORIAL.ADMIN.BLOG.ITEMS.DIR_ASC + desc: EDITORIAL.ADMIN.BLOG.ITEMS.DIR_DESC header.content.breadcrumbs: type: toggle toggleable: true - label: EDITORIAL.ADMIN.BLOG.BLOG_CONTENT_ITEMS_SHOW_BREADCRUMBS + label: EDITORIAL.ADMIN.BLOG.SHOW_BREADCRUMBS highlight: 1 options: 1: PLUGIN_ADMIN.ENABLED @@ -83,7 +83,7 @@ form: header.content.pagination: type: toggle toggleable: true - label: EDITORIAL.ADMIN.BLOG.BLOG_CONTENT_ITEMS_PAGINATION + label: EDITORIAL.ADMIN.BLOG.PAGINATION highlight: 1 default: 1 options: @@ -95,7 +95,7 @@ form: header.content.url_taxonomy_filters: type: toggle toggleable: true - label: EDITORIAL.ADMIN.BLOG.BLOG_CONTENT_ITEMS_URL_TAXONOMY_FILTERS + label: EDITORIAL.ADMIN.BLOG.URL_TAXONOMY_FILTERS highlight: 1 default: 1 options: @@ -108,5 +108,5 @@ form: toggleable: true default: 'Read more' size: large - label: EDITORIAL.ADMIN.BLOG.BLOG_CONTENT_ITEMS_READMORE_TEXT - description: EDITORIAL.ADMIN.BLOG.BLOG_CONTENT_ITEMS_READMORE_TEXT_DESCRIPTION + label: EDITORIAL.ADMIN.BLOG.READMORE_TEXT + description: EDITORIAL.ADMIN.BLOG.READMORE_TEXT_DESCRIPTION diff --git a/blueprints/item.yaml b/blueprints/item.yaml old mode 100644 new mode 100755 index a708fae..5a55121 --- a/blueprints/item.yaml +++ b/blueprints/item.yaml @@ -7,19 +7,19 @@ form: fields: blog-item: type: tab - title: EDITORIAL.ADMIN.ITEM.ITEM_TAB + title: EDITORIAL.ADMIN.ITEM.TAB fields: summary: type: section - title: EDITORIAL.ADMIN.ITEM.ITEM_SUMMARY + title: EDITORIAL.ADMIN.ITEM.SUMMARY.TITLE underline: true header.summary.enabled: type: toggle toggleable: true - label: EDITORIAL.ADMIN.ITEM.ITEM_SUMMARY_ENABLED + label: EDITORIAL.ADMIN.ITEM.SUMMARY.ENABLED highlight: 1 options: 1: Enabled @@ -28,16 +28,16 @@ form: header.summary.format: type: select toggleable: true - label: EDITORIAL.ADMIN.ITEM.ITEM_SUMMARY_FORMAT + label: EDITORIAL.ADMIN.ITEM.SUMMARY.FORMAT classes: fancy options: - 'short': EDITORIAL.ADMIN.ITEM.ITEM_SUMMARY_FORMAT_SHORT - 'long': EDITORIAL.ADMIN.ITEM.ITEM_SUMMARY_FORMAT_LONG + 'short': EDITORIAL.ADMIN.ITEM.SUMMARY.FORMAT_SHORT + 'long': EDITORIAL.ADMIN.ITEM.SUMMARY.FORMAT_LONG header.summary.size: type: text toggleable: true - label: EDITORIAL.ADMIN.ITEM.ITEM_SUMMARY_SIZE + label: EDITORIAL.ADMIN.ITEM.SUMMARY.SIZE classes: large placeholder: 300 validate: @@ -47,6 +47,6 @@ form: header.summary.delimiter: type: text toggleable: true - label: EDITORIAL.ADMIN.ITEM.ITEM_SUMMARY_DELIMITER + label: EDITORIAL.ADMIN.ITEM.SUMMARY.DELIMITER classes: large placeholder: === \ No newline at end of file From 4c6bb987c4dbac8e44d8918752ec657a6d57caa3 Mon Sep 17 00:00:00 2001 From: "pmoreno.rodriguez" <60596353+pmoreno-rodriguez@users.noreply.github.com> Date: Mon, 23 Jan 2023 10:10:32 +0100 Subject: [PATCH 06/20] Added custom 'Read more' text for items in recent posts --- blueprints/modular/recent-posts.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) mode change 100644 => 100755 blueprints/modular/recent-posts.yaml diff --git a/blueprints/modular/recent-posts.yaml b/blueprints/modular/recent-posts.yaml old mode 100644 new mode 100755 index 96433b9..d1c33e5 --- a/blueprints/modular/recent-posts.yaml +++ b/blueprints/modular/recent-posts.yaml @@ -13,8 +13,8 @@ form: fields: header.blog_url: type: text - label: EDITORIAL.ADMIN.BLOG.BLOG_ROUTE - help: EDITORIAL.ADMIN.BLOG.BLOG_HELP + label: EDITORIAL.ADMIN.BLOG.ROUTE + help: EDITORIAL.ADMIN.BLOG.ROUTE_HELP default: '/blog' placeholder: '/blog' size: medium @@ -28,4 +28,11 @@ form: required: true type: int min: 1 - max: 9 \ No newline at end of file + max: 9 + header.readmore_text: + type: text + toggleable: true + default: 'Read more' + size: large + label: EDITORIAL.ADMIN.MODULAR.RECENT_POSTS.READMORE_TEXT + description: EDITORIAL.ADMIN.MODULAR.RECENT_POSTS.READMORE_TEXT_DESCRIPTION \ No newline at end of file From 391b5852e49b081cdc4b09eb4f501c7051964903 Mon Sep 17 00:00:00 2001 From: "pmoreno.rodriguez" <60596353+pmoreno-rodriguez@users.noreply.github.com> Date: Mon, 23 Jan 2023 10:21:05 +0100 Subject: [PATCH 07/20] Fix blog listing title --- templates/blog.html.twig | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) mode change 100644 => 100755 templates/blog.html.twig diff --git a/templates/blog.html.twig b/templates/blog.html.twig old mode 100644 new mode 100755 index 674d179..e678def --- a/templates/blog.html.twig +++ b/templates/blog.html.twig @@ -4,25 +4,32 @@ {% set blog = page.find(header_var('blog_url')|defined(theme_var('blog-page'))) %} {% set show_pagination = header_var('show_pagination', [page, blog])|defined(true) %} +{# Set the listing_title for category, tag and author #} +{% set listing_title_category = theme_var('listing_title.taxonomy.category')|raw|defined('Posts in Category: ') %} +{% set listing_title_tag = theme_var('listing_title.taxonomy.tag')|defined('Posts with Tag: ') %} +{% set listing_title_author = theme_var('listing_title.taxonomy.author')|defined('Posts written by Author: ') %} + +{# Set page title by taxonomy #} {% if uri.param('category') %} - {% set page_title = theme_config.listing_title.taxonomy.category | default('Posts in Category: ') ~ uri.param('category') %} + {% set page_title = listing_title_category ~ uri.param('category') %} {% elseif uri.param('tag') %} - {% set page_title = theme_config.listing_title.taxonomy.tag | default('Posts with Tag: ') ~ uri.param('tag') %} + {% set page_title = listing_title_tag ~ uri.param('tag') %} +{% elseif uri.param('author') %} + {% set page_title = listing_title_author ~ uri.param('author') %} {% else %} - {% set page_title = theme_config.listing_title.blog | default('Blog') %} + {% set page_title = theme_var('listing_title.blog')|default('Blog') %} {% endif %} -{% block body %} +{% block content %}

{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %} {% include 'partials/breadcrumbs.html.twig' %} {% endif %}

-
-

- {{page_title}} -

+
+

{{page_title}}

+ {% if page.header.subtitle %}

{{ page.header.subtitle|raw }}

{% endif %}
From b9f520d9bf797f9527935b9a51078d688077ac1e Mon Sep 17 00:00:00 2001 From: "pmoreno.rodriguez" <60596353+pmoreno-rodriguez@users.noreply.github.com> Date: Mon, 23 Jan 2023 10:26:01 +0100 Subject: [PATCH 08/20] Deleted body block and fixed header title and subtitle --- templates/default.html.twig | 14 +++++++++----- templates/error.html.twig | 6 +----- templates/item.html.twig | 8 ++++---- templates/modular.html.twig | 4 +--- templates/modular/banner.html.twig | 2 +- templates/modular/contact.html.twig | 3 ++- templates/modular/features.html.twig | 1 + templates/partials/contact.html.twig | 4 ++-- templates/partials/footer.html.twig | 5 ++++- templates/simplesearch_results.html.twig | 2 -- 10 files changed, 25 insertions(+), 24 deletions(-) mode change 100644 => 100755 templates/default.html.twig mode change 100644 => 100755 templates/error.html.twig mode change 100644 => 100755 templates/item.html.twig mode change 100644 => 100755 templates/modular.html.twig mode change 100644 => 100755 templates/modular/banner.html.twig mode change 100644 => 100755 templates/modular/contact.html.twig mode change 100644 => 100755 templates/partials/contact.html.twig mode change 100644 => 100755 templates/partials/footer.html.twig mode change 100644 => 100755 templates/simplesearch_results.html.twig diff --git a/templates/default.html.twig b/templates/default.html.twig old mode 100644 new mode 100755 index 65bb58f..f4586e9 --- a/templates/default.html.twig +++ b/templates/default.html.twig @@ -1,16 +1,20 @@ {% extends 'partials/base.html.twig' %} +{% set image = page.media[header.featured_image] ?: page.media.images|first %} +{% set title = page.title %} {% block content %} -
-
- {% if header.featured_image %} + +
+ {% if image %} - {{ page.media[header.featured_image].cropZoom(500,150).html()|raw }} + {{ image.cropZoom(1000,300).loading('lazy').html(title,title,'image')|raw }} {% endif %} +

{{ title|raw }}

+ {% if page.header.subtitle %}

{{ page.header.subtitle|raw }}

{% endif %}
{{ page.content|raw }}
-
+ {% endblock %} diff --git a/templates/error.html.twig b/templates/error.html.twig old mode 100644 new mode 100755 index 41ce69c..621df20 --- a/templates/error.html.twig +++ b/templates/error.html.twig @@ -1,16 +1,12 @@ {% extends 'partials/base.html.twig' %} -{% block body %} - {% block content %}

-

{{ 'PLUGIN_ERROR.ERROR'|t }} {{ page.header.http_response_code }}

+

{{ 'PLUGIN_ERROR.ERROR'|t }} {{ page.header.http_response_code }}

{{ page.content|raw }}
{% endblock %} - -{% endblock %} diff --git a/templates/item.html.twig b/templates/item.html.twig old mode 100644 new mode 100755 index 23f6d85..caf71a8 --- a/templates/item.html.twig +++ b/templates/item.html.twig @@ -10,7 +10,7 @@ {% else %} {% set author = page.header.taxonomy.author[0] %} {% endif %} -{% block body %} + {% block content %}

{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %} @@ -19,7 +19,8 @@

-

{{ page.title }}

+

{{ page.title }}

+ {% if page.header.subtitle %}

{{ page.header.subtitle|raw }}

{% endif %}

{% if config.plugins.readingtime.enabled %} {{ page.content|readingtime}}{% endif %} {% if (page.header.publish_date) %} @@ -44,7 +45,7 @@

- {% if config.plugins.taxonomylist.enabled %} + {% if page.taxonomy.tag %} {% for tag in page.taxonomy.tag %} {% endblock %} -{% endblock %} diff --git a/templates/modular.html.twig b/templates/modular.html.twig old mode 100644 new mode 100755 index 2c91197..960630d --- a/templates/modular.html.twig +++ b/templates/modular.html.twig @@ -1,9 +1,7 @@ {% extends 'partials/base.html.twig' %} -{% block body %} {% block content %} {% for module in page.collection() %} {{ module.content|raw }} {% endfor %} -{% endblock %} -{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/templates/modular/banner.html.twig b/templates/modular/banner.html.twig old mode 100644 new mode 100755 index 9384d24..d767526 --- a/templates/modular/banner.html.twig +++ b/templates/modular/banner.html.twig @@ -3,7 +3,7 @@