Skip to content

Commit df901ba

Browse files
authored
feat: add partial head/custom.html for custom page head elements (#131)
1 parent 98271b1 commit df901ba

File tree

6 files changed

+7
-2
lines changed

6 files changed

+7
-2
lines changed

.drone.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ steps:
2020
image: thegeeklab/hugo:0.83.1
2121
commands:
2222
- mkdir exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/hugo-geekdoc
23+
- cp exampleSite/layouts/partials/head/custom.ci.html exampleSite/layouts/partials/head/custom.html
2324
- hugo -s exampleSite/ -b http://localhost/
2425

2526
- name: html-validation
@@ -270,6 +271,6 @@ depends_on:
270271

271272
---
272273
kind: signature
273-
hmac: 2c0c709a64128fd42c47d3549184ac29e2225be8de1953fa2e72b63aa0b7e871
274+
hmac: e2ef57c014893437655882116e07f1b8ea211adf60aa479c52113df515f51b58
274275

275276
...

exampleSite/assets/sprites/regular.svg

Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; manifest-src 'self'; connect-src 'self'; font-src 'self'; img-src 'self' img.shields.io; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'">
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; manifest-src 'self'; connect-src 'self'; font-src 'self'; img-src 'self' img.shields.io; script-src 'self' 'unsafe-inline'; style-src 'self'">

layouts/_default/baseof.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
{{ partial "head/favicons" . }}
99
{{ partial "head/others" . }}
10+
{{ partial "head/custom" . }}
1011
</head>
1112

1213
<body itemscope itemtype="https://schema.org/WebPage">

layouts/partials/head/custom.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!-- You can add custom elements to the page header here. -->

0 commit comments

Comments
 (0)