From 703eecfd5de6dd8b741b85540824a69a776a922a Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 6 Feb 2022 22:51:47 +0300 Subject: [PATCH] site: add link icon to each element For easy copying. --- site/assets/icons/link-45deg.svg | 4 ++++ site/layouts/_default/term.html | 3 ++- site/package.json | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 site/assets/icons/link-45deg.svg diff --git a/site/assets/icons/link-45deg.svg b/site/assets/icons/link-45deg.svg new file mode 100644 index 00000000..127956a4 --- /dev/null +++ b/site/assets/icons/link-45deg.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/site/layouts/_default/term.html b/site/layouts/_default/term.html index e405ba76..8c937dce 100644 --- a/site/layouts/_default/term.html +++ b/site/layouts/_default/term.html @@ -3,7 +3,8 @@ - {{ .Params.title | markdownify }} + {{ $linkIcon := resources.Get "icons/link-45deg.svg" | resources.Fingerprint }} +  {{ .Params.title | markdownify }} {{- with .Params.required -}}
Required diff --git a/site/package.json b/site/package.json index 20ef463c..f5a22b94 100644 --- a/site/package.json +++ b/site/package.json @@ -10,7 +10,7 @@ "build:site": "./bin/hugo/hugo", "build": "npm run build:css && npm run build:js && npm run clean && npm run copy:icons && npm run build:site", "clean": "rm assets/css/*.css.tmp assets/css/*.css.tmp.map", - "copy:icons": "cp node_modules/bootstrap-icons/icons/file-earmark-code.svg node_modules/bootstrap-icons/icons/file-earmark-spreadsheet.svg assets/icons", + "copy:icons": "cp node_modules/bootstrap-icons/icons/file-earmark-code.svg node_modules/bootstrap-icons/icons/file-earmark-spreadsheet.svg node_modules/bootstrap-icons/icons/link-45deg.svg assets/icons", "postinstall": "hugo-installer --version 0.92.1", "server": "./bin/hugo/hugo serve" },