From 2d690a2bbcff204045d31675760e60c3ebb6e4be Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 12 Jan 2019 11:02:04 +0000 Subject: [PATCH] Add card test and font awesome --- layouts/index.html | 17 +++++++++++++++++ package-lock.json | 5 +++++ package.json | 1 + scripts/build.sh | 4 ++++ 4 files changed, 27 insertions(+) diff --git a/layouts/index.html b/layouts/index.html index 5ff08b6..abe9f0b 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -7,8 +7,25 @@ {{ partial "style.html" "css/materialize.css" }} + {{ partial "style.html" "css/font-awesome.css" }} +
+
+
+
+
+ + Card Title + +
+
+

I am a very simple card. I am good at containing small bits of information. I am convenient because I require little markup to use effectively.

+
+
+
+
+
{{ partial "script.html" "js/materialize.js" }} diff --git a/package-lock.json b/package-lock.json index d8a2f54..b9963b5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,6 +4,11 @@ "lockfileVersion": 1, "requires": true, "dependencies": { + "@fortawesome/fontawesome-free": { + "version": "5.6.3", + "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.6.3.tgz", + "integrity": "sha512-s5PLdI9NYgjBvfrv6rhirPHlAHWx+Sfo/IjsAeiXYfmemC/GSjwsyz1wLnGPazbLPXWfk62ks980o9AmsxYUEQ==" + }, "materialize-css": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/materialize-css/-/materialize-css-1.0.0.tgz", diff --git a/package.json b/package.json index 8e50c4b..590ea4a 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ }, "homepage": "https://github.com/RealOrangeOne/social-landing#readme", "dependencies": { + "@fortawesome/fontawesome-free": "^5.6.3", "materialize-css": "^1.0.0" } } diff --git a/scripts/build.sh b/scripts/build.sh index 25c6912..a942170 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -2,8 +2,12 @@ set -e +rm -rf public/ + mkdir -p static/build cp -r node_modules/materialize-css/dist/* static/build/ +cp -r node_modules/@fortawesome/fontawesome-free/css/all.min.css static/build/css/font-awesome.css +cp -r node_modules/@fortawesome/fontawesome-free/webfonts static/build/ hugo -v --stepAnalysis --gc