Commit graph

55 commits

Author SHA1 Message Date
Vimux
8b4c646cb0
Fix .Site.IsServer error in Hugo >= 0.132.0 (#96)
The `.Site.IsServer` no longer works since Hugo v0.132.0. Use `hugo.IsServer` since Hugo v0.120.0

Fixes #94
2024-08-15 14:29:44 -04:00
Vimux
3f0f4c199c
Remove X-UA-Compatible meta tag (#88)
As of IE11, "document modes are deprecated and should no longer be used."

Background:
This meta tag is only relevant to the Internet Explorer browser family. IE has
different modes for displaying web pages, allowing you to view HTML pages using
previous versions of rendering rules. `IE=edge` tells Internet Explorer to use
the latest available document mode. However, it is a default mode (IE11) for the
HTML5 doctype declaration.
2023-11-28 07:59:32 -05:00
vimux
c4c4154218
Remove google_analytics_async.html include
The internal Hugo template `google_analytics_async.html` no longer works because Google has removed
the version of Google Analytics it uses. The regular internal template (google_analytics.html)
already handles Google Analytics 4 asynchronously.
2023-11-07 11:36:41 -05:00
vimux
2456799f6d
Add support for Google Analytics v4
Hugo 0.82.0+ is required if you want to use Google Analytics v4
2021-04-12 11:40:22 -04:00
vimux
424a77d0e7
Add body classes 2020-10-07 16:51:02 -04:00
vimux
d7a6b540c2
Include Schema internal template 2020-07-02 16:18:03 -04:00
vimux
7bffa43920
BREAKING CHANGE: rename Post → Entry
* .Site.Params.post_meta → .Site.Params.Entry.meta
* .Site.Params.toc → .Site.Params.Entry.toc
* .Site.Params.tocOpen → .Site.Params.Entry.tocOpen
2020-02-11 09:27:01 -05:00
vimux
59bea459d8
Add initial breadcrumb partial
* Add initial breadcrumb partial
* Add aria-current=page property
* Add separators via CSS to be comply with screen readers
* Use ordered list to the set of links
* Update README.md: add breadcrumb section
2019-12-11 09:08:02 -05:00
vimux
a9f995eb1d
Add a separate file for print styles 2019-12-09 09:30:31 -05:00
vimux
c77e4ede53
Split main CSS file
* Split main CSS file
* Update Bootstrap Reboot [4.1.3 → 4.3.1]
* Move own theme rules from reboot.css to main.css
* package.json: fix scripts
2019-12-08 12:11:25 -05:00
vimux
965c3fa699
Store CSS as an asset file 2019-12-07 15:40:26 -05:00
vimux
77b9fc1ec7
Rename context variable: "dot" -> "page"
Unified a variable name to pass context across layouts partials
2019-10-01 13:05:17 -04:00
Vimux
efb650245f
Improve featured image (#17)
WARNING: UPGRADE HUGO TO VERSION 0.54.0 OR LATER

* post_thumbnail -> post_featured
* Add url, alt, caption and credit params for featured
* Add previewOnly param
* Add styles for featured
* Add fallback for thumbnail.*
* Add "Featured Images" page
* Show caption & credit on single pages only
* Update README: add featured image guide
* Bump Hugo min version because `reflect.IsMap` [0.38 -> 0.54.0]
2019-09-24 10:50:06 -04:00
vimux
e72cb22fa3
Summary.html: don't create empty content block 2019-08-31 16:57:37 -04:00
vimux
05cbb49e9c
Add customJS 2019-08-30 15:25:10 -04:00
vimux
407c5d72df
Web Manifest: don't require .Site.Params.Manifest
Before, `.Site.Params.Manifest` was required to activate
Web App Manifest. Now, it's optional. Still, `.Site.Params.Manifest`
highly recommended.

* Don't require .Site.Params.Manifest
* Order Web App Manifest properties by required type (except icons)
* Add default value to startUrl param [`/`]
* README.md: enhance Web App Manifest configuration section
* README.md: add table with Web App Manifest default values in Binario
2019-08-28 11:21:46 -04:00
vimux
a83b4c3199
Move head section to baseof.html
Unfortunately, blocks not work in nested partials.
2019-03-10 12:47:21 -04:00
vimux
32c4b92533
cardsPerRow -> columns 2019-01-14 08:01:13 -05:00
vimux
4fae038bc5
Split baseof.html layout: add head as a partial 2019-01-13 09:11:06 -05:00
vimux
3d6c6cabba
Reduce empty lines in head section 2018-12-03 11:21:31 -05:00
vimux
45f0ca00f7
Don't include menu.js if no main menu items 2018-11-28 13:21:23 -05:00
vimux
aebe913761
Improve exception handling for cardsPerRow param 2018-11-26 14:09:11 -05:00
vimux
0038cc1f58
Add authorbox 2018-11-18 11:00:23 -05:00
vimux
290d1cb0ae
Make thumbnail image clickable on list partial 2018-11-17 14:15:14 -05:00
vimux
6f847bd6d1
Don't generate empty div.post__meta 2018-11-16 09:50:56 -05:00
vimux
982b2eae26
Fix list.html partial: restore page block
This was accidentally broken in "Define Base Template (baseof.html)" (896326481e)
2018-11-15 10:14:05 -05:00
vimux
cdc13f1bf7
Improve semantic layout 2018-11-14 13:34:07 -05:00
vimux
1665f619df
Better handling Web Manifest include 2018-11-14 10:03:23 -05:00
vimux
1e9df01d20
Delete Modernizr script declaration from baseof 2018-11-03 15:09:49 -04:00
vimux
74dfcb269f
Use no-js -> js script instead of Modernizr 2018-11-03 10:42:19 -04:00
vimux
896326481e
Define Base Template (baseof.html) 2018-11-03 10:23:41 -04:00
vimux
0386c67cc9
Fix margins for page block 2018-06-20 13:27:24 +03:00
vimux
07fe4c777c
Fix post__footer conditional statement 2018-06-12 11:19:03 +03:00
vimux
6b36c1ca0a
Add sharing buttons 2018-06-12 09:02:31 +03:00
vimux
5bd4fd7709
Fix condition 2018-06-04 11:06:03 +03:00
vimux
0d5e2d839f
Use .Param for cardsPerRow parameter 2018-05-27 09:58:52 +03:00
vimux
5d3bea73a5
Add initial "related articles" block 2018-05-25 17:29:46 +03:00
vimux
216780dc4b
Add partial post_toc.html for table of content 2018-05-25 13:03:05 +03:00
vimux
ab7d847e21
Fix post__footer check condition 2018-05-25 10:20:37 +03:00
vimux
8fc9a3c7c5
Add initial Table of Contents 2018-05-22 16:36:26 +03:00
vimux
b6a9f07c52
Fix card title font-size 2018-05-22 15:27:55 +03:00
vimux
b267de84f8
Add initial thumbnail support 2018-05-21 23:08:56 +03:00
vimux
d5d78035ff
Add footer section for single post 2018-05-21 21:18:52 +03:00
vimux
fa13a9b9e2 Unify name convention for config params (camelCase)
* disable_comments -> comments
* dateformat -> dateFormat
* CardsColumns -> cardsPerRow
2018-04-25 21:51:50 +03:00
vimux
031c995310 Add card layout for list pages 2018-03-10 07:40:22 +03:00
vimux
ac8cec336b Add post_meta partial 2018-03-04 10:21:14 +03:00
vimux
12d054be4f Show title and content for taxonomies pages 2018-03-03 23:47:33 +03:00
vimux
aff7c3515f Add internal comments (Disqus) partial 2018-02-23 16:01:12 +03:00
vimux
8ea72745ac Add post_tags partial 2018-02-23 15:54:37 +03:00
vimux
8dd523595d Add pagination 2018-02-23 15:27:28 +03:00