1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-11-18 02:07:05 +01:00
Commit Graph

596 Commits

Author SHA1 Message Date
8236d92ac8
source/scss/font-awesome.scss: Add fa-rss 2017-01-07 21:39:13 +02:00
26459d378a
static/css/style.css: Regenerate style 2017-01-07 11:32:22 +02:00
25e5232a98
source/scss/main.scss: Add top margin to Disqus
When both sharing and Disqus blocks are present, the Disqus block
needs a top margin. Otherwise, if sharing is hidden, then the hr
following the blog post's article tag already provides enough of
a bottom margin.
2017-01-07 11:28:25 +02:00
325c5977c1
layouts/partials/sharing-icons.html: Adjust sharing block
Now the sharing block is siblings with the Disqus block and needs
to share its header.
2017-01-07 11:23:54 +02:00
1f6cc0cf42
layouts/_default/single.html: Adjust Disqus logic
Bring the Disqus comments inside the <article> tag. The article has
a sizeable bottom margin seprating it from the blog footer, and if
Disqus comments are active they appear after this margin, and this
looks ugly.

Semantically, I think the comments should actually be inside the
article tag anyways (since they are directly related), as well as
further wrapped in article tags, but we don't control the code that
Disqus injects so we'll have to make do with this.

See: https://www.w3.org/TR/html5/sections.html#the-article-element
2017-01-07 11:22:45 +02:00
af39372a24
layouts/_default/baseof.html: Revert to simple "read more" link
Prepending the site's URL to relative links was a hack but at the
time I couldn't understand why href="#" didn't take us to the top
of the page. It turns out that this was because of the <base> tag
that I have now removed.
2017-01-05 15:23:09 +02:00
fa0df752a1
layouts/_default/baseof.html: Remove base tag
It was screwing up relative links like the ones in footnotes. I'm
not sure why I added it in the first place, actually, as the docs
specifically say "specifies the base URL to use for all relative
URLs contained within a document".

See: https://developer.mozilla.org/en/docs/Web/HTML/Element/base
2017-01-05 15:20:29 +02:00
ffb8487c13
layouts/_default/baseof.html: Remove second RSS link
link tags with rel="feed" don't seem to be valid. They are flagged
by the w3c validator and modern documentation only mentions the use
of rel="alternate", which we are already using.

See: https://validator.w3.org
See: https://developer.mozilla.org/en-US/docs/Web/RSS/Getting_Started/Syndicating
2017-01-05 14:34:10 +02:00
61f08c0941
Regenerate cookieconsent assets 2017-01-04 13:17:38 +02:00
d91a73137f
package.json: Update cookieconsent to 3.0.4 2017-01-04 13:13:52 +02:00
567fa9d3dc
theme.toml: Update minimum Hugo version to 0.18 2016-12-25 17:59:27 +02:00
8616dd8c10
layouts/_default/baseof.html: Use .Site.RegularPages instead of .Site.Pages
Hugo 0.18 changes the pages returned by .Site.Pages, so we need to
use .Site.RegularPages in order to test the type.

