diff options
| author | Volpeon <git@volpeon.ink> | 2021-04-28 06:53:58 +0200 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2021-04-28 06:53:58 +0200 |
| commit | f3b2705e8cdd3bf3749816e09a5641aa3451e99f (patch) | |
| tree | 9238e8bcba581c8865d935dfd27ed33867f0648d | |
| parent | Fixed modular scale (diff) | |
| download | volpeon.ink-f3b2705e8cdd3bf3749816e09a5641aa3451e99f.tar.gz volpeon.ink-f3b2705e8cdd3bf3749816e09a5641aa3451e99f.tar.bz2 volpeon.ink-f3b2705e8cdd3bf3749816e09a5641aa3451e99f.zip | |
Added preload directives, load SVG symbols from external file
| -rw-r--r-- | content/symbols.svg (renamed from templates/symbols.svg) | 0 | ||||
| -rw-r--r-- | templates/base.html | 15 | ||||
| -rw-r--r-- | templates/layouts/index.html | 10 |
3 files changed, 14 insertions, 11 deletions
diff --git a/templates/symbols.svg b/content/symbols.svg index acc7f4f..acc7f4f 100644 --- a/templates/symbols.svg +++ b/content/symbols.svg | |||
diff --git a/templates/base.html b/templates/base.html index 4ebd507..039b0d1 100644 --- a/templates/base.html +++ b/templates/base.html | |||
| @@ -28,6 +28,13 @@ | |||
| 28 | 28 | ||
| 29 | <title>$if(section.is_index)$$else$$title$ – $endif$$site.title$</title> | 29 | <title>$if(section.is_index)$$else$$title$ – $endif$$site.title$</title> |
| 30 | 30 | ||
| 31 | <link rel="preload" href="/style.css" as="style" /> | ||
| 32 | <link rel="preload" href="/symbols.svg" as="other" type="image/svg+xml" /> | ||
| 33 | <link rel="preload" href="/IBMPlexSans-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> | ||
| 34 | <link rel="preload" href="/IBMPlexSans-Medium.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> | ||
| 35 | <link rel="preload" href="/IBMPlexSans-Bold.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> | ||
| 36 | <link rel="preload" href="/GaretVariable.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> | ||
| 37 | |||
| 31 | <link rel="stylesheet" href="/style.css" /> | 38 | <link rel="stylesheet" href="/style.css" /> |
| 32 | </head> | 39 | </head> |
| 33 | 40 | ||
| @@ -36,7 +43,7 @@ | |||
| 36 | <a class="c-outer-button c-outer-button--inverted" href="/" title="$site.title$"> | 43 | <a class="c-outer-button c-outer-button--inverted" href="/" title="$site.title$"> |
| 37 | <span class="c-outer-button__icon"> | 44 | <span class="c-outer-button__icon"> |
| 38 | <svg class="c-outer-button__icon-symbol"> | 45 | <svg class="c-outer-button__icon-symbol"> |
| 39 | <use href="#logo"></use> | 46 | <use href="/symbols.svg#logo"></use> |
| 40 | </svg> | 47 | </svg> |
| 41 | </span> | 48 | </span> |
| 42 | </a> | 49 | </a> |
| @@ -70,16 +77,12 @@ ${layouts/page()} | |||
| 70 | <a class="c-outer-button" href="#" title="To the top"> | 77 | <a class="c-outer-button" href="#" title="To the top"> |
| 71 | <span class="c-outer-button__icon"> | 78 | <span class="c-outer-button__icon"> |
| 72 | <svg class="c-outer-button__icon-symbol o-icon"> | 79 | <svg class="c-outer-button__icon-symbol o-icon"> |
| 73 | <use href="#icon-arrow-up"></use> | 80 | <use href="/symbols.svg#icon-arrow-up"></use> |
| 74 | </svg> | 81 | </svg> |
| 75 | </span> | 82 | </span> |
| 76 | </a> | 83 | </a> |
| 77 | </footer> | 84 | </footer> |
| 78 | </main> | 85 | </main> |
| 79 | |||
| 80 | <div class="u-vh" aria-hidden="true"> | ||
| 81 | ${symbols.svg()} | ||
| 82 | </div> | ||
| 83 | </body> | 86 | </body> |
| 84 | 87 | ||
| 85 | </html> | 88 | </html> |
diff --git a/templates/layouts/index.html b/templates/layouts/index.html index 1099d27..18b1c69 100644 --- a/templates/layouts/index.html +++ b/templates/layouts/index.html | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | $endif$ | 24 | $endif$ |
| 25 | $if(it.icon)$ | 25 | $if(it.icon)$ |
| 26 | <svg class="c-card__icon o-icon"> | 26 | <svg class="c-card__icon o-icon"> |
| 27 | <use href="#icon-$it.icon$"></use> | 27 | <use href="/symbols.svg#icon-$it.icon$"></use> |
| 28 | </svg> | 28 | </svg> |
| 29 | $endif$ | 29 | $endif$ |
| 30 | <div class="c-card__content"> | 30 | <div class="c-card__content"> |
| @@ -33,7 +33,7 @@ | |||
| 33 | </div> | 33 | </div> |
| 34 | $if(it.url)$ | 34 | $if(it.url)$ |
| 35 | <svg class="c-card__icon o-icon"> | 35 | <svg class="c-card__icon o-icon"> |
| 36 | <use href="#icon-arrow-up-right"></use> | 36 | <use href="/symbols.svg#icon-arrow-up-right"></use> |
| 37 | </svg> | 37 | </svg> |
| 38 | $endif$ | 38 | $endif$ |
| 39 | $if(it.url)$ | 39 | $if(it.url)$ |
| @@ -55,7 +55,7 @@ $body$ | |||
| 55 | <a class="c-outer-button" href="#projects"> | 55 | <a class="c-outer-button" href="#projects"> |
| 56 | <span class="c-outer-button__icon"> | 56 | <span class="c-outer-button__icon"> |
| 57 | <svg class="c-outer-button__icon-symbol o-icon"> | 57 | <svg class="c-outer-button__icon-symbol o-icon"> |
| 58 | <use href="#icon-arrow-down-right"></use> | 58 | <use href="/symbols.svg#icon-arrow-down-right"></use> |
| 59 | </svg> | 59 | </svg> |
| 60 | </span> | 60 | </span> |
| 61 | <span class="c-outer-button__content"> | 61 | <span class="c-outer-button__content"> |
| @@ -73,7 +73,7 @@ $body$ | |||
| 73 | <div class="c-project__card c-card"> | 73 | <div class="c-project__card c-card"> |
| 74 | $if(it.category.icon)$ | 74 | $if(it.category.icon)$ |
| 75 | <svg class="c-card__icon o-icon"> | 75 | <svg class="c-card__icon o-icon"> |
| 76 | <use href="#icon-$it.category.icon$"></use> | 76 | <use href="/symbols.svg#icon-$it.category.icon$"></use> |
| 77 | </svg> | 77 | </svg> |
| 78 | $endif$ | 78 | $endif$ |
| 79 | <div class="c-card__content"> | 79 | <div class="c-card__content"> |
| @@ -81,7 +81,7 @@ $body$ | |||
| 81 | <strong class="u-db">$it.title$</strong> | 81 | <strong class="u-db">$it.title$</strong> |
| 82 | </div> | 82 | </div> |
| 83 | <svg class="c-card__icon o-icon"> | 83 | <svg class="c-card__icon o-icon"> |
| 84 | <use href="#icon-arrow-right"></use> | 84 | <use href="/symbols.svg#icon-arrow-right"></use> |
| 85 | </svg> | 85 | </svg> |
| 86 | </div> | 86 | </div> |
| 87 | </a> | 87 | </a> |
