Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,24 @@ Even better...look what happens when you go to the full posting:

We now have a nice section for author details at the bottom which pulls in a lot of the metadata you created earlier in the site's `config.yml`. Looking good!!

## Google analytics configuration

You can add the Google Analytics script to your posts and pages by defining the `googleAnalytics` variable in your config.yaml file:

```yaml
---
baseurl: http://www.bayactive.org
languageCode: en-us
title: BayActive
googleAnalytics: "UA-12345-6"
params:
cover: /img/cover.jpg
logo: /img/logo.svg
description: Hikes, bikes & rides in the bay
...
---
```

## Attribution

Hasper was originally [a fork](https://github.com/dencold/hugo-theme-casper) of the [hugo-theme-casper](https://github.com/vjeantet/hugo-theme-casper). However, the original author has not been responding to [pull requests](https://github.com/vjeantet/hugo-theme-casper/pull/41). Hasper now lives as its own separate repository, for a full list of changes from the original theme, consult the [CHANGELOG](CHANGELOG.md).
1 change: 0 additions & 1 deletion config-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ params:
hideHUGOSupport: true # by default, hasper puts a nod to hugo in footer, set to true if you wish to hide
githubName: "" # if set, hasper will display github logo with link above site title
twitterName: "bayactive" # if set, hasper will display twitter logo with link above site title
# googleAnalyticsUserID: "YOUR_GA_ID_HERE" # TODO: check on this config. I think there is a googleAnalytics in hugo variables that is canonical
# RSSLink: "http://feeds.feedburner.com/..." # TODO: how is this different from hugo variable config? Optional RSS-Link, if not provided it defaults to the standard index.xml

# there are sharing links at the bottom of every post. all options are listed below.
Expand Down
1 change: 1 addition & 0 deletions layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
<script type="text/javascript" src="{{.Site.BaseURL}}js/jquery.js"></script>
<script type="text/javascript" src="{{.Site.BaseURL}}js/jquery.fitvids.js"></script>
<script type="text/javascript" src="{{.Site.BaseURL}}js/index.js"></script>
{{ template "_internal/google_analytics.html" . }}