diff options
| author | Jieiku | 2024-06-28 09:35:00 -0700 |
|---|---|---|
| committer | Jieiku | 2024-06-28 09:35:00 -0700 |
| commit | dfa40127ea0471488a04fa6cf67c749d429dde46 (patch) | |
| tree | eebad67ef426d227564fefc1c3871e2954d943a8 | |
| parent | 1718eda91c4bd8f372408b7ab8e4d8c142411ed2 (diff) | |
| download | abridge-dfa40127ea0471488a04fa6cf67c749d429dde46.tar.gz abridge-dfa40127ea0471488a04fa6cf67c749d429dde46.tar.bz2 abridge-dfa40127ea0471488a04fa6cf67c749d429dde46.zip | |
Add head_extra to config.toml for extra scripts
| -rw-r--r-- | config.toml | 22 | ||||
| -rw-r--r-- | templates/partials/head.html | 8 |
2 files changed, 21 insertions, 9 deletions
diff --git a/config.toml b/config.toml index e7fa3f3..47f5368 100644 --- a/config.toml +++ b/config.toml @@ -141,6 +141,8 @@ bing = "Your Bing Site verification code." seo = true # enable or disable seo-related meta tags: opengraph, facebook, twitter #dev = false # development mode, if true then robots.txt should prevent search indexing. +#head_extra = '<meta name="analytics" content="my-analytics-id" /><meta name="advertising" content="my-advertising-id" />' + ############################################################################### ### Footer social links; these are used in macros/social.html @@ -175,15 +177,6 @@ researchgate = "your-profile-id" ############################################################################### -### Commenting System for visitors to leave comments on pages. -### hyvor talk -############################################################################### - -#comments.hyvor = "9366" # hyvor website id, comment out to disable. -#comments.hyvorcolor = "os" # set the color property for hyvor - - -############################################################################### ### Resource Files ### You can load extra css files if you need to, just separate by comma: ### stylesheets = [ "abridge.css", "extra.css" ] @@ -222,6 +215,7 @@ stylesheets = ["abridge.css"] webmanifest = "manifest.min.json" # Required for PWAs + ############################################################################### ### PWA (Progressive Web Application) ### By default Abridge has pwa_NORM_TTL and pwa_LONG_TTL set to 0, this essential turns the PWA cache strategy into network first. @@ -254,6 +248,7 @@ pwa_cache_all = true ### List of Files for the PWA to initially Cache, used if pwa_cache_all = false pwa_BASE_CACHE_FILES = "'/js/theme.min.js','/js/theme_light.min.js','/abridge.css','/js/abridge.min.js','/','/404.html','/offline/','/manifest.min.json'" + ############################################################################### ### Favicons, comment out a line to disable loading some or all of these if needed. ############################################################################### @@ -269,6 +264,15 @@ favicon16 = "favicon-16x16.png" # favicon-16x16.png ############################################################################### +### Commenting System for visitors to leave comments on pages. +### hyvor talk +############################################################################### + +#comments.hyvor = "9366" # hyvor website id, comment out to disable. +#comments.hyvorcolor = "os" # set the color property for hyvor + + +############################################################################### ### Icons ### Loading the entire fontawesome icon collection will negatively impact your sites performance. ### For a lightweight solution consider adding only the icons that you need to the following file: diff --git a/templates/partials/head.html b/templates/partials/head.html index b96531c..98d2382 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -138,4 +138,12 @@ + +{#- Extra items #} + {%- if config.extra.head_extra %} + {{ config.extra.head_extra | safe }} + {%- endif %} + + + {#- End of head partial -#} |
