1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-12-29 13:34:30 +01:00
Commit Graph

141 Commits

Author SHA1 Message Date
e79e2411a7
README.md: Update TODOs 2016-10-07 23:42:44 +03:00
577fdd75ce
layouts/_default/single.html: Markdownify page title
In a multilingual context a post's title could be "Title" in English
but «Title» in Bulgarian, and if we apply the Markdown filter to the
title tag, then the language's Black Friday configuration is used,
in this example it would be for the angled quotes.

We already do this everywhere else we can in the post's content, so
let's match it in the page title.
2016-10-06 15:05:44 +03:00
d6328c34df
Remove anchor titles
I had only added these for accessibility, but after some research
it seems that assistive technologies don't use these.
2016-10-06 14:21:30 +03:00
3a6bed5be7
layouts: Use Markdown filter on titles
This makes it possible to have Black Friday config options like
quote style also affect post titles.
2016-10-06 14:17:59 +03:00
36a8a28d4c
layouts/_default/list.html: Remove debug code from pagination 2016-10-05 17:28:08 +03:00
a6fb8ef9a8
README.md: Add link to Hugo docs for pagination 2016-10-05 17:24:00 +03:00
986c906c6d
README.md: Update features for pagination 2016-10-05 17:23:27 +03:00
90ed717165
README.md: Update TODOs 2016-10-05 17:22:36 +03:00
a8d694d08c
Add pagination logic + i18n strings for en 2016-10-05 17:21:53 +03:00
dbd36e0779
static/css/style.css: Regenerate 2016-10-05 17:20:49 +03:00
071139a371
source/scss/bootstrap.scss: Enable buttons
I need the button classes for pagination.
2016-10-05 17:20:25 +03:00
f737a75746
exampleSite/config.toml: Fix comment 2016-10-05 15:48:26 +03:00
2bf45d6bec
exampleSite/config.toml: Update for pagination change 2016-10-05 15:47:59 +03:00
70b4844c63
layouts/_default/list.html: Use paginator for page lists instead of custom stuff
Hugo's own pagination stuff works just as well and probably covers
even more corner cases. Also, this is one less config variable to
have to check because you can just use Paginate (Default: 10).
2016-10-05 15:45:38 +03:00
98a8c2b234
layouts/_default/baseof.html: Use template variable for RSS link
This is the whole site's RSS feed, not just posts. I suppose this
is better for multilingual sites, and sites with many pages.
2016-10-05 15:31:30 +03:00
07ea0a3d68
i18n/en.yaml: Add string for "home" 2016-10-04 11:24:34 +03:00
f873452e6c
layouts/_default/baseof.html: Use current language for html element's lang attribute
You know you gotta specify the page content's language if possible,
right?

https://www.w3.org/International/questions/qa-http-and-lang
2016-10-04 11:22:53 +03:00
577e168da5
Use i18n to translate some strings
Hugo 0.17 allows for easy multi-lingual sites. Strings can be
translated either in the theme or in the site, and missing strings
will fall back to the default language.

See: https://github.com/spf13/hugo/blob/master/docs/content/content/multilingual.md
2016-10-03 22:58:22 +03:00
d098836949
README.md: Update TODOs 2016-10-03 22:30:08 +03:00
d99cf5df11
layouts/partials/meta-terms.html: use relLangURL for categories/tags
Fixes generation of links to language-specific tags.
2016-10-03 22:28:35 +03:00
2a6a7eba69
theme.toml: Bump minimum version to Hugo 0.17
Need 0.17 for multi-lingual support, see:

https://github.com/spf13/hugo/blob/master/docs/content/content/multilingual.md
2016-10-03 18:01:49 +03:00
b422567808
README.md: Add note about multi-lingual content support 2016-10-03 18:01:25 +03:00
1a3ff61ef6
layouts/_default/single.html: Add basic support for multi-language content
Hugo 0.17 will allow you to write content and user interface strings
in multiple languages. Requires the user to amend their config a
bit though.

