Compare commits

..

5 Commits

Author SHA1 Message Date
affd8bcd94 Merge ff565f2077 into e83c11f31a 2024-08-12 08:47:14 +02:00
ff565f2077 Remove markdown syntax highlight 2024-06-28 15:45:00 +03:00
33dbd4561c Escape PDF shortcode examples 2024-06-28 15:39:34 +03:00
2355432542 Update pdf.md 2024-06-28 15:36:43 +03:00
24a2734ee5 Create pdf.md 2024-06-28 14:40:22 +03:00
4 changed files with 31 additions and 7 deletions

View File

@ -0,0 +1,17 @@
---
title: Pdf
---
## Example
{{< pdf "https://dagrs.berkeley.edu/sites/default/files/2020-01/sample.pdf" >}}
## Usage
### With URL
```
{{</* pdf "https://dagrs.berkeley.edu/sites/default/files/2020-01/sample.pdf" */>}}
```
### With Path
```
{{</* pdf "path/to/your/pdf/file.pdf" */>}}
```

View File

@ -1,4 +1,10 @@
{{- with site.Config.Services.GoogleAnalytics.ID }}
{{/* site.GoogleAnalytics is deprecated in Hugo v0.120.0 */}}
{{/* it will be removed in a future version */}}
{{- $gtagID := "" -}}
{{- with site.GoogleAnalytics -}}{{ $gtagID = . }}{{- end -}}
{{- with site.Config.Services.GoogleAnalytics.ID -}}{{ $gtagID = . }}{{- end -}}
{{- with $gtagID }}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ . }}"></script>
<script>

View File

@ -30,11 +30,12 @@
{{ partialCached "head-css.html" . }}
<!-- Google Analytics -->
{{- if and (eq hugo.Environment "production") .Site.Config.Services.GoogleAnalytics.ID }}
<link rel="preconnect" href="https://www.googletagmanager.com" crossorigin />
{{ partial "google-analytics.html" . }}
{{- end }}
<!-- Google Analytics -->
{{- if and (eq hugo.Environment "production") (or .Site.GoogleAnalytics .Site.Config.Services.GoogleAnalytics.ID) }}
<link rel="preconnect" href="https://www.googletagmanager.com" crossorigin />
{{ partial "google-analytics.html" . }}
{{- end }}
<script>
/* Initialize light/dark mode */

View File

@ -7,6 +7,6 @@ command = "cd exampleSite && hugo --gc --minify --themesDir ../.. -b ${DEPLOY_PR
ignore = "false"
[build.environment]
HUGO_VERSION = "0.132.2"
HUGO_VERSION = "0.126.1"
GO_VERSION = "1.22.3"
NODE_VERSION = "22.2.0"