Browse Source

Fix hugo script

main
parent
commit
61b3f31fa7
Signed by: chris GPG Key ID: 3025DCBD46F81C0F
  1. 9
      README.org
  2. 2
      modules/hugo.nix

9
README.org

@ -688,7 +688,7 @@ Apply some configuration to the default settings:
let let
mySiteDir = "/etc/dotfiles/docs/public/"; mySiteDir = "/etc/dotfiles/docs/public/";
mySiteTgt = "unbuntu@chrishayward.xyz:/var/www/wedding";
mySiteTgt = "ubuntu@chrishayward.xyz:/var/www/wedding";
mySiteUpdate = pkgs.writeShellScriptBin "my-site-update" '' mySiteUpdate = pkgs.writeShellScriptBin "my-site-update" ''
${pkgs.rsync}/bin/rsync -aP ${mySiteDir} ${mySiteTgt} ${pkgs.rsync}/bin/rsync -aP ${mySiteDir} ${mySiteTgt}
''; '';
@ -1019,6 +1019,8 @@ in {
* Emacs Configuration * Emacs Configuration
[[./docs/images/emacs.png]]
#+NAME: module-emacs #+NAME: module-emacs
#+BEGIN_SRC nix #+BEGIN_SRC nix
./modules/emacs.nix ./modules/emacs.nix
@ -2634,6 +2636,11 @@ epkgs.doom-modeline
* Website Configuration * Website Configuration
#+ATTR_ORG: :width 800px
#+ATTR_HTML: :width 800px
#+ATTR_LATEX: :width 800px
[[./docs/images/website-example.png]]
My [[https://chrishayward.xyz][personal website]] is a static HTML page written with [[https://gohugo.io][Hugo]], and is fully integrated into this configuration. It uses the ~config.toml~, ~config.yaml~, or ~config.json~ file (found in the sites root directory) as the default site config. Working with this requires the module to be enabled. My [[https://chrishayward.xyz][personal website]] is a static HTML page written with [[https://gohugo.io][Hugo]], and is fully integrated into this configuration. It uses the ~config.toml~, ~config.yaml~, or ~config.json~ file (found in the sites root directory) as the default site config. Working with this requires the module to be enabled.
#+BEGIN_SRC conf :noweb yes :tangle docs/config.toml #+BEGIN_SRC conf :noweb yes :tangle docs/config.toml

2
modules/hugo.nix

@ -3,7 +3,7 @@
let let
mySiteDir = "/etc/dotfiles/docs/public/"; mySiteDir = "/etc/dotfiles/docs/public/";
mySiteTgt = "unbuntu@chrishayward.xyz:/var/www/wedding";
mySiteTgt = "ubuntu@chrishayward.xyz:/var/www/wedding";
mySiteUpdate = pkgs.writeShellScriptBin "my-site-update" '' mySiteUpdate = pkgs.writeShellScriptBin "my-site-update" ''
${pkgs.rsync}/bin/rsync -aP ${mySiteDir} ${mySiteTgt} ${pkgs.rsync}/bin/rsync -aP ${mySiteDir} ${mySiteTgt}
''; '';

Loading…
Cancel
Save