diff --git a/README.md b/README.md
index bc2ab4a..4dfc163 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# LinkMeUp
-Welcome to the LinkMeUp project! This is a sleek, lightweight single-page application designed to consolidate an individual's social media and internet presence into one central location. Built with simplicity and performance in mind, the project uses minimalistic yet powerful web technologies.
+This is a sleek, lightweight single-page application designed to consolidate an individual's social media and internet presence into one central location. Built with simplicity and performance in mind, the project uses minimalistic yet powerful web technologies.
## Features
diff --git a/build.js b/build.js
index c0b8ae9..076e94d 100644
--- a/build.js
+++ b/build.js
@@ -44,7 +44,7 @@ function inlineCSS(html, css) {
}
function copyImages(srcDir, destDir) {
- if (!fs.existsSync(destDir)){
+ if (!fs.existsSync(destDir)) {
fs.mkdirSync(destDir, { recursive: true });
}
@@ -71,6 +71,7 @@ function build() {
const imagesDestPath = path.join(distPath, 'images');
const faviconSrcPath = path.join(__dirname, 'public', 'favicons');
const faviconDestPath = path.join(distPath);
+ const headTemplatePath = path.join(__dirname, 'src', 'templates', 'head-template.hbs');
const headerTemplatePath = path.join(__dirname, 'src', 'templates', 'header-template.hbs');
const linksTemplatePath = path.join(__dirname, 'src', 'templates', 'social-links-template.hbs');
const footerTemplatePath = path.join(__dirname, 'src', 'templates', 'footer-template.hbs');
@@ -87,6 +88,8 @@ function build() {
// Pass the current year to the Handlebars data
data.currentYear = currentYear;
+ const activeTheme = data.theme;
+
// Output titles from data.json
data.socialLinks.forEach(link => console.log(link.name));
@@ -94,16 +97,17 @@ function build() {
css = minimizeCSS(css);
// Compile HTML with Handlebars
+ const headHtml = compileTemplate(headTemplatePath, data);
const headerHtml = compileTemplate(headerTemplatePath, data);
const socialLinksHtml = compileTemplate(linksTemplatePath, data);
const footerHtml = compileTemplate(footerTemplatePath, data);
// Replace placeholder in base HTML with compiled HTML
let finalHtml = baseHtml
- .replace('', headerHtml)
- .replace('', socialLinksHtml)
- .replace('', footerHtml);
-
+ .replace('', headHtml)
+ .replace('', headerHtml)
+ .replace('', socialLinksHtml)
+ .replace('', footerHtml);
finalHtml = inlineCSS(finalHtml, css);
finalHtml = minimizeHTML(finalHtml);
diff --git a/public/images/xing.svg b/public/images/xing.svg
new file mode 100644
index 0000000..6bf270e
--- /dev/null
+++ b/public/images/xing.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/public/index.html b/public/index.html
index cabdbc2..d501e26 100644
--- a/public/index.html
+++ b/public/index.html
@@ -1,20 +1,13 @@
-
-