Skip to content
Bolt CMS theme
HTML JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
blog-posts
favicons
pages
theme/CoryDowdy
.editorconfig
.gitignore
LICENSE
README.md
package.json
sw.04172016.js

README.md

Site Theme For CoryDowdy.com

blog-posts: templates and actual posts for blog page
favicons: well....favicons :)
pages: page templates for each page on site
theme: is it all put together
Projects Used In this theme:

Base Template

Located in theme/CoryDowdy/base.html.twig

To use a Block in a child page (meaning: not in base.html.twig but in say about.html.twig) use the twig tag with the corresponding block.
{% block stylesheets %}

To keep what is included inside the base template block in a child template block use the twig tag
{{ parent() }}

{% block javascripts %}
  {{ parent() }}  
  <script src="your-script.js" async defer></script>  
{% endblock javascripts %}  

To use Enhance JS grab your global inlined styles and place them in the stylesheets block.

{% block stylesheets %}  

  {% block fout %}
  <!-- 
    Flash of unstyled text styles go here.  
    Typekit is .wf-loading
  -->  
  {% endblock fout %}
  <!-- check to see if the cookie from enhance js has been set.-->
  {% if app.request.cookies.has('fullcss') %}  
  <link rel="stylesheet" href="{{ paths.theme}}css/app.min.css"/>
  {% else %}  
    {% block inlined_styles %}  
    <!--  
      No cookie set. use these inlined styles.
    -->
    {% endblock %}
  {% endif %}
{% endblock %}
You can’t perform that action at this time.