9046 Commits

Author SHA1 Message Date
Bjørn Erik Pedersen
3acb75f89f Merge commit '5ac0f751aa47e52625662215f66efa99a6abfc2e' 2019-10-21 10:52:23 +02:00
Bjørn Erik Pedersen
723da4a376
Vendor the theme
To make the /docs in the source project standalone.
2019-10-21 10:51:03 +02:00
Bjørn Erik Pedersen
8b3cb611ae Merge commit '5070ba6c9e6c492deade3c30cfe769b9dbf7151d' 2019-10-21 10:49:16 +02:00
Bjørn Erik Pedersen
0584815c8a
Add a page about Pages methods (Next, Prev) 2019-10-21 10:47:03 +02:00
Bjørn Erik Pedersen
653dc8db55
Add note about default bgColor 2019-10-21 10:27:14 +02:00
Bjørn Erik Pedersen
fd01278414 Merge commit 'b9bd35d72e14932fb6588ff62b90cddef0a060fc' as 'docs' 2019-10-21 10:22:28 +02:00
Bjørn Erik Pedersen
39121de4d9
docs: Replace /docs 2019-10-21 10:21:51 +02:00
Bjørn Erik Pedersen
fdea5430f8
Merge branch 'temp59_' into next 2019-10-21 10:18:56 +02:00
Bjørn Erik Pedersen
180195aa34
cache/filecache: Recover from file corruption
Fixes #6401
2019-10-21 09:51:51 +02:00
Bjørn Erik Pedersen
b2665ca27f resources/images: Allow to set background fill colour
Closes #6298
2019-10-20 22:06:58 +02:00
Bjørn Erik Pedersen
4b286b9d27 resources/images: Allow to set background fill colour
Closes #6298
2019-10-20 22:06:58 +02:00
Matt Cone
917226f98f fix typo in /getting-started/configuration/ 2019-10-20 10:36:47 +02:00
Darshan Baral
2e3db7c18c Added note about path separator
Having gone through https://discourse.gohugo.io/t/different-behavior-locally-vs-on-netlify/19266/5, I figured I'd add a note.
2019-10-18 08:55:01 +02:00
Conor Lawless
d667eefc61 Removing unnecessary javascript
This block of javascript currently seems to break MathJax rendering (at least on my site, rendered and viewed under Chrome browser).  Just remove?

https://stackoverflow.com/questions/56648378/rendering-latex-on-hugo-websites-with-mathjax
2019-10-16 18:14:52 +02:00
Nicolas Martignoni
689f647baf media: Add common video media types
- See https://discourse.gohugo.io/t/resources-bytype-for-video-files/21285
2019-10-16 17:16:14 +02:00
Nicholas Whittaker
96a86531a8 Add syntax highlighting variables to list of all settings
The list of all configuration variables was missing some (newer?)
variables relating to syntax highlighting.

Some instances of `pygmentsCodeFences` used different captilisation,
and have been updated to match.
2019-10-16 08:54:03 +02:00
Bjørn Erik Pedersen
556179197f Update theme 2019-10-14 17:00:30 +02:00
Bjørn Erik Pedersen
a20ced7f15
Update image cache 2019-10-14 16:50:55 +02:00
Bjørn Erik Pedersen
46cafdbaca
examples: Replace .RSSLink
Fixes #6037
2019-10-14 09:30:09 +02:00
Bjørn Erik Pedersen
653e6856ea resources/page: Use binary search in Pages.Prev/Next if possible
This is obviously much faster for lager data sets:

```bash
name                         old time/op    new time/op    delta
SearchPage/ByWeight-100-4       267ns ± 4%     272ns ± 5%     ~     (p=0.457 n=4+4)
SearchPage/ByWeight-5000-4     10.8µs ± 3%     1.2µs ± 2%  -88.99%  (p=0.029 n=4+4)
SearchPage/ByWeight-10000-4    21.1µs ± 1%     1.4µs ±11%  -93.28%  (p=0.029 n=4+4)
```

See #4500
2019-10-13 12:36:17 +02:00
Bjørn Erik Pedersen
f4f566edf4 Make Pages.Prev/Next work like the other Prev/Next methods
Fixes #4500
2019-10-13 12:36:17 +02:00
Bjørn Erik Pedersen
565c774fa4
Improve Next/Prev 2019-10-13 11:57:34 +02:00
Bjørn Erik Pedersen
2a2a4e8568
Update bio.md 2019-10-12 23:38:58 +02:00
Bjørn Erik Pedersen
55b3435204
Fix redirect loop 2019-10-12 23:09:11 +02:00
Cyril Bonnet
210c128f54 feat: Add Hapticmedia Blog to showcase 2019-10-12 23:05:36 +02:00
Zach Bayoff
ea316f4b28 tpl: Add optional "title" attribute to iframe in Vimeo shortcode
Add an optional "title" attribute to the iframe in the vimeo shortcode. If one is not given, the title attribute will default to "vimeo video". It is imperative for iframes to have a non-empty "title" attribute in order to meet WCAG2.0 accessibility guidelines https://www.w3.org/TR/WCAG20-TECHS/H64.
2019-10-12 18:10:14 +02:00
Zach Bayoff
7b3edc2931 tpl: Add optional "title" attribute to iframe in Vimeo shortcode
Add an optional "title" attribute to the iframe in the vimeo shortcode. If one is not given, the title attribute will default to "vimeo video". It is imperative for iframes to have a non-empty "title" attribute in order to meet WCAG2.0 accessibility guidelines https://www.w3.org/TR/WCAG20-TECHS/H64.
2019-10-12 18:10:14 +02:00
Baibhav Vatsa
65b7d4221b tpl: Modify error messages of after, first, and last
Modified the messages functions after, first, and last threw on being passed invalid parameters (index or limit) to be more standardised and resemble what Go compiler would throw.

