Skip to content

Commit

Permalink
More customization for 96rocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Ma committed Jan 28, 2018
1 parent dc30b14 commit 447b2ad
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 4 deletions.
10 changes: 10 additions & 0 deletions layouts/partials/custom-footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-64159581-1', 'auto');
ga('send', 'pageview');

</script>
6 changes: 4 additions & 2 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
{{ if .Site.GetPage "page" "_header.md" }}
{{(.Site.GetPage "page" "_header.md").Content}}
{{else}}
<a class="baselink" href="{{.Site.BaseURL}}">{{.Site.Title}}</a>
<a id="logo" href="{{ .Site.BaseURL }}">
<img src="{{ .Site.BaseURL }}/images/logo.png">
</a>
{{end}}
{{end}}
{{end}}
14 changes: 14 additions & 0 deletions layouts/partials/menu-footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<center>
<!-- Place this tag where you want the button to render. -->
<a class="github-button" href="https://github.com/96rocks/docs.96rocks.com/archive/master.zip" data-icon="octicon-cloud-download" aria-label="Download 96rocks docs on GitHub">Download</a>

<!-- Place this tag where you want the button to render. -->
<a class="github-button" href="https://github.com/96rocks/docs.96rocks.com" data-icon="octicon-star" data-show-count="true" aria-label="Star 96rocks docs on GitHub">Star</a>

<!-- Place this tag where you want the button to render. -->
<a class="github-button" href="https://github.com/96rocks/docs.96rocks.com/fork" data-icon="octicon-repo-forked" data-show-count="true" aria-label="Fork 96rocks docs on GitHub">Fork</a>

<p>Built with <a href="https://github.com/matcornic/hugo-theme-learn"><i class="fa fa-heart"></i></a> for Open Source </p>
</center>
<!-- Place this tag in your head or just before your close body tag. -->
<script async defer src="https://buttons.github.io/buttons.js"></script>
4 changes: 2 additions & 2 deletions layouts/partials/original/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{ .Hugo.Generator }}

<title>{{ .Title }} :: {{ .Site.Title }}</title>
<link rel="shortcut icon" href="{{"images/favicon.png" | relURL}}" type="image/x-icon" />
<link rel="shortcut icon" href="{{"images/favicon.ico" | relURL}}" type="image/x-icon" />
<link href="{{"css/nucleus.css" | relURL}}" rel="stylesheet">
<link href="{{"css/font-awesome.min.css" | relURL}}" rel="stylesheet">
<link href="{{"css/hybrid.css" | relURL}}" rel="stylesheet">
Expand All @@ -20,4 +20,4 @@
display:none !important;
}
</style>
{{ partial "custom-head.html" . }}
{{ partial "custom-head.html" . }}

0 comments on commit 447b2ad

Please sign in to comment.