In Jekyll templates, the used Liquid tags can generate many white spaces. From Liquid documents, use {{- -}}or {{% %}}to remove these spaces.
{{-
-}}
{{%
%}}
But I have Liquid syntax errorit when the Jekyll building.
Liquid syntax error
How to fix this problem or do you have any other methods to remove spaces?
Tags {{-and {%-exist in the latest beta version of the Liquid, but Jekyll uses the latest stable version, which does not include these tags.
{%-
Liquid 4.0, Jekyll , , Jekyll.
Gem, .
https://github.com/itafroma/jekyll-newline_collapse
https://github.com/stereobooster/html_press
I had success using the remove method and specifying a space:
Input {{ "Multiple words here" | remove: " " }} Output Multiplewordshere
Source: https://habr.com/ru/post/1662066/More articles:For this recursive code, why does Python 2.7 not give an error, but 3.5 does? - pythonHow to efficiently reorder pandas data as follows? - pythonCannot connect to Cloud SQL using PyMySQL - pythonFacebook Analytics: User Properties and Logged Events Using the Graphical API - facebookPHP - ошибки с get_headers и SSL - phpSpring @Autowired and @Qualifier - javaMongoose async / wait for Koa to get stuck waiting for Model.findOne (). Exec () - node.jsSpring Download 1.4.2 @WebMvcTest returns status 404 - javaFailed to load DLL 'api-ms-win-core-registry-l1-1-0.dll' - .netитерация по pandas файлу данных в jinja2 - pythonAll Articles