Browse Source

Many things

* all config values
* disqus & GA
* post with location
* archive & tags
master
sipp11 10 years ago
parent
commit
b3ca7f781d
  1. 13
      _config.yml
  2. 2
      _includes/footer.html
  3. 7
      _includes/header.html
  4. 1
      _layouts/default.html
  5. 4
      _layouts/post.html
  6. 1
      _posts/2013-07-31-สวนอาหารกิ่งดาว-ภูเรือ.md
  7. 1
      _posts/2013-07-31-เจริญรัตน์-ติ่มซำ-หัวหิน.md
  8. 1
      _posts/2013-08-25-ครัวอรพิน-วังน้ำเขียว.md
  9. 19
      _sass/_layout.scss
  10. 8
      about.md
  11. 2
      css/main.scss
  12. 5
      index.html
  13. 11
      sync_to_prod.sh

13
_config.yml

@ -1,14 +1,13 @@
# Site settings
title: Everyday in Thailand
email: info@everyday.in.th
email: info(at)everyday.in.th
description: > # this means to ignore newlines until "baseurl:"
Write an awesome description for your new site here. You can edit this
line in _config.yml. It will appear in your document head meta (for
Google search results) and in your feed.xml site description.
เรองราวตางๆ รอบๆ ตว หวงวาเรองจะมเรองดๆ มากกว
#failed ทเปนอยกวนน และกโปรเจกใหมๆ ทาสนใจไปตอไป
baseurl: "" # the subpath of your site, e.g. /blog/
url: "http://yourdomain.com" # the base hostname & protocol for your site
twitter_username: jekyllrb
github_username: jekyll
url: "http://everyday.in.th" # the base hostname & protocol for your site
# twitter_username: jekyllrb
# github_username: jekyll
# Build settings
markdown: kramdown

2
_includes/footer.html

@ -7,7 +7,7 @@
<div class="footer-col-wrapper">
<div class="footer-col footer-col-1">
<ul class="contact-list">
<li>{{ site.title }}</li>
<li>{{ site.title }} <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></li>
<li><a href="mailto:{{ site.email }}">{{ site.email }}</a></li>
</ul>
</div>

7
_includes/header.html

@ -14,6 +14,13 @@
</a>
<div class="trigger">
<a class="page-link">
<form action="http://www.google.com" id="cse-search-box">
<input type="hidden" name="cx" value="partner-pub-2020708490119286:8926965053" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" size="45" />
</form>
</a>
{% for page in site.pages %}
{% if page.title %}
<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>

1
_layouts/default.html

@ -23,6 +23,7 @@
ga('create', 'UA-34877059-4', 'auto');
ga('send', 'pageview');
</script>
<script src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script>
</body>
</html>

4
_layouts/post.html

@ -5,6 +5,10 @@ layout: default
<header class="post-header">
<h1 class="post-title">{{ page.title }}</h1>
<span class="post-meta post-tag right text-right">
Category: {{ page.categories | array_to_sentence_string }}<br/>
Tags: {{ page.tags | array_to_sentence_string }}
</span>
<p class="post-meta">{{ page.date | date: "%b %-d, %Y" }}{% if page.author %} • {{ page.author.display_name }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</p>
</header>

1
_posts/2013-07-31-สวนอาหารกิ่งดาว-ภูเรือ.md

@ -6,6 +6,7 @@ author:
display_name: 'ipeeddy'
categories: food
tags: review eatout
location:
---
- จำไดา Trip ครงนนใชเสนทาง *ภเรอ - เชยงคาน - ภทอก* จากจดเรมตนเรากไปถง อ.ภเรอ กงเวลาอาหารเยนซะแลว....ขอบอกวาไมไดวางแผนเรองหารานอาหารอรอยไววงหนาเลยจรงๆ...^^

1
_posts/2013-07-31-เจริญรัตน์-ติ่มซำ-หัวหิน.md

@ -6,6 +6,7 @@ author:
display_name: 'sipp11'
categories: food
tags: review eatout
location: 12.582821,99.951999
---
อรานทผมกนตงแตเดกละครบ เปนตมซำทอรอยทดทผมเคยกนจรงๆ

1
_posts/2013-08-25-ครัวอรพิน-วังน้ำเขียว.md

@ -6,6 +6,7 @@ author:
display_name: 'ipeeddy'
categories: food
tags: review eatout
location: 14.624571,101.71539
---
าทานขบรถระหวางเสนทางจาก อ.วงนำเขยว ไปยง อ.ปากชอง โดยใช ทล.304 ประมาณหลกกโลเมตรท 31 จะเหนปายชอรานว**"ครวอรพน**" ดานซายมอ อาจจะดไมเดนและสะดดตามากเทาไรนะคะ ^^

19
_sass/_layout.scss

@ -1,3 +1,14 @@
/**
* General rules
*/
.right {
float: right;
}
.text-right {
text-align: right;
}
/**
* Site header
*/
@ -178,6 +189,14 @@
}
}
.post-tag {
padding: 3px 0.5em 1px;
margin-bottom: 3px;
border-bottom: 1px solid $grey-color-light;
border-left: 1px solid $grey-color-light;
background-color: $grey-color-xlight;
}
.post-meta {
font-size: $small-font-size;
color: $grey-color;

8
about.md

@ -4,8 +4,10 @@ title: About
permalink: /about/
---
This is the base Jekyll theme. You can find out more info about customizing your Jekyll theme, as well as basic Jekyll usage documentation at [jekyllrb.com](http://jekyllrb.com/)
What is __everyday.in.th__?
You can find the source code for the Jekyll new theme at: [github.com/jglovier/jekyll-new](https://github.com/jglovier/jekyll-new)
>I don't know how to begin to answer that either; hopefully, it will form into something clearer as time goes by.
You can find the source code for Jekyll at [github.com/jekyll/jekyll](https://github.com/jekyll/jekyll)
Who are behind __everyday.in.th__?
>So far, we are nobody thriving to do something. Something which hasn't been successful just yet, but we won't give up that easy.

2
css/main.scss

@ -20,6 +20,7 @@ $brand-color: #2a7ae2;
$grey-color: #828282;
$grey-color-light: lighten($grey-color, 40%);
$grey-color-dark: darken($grey-color, 25%);
$grey-color-xlight: lighten($grey-color, 47%);
// Width of the content area
$content-width: 800px;
@ -112,7 +113,6 @@ span.label {
border-radius: 0.25em;
}
// Using media queries with like this:
// @include media-query($on-palm) {
// .wrapper {

5
index.html

@ -3,9 +3,6 @@ layout: default
---
<div class="home">
{% include paginator.html %}
<ul class="post-list">
{% for post in paginator.posts %}
<li>
@ -20,6 +17,4 @@ layout: default
{% include paginator.html %}
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
</div>

11
sync_to_prod.sh

@ -0,0 +1,11 @@
#!/bin/sh
RUSER=sipp11
RHOST=ztokyo6
PORT=22
RPATH=/opt/www/everyday-front
LPATH=./_site/
rsync -avu -e "ssh -p $PORT" $LPATH $RUSER@$RHOST:$RPATH \
--exclude=.DS_Store --exclude=*.sh --exclude=*.pyc \
--exclude=migrations --exclude=scripts
Loading…
Cancel
Save