1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-06-26 16:13:45 +02:00
Commit Graph

115 Commits

Author SHA1 Message Date
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
435ba0f706
Build a custom Bootstrap
We don't use all the Bootstrap stuff, so let's just build a custom
one with the components we need. This saves about 50k.
2016-09-21 08:29:27 +03:00
b1db1f9637
Change theme name to "hugo-theme-bootstrap4-blog"
This reflects the target usage better, and pays homage to the fact
that it was based on the Bootstrap v4 Alpha blogging example:

http://v4-alpha.getbootstrap.com/examples/blog/
2016-09-19 10:27:28 +03:00
9bb8294089
Add RSS feed for posts to base layout
Not sure who uses RSS anymore but Hugo automatically generates the
feed so we might as well advertise it.
2016-09-19 10:00:28 +03:00
4e4d20dce1
exampleSite/config.toml: Update config options for new features 2016-09-19 08:02:40 +03:00
72d5c94cc5
Add basic sharing icons to the bottom of posts
By default they are on, but you can disable them by adding the
following configuration value:

  [params.sharingicons]
    hide = true

If this parameter is undefined (or "false") then the icons will be
shown. Furthermore, you can disable specific icons by setting their
value to "false", ie:

  [params.sharingicons]
    facebook = false

Any icons not named will be shown. Currently there a four icons
configureg: facebook, googleplus, linkedin, and twitter.
2016-09-18 17:11:08 +03:00
0b2d424c62
README.md: Update description 2016-09-18 17:09:53 +03:00
9df02b7ada
README.md: Start a "Features" section 2016-09-18 14:04:04 +03:00
0f038d62e5
static/css/style.css: Regenerate 2016-09-18 13:57:23 +03:00
65ac071b7e
package.json: Remove cleancss
It has problems parsing the output from node-sass when I add the
font-awesome SASS to my imports.
2016-09-18 13:54:07 +03:00
ba5595bfbd
package.json: node-sass to 3.10.0
Release notes: https://github.com/sass/node-sass/releases/tag/v3.10.0
2016-09-18 12:57:08 +03:00
ead16edf97
package.json: Don't use semver magic for package versions
I don't really get it, and I don't really care right now, so I'll
just pin the versions down.
2016-09-18 12:56:13 +03:00
56f663db62
Update theme name 2016-09-18 12:25:19 +03:00
b2bb749638
package.json: Bootstrap is actually a dev dependency
You actually only need it if you want to recompile the theme, as
the generated style is already stored in `static/css/style.css`.
2016-09-18 12:20:44 +03:00
127ed38b0a
README.md: Update TODOs
Still need to do some work on OpenGraph metadata though...
2016-09-17 18:18:18 +03:00
731af8c564
layouts: Add basic support for OpenGraph and Twitter card metadata
Uses basic data like title, description, author, and date that we
are using with existing vanilla meta tags, but extends them to OG
and Twitter Card tags. See [0] and [1].

For the Twitter summary cards specifically, you can optionally add
attribution for your username by adding something like this to your
configuration:

  [params.social]
    twitter_username = "@mralanorth"

... and for posts with images, you can specify an "image" in the
post's front matter like so:

  image = "/2016/09/IMG_20160916_174409.jpg"

And then the theme will opt to use Twitter's "large" summary card.

[0] http://ogp.me/
[1] https://dev.twitter.com/cards/getting-started
2016-09-17 18:05:22 +03:00
826bd2de54
layouts/partials/sidebar.html: Use "Type" instead of "Section"
Both work similarly here, but "Type" is more obvious to me.
2016-09-17 16:56:27 +03:00
d7a526f9fd
README.md: Update TODOs 2016-09-17 15:31:06 +03:00
6e9754edc3
Regenerate static assets for font-awesome 4.6.3 2016-09-15 16:32:54 +03:00
4801700449
source/scss/style.scss: Import font-awesome to style.scss 2016-09-15 16:32:26 +03:00
51cf7465b1
package.json: Add run script to copy font-awesome fonts 2016-09-15 16:31:11 +03:00
db577798e2
package.json: Add font-awesome to dev dependencies 2016-09-15 16:29:45 +03:00
1da527c449
README.md: Update TODOs 2016-09-14 23:45:34 +03:00
4427040041
layouts/_default/baseof.html: Enumerate non-post pages in header nav menu
Still need to figure out how to determine which page we're on so we
can set the "active" class accordingly (for Home we have the IsHome
variable the we can check).
2016-09-14 23:43:26 +03:00
d31626c5a3
layouts/_default/list.html: Check for page type instead of "section"
Both work effectively the same for my use case, but the "type" is
more obvious when looking at the code. See the documentation for
Hugo's page variables for more info[0].

[0] http://gohugo.io/templates/variables/#page-variables
2016-09-14 23:39:39 +03:00
42c06c260c
layouts: Only list posts on front page and sidebar
We don't want to list other top-level pages like "About" here, they
will be enumerated in the header.
2016-09-14 16:35:04 +03:00
5b0405e69c
README.md: Add note about example config.toml 2016-09-14 16:03:58 +03:00