Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boilerplate branch for developer projects #404

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
42 changes: 0 additions & 42 deletions src/css/main.css

This file was deleted.

42 changes: 42 additions & 0 deletions src/css/main.hubl.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/* Theme base styles */

/* Tools
Any animations, or functions used throughout the project.
Note: _macros.hubl.css needs to be imported into each stylesheet where macros are used and not included here
*/

/* Generic
This is where reset, normalize & box-sizing styles go.
*/

{% include './generic/_reset.hubl.css' %}
{% include './generic/_normalize.hubl.css' %}

/* Objects
Non-cosmetic design patterns including grid and layout classes)
*/

{% include './objects/_layout.hubl.css' %}
{% include './objects/_containers-dnd.hubl.css' %}

/* Elements
Base HMTL elements are styled in this section (<body<, <h1>, <a>, <p>, <button> etc.)
*/

{% include './elements/_typography.hubl.css' %}
{% include './elements/_buttons.hubl.css' %}
{% include './elements/_forms.hubl.css' %}
{% include './elements/_tables.hubl.css' %}

/* Components
Specific pieces of UI that are stylized. Typically used for global partial styling
*/

{% include './components/_header.hubl.css' %}
{% include './components/_default-modules.hubl.css' %}

/* Utilities
Helper classes with ability to override anything that comes before it
*/

{% include './utilities/_helper.hubl.css' %}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% import './tools/_macros.css' %}
{% import './tools/_macros.hubl.css' %}

