The tag `datelang` on line 13 in `/_layouts/post.html` is not a recognized Liquid tag
rupc opened this issue · comments
Hi! @williamcanin
I encountered another issue with deploying the site. I successfully run "bundle install" command, compiling project for deploy, and staring jekyll server locally. And I also configured "baseurl" and "url" field in _config file to "/_site" and "https://rupc.github.io" correspondingly. "remoteURL" field in deploy.conf is also configured.
But when I typed "bash init.sh deploy:source" and "bash init.sh deploy:site" afterwards, I got an email from Github, which it says that page build fails.
An error from Github consistently reports that "The tag datelang
on line 13 in /_layouts/post.html
is not a recognized Liquid tag"
Following code is first 20 lines of code from post.html .
---
layout: default
---
<!-- Include Data Base -->
{% include dbase/dbase %}
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
<!-- Next Version <div class="readmode">
<a id="btn-readmode" class="pull-right btn btn-default btn-readmode" href="">Read Mode</a>
</div> -->
<div class="row title">
<h1>{{ page.title }}</h1>
</div>
<div class="row meta" datetime="{{ page.date | date:'%Y-%m-%d' }}">
<time class="col-sm-6 datetime">
{% if site.screen.icons.enable == true %}<i class="fa fa-calendar" aria-hidden="true"></i>{% endif %}<span class="text {% if site.screen.icons.enable == true %} tmargin {% endif %}">{% datelang page %}{% include datelang/page %}</span>
</time>
{% if page.comments and dbase.userdata.disqus.username %}
<div class="col-sm-6 count-comments">
I think I successfully followed your instructions, but it seems that I miss something though.
Oh, I found a solution, I closed the issue
Glad you got the solution. Remember that you should not put in the "gh-pages" branch the source code of the project, but rather the content of "_site" . Github Pages (gh-pages) does not support the programming of this template, you have to send the " _site".
@rupc I have that error. Could you post the solution?
How to resolve this, I am having that same issue.
Any idea?
How to resolve this, I am having that same issue.
Any idea?
- First see what version you are using, as this issue is from an old version.
- The most recent version, the compiled site folder is public, not _site.
- There is no longer an init.sh file to manage deploy.
- Always use the latest stable version.
The error he got was because he was deploying the project's source to the Github gh-pages folder, and Github doesn't manage plugins which in this case is datelang.rb inside the folder _src/_plugins/.
As mentioned above, you should use the Typing folder compiled for your web server or your default branch of your website, that is, the public folder that should go to gh-pages or branch master.
Always read README.md, you will have information on how the project will work.
Yeah! I had figured that out.
Your second point was the one applied for me.
Thank you,
Yeah! I had figured that out. Your second point was the one applied for me.
Thank you,
Hi. Could you tell me how to solve this problem? I have already uploaded the public folder to the main branch.
But it didn't work.