メニューや内容の埋め込み部分を全て変数にして_config.ymlに記述
--- ./_config.yml~ 2022-08-04 16:21:54.200032000 +0900
+++ ./_config.yml 2022-05-17 14:57:40.253974000 +0900
@@ -6,6 +6,27 @@
# Base URL of the Site (i.e., Name of the Repository in which the Site is hosted)
baseurl:
+# Menu bars and buttons
+home: HOME
+about: ABOUT
+contact: CONTACT
+blog: BLOG
+more: MORE
+contact_me: Contact Me
+read_more: Read More
+ping_me_on_messenger: Ping me on Messenger
+send_me_an_email: Send me an Email
+tweet_me_on_twitter: Tweet me on Twitter
+back_to_top: BACK TO TOP
+
+# Site's Descriptions
+have_a_good_read: Have a Good Read
+search_here: Search Here
+you_can_find_me_here: You Can find me here
+more_links: More Links
+subscribe_via_rss: Subscribe via RSS
+recent_posts: Recent Posts
+
# Title of the Site
title: What A Theme
# Description of the Site
--- ./_includes/dropdown.html~ 2022-08-04 15:38:36.262535000 +0900
+++ ./_includes/dropdown.html 2022-05-17 14:18:00.699154000 +0900
@@ -1,10 +1,10 @@
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link">
- MORE
+ {{site.more}}
</a>
<div class="navbar-dropdown has-background-black is-left">
{% for sitepage in site.html_pages %}
- {% unless sitepage.url == '/' or sitepage.url == '/404' or sitepage.url == '/blog' %}
+ {% unless sitepage.url == '/' or sitepage.url == '/404.html' or sitepage.url == '/blog.html' %}
<a href="{{sitepage.url | absolute_url}}"
class="navbar-item has-text-grey-light {% if page.url == sitepage.url | absolute_url %}is-active{% endif %}">
{{sitepage.title}}
--- ./_includes/footer.html~ 2022-08-04 15:37:40.241081000 +0900
+++ ./_includes/footer.html 2022-05-10 14:42:31.569714000 +0900
@@ -1,7 +1,7 @@
<footer id="footer">
<!--Footer Button-->
<div class="container has-text-centered has-background-grey-darker" id="backtotop">
- <a class="has-text-white" onclick="window.scroll(0,0)">BACK TO TOP</a>
+ <a class="has-text-white" onclick="window.scroll(0,0)">{{site.back_to_top}}</a>
</div>
<!--Footer Main Section-->
<div class="has-background-grey-darker">
@@ -27,7 +27,7 @@
<!--Link Section-->
<div class="column has-text-white">
- <h3>More Links</h3>
+ <h3>{{site.more_links}}</h3>
{% for sitepage in site.html_pages offset: 4 %}
{% unless sitepage.url == '/' limit: 2 %}
<li>
@@ -36,13 +36,13 @@
{% endunless %}
{% endfor %}
<li>
- <a target="_blank" href="{{site.url}}{{site.baseurl}}/feed.xml">Subscribe via RSS</a>
+ <a target="_blank" href="{{site.url}}{{site.baseurl}}/feed.xml">{{site.subscribe_via_rss}}</a>
</li>
</div>
<!--Blog-post Section-->
<div class="column has-text-white">
- <h3>Recent Posts</h3>
+ <h3>{{site.recent_posts}}</h3>
{% for post in site.posts offset: 0 limit:3 %}
<li>
<a href="{{post.url | absolute_url}}">{{post.title}}</a>
--- ./_includes/showcase.html~ 2022-08-04 15:38:57.680995000 +0900
+++ ./_includes/showcase.html 2022-05-09 16:35:12.105073000 +0900
@@ -9,7 +9,7 @@
</h3>
<hr>
<a href="{{site.url}}{{site.baseurl}}/#about"
- class="button is-white is-rounded is-outlined is-uppercase has-text-weight-normal">Read More</a>
+ class="button is-white is-rounded is-outlined is-uppercase has-text-weight-normal">{{site.read_more}}</a>
</a>
</div>
</div>
--- ./_includes/blogpage-heading.html~ 2022-08-04 15:38:13.910293000 +0900
+++ ./_includes/blogpage-heading.html 2022-05-09 16:30:03.230245000 +0900
@@ -2,7 +2,7 @@
<nav class="level has-text-centered">
<!-- Left side -->
<div class="level-left">
- <p class="subtitle is-uppercase has-text-weight-medium has-text-grey">Have a Good Read</p>
+ <p class="subtitle is-uppercase has-text-weight-medium has-text-grey">{{site.have_a_good_read}}</p>
</div>
<!-- Right side -->
<div class="level-right">
--- ./_includes/search.html~ 2022-08-04 15:38:49.812704000 +0900
+++ ./_includes/search.html 2022-05-09 16:32:47.563692000 +0900
@@ -1,7 +1,7 @@
<div class="field has-addons has-text-weight-medium has-text-grey" id="search">
<p class="control">
<input id="search-input" class="input is-shadowless is-uppercase has-text-grey has-text-weight-normal" type="text"
- placeholder="Search Here">
+ placeholder="{{site.search_here}}">
</p>
<p class="control">
<button class="button">
--- ./_includes/blog-card.html~ 2022-08-04 15:38:06.222160000 +0900
+++ ./_includes/blog-card.html 2022-05-10 14:32:05.050642000 +0900
@@ -2,7 +2,7 @@
<div class="column is-marginless is-paddingless is-one-third-desktop is-one-third-fullhd is-one-third-tablet">
<div class="image is-16by9" style="background-image: url({{post.post-image}});"></div>
</div>
- <a href="{{post.url | absolute_url}}">
+ <a href="{{post.url}}">
<div class="column has-text-left-desktop has-text-left-tablet">
<h1 class="title is-size-4-touch">{{post.title}}</h1>
<div class="content has-text-grey">
--- ./_includes/navbar.html~ 2022-08-04 15:37:12.623991000 +0900
+++ ./_includes/navbar.html 2022-05-09 17:11:46.668299000 +0900
@@ -22,11 +22,11 @@
<!-- navbar items | right side -->
<div class="navbar-end">
<a class="navbar-item {% if page.layout == 'default' %}is-active{% endif %}"
- href="{% if page.layout == 'default' %}{{site.url}}{{site.baseurl}}/#{% else %}{{site.url}}{{site.baseurl}}/{% endif %}">HOME</a>
- <a class="navbar-item" href="{{site.url}}{{site.baseurl}}/#about">ABOUT</a>
- <a class="navbar-item" href="{{site.url}}{{site.baseurl}}/#contact">CONTACT</a>
+ href="{% if page.layout == 'default' %}{{site.url}}{{site.baseurl}}/#{% else %}{{site.url}}{{site.baseurl}}/{% endif %}">{{site.home}}</a>
+ <a class="navbar-item" href="{{site.url}}{{site.baseurl}}/#about">{{site.about}}</a>
+ <a class="navbar-item" href="{{site.url}}{{site.baseurl}}/#contact">{{site.contact}}</a>
<a class="navbar-item {% if page.layout == 'blog' %}is-active{% endif %}"
- href="{{site.url}}{{site.baseurl}}/blog">BLOG</a>
+ href="{{site.url}}{{site.baseurl}}/blog">{{site.blog}}</a>
{% include dropdown.html %}
</div>
--- ./_includes/about.html~ 2022-08-04 15:37:51.783010000 +0900
+++ ./_includes/about.html 2022-05-10 15:36:08.745301000 +0900
@@ -9,17 +9,17 @@
</div>
<div class="column has-text-left-desktop has-text-left-tablet has-text-left-fullhd has-text-left-widescreen">
<p>{{site.author-about}}</p>
+
<br>
<div class="container columns is-centered">
<div>
<a href="{{site.url}}{{site.baseurl}}/#contact"
- class="button is-rounded is-uppercase has-text-weight-normal is-black is-outlined">Contact
- Me</a>
+ class="button is-rounded is-uppercase has-text-weight-normal is-black is-outlined">{{site.contact_me}}</a>
</a>
</div>
<div>
<a href="{{site.url}}{{site.baseurl}}/blog"
- class="button is-rounded is-uppercase has-text-weight-normal is-black is-outlined">Blog</a>
+ class="button is-rounded is-uppercase has-text-weight-normal is-black is-outlined">{{site.blog}}</a>
</a>
</div>
</div>
--- ./_includes/contact.html~ 2022-08-04 15:38:27.540554000 +0900
+++ ./_includes/contact.html 2022-05-17 14:21:22.098524000 +0900
@@ -1,21 +1,21 @@
<section class="hero is-fullheight has-text-centered" id="contact">
<div class="hero-body">
<div class="container">
- {% unless site.facebook_username == %}
+ {% unless site.facebook_username == "" %}
<a id="contact-button" href="https://m.me/{{site.facebook_username}}"
class="button is-rounded is-uppercase has-text-weight-normal is-black is-outlined has-text-weight-semibold column is-two-fifths"
target="_blank">
<i class="fab fa-facebook-messenger"></i>{{site.ping_me_on_messenger}}
</a>
{% endunless %}
- {% unless site.email == %}
+ {% unless site.email == "" %}
<a id="contact-button" href="mailto:{{site.email}}"
class="button is-rounded is-uppercase has-text-weight-normal is-black is-outlined has-text-weight-semibold column is-two-fifths"
target="_blank">
<i class="fas fa-envelope"></i>{{site.send_me_an_email}}
</a>
{% endunless %}
- {% unless site.twitter_username == %}
+ {% unless site.twitter_username == "" %}
<a id="contact-button" href="https://www.twitter.com/intent/tweet?screen_name={{site.twitter_username}}"
class="button is-rounded is-uppercase has-text-weight-normal is-black is-outlined has-text-weight-semibold column is-two-fifths"
target="_blank">
@@ -27,34 +27,34 @@
{{site.you_can_find_me_here}}
</h3>
<div class="column is-full is-size-3">
- {% unless site.facebook_username == %}
+ {% unless site.facebook_username == "" %}
<a href="http://www.facebook.com/{{site.facebook_username}}" target="_blank" class="has-text-black"><i class="fab fa-facebook"></i></a>
{% endunless %}
- {% unless site.twitter_username == %}
+ {% unless site.twitter_username == "" %}
<a href="http://www.twitter.com/{{site.twitter_username}}" target="_blank" class="has-text-black"><i class="fab fa-twitter"></i></a>
{% endunless %}
- {% unless site.instagram_username == %}
+ {% unless site.instagram_username == "" %}
<a href="http://www.instagram.com/{{site.instagram_username}}" target="_blank" class="has-text-black"><i class="fab fa-instagram"></i></a>
{% endunless %}
- {% unless site.linkedin_username == %}
+ {% unless site.linkedin_username == "" %}
<a href="http://www.linkedin.com/in/{{site.linkedin_username}}" target="_blank" class="has-text-black"><i class="fab fa-linkedin"></i></a>
{% endunless %}
- {% unless site.github_username == %}
+ {% unless site.github_username == "" %}
<a href="http://www.github.com/{{site.github_username}}" target="_blank" class="has-text-black"><i class="fab fa-github"></i></a>
{% endunless %}
- {% unless site.youtube_channel_id == %}
+ {% unless site.youtube_channel_id == "" %}
<a href="http://www.youtube.com/channel/{{site.youtube_channel_id}}" target="_blank" class="has-text-black"><i class="fab fa-youtube"></i></a>
{% endunless %}
- {% unless site.reddit_username == %}
+ {% unless site.reddit_username == "" %}
<a href="http://www.reddit.com/u/{{site.reddit_username}}" target="_blank" class="has-text-black"><i class="fab fa-reddit"></i></a>
{% endunless %}
- {% unless site.behance_username == %}
+ {% unless site.behance_username == "" %}
<a href="http://www.behance.com/{{site.behance_username}}" target="_blank" class="has-text-black"><i class="fab fa-behance"></i></a>
{% endunless %}
- {% unless site.dribbble_username == %}
+ {% unless site.dribbble_username == "" %}
<a href="http://www.dribbble.com/{{site.dribbble_username}}" target="_blank" class="has-text-black"><i class="fab fa-dribbble"></i></a>
{% endunless %}
- {% unless site.spotify_username == %}
+ {% unless site.spotify_username == "" %}
<a href="http://open.spotify.com/user/{{site.spotify_username}}" target="_blank" class="has-text-black"><i class="fab fa-spotify"></i></a>
{% endunless %}
</div>
--- ./_layouts/project.html~ 2022-08-04 15:41:03.651349000 +0900
+++ ./_layouts/project.html 2022-05-09 16:29:06.388160000 +0900
@@ -17,7 +17,7 @@
<div class="hero-body">
<div class="container has-text-centered">
<div class="section">
- <p class="subtitle is-uppercase has-text-weight-medium has-text-grey">Have a Good Read</p>
+ <p class="subtitle is-uppercase has-text-weight-medium has-text-grey">{{site.have_a_good_read}}</p>
</div>
{% include project-card.html %}
</div>