Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting problems with output values in html tag. #188

Open
epver opened this issue Apr 11, 2024 · 2 comments
Open

Formatting problems with output values in html tag. #188

epver opened this issue Apr 11, 2024 · 2 comments

Comments

@epver
Copy link

epver commented Apr 11, 2024

my config

{
    "liquid": {
      "indentAttribute": false,
      "normalizeSpacing": true,
      "delimiterTrims":"preserve",
      "delimiterPlacement": "consistent"
    }
}

hope format

<meta name="runtime-host" content="{{shop.cdn_domain}}">

futile

@panoply
Copy link
Owner

panoply commented Apr 11, 2024

Hey @epver

What is the desired outcome you are seeking?

For some context, you may need to add rules to markup as the liquid formatting logic only pertains to Liquid syntax. I'm unsure of what you would like based on your example, if you can be a little more detailed, I'll be able to point you in the right direction.

@epver
Copy link
Author

epver commented Apr 12, 2024

I need like this

<meta name="keywords" content="{{ page_keyword |   default: shop.name | escape }}">
<meta name="description" content="{{page_description | default: shop.name | escape | truncatebytes: 320, "" }}">
<meta content="on" http-equiv="x-dns-prefetch-control">
<meta name="runtime-host" content="{{shop.cdn_domain}}cuttlefish/2022101221">
<link href="{{    shop.cdn_domain }}" rel="dns-prefetch">
<link href="{{   shop.cdn_domain }}" rel="preconnect">

format to

<meta name="keywords" content="{{ page_keyword | default: shop.name | escape }}">
<meta name="description" content="{{ page_description | default: shop.name | escape | truncatebytes: 320, "" }}">
<meta content="on" http-equiv="x-dns-prefetch-control">
<meta name="runtime-host" content="{{ shop.cdn_domain }}cuttlefish/2022101221">
<link href="{{ shop.cdn_domain }}" rel="dns-prefetch">
<link href="{{ shop.cdn_domain }}" rel="preconnect">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants