Commit graph

106 commits

Author SHA1 Message Date
Jack Taylor
2366c020e7 Update the footer template with the new data file location
The social icons data was moved in cfad05b, but we need to update
the footer template with the new location as well to be able to
access the data.
2017-03-28 15:55:57 +09:00
Michael Romero
cfad05b6a0 Move social.toml data file to theme folder
Move social.toml data file to theme folder so an end user doesn't
accidentally override the theme's social icons with their own social
data. Effectively puts the social.toml data in the theme's namespace.
2017-03-27 23:41:41 -07:00
Michael Romero
fa359a6dd2 Merge pull request #43 from rayjolt/footer-icons
Split the social icon data out from the footer template
2017-03-27 23:25:23 -07:00
Michael Romero
19b620f632 Update photoswipe gallery to hugo-easy-gallery
Using https://github.com/liwenyip/hugo-easy-gallery/ from @liwenyip
2017-03-27 21:00:24 -07:00
Michael Romero
de52bb63ed Only load cse.js if google cse is configured
Previously if gcse wasn't configured, the footer would attempt and fail
to load cse.js with an invalid gcse ID
2017-03-27 20:27:18 -07:00
Jack Taylor
4379aa951f Split the social icon data out from the footer template
Add a "social.toml" data file to hold the data for all the social
icons in the footer template. This reduces repetition in the
template code and makes it easier to reuse the data in other
parts of the theme, should that be desired in the future.

It also makes it easier for end users to add new icons by just
overriding the data file, instead of having to override the whole
footer template.
2017-03-28 12:06:17 +09:00
Michael Romero
21461b8257 Merge pull request #41 from liwenyip/fix-page-2
Fix issues with title, subtitle, and bigimg on page 2
2017-03-26 22:09:56 -07:00
Li-Wen Yip
5e287b6705 Fix issues with title, subtitle, and bigimg on page 2 2017-03-26 14:01:02 +01: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
Michael Romero
625176f1ce Merge pull request #39 from liwenyip/google-custom-search
Added support for Google Custom Search Engine
2017-03-25 15:03:28 -07:00
Michael Romero
018a170672 Merge pull request #38 from liwenyip/fix-og-description
Use .Summary instead of .Content for og:description and twitter:description
2017-03-25 15:00:43 -07:00
Michael Romero
4946318f22 Remove comments and bigimg from archetype
Remove comments and bigimg from archetype. These were problematic when
users chose the default 'metaDataFormat = "toml"' in the config.toml
2017-03-25 14:57:18 -07:00
Li-Wen Yip
0465584c2b Added support for Google Custom Search Engine 2017-03-25 16:17:01 +00:00
Li-Wen Yip
b7864a3f48 Use .Summary instead of .Content for og:description and twitter:description 2017-03-25 13:09:09 +00:00
Michael Romero
43ad9b7755 Fix example of photoswipe gallery
Fix the example of the photoswipe gallery, and fix the typo in the
photoswipe hyperlink.
2017-03-21 00:08:08 -07:00
Michael Romero
1f8bc8fb24 Merge pull request #35 from halogenica/photoswipe
Photoswipe
2017-03-21 00:03:43 -07:00
Michael Romero
53f6ca8b72 Merge remote-tracking branch 'refs/remotes/origin/master' into photoswipe 2017-03-20 23:59:09 -07:00
Michael Romero
57d7f5f2ac Fix hyperlink to photoswipe 2017-03-20 23:54:33 -07:00
Michael Romero
3e2b5c77dd Handle optional variables in header
Handle optional variables such as "subtitle" and "bigimg" in header to
avoid errors when these variables are not set.
2017-03-20 23:52:48 -07:00
Michael Romero
aae34f128c PhotoSwipe support 2017-03-20 21:45:55 -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
Michael Romero
16b0087daa Merge pull request #34 from rayjolt/gitignore
Ignore vim swap files
2017-03-19 14:13:09 -07:00
Jack Taylor
212185a2a3 Ignore vim swap files
Add vim's .swp files to .gitignore. These files are created by vim
whenever you open a file, so if you have a file open while running
"git status", the .swp file will show up as untracked, which is
kind of annoying.
2017-03-18 18:12:32 +09:00
Michael Romero
bb64fb5b8e Correct layout on tags list view
Make the layout when listing posts by tags consistent with the layout
when listing posts (default blog view)
2017-03-16 21:09:28 -07:00
Michael Romero
f786ba7785 Merge pull request #30 from liwenyip/new-features
Support static content on front page (above posts)
2017-03-16 20:39:48 -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
4d40febe54 Merge pull request #29 from liwenyip/fix-bigimg-issues
Update Opengraph/Twitter tags to work with halogenica's implementation of multiple bigimg
2017-03-11 00:39:28 -08:00
Li-Wen Yip
c5736a53c2 Update Opengraph/Twitter tags to work with halogenica's implementation of bigimg 2017-03-10 20:22:24 +00:00
Li-Wen Yip
6b3b6b4b6b Merge remote-tracking branch 'refs/remotes/origin/master' into fix-bigimg-issues 2017-03-10 20:19:52 +00:00
Li-Wen Yip
5296d24dec Update indenting 2017-03-10 20:14:49 +00:00
Li-Wen Yip
90b1bacb21 Update Indenting 2017-03-10 20:13:01 +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
Li-Wen Yip
31b882a6e6 Merge remote-tracking branch 'refs/remotes/origin/master' into fix-bigimg-issues 2017-03-08 22:39:38 +00:00
Li-Wen Yip
4c36eced22 Update to match halogenica:master 2017-03-08 22:30:58 +00:00
Li-Wen Yip
b665039b0f Fix issues with bigimgs
- Fixed issue where bigimg doesn't work if only one bigimg is defined
(changed `if isset .Params.bigimg 1` to `if isset .Params.bigimg 0`)
- Fixed issue where title and subtitle disappear when screen width is
less than 365px
2017-03-08 21:56:10 +00:00
Li-Wen Yip
b9d04230d9 Merge remote-tracking branch 'refs/remotes/halogenica/master'
# Conflicts:
#	layouts/index.html
2017-03-08 20:31:31 +00:00
Li-Wen Yip
027faa06a2 Resolve conflicts with remote-tracking branch 'refs/remotes/halogenica/master'
# Conflicts:
#	exampleSite/config.toml
#	exampleSite/content/page/about.md
#	layouts/_default/list.html
#	layouts/partials/disqus.html
#	layouts/partials/head.html
#	layouts/partials/header.html
#	layouts/partials/page.html
#	layouts/partials/post.html
2017-03-08 19:03:10 +00:00
Michael Romero
d0ec5b480e Merge pull request #25 from hukacode/patch-1
Update footer.html
2017-03-07 03:04:15 -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
0c37d7b395 Default front matter format to YAML 2017-03-07 01:22:19 -08:00
Nguyễn Lê Khánh Hùng
00a9ed2c6f Update footer.html
Missing splash at RSS section
2017-03-07 16:18:12 +07: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
d3ebf37be4 Use absolute URL for share_img 2017-03-06 15:42:02 -08:00
Michael Romero
867ae67b52 Facebook OpenGraph tags and Twitter summary cards
ported from beautiful-jekyll
2017-03-06 15:39:20 -08:00
Michael Romero
43fd0bb8bd Comments toggeled per-page and add default setting
Comments toggeled per-page by setting "comments = true" or "comments =
false" in front matter. If not set, will use new default setting defined
in config.toml.
2017-03-06 15:20:59 -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
2b485bb5da Remove layout from about page in example site 2017-03-06 14:25:14 -08:00