Commit Graph

36 Commits

Author SHA1 Message Date
Michael Romero
b71c2754dc Added a "video" type for post preview 2019-09-05 01:03:35 -07:00
Antonin Kral
1131754240 Let's use mainSections when looking for relevant content for the home page 2019-08-19 15:16:50 +02:00
Antonin Kral
79abb2e4d6 Address changes introduced by hugo v0.57.0
see https://github.com/gohugoio/hugo/releases/tag/v0.57.0
2019-08-15 20:27:27 +02:00
Vincent Tam
37d73ff832 Fix #261 2019-04-25 11:09:47 +02:00
Michael Romero
7bced23614 fix validator error: <img> tags must have "alt" attribute 2018-11-12 23:51:42 -08:00
Simon Spannagel
1ec6bca1c3 Fix broken pagination links when using page URL with folder 2018-09-28 11:21:34 +02:00
Zev Goldstein
c28a214abb
Allow custom summaries
This is an "escape hatch" that can be used when neither automatic nor manual summary splitting is sufficient to create a good summary.  This is specifically useful for articles that begin with a disclaimer or anything else that shouldn't be included in the summary.  It's also useful for footnote links and other mid-text items that should be excluded from the summary.
2018-06-13 19:30:16 -04:00
Jorge
9e3bc16498 Added tag styling like beautifuljekyll 2018-04-13 14:35:05 +01:00
Mohammad S. Babaei
c82ad3cea1
fix pagination to respect PaginatePath configuration option 2018-04-01 16:30:43 +04:30
Michael Romero
46ffcfbce1 Fix missing slash in tags URL 2018-01-08 20:24:00 -08:00
Michael Romero
4d7446e101
Merge pull request #93 from badele/title-image
Add image title feature in homepage
2017-11-11 20:34:49 -08:00
badele
96bc55120b Add image title feature in homepage 2017-11-05 17:28:08 +01:00
Stefan Foerster
25d482d110 generate page links with trailing slashes 2017-09-04 11:54:55 +02:00
Stefan Foerster
2506a38947 include complete URL in tags
I want to resolve #71 with this - links to tags should now also
work when the site is not living in a domain's root.
2017-08-06 10:55:37 +02:00
Stefan Foerster
3d675e36c5 generate tag links with trailing slash
Since all post URIs are generated with a trailing slash, I thought
it would be a good idea to do the same for tag links. This can
save a few I/O operations here and there (or, depending on your
webhoster, even get rid of redirects).
2017-08-05 22:26:13 +02:00
Jack Taylor
0df40cf71e Fix template indentation
Fix indentation for templates changed in 3cec621. This is a
separate commit as it makes for diffs that are easier to read.
2017-04-17 12:44:50 +09:00
Jack Taylor
a5113e5008 Make all full-page templates inherit from a block template
Use block templates [1] for all of the full-page templates such as
index.html, _default/list.html, etc. This reduces code duplicated
between them.

Also, move the code in partials/page.html and partials/post.html
to page/single.html and post/single.html respectively. With block
templates the contents of the partials is almost exactly the same
as the contents of the single page templates, and having dedicated
single-page templates for the content types means that we can get
rid of the if/then/else logic in _default/single.html.

This also gets rid of an excess container div; the duplication of
the divs was being obscured by the way _default/single.html was
interacting with the partials. (This is the same duplicated div
as in pull request #51 found by @1138-4EB.)

[1] https://gohugo.io/templates/blocks/
2017-04-17 12:44:44 +09:00
Jack Taylor
9c467304ec Use the correct language in lang attributes
Set the lang attribute in the html element to be the right
language, and also add lang attributes to text in a language that
is different to the page language, such as the language switcher
links.
2017-04-07 13:08:44 +09:00
Jack Taylor
ff657d2db1 Add links to translated content
Links to translated content will appear next to the date, both on
the index page and on post pages. Also style the translation links
on post pages to be like those on the index page, although some
more thought about the design is probably in order.
2017-04-07 12:58:57 +09:00
Jack Taylor
c4cfe47e01 Make links language-relative
This ensures that links work correctly in languages other than
English. For example, clicking on the navbar "brand" link used to
take you to the English home page even if you were browsing the
site in another language. Now it takes you to the home page for
that language.
2017-04-07 08:01:06 +09:00
Jack Taylor
0f74f45531 Move hard-coded strings to i18n files
Add translations in English and in Japanese
2017-04-06 18:39:11 +09:00
Michael Romero
4d866ddfd7 Default date format if not defined in config.toml
Default date format if not defined in config.toml
2017-03-25 20:10:24 -07:00
halogenica
ee6246379b Consolidate header_wp.html and header.html
Consolidate header_wp.html and header.html to a single header.html
file.
2017-03-19 16:50:32 -07:00
Michael Romero
b44b51c9f1 Merge pull request #31 from liwenyip/use-header_wp-in-index
User header_wp.html partial in index.html
2017-03-19 16:44:49 -07:00
Li-Wen Yip
730ce3d9d3 User header_wp.html partial in index.html
- Changed header_wp.html and header.html so that they will also work on
the homepage (if the current page is the homepage then use the site
bigimg/title/subtitle, otherwise use the page bigimg/title/subtitle;
need to add them to the scratchpad so that they are accessible outside
the scope of the if/else statement).
- Change index.html to use the header_wp.html partial instead of
duplicating the same code
2017-03-11 20:49:44 +00:00
Li-Wen Yip
cfbe939864 Support static content on front page (above posts) 2017-03-11 18:36:32 +00:00
Michael Romero
f1c6df1122 Fix missing title when screen < 365px
Fixed issue where title and subtitle disappear when screen width is
less than 365px
2017-03-09 09:52:17 -08:00
Michael Romero
917f5fef57 Fix bigimg if only single bigimg is set
Fixing an off by 1 error which caused single bigimg's not to show up
2017-03-08 23:55:03 -08:00
Michael Romero
ba07f7cc67 Update default archetype
Update the default archetype to specify all relevant frontmatter fields.
Updated the bigimg and comments features to handle "unset" or "null"
values in the frontmatter and default appropriately. Also updated the
bigimg sample to explain both the default and "flow" YAML syntax.
2017-03-07 02:53:09 -08:00
Michael Romero
f84ba895a8 Better bigimg support
Add support for bigimg's on the front page, multiple images that rotate
on both the front page and regular pages and posts, also added test
images and a sample to demonstrate the functionality and how to specify
bigimg's.
2017-03-07 00:55:44 -08:00
Michael Romero
0338abd814 Made date format configurable
Can be configured in config.toml Params.dateFormat
2017-03-06 14:36:35 -08:00
Michael Romero
40b3eb3691 Correct spacing and remove extraneous </div>
Removed extraneous </div> in layouts\_default\list.html
2017-03-06 13:36:42 -08:00
SeongJae Park
558005341e Support tags
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
2017-02-25 00:19:20 +09:00
Tom Hoover
999b033f75 only display '[Read More]' link if post is truncated 2017-02-18 12:57:50 -06:00
Michael Romero
87adc9d691 Support for big title images and bugfixes
Add support for big title images
(e6cb0a4f54).
Several bugfixes including pygment_highlights.css dependency, Index page
alignment/containers, and Index page site title. Also renamed
description to subtitle, in line with the original theme.
2016-04-02 03:55:38 -07:00
Michael Romero
ff7cd6fd91 Initial Checkin of Beautiful Hugo Theme
Initial Checkin of Beautiful Hugo Theme
2016-03-08 02:43:08 -08:00