diff options
| author | Eltrac <hi@guhub.cn> | 2025-07-14 20:06:31 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-07-14 20:06:31 +0800 |
| commit | 9a261d9b5fecd4eea019ec63e300c25fdee1812e (patch) | |
| tree | 55fbad3120e9cfe85d972c903d8f6f549325e4fc /layouts/_partials | |
| parent | 854506380eaf03fd474135b153e6af459ca9b4d7 (diff) | |
refactor: replace globe icon with svg file
Former-commit-id: 572b94c723a27c50bf2a9d80eebb5a245b1b50cf
Diffstat (limited to 'layouts/_partials')
| -rw-r--r-- | layouts/_partials/header.html | 2 | ||||
| -rw-r--r-- | layouts/_partials/icons/globe-icon.html | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/layouts/_partials/header.html b/layouts/_partials/header.html index 37d6a3fb..1804ca0f 100644 --- a/layouts/_partials/header.html +++ b/layouts/_partials/header.html @@ -21,7 +21,7 @@ {{- $entry := index $switch $lang -}} <a href="{{ $entry.url }}" data-umami-event="🌍 Switch Language" class="no-swup" title="{{ $entry.label }}"> - {{ partial "icons/globe-icon" . }} + <img src="/img/globe.svg" style="display: block; width:1.2em; height: 1.2em"> </a> </div> </header> diff --git a/layouts/_partials/icons/globe-icon.html b/layouts/_partials/icons/globe-icon.html deleted file mode 100644 index 932831c9..00000000 --- a/layouts/_partials/icons/globe-icon.html +++ /dev/null @@ -1 +0,0 @@ -<svg style="width: 1rem; height: 1rem; fill: var(--text-color)" fill="#000000" width="800px" height="800px" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 .4C4.705.4.399 4.707.399 10S4.705 19.6 10 19.6c5.293 0 9.6-4.307 9.6-9.6S15.293.4 10 .4zm8.188 9.6c0 1.873-.636 3.6-1.696 4.98-.3-.234-.619-.867-.319-1.523.303-.66.382-2.188.312-2.783-.066-.594-.375-2.025-1.214-2.039-.838-.012-1.413-.289-1.911-1.283-1.033-2.068 1.939-2.465.906-3.609-.289-.322-1.783 1.322-2.002-.869-.014-.157.135-.392.336-.636 3.244 1.09 5.588 4.157 5.588 7.762zM8.875 1.893c-.196.382-.713.537-1.027.824-.684.619-.978.533-1.346 1.127-.371.594-1.567 1.449-1.567 1.879s.604.936.906.838c.302-.1 1.099-.094 1.567.07.469.166 3.914.332 2.816 3.244-.348.926-1.873.77-2.279 2.303-.061.225-.272 1.186-.285 1.5-.025.486.344 2.318-.125 2.318-.471 0-1.738-1.639-1.738-1.936s-.328-1.338-.328-2.23c0-.891-1.518-.877-1.518-2.062 0-1.068.823-1.6.638-2.113-.181-.51-1.627-.527-2.23-.59a8.213 8.213 0 0 1 6.516-5.172zM7.424 17.77c.492-.26.542-.596.988-.613.51-.023.925-.199 1.5-.326.51-.111 1.423-.629 2.226-.695.678-.055 2.015.035 2.375.689a8.159 8.159 0 0 1-7.089.945z"/></svg> |