{## Table of contents

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/templates/about.html → src/templates/about.hubl.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
label: About
screenshotPath: ../images/template-previews/about.png
-->
{% extends './layouts/base.html' %}
{% extends './layouts/base.hubl.html' %}

{% block body %}
{% dnd_area 'dnd_area'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
label: Boilerplate - blog listing
screenshotPath: ../images/template-previews/blog-index.png
-->
{% set template_css = '../../css/templates/blog.css' %}
{% extends './layouts/base.html' %}
{% set template_css = '../../css/templates/blog.hubl.css' %}
{% extends './layouts/base.hubl.html' %}

{% block body %}
{% dnd_area 'dnd_area'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
label: Boilerplate - blog post
screenshotPath: ../images/template-previews/blog-post.png
-->
{% set template_css = '../../css/templates/blog.css' %}
{% extends './layouts/base.html' %}
{% set template_css = '../../css/templates/blog.hubl.css' %}
{% extends './layouts/base.hubl.html' %}

{% block body %}
<div class="body-container body-container--blog-post">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
label: Contact
screenshotPath: ../images/template-previews/contact.png
-->
{% extends './layouts/base.html' %}
{% extends './layouts/base.hubl.html' %}

{% block body %}
{% dnd_area 'dnd_area'
Expand All @@ -14,7 +14,7 @@

{# Cards #}

{% include_dnd_partial path='../sections/cards.html' %}
{% include_dnd_partial path='../sections/cards.hubl.html' %}

{% end_dnd_area %}
{% endblock body %}
10 changes: 5 additions & 5 deletions src/templates/home.html → src/templates/home.hubl.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
label: Home
screenshotPath: ../images/template-previews/home.png
-->
{% extends "./layouts/base.html" %}
{% extends "./layouts/base.hubl.html" %}

{% block body %}

Expand All @@ -17,11 +17,11 @@

{# Hero banner #}

{% include_dnd_partial path='../sections/hero-banner.html' %}
{% include_dnd_partial path='../sections/hero-banner.hubl.html' %}

{# Two column image right #}

{% include_dnd_partial path='../sections/multi-row-content.html' %}
{% include_dnd_partial path='../sections/multi-row-content.hubl.html' %}

{# Two column image left #}

Expand Down Expand Up @@ -54,11 +54,11 @@

{# Call to action #}

{% include_dnd_partial path='../sections/call-to-action.html' %}
{% include_dnd_partial path='../sections/call-to-action.hubl.html' %}

{# Three column image with text #}

{% include_dnd_partial path='../sections/multi-column-content.html' %}
{% include_dnd_partial path='../sections/multi-column-content.hubl.html' %}

{% end_dnd_area %}
{% endblock body %}
2 changes: 1 addition & 1 deletion src/templates/hubdb.html → src/templates/hubdb.hubl.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

{# Before getting started with using HubDB we highly recommend you read through our HubDB documentation (https://developers.hubspot.com/docs/cms/features/hubdb) #}

{% extends './layouts/base.html' %}
{% extends './layouts/base.hubl.html' %}

{# Testing config #}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
label: Landing page
screenshotPath: ../images/template-previews/landing-page.png
-->
{% extends './layouts/base.html' %}
{% extends './layouts/base.hubl.html' %}

{% block header %}
{% global_partial path='./partials/header-no-navigation.html' %}
{% global_partial path='./partials/header-no-navigation.hubl.html' %}
{% endblock header %}

{% block body %}
Expand All @@ -19,7 +19,7 @@
{# Hero banner #}

{% include_dnd_partial
path='../sections/hero-banner.html'
path='../sections/hero-banner.hubl.html'
context={
'content': '<h1>Download your free eBook</h1><p>Use this space to tell everyone what your eBook is all about.</p>',
}
Expand All @@ -28,7 +28,7 @@
{# Three column image with text #}

{% include_dnd_partial
path='../sections/multi-column-content.html',
path='../sections/multi-column-content.hubl.html',
context={
'background_color': '#FFFFFF'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
{% if page_meta.html_title || pageTitle %}<title>{{ page_meta.html_title || pageTitle }}</title>{% endif %}
{% if site_settings.favicon_src %}<link rel="shortcut icon" href="{{ site_settings.favicon_src }}" />{% endif %}
<meta name="description" content="{{ page_meta.meta_description }}">
{{ require_css(get_asset_url("../../css/main.css")) }}
{{ require_css(get_asset_url("../../css/main.hubl.css")) }}
{# This is intended to be used if a template requires template specific style sheets #}
{% if template_css %}
{{ require_css(get_asset_url(template_css)) }}
{% endif %}
{{ require_css(get_asset_url("../../css/theme-overrides.css")) }}
{{ require_css(get_asset_url("../../css/theme-overrides.hubl.css")) }}
{# To see a full list of what is included via standard_header_includes please reference this article: https://developers.hubspot.com/docs/cms/hubl/variables#required-page-template-variables #}
{{ standard_header_includes }}
</head>
<body>
<div class="body-wrapper {{ builtin_body_classes }}">
{% block header %}
{% global_partial path='../partials/header.html' %}
{% global_partial path='../partials/header.hubl.html' %}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem! Thanks for reporting it

{% endblock header %}

{# The main-content ID is used for the navigation skipper in the header.html file. More information on the navigation skipper can be found here: https://github.com/HubSpot/cms-theme-boilerplate/wiki/Accessibility #}
Expand All @@ -31,10 +31,10 @@
</main>

{% block footer %}
{% global_partial path='../partials/footer.html' %}
{% global_partial path='../partials/footer.hubl.html' %}
{% endblock footer %}
</div>
{{ require_js(get_asset_url('../../js/main.js')) }}
{{ require_js(get_asset_url('../../js/main.hubl.js')) }}
{# To see a full list of what is included via standard_footer_includes please reference this article: https://developers.hubspot.com/docs/cms/hubl/variables#required-page-template-variables #}
{{ standard_footer_includes }}
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
label: Pricing
screenshotPath: ../images/template-previews/pricing.png
-->
{% extends './layouts/base.html' %}
{% extends './layouts/base.hubl.html' %}

{% block body %}
{% dnd_area 'dnd_area'
Expand All @@ -14,7 +14,7 @@

{# Pricing #}

{% include_dnd_partial path='../sections/pricing.html' %}
{% include_dnd_partial path='../sections/pricing.hubl.html' %}

{% end_dnd_area %}
{% endblock body %}
14 changes: 7 additions & 7 deletions src/templates/qa-test.html → src/templates/qa-test.hubl.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
label: QA test
screenshotPath: ../images/template-previews/qa-test.png
-->
{% extends './layouts/base.html' %}
{% extends './layouts/base.hubl.html' %}

{% block body %}
{% dnd_area 'dnd_area'
Expand Down Expand Up @@ -523,7 +523,7 @@ <h3>Call to action</h3>
{% end_dnd_column %}
{% end_dnd_section %}

{% include_dnd_partial path='../sections/call-to-action.html' %}
{% include_dnd_partial path='../sections/call-to-action.hubl.html' %}

{# Cards #}

Expand All @@ -547,7 +547,7 @@ <h3>Cards</h3>
{% end_dnd_column %}
{% end_dnd_section %}

{% include_dnd_partial path='../sections/cards.html' %}
{% include_dnd_partial path='../sections/cards.hubl.html' %}

{# Hero banner #}

Expand All @@ -571,7 +571,7 @@ <h3>Hero banner</h3>
{% end_dnd_column %}
{% end_dnd_section %}

{% include_dnd_partial path='../sections/hero-banner.html' %}
{% include_dnd_partial path='../sections/hero-banner.hubl.html' %}

{# Multi-column content #}

Expand All @@ -595,7 +595,7 @@ <h3>Multi-column content</h3>
{% end_dnd_column %}
{% end_dnd_section %}

{% include_dnd_partial path='../sections/multi-column-content.html' %}
{% include_dnd_partial path='../sections/multi-column-content.hubl.html' %}

{# Multi-row content #}

Expand All @@ -619,7 +619,7 @@ <h3>Multi-row content</h3>
{% end_dnd_column %}
{% end_dnd_section %}

{% include_dnd_partial path='../sections/multi-row-content.html' %}
{% include_dnd_partial path='../sections/multi-row-content.hubl.html' %}

{# Pricing #}

Expand All @@ -643,7 +643,7 @@ <h3>Pricing</h3>
{% end_dnd_column %}
{% end_dnd_section %}

{% include_dnd_partial path='../sections/pricing.html' %}
{% include_dnd_partial path='../sections/pricing.hubl.html' %}

{% end_dnd_area %}
{% endblock body %}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
label: Boilerplate - 404 error
screenshotPath: ../../images/template-previews/404.png
-->
{% set template_css = '../../css/templates/system.css' %}
{% extends '../layouts/base.html' %}
{% set template_css = '../../css/templates/system.hubl.css' %}
{% extends '../layouts/base.hubl.html' %}
{# pageTitle is used on system templates for setting a value for the title tag #}
{% set pageTitle = "Error 404 | Page not found" %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
label: Boilerplate - 500 error
screenshotPath: ../../images/template-previews/500.png
-->
{% set template_css = '../../css/templates/system.css' %}
{% extends '../layouts/base.html' %}
{% set template_css = '../../css/templates/system.hubl.css' %}
{% extends '../layouts/base.hubl.html' %}
{# pageTitle is used on system templates for setting a value for the title tag #}
{% set pageTitle = "Error 500 | Server error" %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
label: Boilerplate - email backup unsubscribe
screenshotPath: ../../images/template-previews/backup-unsubscribe.png
-->
{% set template_css = '../../css/templates/system.css' %}
{% extends '../layouts/base.html' %}
{% set template_css = '../../css/templates/system.hubl.css' %}
{% extends '../layouts/base.hubl.html' %}
{# pageTitle is used on system templates for setting a value for the title tag #}
{% set pageTitle = "Unsubscribe" %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
label: Boilerplate - membership login
screenshotPath: ../../images/template-previews/membership-login.png
-->
{% set template_css = '../../css/templates/system.css' %}
{% extends '../layouts/base.html' %}
{% set template_css = '../../css/templates/system.hubl.css' %}
{% extends '../layouts/base.hubl.html' %}
{# pageTitle is used on system templates for setting a value for the title tag #}
{% set pageTitle = "Membership | Login" %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
label: Boilerplate - membership registration
screenshotPath: ../../images/template-previews/membership-register.png
-->
{% set template_css = '../../css/templates/system.css' %}
{% extends '../layouts/base.html' %}
{% set template_css = '../../css/templates/system.hubl.css' %}
{% extends '../layouts/base.hubl.html' %}
{# pageTitle is used on system templates for setting a value for the title tag #}
{% set pageTitle = "Membership | Register" %}

Expand Down
Loading
Loading