Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block atstyle

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
atstyle / Bootstrap 2.3
Created Jan 28, 2014
View Bootstrap 2.3
<a href="#" rel="tooltip" data-placement="bottom" data-original-title="this is tooltip">tooltip</a>
atstyle / gist:8664164
Created Jan 28, 2014
Bootstrap 3.0 BASIC Template
View gist:8664164
<!DOCTYPE html>
<title>Bootstrap 101 Template</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
atstyle / gist:8664157
Created Jan 28, 2014
Bootstrap 2.3のドロップダウン用CSS
View gist:8664157
.dropdown-backdrop {
position: static;
atstyle / gist:8573818
Last active Jan 4, 2016
狙ったフォルダのみを表示してウェブページを展開 MTML
View gist:8573818
<mt:SetVar name="keyword" value="dog">
<mt:SetVarBlock name="CurFldName"><mt:FolderLabel></mt:SetVarBlock>
<mt:If name="CurFldName" like="$keyword">
<mt:Pages folder="$CurFldName" lastn="5">
<li><a href="<$mt:PagePermalink$>"><$mt:PageTitle$></a></li>
atstyle / gist:8573793
Last active Jan 4, 2016
サムネイルでエントリリスト MTML
View gist:8573793
<$mt:setvar name="counter" value="0"$>
<mt:Blogs include_blogs="children">
<mt:Entries lastn="0">
<mt:EntryAssets type="image" lastn="1">
<$mt::setvar name="counter" op="++"$>
<mt:SetVarBlock name="EntDate">
<$mt:EntryDate format_name="iso8601"$>
<mt:SetVarBlock name="EntryLink[$counter]">
atstyle / gist:8573822
Last active Jan 4, 2016
狙ったフォルダのみを隠すフォルダリスト MTML
View gist:8573822
<mt:SetVar name="keyword" value="dog">
<mt:SetVarBlock name="CurFldName"><mt:FolderLabel></mt:SetVarBlock>
<mt:Unless name="CurFldName" like="$keyword">
<li><$mt:FolderLabel$> (<$mt:FolderCount$>)</a></li>
atstyle / gist:8573809
Last active Jan 4, 2016
エントリリストへ、特定カテゴリ用画像を付与する MTML
View gist:8573809
<mt:SetHashVar name="Compare">
<mt:SetVar name="Category1" value="<img src="" />">
<mt:SetVar name="Category2" value="<img src="" />">
<mt:Entries lastn="999">
<mt:Setvar name="Find" value="0">
<mt:SetVarBlock name="EntCat"><mt:EntryCategory></mt:SetVarBlock>
<mt:Loop name="Compare" sort_by="key">
<mt:SetVar name="imga" value="$__value__">
atstyle / gist:8573558
Created Jan 23, 2014
高速化 .htaccess
View gist:8573558
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
<FilesMatch ".(flv|gif|jpe?g|png|ico|swf|js|css|pdf)$">
Header set Cache-Control "max-age=2592000"
# explicitly disable caching for scripts and other dynamic files
<FilesMatch ".(pl|php|cgi|spl|scgi|fcgi)$">
Header unset Cache-Control
atstyle / gist:8573513
Last active Jan 4, 2016
canonical要素 MTML
View gist:8573513
<link rel="canonical" href="<$MTBlogURL$>">
<link rel="canonical" href="<$MTEntryPermaLink$>">
<link rel="canonical" href="<$MTPagePermaLink$>">
atstyle / gist:8573517
Last active Jan 4, 2016
Bread crumb (ウェブサイトのウェブページ) MTML
View gist:8573517
<ul class="breadcrumb">
<li><a href="<$mt:WebsiteURL$>">Home</a></li>
<mt:SetVarBlock name="pagebasename"><$mt:PageBaseName$></mt:SetVarBlock>
<li><a href="<$mt:WebsiteURL$><$mt:FolderPath>/"><$mt:FolderLabel remove_html="1"$></a></li>
<mt:Unless name="pagebasename" eq="index">
<li><a href="<$mt:WebsiteURL$><$mt:FolderPath$>/"><$mt:FolderLabel remove_html="1"$></a></li>
You can’t perform that action at this time.