From a4bcb6cbf4d1c501ffb6ac18cdbb5901f0d99ce7 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Wed, 19 Oct 2016 21:46:26 +0100 Subject: [PATCH] Update website icon using latest standards --- exampleSite/content/post/getting-started.md | 28 ++++++++++++-------- layouts/partials/header.html | 4 ++- static/img/apple-touch-icon.png | Bin 0 -> 3919 bytes static/img/favicon.ico | Bin 15086 -> 0 bytes static/img/icon.png | Bin 0 -> 663 bytes 5 files changed, 20 insertions(+), 12 deletions(-) create mode 100644 static/img/apple-touch-icon.png delete mode 100644 static/img/favicon.ico create mode 100644 static/img/icon.png diff --git a/exampleSite/content/post/getting-started.md b/exampleSite/content/post/getting-started.md index 5a78f835..50db3f72 100644 --- a/exampleSite/content/post/getting-started.md +++ b/exampleSite/content/post/getting-started.md @@ -7,17 +7,17 @@ title = "Getting started with the Academic theme for Hugo" math = true +++ -The Academic theme enables you to easily create a personal academic website using the [Hugo](https://gohugo.io) static site generator. +The Academic theme enables you to easily create a beautifully simple academic or personal website using the [Hugo](https://gohugo.io) static site generator. + Key features: -- Designed for academic staff, students, or general personal use -- Includes Biography, Publications, Projects, News/Blog, Teaching, and Contact sections +- Designed for personal and academic staff/student use +- Customizable Biography, Publications, Projects, News/Blog, Teaching, and Contact widgets - Write in [Markdown](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet) for easy formatting and code highlighting, with [LaTeX](https://en.wikibooks.org/wiki/LaTeX/Mathematics) for mathematical expressions - Academic linking (Scholar etc.), [Google Analytics](https://analytics.google.com), and [Disqus](https://disqus.com) comments - Responsive and mobile friendly - Simple and refreshing one page design -- Easy to customize @@ -98,19 +98,25 @@ It is possible to carry out many customizations without touching any files in `t The `[[menu.main]]` entries towards the bottom of `config.toml` define the navigation links at the top of the website. They can be added or removed as desired. +### Website icon + +Save your main icon and mobile icon as square PNG images named `icon.png` and `apple-touch-icon.png`, respectively. Place them in your root `static/img/` folder. + +### Theme color (CSS) + +You can link custom CSS assets (relative to your root `static/css`) from your `config.toml` using `custom_css = ["custom.css"]`. + +For example, lets make a green theme. First, define `custom_css = ["green.css"]` in `config.toml`. Then we can download the example [green theme](https://gist.github.com/gcushen/d5525a4506b9ccf83f2bce592a895495) and save it as `static/css/green.css`, relative to your website root (i.e. **not** in the `themes` directory). + ### Analytics To enable [Google Analytics](http://www.google.com/analytics), add your tracking code in `config.toml` similarly to `googleAnalytics = "UA-12345678-9"`. -### Custom theme color (CSS) or local JavaScript (JS) +### Third party and local scripts (JS) -You can link custom CSS and JS assets (relative to your root `static/css` and `static/js` respectively) from your `config.toml` using `custom_css = ["custom.css"]` or `custom_js = ["custom.js"]`. +To add a third party script, create a file named `head_custom.html` in a `layouts/partials/` folder at the root of your website (not in the `themes` folder). Any HTML code added to this file will be included within your website's ``. Therefore, it's suitable for adding custom metadata or third party scripts specified with the *async* attribute. -For example, lets make a green theme. First, define `custom_css = ["green.css"]` in `config.toml`. Then we can download the example [green theme](https://gist.github.com/gcushen/d5525a4506b9ccf83f2bce592a895495) and save it as `static/css/green.css`, relative to your website root (i.e. **not** in the `themes` directory). - -### Third party scripts - -Create a file named `head_custom.html` in a `layouts/partials/` folder at the root of your website (not in the `themes` folder). Any HTML code added to this file will be included within your website's ``. Therefore, it's suitable for adding custom metadata or third party scripts specified with the *async* attribute. +Whereas for your own local scripts, you can link your local JS assets (relative to your root `static/js`) from your `config.toml` using `custom_js = ["custom.js"]`. ### Permalinks diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 405dae24..e8faa9ea 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -23,7 +23,9 @@ - + + + {{ partial "head_custom" . }} diff --git a/static/img/apple-touch-icon.png b/static/img/apple-touch-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..f03f0cf7b2ac7328035b4364d35a73bb07ec882a GIT binary patch literal 3919 zcma)PqXTS4ZB0bzR~KzHYEx3XvqnOM!!P=SwuGv^UuD>F2(VWHy?QS<##I)Q za*=(=1|msXP@5COAprDJQf!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v99^#evXA>tBTlO{<)pJ{Zi)sSpS zza2Yl4m! z*;Mqd7LrL9QLtXOxw$)z)~I%gqZHS+`Y6^X#n7o)SbBW*XTc?bK1gfFm%d-mEyM1& ze-~5-puQxJ)M@jcT(=l4CzhysKYSAQxe28n5}X9GktI{RR7;P%%85~!~> zq&V9R#=1(i^`Ke-_a`m@gmKwo^g$maV$rUf2@ozAT;6^k^|gknxJZOkFsbnlklTRS z9ak0=+Y53hIWzs3f!ZOW&+2l&mY}4>tYfYg`DHV9j4`-AWH#R$tDUJ7Zc>*1ZE-~7 z_B;RNkv;L_E494kGmDCm*AquFP(RH(m*&4wXI)LG%Sos85=YhyKW?#1q&IiTdxW*& z0oXeUp`k_Z)Y7=SEU~7t`#YA!T&V4eeacCWx+5tevV@`)OUZcY7U|gClVcrj1iSPF>@JSC!ylm5W3*;xorCLWoY&BdTP#tlSJ=k#Eo1v#f|uSfmq4}pO4Fyu#c95R>4Je zcy97U`M}qOjl}uA7daKxh$@>eDORl+jD@|TXWJ14nqaM>5TE1;=nL(< zPcA=Gn3v?1Me)pHFz71iM%Fo4$o`86q1=7#I-f(}J7+IgBVk2wz+WjSSKTKtUF<0a vW4qtigtb3~j{Qk%Im!M1jE{vqCxC6Q;G^`%?;Dx(Fbl-Q!no4VDfWK=LaWLs literal 0 HcmV?d00001 diff --git a/static/img/favicon.ico b/static/img/favicon.ico deleted file mode 100644 index 36693330b4b4918c9f2c515be118cc1efe67a8ce..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 15086 zcmeHOdvFz38Q%~vKx2bYh1#J>1r$pWgxUwR&>4!(s7&opX9~_JI#qP&I8*c!UHJf|tNexVy*ix4Yl&xqJ6MbCcQ* zcjn}Ld(QVd=lu3OzCBTt6eU#|KVG3cOW83>Q65qhB`eE(9;7JsR5plm)c?A#qAVwd z(ZoX{${b24*MB38O#Ul`P?DW)Ub}VQfraM_mVD78@+cixbiM#($+nYhed;ZBfM?s4 zy!?Al_+C=}qsj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