See: https://github.com/spf13/hugo/blob/master/docs/content/content/multilingual.md
2016-10-03 17:57:08 +03:00
c2f92a95fe
README.md: Update TODOs 2016-09-28 15:11:46 +03:00
c0caf623d7
package.json: Use npm semver for dev deps
Don't break my shit (~ for bootstrap minor versions) but please
compile my shit faster (latest) for node-sass, and then upgrade
other stuff (^) if possible.
2016-09-28 12:38:32 +03:00
48a6a82dcc
layouts/_default/summary.html: Remove extraneous spaces 2016-09-27 23:22:46 +03:00
d16fe216a5
layouts: Remove link from author name in summary/posts
There is no author archive yet, so this link doesn't go anywhere!
2016-09-27 23:21:01 +03:00
40e666ae66
README.md: Add more TODOs 2016-09-26 17:37:59 +03:00
5656929171
Revert ".gitignore: Add intermediate output from node-sass"
This reverts commit 8e9c0a74f9.

Clean the temp file up after build rather than just ignoring it.
2016-09-26 10:08:53 +03:00
05c962a797
package.json: Add clean task to remove temp style
Ignoring the temporary, intermediate style in .gitignore works for
this project, but the site still ends up with a copy of it in its
public folder. It's better to just clean up the temp file after
successful generation of the minified style.
2016-09-26 10:06:47 +03:00
5ed4b51531
package.json: Add cssnano-cli to dev dependencies
Using cssnano on the command line actually requires this package,
not the `cssnano` one.
2016-09-26 10:01:37 +03:00
017be0302d
static/css/style.css: Regenerate 2016-09-26 09:56:45 +03:00
8e9c0a74f9
.gitignore: Add intermediate output from node-sass
cssnano can't process input from stdin via a Unix pipe ("|") so we
need to write an intermediate output from node-sass first.
2016-09-26 09:54:54 +03:00
1800fc2fb8
package.json: Add cssnano to dev dependencies
Processing style.css with cssnano saves 1KB. Guess it's useful.
2016-09-26 09:52:44 +03:00
6a25f3eef1
layouts: Move all meta tags to head-meta.html partial 2016-09-26 09:26:00 +03:00
71413f55b6
layouts: Rename metadata partial 2016-09-26 09:23:13 +03:00
a43ad26d56
Update screenshot 2016-09-26 09:06:21 +03:00
bccb0f5262
.gitignore: Add exampleSite's theme directory
So I can generate screenshots of the theme progress.
2016-09-26 09:05:39 +03:00
90dc1e027b
README.md: Update TODOs and features for category/tag support 2016-09-26 08:40:06 +03:00
884713fc2a
layouts: Add theme support for categories and tags
Add categories/tags to front matter and they will be displayed on
summary and post pages, with links to taxonomy pages. Example:

  +++
  date = "2016-09-24T21:28:31+03:00"
  title = "Post title"
  categories = ["Nature"]
  tags = ["Wetland", "Oasis"]
  +++

For some reason if you add tags singularly, like:

  categories = "Nature"

you get index errors from Hugo. Not sure if I need to parse the
tags differently or just add more logic to test if the terms are
singular or not.
2016-09-26 08:32:46 +03:00
86b6689ebe
README.md: Update features with native fonts 2016-09-25 09:17:54 +03:00
26902c5a87
README.md: Update license section for Font Awesome 2016-09-25 09:07:12 +03:00
b3eb0fe23f
README.md: Add link to my blog for an example of this theme in use 2016-09-25 09:02:13 +03:00
d6eb31a890
README.md: Link another TODO to GitHub issue 2016-09-25 07:48:29 +03:00
696a32dcf6
README.md: Link one TODO to GitHub issue 2016-09-24 19:18:30 +03:00
acde63b34f
layouts/_default/baseof.html: Make sidebar logic more robust
Check if the params.sidebar is defined before checking to see if
params.sidebar.hide is true or false. New sites might not have
their config set up properly, so this avoids an error in the case
that params.sidebar isn't defined yet.
2016-09-22 09:19:20 +03:00
13e1a2977d
README.md: Update TODOs 2016-09-21 22:47:25 +03:00
fce7fce694
README.md: Add note about robots.txt 2016-09-21 22:47:02 +03:00
d6d94ff087
Add robots.txt template
Advertises the XML sitemap and allows all user agents, but is only
enabled if the site sets this property in their config:

  enableRobotsTXT = true

See: https://gohugo.io/extras/robots-txt/
2016-09-21 22:37:39 +03:00
92b95a2670
static/css/style.css: Regenerate 2016-09-21 08:30:38 +03:00