The tag `twitter` ... is not a recognized Liquid tag

Just updated my repo manually to the latest … all looks fine except I can’t push any of the .md files in _posts/. Something about the twitter tag.

Any ideas?

The exception after pushing all my merged files back to github …

env:
    STATUS: errored
    ERROR: The tag `twitter` on line 9 in `_posts/2020-03-06-fastpages-actions.md` is not a recognized Liquid tag. For more information, see https://help.github.com/en/github/working-with-github-pages/troubleshooting-jekyll-build-errors-for-github-pages-sites#unknown-tag-error.

@wgpubs please share more information to allow for debugging - link to markdown or notebook would be helpful. Need to be able to reproduce the error

Actually looks like the build is failing …

.md file is here

 Jekyll build7s
                    ------------------------------------------------
             Theme: jekyll/minima
      Theme source: /tmp/jekyll-remote-theme-20200308-1-1oztv15
      Remote Theme: Using theme jekyll/minima
       EntryFilter: excluded /docker-compose.yml
       EntryFilter: excluded /Makefile
       EntryFilter: excluded /Gemfile
       EntryFilter: excluded /Gemfile.lock
       EntryFilter: excluded /action.yml
           Reading: _posts/2020-01-14-test-markdown-post.md
           Reading: _posts/2020-03-06-fastpages-actions.md
           Reading: _posts/2020-02-20-test.md
           Reading: _posts/2020-02-21-introducing-fastpages.md
       Jekyll Feed: Generating feed for posts
        Generating: JekyllFeed::Generator finished in 0.000617701 seconds.
        Generating: JekyllRelativeLinks::Generator finished in 0.0003523 seconds.
         Rendering: _posts/2020-01-14-test-markdown-post.md
  Pre-Render Hooks: _posts/2020-01-14-test-markdown-post.md
  Rendering Liquid: _posts/2020-01-14-test-markdown-post.md
  Rendering Markup: _posts/2020-01-14-test-markdown-post.md
         Requiring: kramdown-math-katex
  Rendering Layout: _posts/2020-01-14-test-markdown-post.md
     Layout source: site
  Liquid Exception: no implicit conversion of nil into String in /_layouts/default.html
      Remote Theme: Cleaning up /tmp/jekyll-remote-theme-20200308-1-mck3gj
                    ------------------------------------------------
      Jekyll 4.0.0   Please append `--trace` to the `build` command 
                     for any additional information or backtrace. 
                    ------------------------------------------------

@wgpubs looks like you didn’t follow setup instructions please read

Carefully

I’m trying one more thing …

The problems hit when I tried using ohmeow.github.io as my new repo (as recommended by github for folks wanting to host their personal site on gh without having to have a domain).

Anyways, once I tried to build it with a differently named repo … all worked :slight_smile:

Lesson learned: Do not create a new repository from fastpage named <github_username>.github.io

1 Like

That is in the instructions :smiley:

1 Like

Can there be any other reason. I am also facing the same issue. I didnt create it in the
<github_user>.github.io. I am getting the error:

import os
  status, errormsg = os.getenv('STATUS'), os.getenv('ERROR')
  assert status == 'built', 'There was an error building the page on GitHub pages.\n\nStatus: {}\n\nError messsage: {}'.format(status, errormsg)
  shell: /usr/bin/python {0}
  env:
    STATUS: errored
    ERROR: The tag `twitter` on line 86 in `_posts/2020-01-14-test-markdown-post.md` is not a recognized Liquid tag. For more information, see https://help.github.com/en/github/working-with-github-pages/troubleshooting-jekyll-build-errors-for-github-pages-sites#unknown-tag-error.
Traceback (most recent call last):
  File "/home/runner/work/_temp/d7e7d4d3-f16f-4bc5-81fb-7ffc9096bbbf.py", line 3, in <module>
    assert status == 'built', 'There was an error building the page on GitHub pages.\n\nStatus: {}\n\nError messsage: {}'.format(status, errormsg)
AssertionError: There was an error building the page on GitHub pages.

Status: errored

Error messsage: The tag `twitter` on line 86 in `_posts/2020-01-14-test-markdown-post.md` is not a recognized Liquid tag. For more information, see https://help.github.com/en/github/working-with-github-pages/troubleshooting-jekyll-build-errors-for-github-pages-sites#unknown-tag-error.
##[error]Process completed with exit code 1.

Any help is appreciated…

Solved: After changing the config.xml to point to my twitter ID, it worked.
(Although I am not exactly sure if that is how it is decided to work…)

1 Like

Thanks @wgpubs! I was trying that too! Hey @hamelsmu, I was wondering: is it possible to have <github_username>.github.io as homepage instead of <github_username>.github.io/xxx. I am using fastpages. On fast_template I think that was possible.

UPDATE: Just found the answer :slight_smile: It’s here: [fastpages] Replacing main <username>.github.io Page w/ FastPages?

@wittmannf

[fastpages] Replacing main <username>.github.io Page w/ FastPages?