mirror of
https://github.com/imfing/hextra.git
synced 2025-07-12 23:21:30 -04:00
Compare commits
7 Commits
affd8bcd94
...
391621e54b
Author | SHA1 | Date | |
---|---|---|---|
391621e54b | |||
2863a3a029 | |||
852a07b15e | |||
ff565f2077 | |||
33dbd4561c | |||
2355432542 | |||
24a2734ee5 |
17
exampleSite/content/docs/guide/shortcodes/pdf.md
Normal file
17
exampleSite/content/docs/guide/shortcodes/pdf.md
Normal 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" */>}}
|
||||||
|
```
|
@ -1,10 +1,4 @@
|
|||||||
{{/* site.GoogleAnalytics is deprecated in Hugo v0.120.0 */}}
|
{{- with site.Config.Services.GoogleAnalytics.ID }}
|
||||||
{{/* 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 -->
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ . }}"></script>
|
<script async src="https://www.googletagmanager.com/gtag/js?id={{ . }}"></script>
|
||||||
<script>
|
<script>
|
||||||
|
@ -30,12 +30,11 @@
|
|||||||
{{ partialCached "head-css.html" . }}
|
{{ partialCached "head-css.html" . }}
|
||||||
|
|
||||||
|
|
||||||
<!-- Google Analytics -->
|
<!-- Google Analytics -->
|
||||||
{{- if and (eq hugo.Environment "production") (or .Site.GoogleAnalytics .Site.Config.Services.GoogleAnalytics.ID) }}
|
{{- if and (eq hugo.Environment "production") .Site.Config.Services.GoogleAnalytics.ID }}
|
||||||
<link rel="preconnect" href="https://www.googletagmanager.com" crossorigin />
|
<link rel="preconnect" href="https://www.googletagmanager.com" crossorigin />
|
||||||
{{ partial "google-analytics.html" . }}
|
{{ partial "google-analytics.html" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/* Initialize light/dark mode */
|
/* Initialize light/dark mode */
|
||||||
|
@ -7,6 +7,6 @@ command = "cd exampleSite && hugo --gc --minify --themesDir ../.. -b ${DEPLOY_PR
|
|||||||
ignore = "false"
|
ignore = "false"
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
HUGO_VERSION = "0.126.1"
|
HUGO_VERSION = "0.132.2"
|
||||||
GO_VERSION = "1.22.3"
|
GO_VERSION = "1.22.3"
|
||||||
NODE_VERSION = "22.2.0"
|
NODE_VERSION = "22.2.0"
|
||||||
|
Reference in New Issue
Block a user