See: https://github.com/spf13/hugo/releases/tag/v0.18
See: https://gohugo.io/templates/variables#site-variables
2016-12-25 17:56:24 +02:00
08a93fc71e
README.md: Add note about disabling comments on a post 2016-12-24 17:21:26 +02:00
61201274fb
layouts/_default/single.html: Allow disabling of comments
To disable comments for a single page, set "comments = false" in
its frontmatter.
2016-12-24 17:18:03 +02:00
03c2adb74c Merge pull request #29 from fte378/update_german
update for german translation
2016-12-11 21:01:34 +02:00
Frank Tegtmeyer
47d257e007 update for german translation 2016-12-11 19:04:55 +01:00
ff9dfdc266 Merge pull request #27 from gauthierl/i18n_fr
add french translation
2016-12-09 17:39:52 +02:00
6e753267d6 Merge pull request #28 from gauthierl/links
links in sidebar is not tranlatable
2016-12-09 17:38:03 +02:00
Mathieu GAUTHIER-LAFAYE
65b9847333 links in sidebar is now tranlatable 2016-12-09 16:35:13 +01:00
3d25006a4e Merge pull request #25 from gauthierl/back_to_top_link
the "Back on top" link is not translatable.
2016-12-09 17:03:05 +02:00
Mathieu GAUTHIER-LAFAYE
469e909920 fr: translate "links" 2016-12-09 15:48:41 +01:00
Mathieu GAUTHIER-LAFAYE
0324570af4 fr: translate "backInTop" 2016-12-09 15:43:14 +01:00
Mathieu GAUTHIER-LAFAYE
89f87e050b the "Back on top" link is now translatable. 2016-12-09 15:37:53 +01:00
Mathieu GAUTHIER-LAFAYE
4092b129bd add french translation 2016-12-09 15:32:44 +01:00
5c4f7a3cb5 Merge pull request #24 from fike/master
Added portuguese translation file
2016-11-30 19:29:42 +02:00
Fernando Ike
c4e9a6cd1e Added portuguese translation file 2016-11-30 15:18:05 -02:00
DeedleFake
d0c9781d74 Add Permalink as prefix to back to top link href. (#22) 2016-11-29 17:07:28 +02:00
ba80215596
README.md: Add note about custom head code 2016-11-27 13:31:57 +02:00
1341bbd436
README.md: Remove TODOs
Add individual GitHub issues for them and suggest that people who
are interested go tackle one of them and contribute fixes there.

See: https://github.com/alanorth/hugo-theme-bootstrap4-blog/issues
2016-11-27 13:27:57 +02:00
b52fac69b1
layouts: retab after addition of modelines
Done in vim using `gg=G` and then `:retab`.
2016-11-24 14:39:39 +02:00
DeedleFake
663f3db2a0 Add Vim Modeline Comments to Files (#18)
* Add Vim modeline comments to all relevent template files.

* Add Vim modeline comments to a few other files.

* Move modeline comments inside the template definitions in list and single.

For some odd reason, putting them outside breaks the page generation.

* Use template comments for modeline comments in templates.

* Fix form 2 modelines.
2016-11-24 14:33:56 +02:00
DeedleFake
b83b1683a7 Add ability to insert custom code into the global <head>. (#17)
* Add ability to insert custom code into the global <head>.
* Fix indentation.
2016-11-22 21:11:50 +02:00
abfc8ad15c
Make "→" in "Read more" part of the i18n strings
Eventually I'd like to support right-to-left languages like Arabic
and we'd need the arrow to point the other way for that.
2016-11-20 12:14:46 +02:00
f6e262f05e Merge pull request #15 from ejsmit/navbar-menu
Add custom navbar support
2016-11-17 13:30:50 +02:00
Rassie Smit
aa7bd11522 Add custom navbar support
- default behaviour is backward compatible: all non-post pages
- optionally enable custom navbar using hugo menu functionality
2016-11-17 10:04:14 +00:00
b03b939124 Merge pull request #14 from bep/rss
Rename RSSlink to RSSLink
2016-11-17 10:53:47 +02:00
Bjørn Erik Pedersen
a6ebe0a0b3 Rename RSSlink to RSSLink
The former will be deprecated and eventually removed from Hugo.

Note: Currently both of them exist in Hugo, which is the reason for the cleanup.
2016-11-17 09:12:17 +01:00
07d6294224
static/css/style.css: Regenerate 2016-11-16 12:03:20 +02:00
4d79004570
source/scss: Only import parts of font-awesome that we actually need
We can save ~30KiB in our stylesheet by only importing font-awesome
features and icons that we are actually using.
2016-11-16 12:00:21 +02:00
54bb4e52aa
README.md: Remove TODO about author pages/indexes
Doesn't seem possible right now without significant hackery, and I
want to keep the theme simple, relying on native Hugo features as
much as possible.
2016-11-16 10:08:16 +02:00
ca43b73696
README.md: Add notes about contributing 2016-11-16 09:38:11 +02:00
33bd2a3488 Merge pull request #12 from fte378/german
Added german translation for cookie consent.
2016-11-15 16:58:46 +02:00
Frank Tegtmeyer
07784422f6 Added german translation for cookie consent. 2016-11-15 15:39:03 +01:00
e3f93bd38b
README.md: Add cookie consent to features 2016-11-13 14:17:53 +02:00
043f66a4d0
exampleSite/config.toml: Add parameter for cookie consent 2016-11-13 14:15:01 +02:00
a66be324cc
Add plumbing for cookie consent
Set the cookie_consent_info_url parameter in your site's config to
display a message about cookie usage to your users. See the config
in `exampleSite/config.toml` for more info.
2016-11-13 14:13:17 +02:00
3d1526eb55
static: Generate cookieconsent assets 2016-11-13 13:42:59 +02:00
a546fc731e
package.json: Add run script for cookieconsent 2016-11-13 13:42:22 +02:00
3c900b036b
package.json: Add cookieconsent dependency 2016-11-09 16:00:22 +02:00
1f14455b12
layouts/_default/baseof.html: Don't indent go blocks
They get indented doubly in the generated HTML and look funny.
2016-11-09 15:42:39 +02:00