Skip to content

Commit

Permalink
Add head_extra to config.toml for extra scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jieiku committed Jun 28, 2024
1 parent 1718eda commit dfa4012
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
22 changes: 13 additions & 9 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -174,15 +176,6 @@ peertube = "https://peertube.example.com/@username"
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:
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
###############################################################################
Expand All @@ -268,6 +263,15 @@ favicon32 = "favicon-32x32.png" # favicon-32x32.png
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.
Expand Down
8 changes: 8 additions & 0 deletions templates/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,12 @@




{#- Extra items #}
{%- if config.extra.head_extra %}
{{ config.extra.head_extra | safe }}
{%- endif %}



{#- End of head partial -#}

0 comments on commit dfa4012

Please sign in to comment.