File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
themes/algorithmica/layouts Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 44 < meta charset ="utf-8 " />
55 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
66 < title > Content Manager</ title >
7+ < script src ="https://identity.netlify.com/v1/netlify-identity-widget.js "> </ script >
78</ head >
89< body >
910 <!-- Include the script that builds the page and powers Netlify CMS -->
Original file line number Diff line number Diff line change 1111 {{ partial "nextprev.html" . }}
1212 </ main >
1313 {{- partial "footer.html" . -}}
14+ {{ if .IsHome }}
15+ < script >
16+ if ( window . netlifyIdentity ) {
17+ window . netlifyIdentity . on ( "init" , user => {
18+ if ( ! user ) {
19+ window . netlifyIdentity . on ( "login" , ( ) => {
20+ document . location . href = "/admin/" ;
21+ } ) ;
22+ }
23+ } ) ;
24+ }
25+ </ script >
26+ {{ end }}
1427 </ body >
1528</ html >
Original file line number Diff line number Diff line change 11< head >
22 {{- partial "analytics.html" -}}
33
4+ {{ if .IsHome }}
5+ < script src ="https://identity.netlify.com/v1/netlify-identity-widget.js "> </ script >
6+ {{ end }}
7+
48 < meta charset ="utf-8 ">
59
610 {{ $style := resources.Get "style.sass" | toCSS | minify | fingerprint }}
You can’t perform that action at this time.
0 commit comments