Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/partinal-head #331

Merged
merged 1 commit into from
Oct 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 3 additions & 43 deletions src/blog/index.html
Original file line number Diff line number Diff line change
@@ -1,48 +1,8 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title><%=htmlWebpackPlugin.options.title%></title>
<meta name="keywords" content="<%=htmlWebpackPlugin.options.keywords%>" />
<meta name="description" content="<%=htmlWebpackPlugin.options.description%>" />
<meta name="author" content="<%=htmlWebpackPlugin.options.author%>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />

<link rel="manifest" href="/manifest.json" />

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/uikit.min.css" />

<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Slab" />
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.7.2/css/all.css"
integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr"
crossorigin="anonymous"
/>

<!-- favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="theme-color" content="#ffffff" />

<!-- Twitter Card data -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="<%=htmlWebpackPlugin.options.title%>" />
<meta name="twitter:description" content="<%=htmlWebpackPlugin.options.description%>" />
<meta name="twitter:image" content="https://edinei.dev/mstile-150x150.png" />

<!-- Open Graph data -->
<meta property="og:title" content="<%=htmlWebpackPlugin.options.title%>" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://edinei.dev/mstile-150x150.png" />
<meta property="og:image:secure_url" content="https://edinei.dev/mstile-150x150.png" />
<meta property="og:description" content="<%=htmlWebpackPlugin.options.description%>" />
</head>

<% var templateHead = require("html-loader!../shared/head.html"); %> <%= templateHead
.split('${title}').join(htmlWebpackPlugin.options.title) .split('${keywords}').join(htmlWebpackPlugin.options.keywords)
.split('${description}').join(htmlWebpackPlugin.options.description) .split('${author}').join(htmlWebpackPlugin.options.author) %>
<body>
<div>
<main class="blog">
Expand Down
48 changes: 4 additions & 44 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,48 +1,8 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title><%=htmlWebpackPlugin.options.title%></title>
<meta name="keywords" content="<%=htmlWebpackPlugin.options.keywords%>" />
<meta name="description" content="<%=htmlWebpackPlugin.options.description%>" />
<meta name="author" content="<%=htmlWebpackPlugin.options.author%>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />

<link rel="manifest" href="/manifest.json" />

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/uikit.min.css" />

<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Slab" />
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.7.2/css/all.css"
integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr"
crossorigin="anonymous"
/>

<!-- favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="theme-color" content="#ffffff" />

<!-- Twitter Card data -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="<%=htmlWebpackPlugin.options.title%>" />
<meta name="twitter:description" content="<%=htmlWebpackPlugin.options.description%>" />
<meta name="twitter:image" content="https://edinei.dev/mstile-150x150.png" />

<!-- Open Graph data -->
<meta property="og:title" content="<%=htmlWebpackPlugin.options.title%>" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://edinei.dev/mstile-150x150.png" />
<meta property="og:image:secure_url" content="https://edinei.dev/mstile-150x150.png" />
<meta property="og:description" content="<%=htmlWebpackPlugin.options.description%>" />
</head>

<% var templateHead = require("html-loader!./shared/head.html"); %> <%= templateHead
.split('${title}').join(htmlWebpackPlugin.options.title) .split('${keywords}').join(htmlWebpackPlugin.options.keywords)
.split('${description}').join(htmlWebpackPlugin.options.description) .split('${author}').join(htmlWebpackPlugin.options.author) %>
<body>
<div>
<main class="info">
Expand Down Expand Up @@ -133,7 +93,7 @@ <h4>Social Networks</h4>

<div id="particles-js"></div>

<% var template = require("html-loader!./shared/menu.html"); %> <%= template.split('${homeActive}').join('class="uk-active"')
<% var templateMenu = require("html-loader!./shared/menu.html"); %> <%= templateMenu .split('${homeActive}').join('class="uk-active"')
.split('${blogActive}').join('') .split('${palestrasActive}').join('') .split('${podcastActive}').join('') %>
</div>

Expand Down
46 changes: 3 additions & 43 deletions src/palestras/index.html
Original file line number Diff line number Diff line change
@@ -1,48 +1,8 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title><%=htmlWebpackPlugin.options.title%></title>
<meta name="keywords" content="<%=htmlWebpackPlugin.options.keywords%>" />
<meta name="description" content="<%=htmlWebpackPlugin.options.description%>" />
<meta name="author" content="<%=htmlWebpackPlugin.options.author%>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />

