mirror of
https://github.com/idanoo/m2.nz
synced 2025-07-02 21:32:15 +00:00
Commit theme
This commit is contained in:
parent
1ec1007169
commit
690a3ff983
46 changed files with 2443 additions and 0 deletions
11
themes/m10c/layouts/partials/icon.html
Normal file
11
themes/m10c/layouts/partials/icon.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{{- if isset .ctx.Site.Data.m10c.icons .name -}}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-{{ .name }}">
|
||||
<title>{{ .title | default .name }}</title>
|
||||
{{ safeHTML (index .ctx.Site.Data.m10c.icons .name) }}
|
||||
</svg>
|
||||
{{- else -}}
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-link">
|
||||
<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path>
|
||||
<path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>
|
||||
</svg>
|
||||
{{- end -}}
|
Loading…
Add table
Add a link
Reference in a new issue