Adrian Short
b1ad390d03
Add Twitter shortcode
6 år sedan
Adrian Short
d33067ae6b
Add charset tag for UTF-8
6 år sedan
Adrian Short
8b725e412e
Allow custom icons to be set per tag
Create a file for each tag that needs a custom icon eg:
/content/tags/favourites/_index.md
containing:
---
fa_icon: fa-heart
title: Favourites
---
7 år sedan
Adrian Short
3db489020b
Add tags icon to page title
7 år sedan
Adrian Short
36f20716c6
Link directly to Bootstrap CDN for Font Awesome
7 år sedan
Adrian Short
673332654a
Define an HTML header block
7 år sedan
Adrian Short
e5517ee98a
Use Font Awesome icons for social links
Inspired by @mgjohansen's Hucore theme: https://themes.gohugo.io/hucore/
This is a flexible approach that lets the user use any FA icons with whatever links they like. Better than forcing them to stick to a predefined set of social networks.
7 år sedan
Adrian Short
8096748c7d
Move to base templates and blocks
As opposed to the old way of including header/footer partials in every template.
For some reason, /themes/<THEME>/layouts/taxonomies/tag.terms.html doesn't work as a block but the default terms template /themes/<THEME>/layouts/_default/terms.html does.
7 år sedan
Adrian Short
ef9989bbda
Add social media links
7 år sedan
Adrian Short
969c98ca61
Add /via links for attribution
You can add a via: param to the front matter of any content type but I've only included it in the archtectypes for the types that are likely to need it. Close #18
7 år sedan
Adrian Short
2061f3a188
Add single layout stylesheets for all content types
Ensure that every content type has its own stylesheet even if it's blank otherwise you'll get 404 errors
7 år sedan
Adrian Short
eabe679e89
Permit a single layout stylesheet for each content type
Eg: /css/post.css
7 år sedan
Adrian Short
c463ad7d90
Standardise image_filename page param to image; use for post type as well as image type
Used for og:image meta tag
7 år sedan
Adrian Short
0f7c0cd34d
Permalink is now part of the tags.html partial
7 år sedan
Adrian Short
2905b27047
Add OpenGraph image tag and Twitter cards #8 #9
7 år sedan
Adrian Short
033102d579
Set colours for image single layout
7 år sedan
Adrian Short
8f4d9cf3ae
Tidy list item layout
7 år sedan
Adrian Short
6b5ac8fad9
Add basic 404 page
Note how this is used in different server environments:
https://gohugo.io/templates/404/#automatic-loading
7 år sedan
Adrian Short
899ec087a3
Improve tag cloud layout #12
7 år sedan
Adrian Short
0c24098e8c
Don't duplicate the video summary on the single template
7 år sedan
Adrian Short
3d1a833089
Show permalinks in list views
7 år sedan
Adrian Short
fd001cca1d
Remove visible RSS link and section nav
7 år sedan
Adrian Short
69eeeb8aaf
Add Google Analytics. Close #13
Put your site ID in your config.toml:
googleAnalytics = "UA-123-45"
7 år sedan
Adrian Short
f831fcae03
Use a partial to build the <title> tag and RSS link title
Code from Minimo theme:
https://github.com/MunifTanjim/minimo/blob/master/layouts/partials/data/title
Thanks @MunifTanjim .
7 år sedan
Adrian Short
6b32dfd55d
Use default list template instead of tag-specific one
7 år sedan
Adrian Short
61dbc3ad4a
Do styling in CSS not HTML
7 år sedan
Adrian Short
7c3134ca08
Add RSS autodiscovery tag
.RSSLink uses the RSS URL for the given context: the site feed for the home page, the tag feed for tag pages, no URL given for single pages.
7 år sedan
Adrian Short
de8ccb0806
Add generator tag and comment link to theme code
How to preserve HTML comments in Go templates:
https://discourse.gohugo.io/t/how-to-add-comments-in-a-template/75/8
7 år sedan
Adrian Short
4c457910ed
Initial commit
7 år sedan