Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Commit

Permalink
conf options: add site.copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsagnes committed Feb 26, 2017
1 parent 2b59b5e commit 6408c06
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions conf.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ with lib;
An elegant open source and mobile first theme for styx made by <a href="http://twitter.com/mdo">@mdo</a>. Originally made for Jekyll.
'';
};
copyright = mkOption {
description = "Site copyright.";
type = types.str;
default = ''
&copy; 2017. All rights reserved.
'';
};
};

colorScheme = mkOption {
Expand Down
4 changes: 2 additions & 2 deletions example/site.nix
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ rec {
-----------------------------------------------------------------------------*/

# converting pages attribute set to a list
pagesList = lib.pagesToList {
pageList = lib.pagesToList {
inherit pages;
default = { layout = templates.layout; };
};

site = lib.generateSite { inherit files pagesList; };
site = lib.mkSite { inherit files pageList; };

}
Binary file modified screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion templates/partials/content-pre.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ with lib;
'') (data.menu or [])}
</ul>
<p>&copy; 2016. All rights reserved.</p>
${optionalString (conf.theme.site.copyright != "") ''<p>${conf.theme.site.copyright}</p>''}
</div>
</div>
''

0 comments on commit 6408c06

Please sign in to comment.