<link rel="manifest" href="/manifest.json" />

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/uikit.min.css" />

<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Slab" />
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.7.2/css/all.css"
integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr"
crossorigin="anonymous"
/>

<!-- favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="theme-color" content="#ffffff" />

<!-- Twitter Card data -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="<%=htmlWebpackPlugin.options.title%>" />
<meta name="twitter:description" content="<%=htmlWebpackPlugin.options.description%>" />
<meta name="twitter:image" content="https://edinei.dev/mstile-150x150.png" />

<!-- Open Graph data -->
<meta property="og:title" content="<%=htmlWebpackPlugin.options.title%>" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://edinei.dev/mstile-150x150.png" />
<meta property="og:image:secure_url" content="https://edinei.dev/mstile-150x150.png" />
<meta property="og:description" content="<%=htmlWebpackPlugin.options.description%>" />
</head>

<% var templateHead = require("html-loader!../shared/head.html"); %> <%= templateHead
.split('${title}').join(htmlWebpackPlugin.options.title) .split('${keywords}').join(htmlWebpackPlugin.options.keywords)
.split('${description}').join(htmlWebpackPlugin.options.description) .split('${author}').join(htmlWebpackPlugin.options.author) %>
<body>
<div>
<main class="palestras">
Expand Down
46 changes: 3 additions & 43 deletions src/podcasts/index.html
Original file line number Diff line number Diff line change
@@ -1,48 +1,8 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title><%=htmlWebpackPlugin.options.title%></title>
<meta name="keywords" content="<%=htmlWebpackPlugin.options.keywords%>" />
<meta name="description" content="<%=htmlWebpackPlugin.options.description%>" />
<meta name="author" content="<%=htmlWebpackPlugin.options.author%>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />

<link rel="manifest" href="/manifest.json" />

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/uikit.min.css" />

<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Slab" />
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.7.2/css/all.css"
integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr"
crossorigin="anonymous"
/>

<!-- favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="theme-color" content="#ffffff" />

<!-- Twitter Card data -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="<%=htmlWebpackPlugin.options.title%>" />
<meta name="twitter:description" content="<%=htmlWebpackPlugin.options.description%>" />
<meta name="twitter:image" content="https://edinei.dev/mstile-150x150.png" />

<!-- Open Graph data -->
<meta property="og:title" content="<%=htmlWebpackPlugin.options.title%>" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://edinei.dev/mstile-150x150.png" />
<meta property="og:image:secure_url" content="https://edinei.dev/mstile-150x150.png" />
<meta property="og:description" content="<%=htmlWebpackPlugin.options.description%>" />
</head>

<% var templateHead = require("html-loader!../shared/head.html"); %> <%= templateHead
.split('${title}').join(htmlWebpackPlugin.options.title) .split('${keywords}').join(htmlWebpackPlugin.options.keywords)
.split('${description}').join(htmlWebpackPlugin.options.description) .split('${author}').join(htmlWebpackPlugin.options.author) %>
<body>
<div>
<main class="podcasts">
Expand Down
42 changes: 42 additions & 0 deletions src/shared/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<head>
<meta charset="utf-8" />
<title>${title}</title>
<meta name="keywords" content="${keywords}%>" />
<meta name="description" content="${description}" />
<meta name="author" content="${author}" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />

<link rel="manifest" href="/manifest.json" />

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/uikit.min.css" />

<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Slab" />
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.7.2/css/all.css"
integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr"
crossorigin="anonymous"
/>

<!-- favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="theme-color" content="#ffffff" />

<!-- Twitter Card data -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="${title}" />
<meta name="twitter:description" content="${description}" />
<meta name="twitter:image" content="https://edinei.dev/mstile-150x150.png" />

<!-- Open Graph data -->
<meta property="og:title" content="${title}" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://edinei.dev/mstile-150x150.png" />
<meta property="og:image:secure_url" content="https://edinei.dev/mstile-150x150.png" />
<meta property="og:description" content="${description}" />
</head>