Browse Source

refactor(help): remove external image requests

base 64 encode and embed images from local file system for offline use

closes #44
Josh Habdas 1 year ago
parent
commit
77d901a094
Signed by: Josh Habdas <jhabdas@protonmail.com> GPG Key ID: B148B31154C75A74
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      archetypes/help.md

+ 4
- 4
archetypes/help.md View File

@@ -91,7 +91,7 @@ See Hugo's [Menu docs](https://gohugo.io/content-management/menus/) for more inf
91 91
 
92 92
 After Dark automatically highlights code written in more than 160 languages using a customized version of [One Dark Syntax](https://atom.io/themes/one-dark-syntax) with support for terminal browsers. To activate the code highlighter use the [`highlight` shortcode](https://gohugo.io/content-management/syntax-highlighting/#highlight-shortcode) or indicate the [highlighting language](https://gohugo.io/content-management/syntax-highlighting/#list-of-chroma-highlighting-languages) with a fenced code block from within your page content, e.g. ```` ```js ````
93 93
 
94
-![Syntax Highlighting screenshot](https://git.habd.as/comfusion/after-dark/raw/branch/master/images/docs/feat-syntax-highlighting-fs8.png "Example JavaScript highlighting with line numbers.")
94
+![Syntax Highlighting screenshot](data:image/png;base64,{{ readFile "themes/after-dark/images/docs/feat-syntax-highlighting-fs8.png" | base64Encode }} "Example JavaScript highlighting with line numbers.")
95 95
 
96 96
 If you'd prefer a lighter background create a file called `syntax.css` in your site `static/css` folder and drop in the contents of one of the following:
97 97
 
@@ -242,7 +242,7 @@ Increase engagement when sharing links to your site on social media.
242 242
 
243 243
 After Dark uses the `opengraph` Hugo [internal template](https://gohugo.io/templates/internal/#the-internal-templates) to achieve rich sharing cards for Facebook and other social networks, as shown here:
244 244
 
245
-![Open Graph sharing card screenshot](https://git.habd.as/comfusion/after-dark/raw/branch/master/images/docs/feat-social-awareness-fs8.png "Example Open Graph sharing card produced by After Dark")
245
+![Open Graph sharing card screenshot](data:image/png;base64,{{ readFile "themes/after-dark/images/docs/feat-social-awareness-fs8.png" | base64Encode }} "Example Open Graph sharing card produced by After Dark")
246 246
 
247 247
 To create a social sharing card like the one shown above, specify `author` in `config.toml` and, optionally, override it from your front matter as shown here:
248 248
 
@@ -289,7 +289,7 @@ See the Hugo [Internal Templates documentation](https://gohugo.io/templates/inte
289 289
 
290 290
 Improve experience for Telegram users by providing an [Instant View](https://instantview.telegram.org/) for your site. After Dark makes easy.
291 291
 
292
-![Open Graph sharing card screenshot](https://git.habd.as/comfusion/after-dark/raw/branch/master/images/docs/feat-instant-view-fs8.png "Example Telegram Instant View for After Dark")
292
+![Open Graph sharing card screenshot](data:image/png;base64,{{ readFile "themes/after-dark/images/docs/feat-instant-view-fs8.png" | base64Encode }} "Example Telegram Instant View for After Dark")
293 293
 
294 294
 To create an Instant View for your site [create your own](https://instantview.telegram.org/my/) IV template modeling from the example here:
295 295
 
@@ -513,7 +513,7 @@ Each snippet includes extensive inline documentation. Docs are located in the sh
513 513
 
514 514
 Combine snippets to build great-looking forms anywhere on your site:
515 515
 
516
-![Form snippets screenshot](https://git.habd.as/comfusion/after-dark/raw/branch/master/images/docs/feat-snippets-fs8.png "Example form created using snippet shortcodes.")
516
+![Form snippets screenshot](data:image/png;base64,{{ readFile "themes/after-dark/images/docs/feat-snippets-fs8.png" | base64Encode }} "Example form created using snippet shortcodes.")
517 517
 
518 518
 Or try your hand at creating your own snippets for the following additional shortcodes included with After Dark:
519 519
 

Loading…
Cancel
Save