Skip to content

Investigate c-icon #74

@dlemm

Description

@dlemm

In the c-icon there is a not (always) working condition. We should investigate if this is still necessary. In a project svgs sometimes were rendered as an image instead of a svg.
I removed it with just use "utils/svg/icon" because there it is also possible to render the icon as an image.
The whole c-icon, asset, svg structure and what renders what and when is kind of confusing. We should write a short documentation for it.

{{- with partial "utils/asset" (dict
  "context" $params
  "globals" $globals
  "options" (dict "class_name" $class)
) -}}
  {{- . -}}
{{- else -}}
  {{- partial "utils/svg/icon" (dict
    "context" $params
    "globals" $globals
    "options" (dict "class_name" $class)
  ) -}}
{{- end -}} 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions