This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- for details on usage vist my site https://bit.ly/2CaakSY --> | |
{{ $url := .Get "href" }} | |
{{ $ga1 := .Get "ga1" }} | |
{{ $ga2 := .Get "ga2" }} | |
{{ $ga3 := .Get "ga3" }} | |
{{ $text := .Get "text" }} | |
<!-- use this for analytics.js --> | |
<!-- <a onclick="ga('send', 'event', '{{ $ga1 }}', '{{ $ga2 }}', '{{ $ga3 }}');" href="{{ $url }}" target="_blank">{{ $text }}</a> --> | |
<!-- use this with gtag newer tracking code --> | |
<a onclick="gtag('event', '{{ $ga1 }}', {'event_category': '{{ $ga2 }}', 'event_label': '{{ $ga3 }}'});" href="{{ $url }}" target="_blank">{{ $text }}</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- for how to use visit https://bit.ly/2YYrjRd --> | |
{{ $image := .Get 0 }} | |
{{ $alt := .Get 1 }} | |
{{ $width := .Get 2 | default "w_auto" }} | |
{{ $style := .Get 3 | default "width:90%" }} | |
<img alt="{{ $alt }}" title="{{ $alt }}" data-src="{{ $.Site.Params.cloudinary_base_url }}/{{ $width }},c_scale,f_auto,q_auto,dpr_auto{{ $image}}" class="cld-responsive border" style="{{ $style }}"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- for usage details visit https://bit.ly/31PSv6d --> | |
{{ $font := .Get "font" }} | |
{{ $size := .Get "size" }} | |
{{ $style := .Get "style" | default "normal" }} | |
{{ $weight := .Get "weight" | default "normal" }} | |
<link href="https://fonts.googleapis.com/css?family={{ $font }}" rel="stylesheet" type="text/css"> | |
<div style="font-family:'{{ $font }}'; font-size:{{ $size }}; font-style:{{ $style}}; font-weight:{{ $weight }}"> | |
{{- .Inner -}} | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ $count := .Get "count" | default 3 }} | |
<h3>Featured Posts</h3> | |
<ul> | |
{{ range first $count where (where .Pages "Section" "blog" ) ".Params.featured" "=" true }} | |
<li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a> | |
</li> | |
{{ end }} | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ $count := .Get "count" | default 3 }} | |
<h3>Featured Posts</h3> | |
<ul> | |
{{ range first $count .Site.Taxonomies.tags.featured }} | |
<li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a> | |
</li> | |
{{ end }} | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Basic gitignore template for Hugo SSG - which has some stuff for WordPress migration | |
# | |
# This is a template .gitignore file for git-managed Hugo projects. | |
# | |
# Fact: you don't want Hugo core files, or your server-specific | |
# configuration files etc., in your project's repository. You just don't. | |
# | |
# Ignore everything in the root except the "content" directory and "static" | |
/* | |
!.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo find . -type d -exec chmod 775 {} \; | |
sudo find . -type f -exec chmod 664 {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo find . -type d -exec chmod 755 {} \; | |
sudo find . -type f -exec chmod 644 {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a template .gitignore file for git-managed WordPress projects. | |
# | |
# Fact: you don't want WordPress core files, or your server-specific | |
# configuration files etc., in your project's repository. You just don't. | |
# | |
# Solution: stick this file up your repository root (which it assumes is | |
# also the WordPress root directory) and add exceptions for any plugins, | |
# themes, and other directories that should be under version control. | |
# | |
# See the comments below for more info on how to add exceptions for your |