Skip to content

Issue with highlighting load tags for Django code  #4567

@raybesiga

Description

@raybesiga
I am using Jekyll 3.1.1 on Mac OS X 10.11.2 and I am using Rouge for syntax highlighting.

In my markdown file, I am intend to highlight the following code

{% load pipeline %}
<!DOCTYPE html>  
<html lang="en">  
  <head>
    <meta charset="utf-8">
    <title>{% block title %}Build with the Github API{% endblock %}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Building with the Github API">
    <meta name="author" content="Ray Besiga">

    <!-- Styles -->
    {% stylesheet 'yokogao' %}
  </head>
  <body>
    <div class="container">
      {% block content %}

      {% endblock %}
    </div>
    <!-- Javascript -->
    {% block extra_scripts %}
    {% endblock %}

  </body>
</html>

When I run jekyll serve it returns the following error:

➜  test-site git:(master) ✗ jekyll serve --profile
Configuration file: /Users/raybesiga/Projects/test-site/_config.yml
            Source: /Users/raybesiga/Projects/test-site
       Destination: /Users/raybesiga/Projects/test-site/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
  Liquid Exception: Liquid syntax error: Unknown tag 'load' in /Users/raybesiga/Projects/test-site/_posts/2016-02-23-basic-django-app-github-api.markdown
jekyll 3.1.1 | Error:  Liquid syntax error: Unknown tag 'load'

I expected this to work as expected but not sure why it is raising an error. Any advise and help will be highly appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    has-pull-requestSomebody suggested a solution to fix this issuesupportThis is a question about Jekyll's usage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions