I am working on a Jekyll project for documentation. I am encountering issues related to Liquid syntax and an unknown tag ‘javascript’ in my project.
I am receiving the following error messages during the Jekyll build process:
Lunr: Index ready (lunr.js v0.7.2)
Liquid Warning: Liquid syntax error (line 8): Expected id but found pipe in "{{ page.page_title || page.title }}" in /_layouts/index.md
Liquid Exception: Liquid syntax error (/mnt/c/Users/ASUS/Downloads/Documentation/_includes/header.html line 31): Unknown tag 'javascript' included in /_layouts/index.md
bundler: failed to load command: jekyll (/usr/local/bin/jekyll)
/var/lib/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/document.rb:23:in `unknown_tag': Liquid syntax error (/mnt/c/Users/ASUS/Downloads/Documentation/_includes/header.html line 31): Unknown tag 'javascript' included (Liquid::SyntaxError)
from /var/lib/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/document.rb:11:in `block in parse'
from /var/lib/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/block_body.rb:32:in `parse'
from /var/lib/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/document.rb:10:in `parse'
from /var/lib/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/document.rb:5:in `parse'
from /var/lib/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/template.rb:130:in `parse'
from /var/lib/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/template.rb:114:in `parse'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/liquid_renderer/file.rb:13:in `block in parse'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/liquid_renderer/file.rb:49:in `measure_time'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/liquid_renderer/file.rb:12:in `parse'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/tags/include.rb:174:in `load_cached_partial'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/tags/include.rb:135:in `render'
from /var/lib/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/block_body.rb:103:in `render_node_to_output'
from /var/lib/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/block_body.rb:91:in `render'
from /var/lib/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/template.rb:206:in `block in render'
from /var/lib/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/template.rb:240:in `with_profiling'
from /var/lib/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/template.rb:205:in `render'
from /var/lib/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/template.rb:218:in `render!'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/liquid_renderer/file.rb:30:in `block (2 levels) in render!'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/liquid_renderer/file.rb:42:in `measure_bytes'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/liquid_renderer/file.rb:29:in `block in render!'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/liquid_renderer/file.rb:49:in `measure_time'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/liquid_renderer/file.rb:28:in `render!'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/tags/include.rb:140:in `block in render'
from /var/lib/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/context.rb:123:in `stack'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/tags/include.rb:137:in `render'
from /var/lib/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/block_body.rb:103:in `render_node_to_output'
from /var/lib/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/block_body.rb:91:in `render'
from /var/lib/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/template.rb:206:in `block in render'
from /var/lib/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/template.rb:240:in `with_profiling'
from /var/lib/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/template.rb:205:in `render'
from /var/lib/gems/3.0.0/gems/liquid-4.0.4/lib/liquid/template.rb:218:in `render!'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/liquid_renderer/file.rb:30:in `block (2 levels) in render!'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/liquid_renderer/file.rb:42:in `measure_bytes'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/liquid_renderer/file.rb:29:in `block in render!'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/liquid_renderer/file.rb:49:in `measure_time'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/liquid_renderer/file.rb:28:in `render!'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/renderer.rb:126:in `render_liquid'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/renderer.rb:195:in `render_layout'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/renderer.rb:158:in `place_in_layouts'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/renderer.rb:88:in `render_document'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/renderer.rb:62:in `run'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/site.rb:479:in `render_regenerated'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/site.rb:472:in `block in render_pages'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/site.rb:471:in `each'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/site.rb:471:in `render_pages'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/site.rb:192:in `render'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/site.rb:71:in `process'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/command.rb:28:in `process_site'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/commands/build.rb:65:in `build'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/commands/build.rb:36:in `process'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/lib/jekyll/commands/build.rb:18:in `block (2 levels) in init_with_program'
from /var/lib/gems/3.0.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
from /var/lib/gems/3.0.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
from /var/lib/gems/3.0.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
from /var/lib/gems/3.0.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
from /var/lib/gems/3.0.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
from /var/lib/gems/3.0.0/gems/jekyll-3.9.3/exe/jekyll:15:in `<top (required)>'
from /usr/local/bin/jekyll:25:in `load'
from /usr/local/bin/jekyll:25:in `<top (required)>'
from /usr/lib/ruby/3.0.0/bundler/cli/exec.rb:63:in `load'
from /usr/lib/ruby/3.0.0/bundler/cli/exec.rb:63:in `kernel_load'
from /usr/lib/ruby/3.0.0/bundler/cli/exec.rb:28:in `run'
from /usr/lib/ruby/3.0.0/bundler/cli.rb:474:in `exec'
from /usr/lib/ruby/3.0.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /usr/lib/ruby/3.0.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /usr/lib/ruby/3.0.0/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from /usr/lib/ruby/3.0.0/bundler/cli.rb:30:in `dispatch'
from /usr/lib/ruby/3.0.0/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from /usr/lib/ruby/3.0.0/bundler/cli.rb:24:in `start'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.22/libexec/bundle:49:in `block in <top (required)>'
from /usr/lib/ruby/3.0.0/bundler/friendly_errors.rb:128:in `with_friendly_errors'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.22/libexec/bundle:37:in `<top (required)>'
from /usr/local/bin/bundle:25:in `load'
from /usr/local/bin/bundle:25:in `<main>'
File: _layouts/index.md
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta http-equiv="X-UA-Compatible" content="IE=edge;" />
<title>{{ page.page_title || page.title }}</title>
<link rel="shortcut icon" href="{{site.baseurl}}/emblem.png" />
{% if page.description %}
<meta name="description" content="{{page.description}}">
{% endif %}
<script>
var buildtime = '{{site.time}}';
</script>
<link rel="stylesheet" href="{{ "/stylesheets/kendo-common.css" | relative_url }}">
<link rel="stylesheet" href="{{ "/stylesheets/kendo-default.css" | relative_url }}">
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="{{ "/stylesheets/styles.css" | relative_url }}">
<link rel="stylesheet" href="{{ "/stylesheets/theme.css" | relative_url }}">
<link rel="stylesheet" href="{{ "/stylesheets/lightbox.css" | relative_url }}">
<script src="//code.jquery.com/jquery-2.2.4.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="{{ "/javascripts/kendo.js" | relative_url }}"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.6.0/codemirror.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.6.0/codemirror.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.6.0/mode/javascript/javascript.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.6.0/mode/css/css.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.6.0/mode/xml/xml.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.6.0/mode/htmlmixed/htmlmixed.min.js"></script>
<script src="{{ "/javascripts/prettify.js" | relative_url }}"></script>
<script src="{{ "/javascripts/app.js" | relative_url }}"></script>
<!--[if lt IE 9]>
<script>
document.createElement('header');
document.createElement('nav');
document.createElement('section');
document.createElement('article');
document.createElement('aside');
document.createElement('footer');
document.createElement('hgroup');
</script>
<![endif]-->
</head>
<body>
<header id="page-header" class="hidden-print">
<span class="toggle-nav"><span></span></span>
{% include header.html %}
</header>
<section id="search-results" style="display: none; z-index: 100;position: absolute; background-color: white; width:100%; padding: 20px 20px 40px 30px;">
<p>Search results</p>
<div class="entries">
</div>
</section>
<div id="page-inner-content">
<div id="page-nav" class="hidden-print">
<div id="page-tree"></div>
</div>
<div class="pull-right hidden-print">
<button id="export-to-pdf-link" type="button" class="page-helper-buttons btn btn-action">Print</button>
</div>
{% if page.kind == "api" %}
<div id="markdown-toc"></div>{% endif %}
<div id="page-article">
<article>
{{ content }}
</article>
{% include footer.html %}
</div>
<div id="pdfeditor"></div>
<!-- <script src="//cdnjs.cloudflare.com/ajax/libs/jspdf/1.3.0/jspdf.min.js"></script> -->
</div>
<script src="{{ "/javascripts/browsercheck.js" | relative_url }}"></script>
<script src="{{ "/javascripts/lightbox.js" | relative_url }}"></script>
<script src="{{ "/javascripts/menu.js" | relative_url }}"></script>
</body>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-6741184-11', 'auto');
ga('send', 'pageview');
</script>
</html>
File: _includes/header.html
<div id="logo-bar">
<a href="{{site.baseurl}}/">
<img alt="Company logo" class="logo" src="{{site.baseurl}}/images/logo.png">
</a>
</div>
<div id="page-search">
{% include searchlunar.html %}
</div>
<span class="show-search">
</span>
<!-- START sso account button -->
<div id="sso_account" class="pull-right" style="display: none; margin-top: 30px;">
<li class="dropdown dropdown-list" style="display: inline; margin-right: 10px;">
<a href="#" data-toggle="dropdown">
<img src="https://secure.gravatar.com/avatar/abcd?d=identicon&s=100" alt="Your Profile" width="20" height="20" class="img-circle" id="users_gravatar1">
</a>
<!-- START Dropdown menu-->
<ul class="dropdown-menu animated flipInX">
<li>
<!-- START list group-->
<div class="list-group">
<!-- list item-->
<a href="#" class="list-group-item">
<div class="media-box">
<div class="pull-left">
<img src="https://secure.gravatar.com/avatar/abcd?d=identicon&s=100" id="users_gravatar2">
</div>
<div class="media-box-body clearfix">
<p class="m0" id="users_full_name"></p>
<p class="m0 text-muted">
<small id="users_web_roles"></small>
</p>
</div>
</div>
</a>
<!-- last list item -->
<div class="list-group-item" id="users_action_buttons">
<!-- will be filled in from app.js -->
</div>
</div>
<!-- END list group-->
</li>
</ul>
<!-- END Dropdown menu-->
</li>
</div>
<div class="nav-buttons">
<a href="mailto:support@townsuite.com" id="contact_support" class="btn support-btn">Contact support</a>
<a href="https://portal.ws.townsuite.com" id="back_to_portal" class="btn portal-btn">Back to Portal</a>
</div>
<!-- END sso account button -->
File: _config.yml
# The public documentation URL, used for sitemap.xml
url: "https://docs.townsuite.com"
gems: ['jekyll-lunr-js-search']
# Exclude files which should not be in the output
exclude: ['.git', 'build', 'readme.md', 'README.md', 'Gemfile', 'Gemfile.lock', 'api_sort.rb', 'bootstrap.sh', 'vagrantfile', 'care.html', 'Dockerfile', 'build.sh', 'index_temp.md', 'Dockerfile.serve', 'docker.sh', docker.ps1', 'Jenkinsfile-Draft', 'Web.Config', 'mktemp', 'SRS_Documents']
navigation:
## List your directory names and order here, like this:
"home":
title: "Home"
position: 1
"releasenotes":
title: "Release Notes"
position: 2
"highlight":
title: "Feature High Lights"
position: 3
"financial":
title: "Financial Documentation"
position: 4
"financial/Quick-Start":
title: "Quick Start"
position: 1
"mapping":
title: "Mapping Documentation"
position: 5
"planning":
title: "Planning Documentation"
position: 6
"webservices_staff":
title: "Web Services Staff"
position: 7
"webservices_user":
title: "Web Services User"
position: 8
"Mobile_Documentation":
title: "Mobile Documentation"
position: 9
"staff":
title: "Staff Documentation"
position: 10
"api":
title: "API"
position: 11
"Edge":
title: "TownSuite Edge Recordings"
position: 12
"Webinars":
title: "TownSuite Webinars"
position: 13
## The application virtual path
baseurl:
## The Kendo UI version used
cdnVersion: "2017.1.118"
## Assign layout and category per different paths
defaults:
- scope:
path: ""
values:
layout: "page"
category: "default"
product: "TownSuite"
editable: true
- scope:
path: ""
values:
editableExample: "true"
type_links:
"Array": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array"
"Boolean": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean"
"Function": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function"
"jQuery": "http://api.jquery.com/Types/#jQuery"
"Promise": "http://api.jquery.com/Types/#Promise"
"Object": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object"
"Number": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number"
"String": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String"
# Aliases available in the markdown template. The below will expand {{site.foo}} to Bar in the output
# "foo": "Bar"
# The google services configuration
google_tag_manager: ''
google_custom_search: ''
# Assets pipeline configuration
assets:
cachebust: soft
js_compressor: uglifier
gzip: false
## Do not edit below this line
safe: false
markdown: kramdown
kramdown:
input: GFM
hard_wrap: false
encoding: "utf-8"
plugins:
- jekyll-paginate
- jekyll-sitemap
- jekyll-gist
- jekyll-feed
- jemoji
- jekyll-include-cache