diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b3bf94..3bfd5c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,5 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] - -## [v1.0.0] - 2020-04-28 ### Added -* Make theme standalone. +* Making theme standalone. diff --git a/README.md b/README.md index 79a0f2f..d27c299 100644 --- a/README.md +++ b/README.md @@ -24,18 +24,7 @@ baseurl = "https://yourdoma.in" # The base url of your Hugo website title = "Title" # The title of your website author = "Author" # The author of the website language = "fr" -theme = "snotra" # The Hugo theme -``` - -### Menu - -The menu is generated following all the files in the root directory -and the articles in the *blog* directory. -To avoid the *blog* entry to be pluralized, -add the following option to your config file: - -```toml -pluralizeListTitles = false +theme = "idunn" # The Hugo theme ``` ### Description @@ -47,31 +36,18 @@ You can use some parameters to fill meta tags and bases images: description = "" # Description for the meta tag favicon = "" # Favicon URL logo = "" # Logo URL - keyword = "" # Keywords for the meta tag ``` -### Home page +### Colors -The home page use one avatar, the name, one description and a list of social -networks. -For the social networks, see *Social Networks* chapter. +It is possible to basicaly change some colors: ```toml -[params] - author = "Author" # The author of the website - info = "Your infos" # Displayed under author name - avatar = "file.png" # Placed in static/images -``` - -### Twitter:card - -Twitter cards are automaticly generated. -If you want tho have the twitter:site meta generated, -add the following option to your config file: - -```toml -[params] - twitterUser = "youruser" # Your Twitter account without @ +[params.colors] + font = "black" # General font color, default to black + background = "white" # General background color, default to white + main = "grey" # Theme color, used for footer among others, default to grey + font_above = "white" # Used for font above *main* color, default to white ``` ### Custom CSS @@ -81,18 +57,38 @@ add the following option to your config file: custom_css = ["style.css"] # Your own css files ``` -### Social Networks +### Contact footer -You can also set some of your networks accounts to display on the home page. -Every social network (or not so network) have to be described with thoses -options: +If you want to have some informations about you in the footer, +you can set it with thoses parameters: ```toml -[[params.social]] - name = "Title of the entry" # Title, used on hover - icon = "facebook" # Icon to use - weight = 1 # Sort order - url = "https://www.facebook.com/user" # Link to your account +[params.contact] + email = "mail@serve.ur" # The mail of your company + phone = "+41 22 123 45 67" # The phone number of your company + address = "Your address" # The address of your company ``` -You can also add some non social elements, you only need to have an icon. +### Social Networks + +You can also set some of your networks accounts. +Thoses options are availables: + +```toml +[params.social] + 500px = "" + codepen = "" + facebook = "" + flickr = "" + github = "" + gitlab = "" + instagram = "" + linkedin = "" + mastodon = "" + peertube = "" + pinterest = "" + pixelfed = "" + tumblr = "" + twitter = "" + youtube = "" +``` diff --git a/layouts/partials/author.html b/layouts/partials/author.html index 2c70632..70c485e 100644 --- a/layouts/partials/author.html +++ b/layouts/partials/author.html @@ -6,5 +6,19 @@

{{ .Site.Params.author }}

{{ .Site.Params.info }}

-{{ partial "social.html" . }} +{{ with .Site.Params.social }} + +{{ end }} diff --git a/layouts/partials/navigation.html b/layouts/partials/navigation.html index e7dcf03..8422416 100644 --- a/layouts/partials/navigation.html +++ b/layouts/partials/navigation.html @@ -1,22 +1,25 @@ diff --git a/layouts/partials/opengraph.html b/layouts/partials/opengraph.html index 247882a..ac0c75f 100644 --- a/layouts/partials/opengraph.html +++ b/layouts/partials/opengraph.html @@ -1,8 +1,15 @@ -{{ with .Site.Params.twitterUser }} - -{{ end }} + + +{{/*if .Params.images }} + {{ $baseUrl := .Permalink }} + {{ range first 1 .Params.images }} + + {{ end }} +{{ else }} + +{{ end */}} {{ if .Description }} diff --git a/layouts/partials/social.html b/layouts/partials/social.html deleted file mode 100644 index 1a06fbd..0000000 --- a/layouts/partials/social.html +++ /dev/null @@ -1,11 +0,0 @@ -{{ with .Site.Params.social }} - -{{ end }} diff --git a/static/svg/500px.svg b/static/svg/500px.svg deleted file mode 100644 index 65817b6..0000000 --- a/static/svg/500px.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/svg/codepen.svg b/static/svg/codepen.svg deleted file mode 100644 index 72bdee5..0000000 --- a/static/svg/codepen.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/svg/flickr.svg b/static/svg/flickr.svg deleted file mode 100644 index c221ffd..0000000 --- a/static/svg/flickr.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/svg/github.svg b/static/svg/github.svg deleted file mode 100644 index af5ab0b..0000000 --- a/static/svg/github.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/svg/gitlab.svg b/static/svg/gitlab.svg deleted file mode 100644 index 21073cc..0000000 --- a/static/svg/gitlab.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/svg/instagram.svg b/static/svg/instagram.svg deleted file mode 100644 index 512a874..0000000 --- a/static/svg/instagram.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/svg/peertube.svg b/static/svg/peertube.svg deleted file mode 100644 index 831f4c5..0000000 --- a/static/svg/peertube.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/svg/pinterest.svg b/static/svg/pinterest.svg deleted file mode 100644 index 04b8fb5..0000000 --- a/static/svg/pinterest.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/svg/tumblr.svg b/static/svg/tumblr.svg deleted file mode 100644 index b7a9813..0000000 --- a/static/svg/tumblr.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/svg/youtube.svg b/static/svg/youtube.svg deleted file mode 100644 index 1a66080..0000000 --- a/static/svg/youtube.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file