271 Commits

Author SHA1 Message Date
Austin Ziegler
764d9fd751 Documentation for ref and relref.
- Rejigged the weight of the extras/ content for the new crossreferences
  page.
- Used the new {{</*…*/>}} format for documenting highlighting and to
  prevent a warning about the missing `fig` shortcode.
2014-12-18 22:18:37 -05:00
bep
52b2cdcb82 Fix front matter for 'Creating a New Theme'
There seems to be an issue with TOML and certain menu structures. Current workaround: YAML.
2014-12-08 23:08:54 +01:00
Anthony Fok
dcf31bea6a Docs: Minor copyediting/proofreading
- Correct some typos
- Add backticks and commas where necessary
- Use fenced code blocks specifying "bash" as the language
  to avoid weird highlighting
- Place commas outside of quotation marks surroundingn codes
  to avoid possible confusion
- Suggest users to use the discussion forum rather than the
  mailing list
2014-12-08 22:44:30 +01:00
Anthony Fok
cd8c8c5ffa Docs: Quote <!--more--> in <code> instead of italicizing it
Also replace "--" with "&#x2d;&#x2d;" prevent "--" from
being interpreted as en-dash.

Note: A simple `<!--more-->` does not work.
2014-12-08 22:44:30 +01:00
Anthony Fok
4b6fe2b16f Correct URL of the favicon in the documentation
img/favicon.png does not seem to exist,
so follow the example in docs/layouts/index.html
and use /favicon.ico instead.
2014-12-08 22:34:00 +01:00
Augustin Riedinger
41c248566c Github page strategy for username.github.io repos
The whole article should maybe be rewriten to have a better content flow (maybe adding a table of content), to introduce both possible strategies. But at least, the technical steps are there!
2014-12-03 15:03:18 +01:00
Rasmus Stougaard
9294594e66 Fixed typo in summaries description in the documentation 2014-12-03 13:55:52 +01:00
Alex Dunn
619da1ee41 showcase: update ucsb entry 2014-12-03 13:53:29 +01:00
Kartik Singhal
3c32d4a1be Correct alias 2014-12-03 09:17:45 +01:00
bep
26e618416d Fix missing shortcode in doc
Use new syntax for example.
2014-12-03 09:17:04 +01:00
bep
e6bf7b9184 Doc for markdownify
This small function feels important enough to maybe deserve more than these three lines, but this will have to do for now.

This assumes that #652 gets merged.
2014-11-24 23:18:18 -05:00
Joel Scoble
eacd03bc7c update summary.md with info on handling of html tags 2014-11-24 23:03:10 -05:00
Kartik Singhal
02f8004aef Correct path in theme search order 2014-11-24 17:24:39 -05:00
Rasmus Stougaard
0deb891c18 Added link to my blogpost about travelling with Hugo in asia 2014-11-24 17:23:38 -05:00
Rasmus Stougaard
437664bd09 Added stou.dk to showcases 2014-11-24 17:23:37 -05:00
Dan Connolly
9eb1217322 typo: practical 2014-11-24 17:14:11 -05:00
bep
461e6d0062 Update shortcode doc for 0.13-DEV
Update of the doc to reflect the shortcode  implemention in HEAD.
2014-11-18 12:26:33 -05:00
ls6
146b08c67f Update shortcodes.md
A typo resulting in a broken link.
2014-11-18 10:15:05 -05:00
Danillo Souza
c0141e90a1 fixing typo 2014-11-17 18:44:34 -05:00
bep
2ecb85e8b2 Shortcode rewrite, take 2
This commit contains a restructuring and partial rewrite of the shortcode handling.

Prior to this commit rendering of the page content was mingled with handling of the shortcodes. This led to several oddities.

The new flow is:

1. Shortcodes are extracted from page and replaced with placeholders.
2. Shortcodes are processed and rendered
3. Page is processed
4. The placeholders are replaced with the rendered shortcodes

The handling of summaries is also made simpler by this.

This commit also introduces some other chenges:

1. distinction between shortcodes that need further processing and those who do not:

* `{{< >}}`: Typically raw HTML. Will not be processed.
* `{{% %}}`: Will be processed by the page's markup engine (Markdown or (infuture) Asciidoctor)

The above also involves a new shortcode-parser, with lexical scanning inspired by Rob Pike's talk called "Lexical Scanning in Go",
which should be easier to understand, give better error messages and perform better.

2. If you want to exclude a shortcode from being processed (for documentation etc.), the inner part of the shorcode must be commented out, i.e. `{{%/* movie 47238zzb */%}}`. See the updated shortcode section in the documentation for further examples.

The new parser supports nested shortcodes. This isn't new, but has two related design choices worth mentioning:

* The shortcodes will be rendered individually, so If both `{{< >}}` and `{{% %}}` are used in the nested hierarchy, one will be passed through the page's markdown processor, the other not.
* To avoid potential costly overhead of always looking far ahead for a possible closing tag, this implementation looks at the template itself, and is branded as a container with inner content if it contains a reference to `.Inner`

Fixes #565
Fixes #480
Fixes #461

