Commit graph

120 commits

Author SHA1 Message Date
Michael Romero
46ffcfbce1 Fix missing slash in tags URL 2018-01-08 20:24:00 -08:00
James Wu
d67f51a811 add sri sha384 to cdn font-awesome 2017-12-29 00:00:45 -08:00
James Wu
bcd9c09cd5 add .Site to readingTime 2017-12-29 00:00:11 -08:00
Michael Romero
9eea743863
Merge pull request #113 from henryiii/fixpage
Remove next/previous for pages
2017-12-28 00:16:12 -08:00
halogenica
e0a5a06ce1 Add modified time, fix translations, make reading time optional 2017-12-28 00:11:07 -08:00
Michael Romero
9d53238842
Merge pull request #110 from badele/fix-rss
Fix empty RSSLink issue #101
2017-12-27 23:50:59 -08:00
Michael Romero
aa21f82dff
Merge pull request #109 from jkinred/master
Update doco in head_custom.html and footer_custom.html to correct path
2017-12-27 23:47:56 -08:00
Michael Romero
2dfcafb7bd
Merge pull request #102 from badele/piwik
Add piwik analytics tool
2017-12-27 23:12:16 -08:00
halogenica
e5d4e621cc Clean up syntax highlighting CSS 2017-12-27 23:06:11 -08:00
Henry Fredrick Schreiner
053715e436 Fix error in autodiscovery 2017-12-07 14:34:23 -05:00
Henry Fredrick Schreiner
2d2756aa1f Use auto type discovery (can be overridden) 2017-12-07 14:30:54 -05:00
Henry Fredrick Schreiner
3e553102fc Using type=page for comments too 2017-12-07 14:24:28 -05:00
Henry Fredrick Schreiner
350f4a8e02 Remove next/previous for pages 2017-12-07 13:55:54 -05:00
badele
2d5a6fb059 Fix empty RSSLink 2017-11-26 21:45:12 +01:00
Jonathan Kinred
400074cc23 #81 - Update doco in head_custom.html and footer_custom.html to refer to correct path 2017-11-26 15:14:26 +11:00
badele
20d20a0178 Add piwik analytics tool 2017-11-21 19:50:06 +01:00
badele
41667d46c3 Add more post information, if staticman used, it can show number comments 2017-11-18 09:05:36 +01:00
badele
d68cf2e04d Simplify staticman posts and add staticman translations 2017-11-18 07:59:53 +01:00
badele
8a0d06525d Add staticman support (static comments coupled with Github pull request) 2017-11-17 22:57:41 +01:00
Michael Romero
7cdd0e0b3d
Merge pull request #95 from badele/rssfeed
Add customized RSS URL
2017-11-11 20:38:32 -08:00
Michael Romero
4f7b301f56
Merge pull request #94 from badele/highlighting
Add chroma highlighting support (Hugo now uses it)
2017-11-11 20:37:25 -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
c09200eacd Add customized RSS URL 2017-11-10 22:06:14 +01:00
Henry Fredrick Schreiner
b5136ec772 Adding documentation, rename style file to Hugo standard name 2017-11-10 13:29:44 -05:00
Henry Fredrick Schreiner
b2a458ddc2 Drop hljs if chroma is present 2017-11-10 13:13:22 -05:00
badele
f183da2f87 Add highlighting feature 2017-11-08 21:41:38 +01: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
Michael Romero
b760205613 Merge pull request #86 from cite/tagbase
include complete URL in tags
2017-08-10 00:05:24 -07:00
Alexander Becker
d5692a3f8d corrected variable name for authors website 2017-08-09 08:30:21 +00: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
Michael Romero
c968ae7d9c Merge pull request #85 from cite/taglinkslash
some URL related fixes, mainly tags
2017-08-06 01:45:47 -07:00
Michael Romero
b281d11140 Check if author name exists before using it 2017-08-06 01:42:32 -07: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
Stefan Foerster
82e3c691f3 footer: load-photoswipe.js: use absURL 2017-08-03 15:31:24 +02:00
Alexander Becker
fa50dd6d0f added authors website to site parameters. link to authors website can be included in the footer now. 2017-07-19 19:56:00 +02:00
Michael Romero
c6637b0a79 Add missing role="main" 2017-06-06 23:26:22 -07:00
Michael Romero
bbeb127b30 Load photoswipe by default and fix double-load bug
Photoswipe is now loaded by default for all pages in this theme. No need
to call load-photoswipe shortcode anymore. Fixes bug where
load-photoswipe.js was invoked multiple times, which caused the
photoswipe to prevent viewing the lightbox more than once.
2017-06-06 22:51:02 -07:00
Michael Romero
f86398e399 Fix incorrect use of isset 2017-06-04 23:14:38 -07:00
rui.zheng
0d3d2e33f0 add i18n supported for paginator 2017-05-09 15:14:46 +08:00
Kedy Liu
598100e4e8 Moved Google Analytics snippet to head and changed it to use async snippet. 2017-05-05 03:13:34 -04:00
Jack Taylor
54959770bf Fix URLs for sites where baseURL is not the domain root
It turns out that the fix for static links in 6528985ed breaks
sites where baseURL is not at the domain root, (i.e. the Hugo site
is at http://www.example.com/foo/, not http://www.example.com/).
This is because the link strings passed to absURL and absLangURL
have a leading slash, which Hugo resolves to the domain root. This
commit fixes the problem by removing removing the leading slash
from these strings.

Fixes #57
2017-05-04 20:21:14 +09:00
Michael Romero
978060b661 Merge pull request #55 from rayjolt/og-url
Fix og:url meta tag for multilingual sites
2017-04-29 09:16:19 -07:00
Jack Taylor
49cb655cd6 Fix og:url meta tag for multilingual sites
We need to use absLangURL instead of absURL, otherwise we
generate URLs that are wrong or don't exist for pages which aren't
in the default language.
2017-04-29 13:23:45 +09:00
Jack Taylor
efe742f442 Fix links to static content
Use absURL to find the URL for static content such as images,
CSS and JavaScript. The previous approach sometimes led to an
extra slash between the domain name and the path, breaking the
links. (In particular, it works when tested with hugo server, but
breaks in production.)
2017-04-29 13:15:46 +09:00
Michael Romero
9c165c43d8 Header title for list and hashtags
Increase the title header for lists to match single pages. Add a hashtag
for taxonomies.
2017-04-24 23:43:55 -07:00
Michael Romero
0d2ddebdd9 Single and List views not apply to all page types
Single and List views not apply to all page types. Previously list view
would only apply to posts. With this change, a new content folder named
"foo" will now list all content within the "foo" folder. In addition,
the Single layout is now generalized and applies to all types of
content.
2017-04-24 21:17:24 -07: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
Michael Romero
07a5bc3953 Merge branch 'master' into duplicatedmaindiv 2017-04-09 22:36:48 -07:00