Fixes #6415
2019-10-12 18:07:46 +02:00
Baibhav Vatsa
0e75af74db tpl: Last now accepts 0 as limit
Modified the if conditional because of which last threw an error if 0 was passed as limit. The function now returns an empty slice if it is called with 0 as limit. The behavior of first and last is now the same when 0 is passed as limit. Also added tests to test the new behavior.

Fixes #6419
2019-10-11 20:34:51 +02:00
Bjørn Erik Pedersen
5f1aafafb4
Update feature_request.md 2019-10-11 16:43:00 +02:00
Liam OBrien
5d5031a901 Correct link syntax for JAMStack Themes link (#939)
See both #937 and #938 for original link.
2019-10-11 21:14:40 +07:00
Vazrupe (HyeonGyu Lee)
a9762b5c48 common: Fix elements are doubling when append a not assignable type
Fixes #6188
2019-10-11 10:38:12 +02:00
Baibhav Vatsa
096a4b67b9 tpl: After now accepts 0 as index
Modified the if conditional because of which after threw an error if called with 0 as index. The function now returns the whole original slice if 0 is passed as an index. Also added tests to test the new behavior.

Fixes #6388
2019-10-11 08:35:27 +02:00
Brian Rinaldi
01527b1c58 Adding JAMStack themes to resources (#938)
linking specifically to the Hugo filtered list
2019-10-11 12:37:59 +07:00
Bjørn Erik Pedersen
bc70f2bf12 helpers: Fix data race in global logger init
Fixes #6409
2019-10-10 16:07:53 +02:00
Bjørn Erik Pedersen
0d7b05be4c tpl: Make getJSON/getCVS accept non-string args
This broke for the Twitter simple shortcode now that Shortcodes accepts typed arguments.

Fixes #6382
2019-10-10 13:30:39 +02:00
Bjørn Erik Pedersen
71b18a0786 Update to Go 1.12.10 and 1.13.1
Fixes #6406
2019-10-10 09:50:44 +02:00
狂飙
dbfd3333bb Fix typo in # anchor links (#936)
Remove all trailing `/` slash in `#` anchor links.
Find `(\[.*\]:.*#.*)/$` and replace with `$1` to do the work.
2019-10-09 20:33:30 +07:00
Bjørn Erik Pedersen
339ee37143
Simplify test output to simplify diffing 2019-10-09 10:49:52 +02:00
Bjørn Erik Pedersen
f10db101a1
hugofs: Add FileMeta.String
To make the page listing easier to compare.
2019-10-09 10:30:09 +02:00
Anthony Fok
b401858ebd deps: Update minify to v2.5.2
- v2.5.1 removes import comments, solving a build error with Go 1.13
  in GOPATH mode (used Debian packaging for example)
- v2.5.2 no longer converts polyline/rect/polygon/line to path
  as it has been reported to break a SVG referenced by CSS,
  see tdewolff/minify#260

The test case for Min SVG in TestResourceChains is updated accordingly.

Fixes pocc/tshark.dev#33
2019-10-09 09:01:08 +02:00
Joshua Schwartz
a3e1b0ae48 Fix typo in _index.md (#935)
There was a stray apostrophe in the possessive "its".
2019-10-08 16:20:15 +07:00
Anthony Fok
39ed33fceb resources: Fix image test error on s390x, ppc64* and arm64
In TestImageOperationsGolden, tolerate slight floating-point rounding
differences due to the use or non-use of "fused multiply and add" (FMA)
instruction on different architectures.

Special thanks to @disintegration for the solution in goldenEqual();
see https://github.com/disintegration/gift/issues/20

Fixes #6387
2019-10-07 21:52:43 +02:00
Niklas Fasching
020a6fbd7f Add BaseFs to RenderingContext
The org mode renderer supports including other files [1]. We don't want to
allow reading of arbitrary files (go-org defaults to ioutil.ReadFile [2]) but want
to make use of the FileSystem abstractions hugo provides. For starters we will
allow reading from the content directory only

[1]: e.g. `#+INCLUDE: ./foo.py src python` includes `foo.py` as a python source
block.
2019-10-07 17:30:15 +02:00
Niklas Fasching
b152216d5c deps: Update go-org
- add support for latex fragments
- allow customization of ReadFile method for includes (#+INCLUDE: ...)
2019-10-07 17:30:15 +02:00
Bjørn Erik Pedersen
64ec8c8904 media: Use + to create the Type string 2019-10-06 22:20:58 +02:00
Brian MacKinney
231b2f094e Update types.md. closes #897 2019-10-06 19:40:53 +02:00
Clemens Tolboom
16470a1749 Make link to git install more logically. (#699)
I was wondering what kind of tool `Git installed` was.
2019-10-06 19:16:13 +07:00
XhmikosR
44d4a8508d Update index.md (#894)
Fix indentation
2019-10-06 19:07:12 +07:00
Andrew Schleifer
2af9f3598f Give some uses for languageCode (#772)
The current description is entirely circular.
2019-10-06 19:03:17 +07:00