Warning: The github-pages gem can't satisfy your Gemfile's dependencies. If you want to use a different Jekyll version or need additional dependencies, consider building Jekyll site with GitHub Actions: https://jekyllrb.com/docs/continuous-integration/github-actions/
To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
Liquid Exception: Liquid syntax error (line 76): 'raw' tag was never closed in /github/workspace/_posts/2024-08-19-My-Journey-Learning-CUDA-2.md
Error: Logging at level: debug Configuration file: /github/workspace/./_config.yml GitHub Pages: github-pages v232 GitHub Pages: jekyll v3.10.0 Theme: jekyll-theme-primer Theme source: /usr/local/bundle/gems/jekyll-theme-primer-0.6.0 Requiring: jekyll-github-metadata Requiring: jekyll-seo-tag Requiring: jekyll-feed Requiring: jekyll-seo-tag Requiring: jekyll-sitemap Requiring: jekyll-paginate Requiring: jekyll-coffeescript Requiring: jekyll-commonmark-ghpages Requiring: jekyll-gist Requiring: jekyll-github-metadata Requiring: jekyll-relative-links Requiring: jekyll-optional-front-matter Requiring: jekyll-readme-index Requiring: jekyll-default-layout Requiring: jekyll-titles-from-headings GitHub Metadata: Initializing... Source: /github/workspace/. Destination: /github/workspace/./_site Incremental build: disabled. Enable with --incremental Generating... EntryFilter: excluded /Gemfile Reading: _posts/2017-12-08-mermaid-example.md Reading: _posts/2024-01-01-Welcome-Peaceful-Awakening.md Reading: _posts/2024-01-21-leetcode33.md Reading: _posts/2024-06-23-My-Journey-Learning-CUDA.md Reading: _posts/2024-07-25-My-Journey-Learning-OpenGL.md Reading: _posts/2024-08-08-PRD.md Reading: _posts/2024-08-19-My-Journey-Learning-CUDA-2.md Generating: JekyllOptionalFrontMatter::Generator finished in 0.000125795 seconds. Generating: JekyllReadmeIndex::Generator finished in 0.001955331 seconds. Jekyll Feed: Generating feed for posts Generating: JekyllFeed::Generator finished in 0.000762273 seconds. Generating: Jekyll::JekyllSitemap finished in 0.000727488 seconds. Generating: Jekyll::Paginate::Pagination finished in 1.2694e-05 seconds. Generating: JekyllRelativeLinks::Generator finished in 2.5938e-05 seconds. Generating: JekyllDefaultLayout::Generator finished in 6.412e-05 seconds. Generating: JekyllTitlesFromHeadings::Generator finished in 1.7192e-05 seconds. Rendering: _posts/2017-12-08-mermaid-example.md Pre-Render Hooks: _posts/2017-12-08-mermaid-example.md Rendering Markup: _posts/2017-12-08-mermaid-example.md Requiring: kramdown-parser-gfm Rendering Layout: _posts/2017-12-08-mermaid-example.md Layout source: site Rendering: _posts/2017-12-08-mermaid-example.md/#excerpt Pre-Render Hooks: _posts/2017-12-08-mermaid-example.md/#excerpt Rendering Markup: _posts/2017-12-08-mermaid-example.md/#excerpt Rendering: _posts/2024-01-01-Welcome-Peaceful-Awakening.md Pre-Render Hooks: _posts/2024-01-01-Welcome-Peaceful-Awakening.md Rendering Markup: _posts/2024-01-01-Welcome-Peaceful-Awakening.md Rendering Layout: _posts/2024-01-01-Welcome-Peaceful-Awakening.md Layout source: site Rendering: _posts/2024-01-01-Welcome-Peaceful-Awakening.md/#excerpt Pre-Render Hooks: _posts/2024-01-01-Welcome-Peaceful-Awakening.md/#excerpt Rendering Markup: _posts/2024-01-01-Welcome-Peaceful-Awakening.md/#excerpt Rendering: _posts/2024-01-21-leetcode33.md Pre-Render Hooks: _posts/2024-01-21-leetcode33.md Rendering Markup: _posts/2024-01-21-leetcode33.md Rendering Layout: _posts/2024-01-21-leetcode33.md Layout source: site Rendering: _posts/2024-01-21-leetcode33.md/#excerpt Pre-Render Hooks: _posts/2024-01-21-leetcode33.md/#excerpt Rendering Markup: _posts/2024-01-21-leetcode33.md/#excerpt Rendering: _posts/2024-06-23-My-Journey-Learning-CUDA.md Pre-Render Hooks: _posts/2024-06-23-My-Journey-Learning-CUDA.md Rendering Markup: _posts/2024-06-23-My-Journey-Learning-CUDA.md Rendering Layout: _posts/2024-06-23-My-Journey-Learning-CUDA.md Layout source: site Rendering: _posts/2024-06-23-My-Journey-Learning-CUDA.md/#excerpt Pre-Render Hooks: _posts/2024-06-23-My-Journey-Learning-CUDA.md/#excerpt Rendering Markup: _posts/2024-06-23-My-Journey-Learning-CUDA.md/#excerpt Rendering: _posts/2024-07-25-My-Journey-Learning-OpenGL.md Pre-Render Hooks: _posts/2024-07-25-My-Journey-Learning-OpenGL.md Rendering Markup: _posts/2024-07-25-My-Journey-Learning-OpenGL.md Rendering Layout: _posts/2024-07-25-My-Journey-Learning-OpenGL.md Layout source: site Rendering: _posts/2024-07-25-My-Journey-Learning-OpenGL.md/#excerpt Pre-Render Hooks: _posts/2024-07-25-My-Journey-Learning-OpenGL.md/#excerpt
二分法排查
发现markdown格式下的代码块不能有花括号
int main()
{
const int arraySize = 5;
const int a[arraySize] = { 1, 2, 3, 4, 5 };
const int b[arraySize] = { 10, 20, 30, 40, 50 };
int c[arraySize] = { 0 };
}
如上所示 在
markdown格式下的代码块中有数组用花括号
The error message indicates that there is an issue with how the {% raw %} tag is being used in your Markdown file. Specifically, the error occurs when the raw tag is not properly closed, which can happen if the closing {% endraw %} tag is missing or incorrectly placed.
Given the nature of your Markdown content, let’s ensure the raw tags are properly used and the C++ code block is correctly formatted. Here’s how you should structure the content:
Correct Usage of {% raw %} and {% endraw %}
Ensure the raw block is closed properly, and there’s no other syntax error:
解决办法
{% raw %}
int main()
{
const int arraySize = 5;
const int a[arraySize] = { 1, 2, 3, 4, 5 };
const int b[arraySize] = { 10, 20, 30, 40, 50 };
int c[arraySize] = { 0 };
}
{% endraw %}
前后加上{% raw %} {% endraw %}
解释
{% raw %}
is a Liquid tag used in Jekyll and other systems that process Liquid templates, like GitHub Pages. It tells the Liquid templating engine to treat the enclosed content as raw text, meaning Liquid should not process or interpret any tags, filters, or outputs inside this block.
Purpose of {% raw %}
Normally, Liquid processes any content that looks like a Liquid tag (e.g., {% ... %}
or {{ ... }}
). However, there are cases where you want to include such content in your files without Liquid interpreting it, such as when you’re writing tutorials that include Liquid syntax or embedding code snippets that include {%
or {{
.
By wrapping the content with {% raw %}
and {% endraw %}
, you ensure that Liquid treats everything inside as plain text.
Example Usage
Suppose you’re writing a blog post and want to include a Liquid example without it being processed:
{% raw %}
{% if user %}
Hello, {{ user.name }}!
{% endif %}
{% endraw %}
Without the {% raw %}
tags, Liquid would try to process the {% if user %}
and {{ user.name }}
tags, which would likely result in errors or unintended output if the user
object is not defined.
With {% raw %}
, the content between the tags is displayed as-is in the final HTML, making it perfect for showing code examples or embedding raw Liquid syntax.
Summary
{% raw %}
: Begins a block where Liquid tags and output are treated as raw text.{% endraw %}
: Ends the raw block.
These tags are essential when you need to prevent Liquid from interpreting parts of your Markdown content.