And probably some others.
2014-11-17 18:32:06 -05:00
Michael Henderson
001bb4d895 Update creating-a-new-theme.md 2014-11-13 22:44:31 -05:00
Michael Henderson
f10ca3bde0 Update creating-a-new-theme.md 2014-11-13 22:44:31 -05:00
Michael Henderson
4d23a88c65 Update creating-a-new-theme.md
Update heading levels to confirm to the other tutorials. Create a similar front-matter using YAML, since I couldn't figure out how to get the menu:main:parent working as TOML.
2014-11-13 22:44:30 -05:00
Ryan Kimber
8070e5c09f Fixed launchcode5.md description 2014-11-13 22:08:30 -05:00
Ryan Kimber
72a35bf0ef Added launchcode-tn.jpg to docs/static/img 2014-11-13 22:08:29 -05:00
Ryan Kimber
17c2471d5b Create launchcode5.md 2014-11-13 22:08:29 -05:00
bep
cc44490ecf Add Git directory deployment flow to tutorial 2014-11-13 12:33:14 -05:00
Mike Dillon
385eb54e92 Fix sourceLink for Hugo 2014-11-01 23:39:49 -04:00
Michael Henderson
0e378de110 Create creating-a-new-theme.md 2014-11-01 23:12:01 -04:00
Justin Calleja
33bd973c49 Fix for issue 583 2014-11-01 23:10:52 -04:00
Kartik Singhal
bb49a397e7 Fix broken link 2014-11-01 23:08:48 -04:00
Kartik Singhal
45e4ae58de Minor doc corrections 2014-11-01 23:03:29 -04:00
Joel Scoble
5782ea26d9 added note about pygment example code and markdown processing, updated example 2014-11-01 22:58:44 -04:00
Tatsushi Demachi
00dfcc6477 Add sort and grouping functions for publish date and param of Page
`GroupBy` is modified to allow it to receive a method name argument for
example `Type` as its first argument. It is only allowed to call with
a method which takes no arguments and returns a result or a pair of
a result and an error.

The functions discussed at #443 are also added

- `ByPublishDate`: Order contents by `PublishDate` front matter variable
- `GroupByPublishDate(format, order)`: Group contents by `PublishDate`
  front matter variable formatted in string like `GroupByDate`
- `GroupByParam(key, order)`: Group contents by `Param` front matter
  variable specified by `key` argument
- `GroupByParamDate(key, format, order)`: Group contents by `Param`
  front matter variable specified by `key` argument and formatted in
  string like `GroupByDate`. It's effective against `time.Time` type
  front matter variable
2014-11-01 22:41:04 -04:00
Joel Scoble
3f94f6cb58 update summary doc 2014-11-01 22:27:54 -04:00
Joel Scoble
ad62f8a5a4 #463 add summary.md page 2014-11-01 22:27:47 -04:00
spf13
15eca973bb Big refactor of how source files are used. Also added default destination extension option. 2014-10-16 20:20:09 -04:00
Will Stevens
e2b91316a5 added docs for 'intersect' and 'in' template functions 2014-10-15 12:30:10 -04:00
Anthony Fok
60092aa377 Minor proofreading corrections to Hugo docs
- Add backticks and commas where necessary
- Remove some trailing whitespace
- Add front matter example in TOML
- Fix typo in one of the tags in Showcase
- Add 多说 (Duoshuo) as an alternative to Disqus
- Use internal links (i.e. without gohugo.io) where possible
- Use a colon to set off an example
- Change "it's" to "its" where appropriate
- Use typographical (i.e. curly) apostrophe on the front page
  where appropriate
- Capitalize "Github" as "GitHub"
2014-10-15 12:18:20 -04:00
bep
81781d6751 Document manual breakpoint of .Summary
The use of <!--more--> to set the breakpoint for the generated page summary is mentioned in a release note, but not in the doc itself.

Very useful - and it leaves the formatting in place.
2014-10-15 12:15:59 -04:00
Austin Ziegler
30e288626c Configure footnote rendering.
- The config file can provide FootnoteAnchorPrefix, which will be used
  by blackfriday when rendering to HTML. A value of `q:` has the effect
  of making the anchor for a footnote `[^footie]` be `fn:q:footie`. The
  default is `""`.

- The config file can provide FootnoteReturnLinkContents, which will be
  used by blackfriday when rendering to HTML. A value of `^` has the
  effect of making the return link be `^` instead of `[return]`.
2014-10-07 16:43:33 -04:00
Jorin Vogel
09a4c3282a Mention .Params and .Page variables in shortcode docs. Also highlight variables. 2014-10-02 13:53:36 -04:00
Aurelius Prochazka
ab67500e75 Removed text from code block. 2014-10-02 13:45:47 -04:00
Kartik Singhal
ced9343584 Switch to new hompage 2014-10-02 13:39:59 -04:00
Austin Ziegler
6d61f7c022 Make taxonomy documentation match the example. 2014-09-24 14:56:53 -04:00
Kartik Singhal
2b6a82db4f Make highlight.js example clearer
Provide the missing step to actually use the library. Should be helpful for a newbie.
2014-09-24 14:56:44 -04:00
spf13
155148a2b5 Making the install on the homepage a bit more clear 2014-09-22 22:08:08 -04:00
Alex Dunn
523a97ed54 instructions for Homebrew installation
updated installation page of documentation, and changed "Download" button on index.html to scroll to bottom where multiple installation options are featured

getting the scrolldown to work required removing the fixed positioning on #action and on the footer
2014-09-22 21:51:19 -04:00
spf13
bd4d038ab1 Adding a community link to the homepage 2014-09-19 08:32:25 -04:00
spf13
538bd1ae0f switching website to gohugo.io & adding links to discuss 2014-09-18 21:22:04 -04:00