Commit graph

80 commits

Author SHA1 Message Date
Regis Philibert
1f11fbe012
Featured image detection refactoring: ()
We look for .Params.featured_image
If found > we use that as URL
If we find a Page resource matching the value of the above, we use its .RelPermalink
If none of the above we look for an resource whose filepath contains `featured` or `cover` and use its .RelPermalink if found

Fixes 
Fixes 
2021-12-23 15:45:27 -05:00
Regis Philibert
f078a2b4d9 Fixes
Fixes 
2021-12-23 14:52:38 -05:00
Regis Philibert
c7b9901e01
Refactor social service logic and UX ()
* Start of work

* Refactor social service logic

Update README

Fixes 

* Add URL to contributors instuctions

* Add tiktok
2021-12-02 15:22:18 -05:00
Joel S Aufrecht
3710f7e92a
added tiktok to available social media links () 2021-11-16 09:15:28 -05:00
Sarah Grefalda
08d842f171
Use i18n for site navigation link tooltips () 2021-10-01 13:20:46 -04:00
Jan Steinke
e3f7fbe39d
enable hosting the website also on other domains () 2021-07-14 09:29:08 -04:00
Regis Philibert
6a8f9511aa Fix resource transformation
Fixes 
2021-06-17 09:21:34 -04:00
Regis Philibert
6eb54ab5fd
Refactor styling to drop PostCSS ()
Update custom_css logic (ensure retrocompat)

Fixes 
2021-06-15 09:58:27 -04:00
Regis Philibert
ffd9d903c9
Add optional processing of styles with Hugo Pipes ()
* Using resources.PostCSS to handle stylesheets

* Allow optional processing of assets through Hugo Pipes

* We can settle with 0.64.0
2021-01-19 15:43:02 -05:00
Jan Steinke
a7f88bb583
use RelPermalink for i18n menu () 2020-10-13 08:16:45 -04:00
Sean
5001b28387
Add automatic cover image support ()
* Add support for auto-detection of featured images.

* Rename Partial, Add Documentation

Renamed the partial to func/GetFeaturedImage.html.

Additionally added more documentation in the partial to explain how it
worked, and what values were returned.

Co-authored-by: Sean Zimmermann <sz2243@columbia.edu>
2020-06-23 09:34:09 -04:00
Tanner Smith
9171519154
Site logo ()
* Add the option to use a logo for the top left site title
2020-06-03 16:26:29 -05:00
Tanner Smith
9752a70c09
Add head partial ()
* Add head-additions partial
2020-06-03 16:01:01 -05:00
nickjwhite
4cf0842964
Use relative URL for favicon ()
This fixes sites which have the baseURL in a subdirectory.

Co-authored-by: Nick White <git@njw.name>
2020-06-03 10:17:41 -04:00
Juan Manuel Servera
981e7a2cb2
Use | relLangURL for the base url in the site-navigation ()
* Use | relLangURL for the base urlº

This way, when you click on the header it maintains you in the same language you previously selected.

* Use .Site.Home.RelPermalink as proposed by @regisphilibert
2020-06-03 09:49:56 -04:00
Tanner Smith
624b79e7f6
RSS svg icon ()
* Add rss icon to social icons

* Revert unnecessary asset deployment
2020-06-01 15:51:41 -04:00
Sandro Santilli
2d6a91d48a
Replace another 2 .URL occurrences with .Permalink ()
* Replace another 2 .URL occurrences with .Permalink

This is basically a completion of 

* Revert site-navigation URL change
2020-05-12 08:36:33 -04:00
mountainbug95
c480ef1851
Clean up social link generation 2020-02-05 18:01:33 -06:00
mountainbug95
2cf4d180fa
Refactor social share buttons config 2020-02-05 11:30:00 -06:00
mountainbug95
2e7e343ce2
Add social media share buttons to the post layout 2020-02-05 10:25:46 -06:00
Dan Corin
878bb9bf43 Add Keybase social icon ()
* Add Keybase social icon

* Fix typo
2020-01-26 14:37:04 -05:00
Jesus Galvan
505b255923 Add StackOverflow social () 2020-01-09 22:10:47 -05:00
Jace Browning
2ee56e694c Fix Slack icon size () 2020-01-05 15:15:48 -05:00
Giacomo Tenaglia
f10f4d4165 Use Hugo's built in Site Config for copyright according to PR () 2019-12-30 12:36:11 -05:00
Jace Browning
37c462b088 Add Slack to social options () 2019-11-15 14:13:07 -05:00
Bud Parr
77622f4e52
Fix URL for menus ()
Reverts 0d9656d939 (diff-5c3a1b4da16de002912dd90a78641f32R12)

Fixes 
2019-10-27 18:28:52 -04:00
Josh Lubaway
0d9656d939 Replace {{ .URL }} with {{ .Permalink }} ()
Using the `{{ .URL }}` token results in a warning:

    WARN 2019/10/13 15:12:12 Page's .URL is deprecated and will be removed in a
    future release. Use .Permalink or .RelPermalink. If what you want is the
    front matter URL value, use .Params.url.

Steps to reproduce
==================

Follow along with the Quick Start guide at
https://gohugo.io/getting-started/quick-start/

Running `hugo server -D` emits a warning that `.URL` is deprecated.
2019-10-26 13:00:59 -04:00
Kirill K
a460bf8838 Add commento ()
* feat: add commento block

Signed-off-by: Kirill K <kovalev.kirill.a@gmail.com>

* fix: use params section in config example

Signed-off-by: Kirill K <kovalev.kirill.a@gmail.com>

* fix: use defer to execute script after page load

