Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Add OpenGraph annotations #38

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 2 additions & 0 deletions site/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ timeout = 30000 #ms
# Don't pluralize "blog" into "blogs" for blog list title
pluralizeListTitles = false

googleAnalytics="UA-53520714-1"

[blackfriday]
plainIDAnchors = false

Expand Down
5 changes: 4 additions & 1 deletion site/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
<link href="{{ relURL . }}" rel="stylesheet">
{{ end }}

{{ block "analytics" . }}{{ partial "analytics" . }}{{end}}
{{ template "_internal/google_analytics.html" . }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good find!


{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}
</head>

<body>
Expand Down
9 changes: 0 additions & 9 deletions site/layouts/partials/analytics.html

This file was deleted.