]> git.ardis.lu - git.ardis.lu/commitdiff
Add preloads for fonts
authorArdis Lu <ardisglu@gmail.com>
Fri, 26 Sep 2025 07:25:15 +0000 (00:25 -0700)
committerArdis Lu <ardisglu@gmail.com>
Fri, 26 Sep 2025 07:25:15 +0000 (00:25 -0700)
etc/gitweb.conf

index 66e892f56631061de7da653b4ad813c98fd74593..734420a1ce0b405381f6bc9068626c487e8ab4f6 100644 (file)
@@ -4,7 +4,9 @@ $git_temp = '/tmp';
 # https://git-scm.com/docs/gitweb.conf#_links_and_their_targets
 $home_link_str = 'git.ardis.lu';
 push @stylesheets, 'static/custom.css';
-$site_html_head_string = '<meta name="viewport" content="width=device-width, initial-scale=1.0"></meta>';
+$site_html_head_string .= '<link rel="preload" as="font" href="https://fonts.gstatic.com/s/inter/v20/UcCo3FwrK3iLTcviYwY.woff2" crossorigin="" />'."\n";
+$site_html_head_string .= '<link rel="preload" as="font" href="https://fonts.gstatic.com/s/inter/v20/UcCm3FwrK3iLTcvnUwQT9g.woff2" crossorigin="" />'."\n";
+$site_html_head_string .= '<meta name="viewport" content="width=device-width, initial-scale=1.0" />'."\n";
 
 # https://git-scm.com/docs/gitweb.conf#_changing_gitwebs_look
 $site_name = 'git.ardis.lu';
This page took 0.039131 seconds and 4 git commands to generate.