Signed-off-by: Kirill K <kovalev.kirill.a@gmail.com>
2019-06-09 15:46:06 -04:00
echarp
0eb51edd63 Correcting issue with cached i18n menu ()
* Create fr.toml

French translation

* Social link to "mastodon" added

* Some statics partials are cached, to optimise rendering

* Caching moved so that the i18n menu will work as expected. Refs 
2019-05-14 20:32:08 -04:00
Konrad Kleine
e956994e13 Fix TOC header ()
In English, the translation that is supposed to be shown on top of the table of contents looks like this:

```toml
[whatsInThis]
other = "What's in this {{.Type }}"
```

When it is invoked, there are two mistakes: `{{ i18n "whatsInThis" humanize .Type }}`.

The first mistake is that you cannot call `humanize` in this context. The more severe one is that if you remove `humanize` it will pass the `.Type` directly to the i18n and that tries to extract `.Type` from it.
2019-03-26 16:45:46 -04:00
echarp
175482653c Optimisation "partialCached" ()
* Create fr.toml

French translation

* Social link to "mastodon" added

* Some statics partials are cached, to optimise rendering
2019-03-21 19:13:18 -04:00
echarp
8b348e6aad Add a link to "mastodon" ()
* Create fr.toml

French translation

* Social link to "mastodon" added
2019-03-04 17:25:39 -05:00
Jan Steinke
76e4b7174a add i18n translation support ()
* add initial translation

* readd _copy params to templates
2019-02-23 08:30:18 -05:00
Sean Harger
e418548683 Support hiding the featured image header text. ()
I updated the documentaiton as well as changed the contact page in the
exampleSite to use this feature as a demo.
2019-02-10 22:47:28 -05:00
Jan Steinke
85d9218877 add basic support for post translations () 2019-01-07 19:51:26 -05:00
Bud Parr
50d15478b3
Improve social link accessibility ()
Keep in spirit with https://medium.com/@svinkle/why-let-someone-know-when-a-link-opens-a-new-window-8699d20ed3b1 but address issue 
2018-12-26 11:16:03 -05:00
Hannah Henderson
04a27b7ed9 Open social media links in new tab and add Medium icon ()
* Open social media in new tab and add Medium

svg file pulled from Medium post on their logos
and brand guides dated Aug 22, 2017

https://medium.design/logos-and-brand-guidelines-f1a01a733592

* Add new-window accessibility icon for social media icons

Visible on-hover of link-transition class, this PR also
adds a description to the social media icons indicating that
they will open in a new window.

This way, users will be able to see and hear (via a reader)
when a tab will open in a new window.

This approach is based on the one outlined here:
https://medium.com/@svinkle/why-let-someone-know-when-a-link-opens-a-new-window-8699d20ed3b1
2018-11-27 18:44:27 -05:00
Andrey Romancev
cd09f253f6 Make cover dimming class customisable. () 2018-11-14 16:02:29 -05:00
budparr
a57189d85f
Add global background color class to footer
(it's already on the header). Fixes 
2018-11-04 14:14:24 -05:00
cdeguise
37bb3cc699 Removed hardcoded theme sample hero image. This will allow the user to "blank" out the hero default set in the config. The if statement for blank was unreachable. () 2018-11-03 23:09:03 -04:00
Jordan Ferenz
6fe34fdd5e Add Gitlab to social icons ()
Gitlab is a popular Git repository manager using an opensource license.
This commit adds the Gitlab social icon.
2018-09-13 10:11:36 -04:00
Bud Parr
7a32e28d4b
Add div to wrap social icons ()
This applies the flexbox directive `justify-between` to the nav items, not the icons themselves.

Fixes 
2018-08-31 18:40:24 -04:00
Anthony Fok
89c26174a4 Fix asset paths when baseURL has sub-folder ()
See 
2018-05-17 16:54:40 -04:00
CCS
10b6b6be0f Add inheritance for social links. () 2018-05-17 13:03:21 -04:00
budparr
6e5e6df161
Make asset paths absolute
Fixes 
2018-04-14 14:12:22 -04:00
Bud Parr
8b43f4662e
Replace Asset References with a data file instead of paths ()
* Add assets-webpack-plugin

Signed-off-by: budparr <budparr@gmail.com>

* Add generated Webpack Assets file

This file is generated by Webpack and writes the names of our hashed assets

Signed-off-by: budparr <budparr@gmail.com>

* Update stylesheet

Note sure why this was updated

Signed-off-by: budparr <budparr@gmail.com>

* Add CSS file from generated file

Replaces hardcoded path

Signed-off-by: budparr <budparr@gmail.com>
2018-04-10 18:35:56 -04:00
Bud Parr
1f3b6f5598
Pre-2.0 Enhancements ()
2.0 Enhancements

- Improve template structure
- Fixed issue where flexbox was configured improperly and the side column expanded with longer content.
- No longer assume that posts are called "post"
- Simplify tag handling
- Improve related posts handling
- Support native Table of contents (if declared in params)
- Add DISQUS commenting (if disqusShortname added to config)
- Uses Hugo's Related content feature 
- Add asset hashing to Webpack for performance
2018-04-09 12:33:10 -04:00
budparr
ff25b71173
Fix linkedin icon to match the other social icons
Fixes 
2017-11-06 17:44:30 -05:00
budparr
afd2735066
Be smarter about linking to posts on home page.
Fixes 

Hugo's `.Summary` did not behave as I expected it to, not stripping out
HTML, so I removed the anchor block from around the posts and moved the
links to the image, title and a read more button.
2017-10-16 12:56:21 -04:00
Adam Kaplan
1e37db6cef Favicons ()
* Adding support for favicon

* Fixing html tag
2017-09-27 07:52:26 -04:00