mirror of
https://github.com/aljazceru/cryptoanarchywiki.github.io.git
synced 2025-12-17 05:04:21 +01:00
added project,social share,google analytics
This commit is contained in:
@@ -12,6 +12,67 @@
|
||||
<meta name="keywords" content="{% if page.title %}{{ page.title }}, {{ site.title }}, {% for categ in page.categories %}{{ categ }}{% if forloop.last == false %}, {% endif %}{% endfor %}{% else %}{{ site.title }}, {% for category in site.categories %}{% capture categories_slug %}{{ category | first }}{% endcapture %}{% for categ in categories_slug %}{{ categ }}{% endfor %}{% if forloop.last == false %}, {% endif %}{% endfor %}{% endif %}" />
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS" href="/feed.xml">
|
||||
|
||||
<meta content="{{ site.share.fb_appid }}" property="fb:app_id">
|
||||
<meta content="{{ site.title }}" property="og:site_name">
|
||||
{% if page.title %}
|
||||
<meta content="{{ page.title }}" property="og:title">
|
||||
{% else %}
|
||||
<meta content="{{ site.title }}" property="og:title">
|
||||
{% endif %}
|
||||
{% if page.title %}
|
||||
<meta content="article" property="og:type">
|
||||
{% else %}
|
||||
<meta content="website" property="og:type">
|
||||
{% endif %}
|
||||
{% if page.description %}
|
||||
<meta content="{{ page.description }}" property="og:description">
|
||||
{% else %}
|
||||
<meta content="{{ site.description }}" property="og:description">
|
||||
{% endif %}
|
||||
{% if page.url %}
|
||||
<meta content="{{ site.url }}{{ page.url }}" property="og:url">
|
||||
{% endif %}
|
||||
{% if page.date %}
|
||||
<meta content="{{ page.date | date_to_xmlschema }}" property="article:published_time">
|
||||
<meta content="{{ site.url }}/about/" property="article:author">
|
||||
{% endif %}
|
||||
{% if page.image %}
|
||||
<meta content="{{ site.url }}/static/img/posts/{{ page.image }}" property="og:image">
|
||||
{% else %}
|
||||
<meta content="{{ site.url }}/static/img/logo-high-resolution.png" property="og:image">
|
||||
{% endif %}
|
||||
{% if page.categories %}
|
||||
{% for category in page.categories limit:1 %}
|
||||
<meta content="{{ category }}" property="article:section">
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if page.tags %}
|
||||
{% for tag in page.tags %}
|
||||
<meta content="{{ tag }}" property="article:tag">
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:site" content="@{{ site.share.twitter_username }}">
|
||||
<meta name="twitter:creator" content="@{{ site.share.twitter_username }}">
|
||||
{% if page.title %}
|
||||
<meta name="twitter:title" content="{{ page.title }}">
|
||||
{% else %}
|
||||
<meta name="twitter:title" content="{{ site.title }}">
|
||||
{% endif %}
|
||||
{% if page.url %}
|
||||
<meta name="twitter:url" content="{{ site.url }}{{ page.url }}">
|
||||
{% endif %}
|
||||
{% if page.description %}
|
||||
<meta name="twitter:description" content="{{ page.description }}">
|
||||
{% else %}
|
||||
<meta name="twitter:description" content="{{ site.description }}">
|
||||
{% endif %}
|
||||
{% if page.header-img %}
|
||||
<meta name="twitter:image:src" content="{{ site.url }}/{{ page.header-img }}">
|
||||
{% endif %}
|
||||
|
||||
|
||||
<!-- syntax highlighting CSS -->
|
||||
<link rel="stylesheet" href="/static/css/syntax.css">
|
||||
|
||||
@@ -23,7 +84,12 @@
|
||||
|
||||
<!-- Custom CSS -->
|
||||
<link rel="stylesheet" href="/static/css/super-search.css">
|
||||
<link rel="stylesheet" href="/static/css/thickbox.css">
|
||||
<link rel="stylesheet" href="/static/css/projects.css">
|
||||
<link rel="stylesheet" href="/static/css/main.css">
|
||||
|
||||
<!-- Google Analytics -->
|
||||
{% include analytics.html %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -72,7 +138,10 @@
|
||||
================================================== -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
||||
<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
|
||||
<script src="/static/js/bootstrap.min.js"></script>
|
||||
<script src="/static/js/super-search.js"></script>
|
||||
<script src="/static/js/thickbox-compressed.js"></script>
|
||||
<script src="/static/js/projects.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -11,6 +11,7 @@ layout: default
|
||||
|
||||
<div class="content">
|
||||
<div class="post">{{ content }}</div>
|
||||
{% include share-page.html %}
|
||||
</div>
|
||||
|
||||
{% assign hasSimilar = '' %}
|
||||
@@ -56,7 +57,7 @@ layout: default
|
||||
<script type="text/javascript">
|
||||
/* <![CDATA[ */
|
||||
|
||||
var disqus_shortname = 'stackproblems';
|
||||
var disqus_shortname = "{{ site.disqus_shortname }}";
|
||||
var disqus_identifier = "{{ site.url }}_{{ page.title }}";
|
||||
var disqus_title = "{{ page.title }}";
|
||||
|
||||
|
||||
63
_layouts/project.html
Normal file
63
_layouts/project.html
Normal file
@@ -0,0 +1,63 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
<article class="post">
|
||||
|
||||
<header class="post-header">
|
||||
<h1 class="post-title">{{ page.title }}</h1>
|
||||
<hr />
|
||||
</header>
|
||||
|
||||
<div class="post-content">
|
||||
{{ content }}
|
||||
|
||||
{% assign p_array = "" | split:"|" %}
|
||||
{% for project in site.project %}
|
||||
{% capture p_slug %}{{ project.url | split:"/" | last }},{{ project.url }}{% endcapture %}
|
||||
{% assign p_slug_arr = p_slug | split:"," %}
|
||||
{% assign p_array = p_array | push: p_slug_arr %}
|
||||
{% endfor %}
|
||||
|
||||
<div class="projects">
|
||||
{% include project_tags.html %}
|
||||
{% for i in site.data.projects %}
|
||||
<div class="project-item project-outer" data-tags='{{ i.tags | jsonify | downcase }}'>
|
||||
<div class="project-inner">
|
||||
<a href="/static/projects/{{ i.image }}" class="thickbox">
|
||||
<div class="project-img bordered" style="background-image: url('/static/projects/{{ i.image }}');"></div>
|
||||
</a>
|
||||
{% assign p_url = nil %}
|
||||
{% for pr in p_array %}
|
||||
{% if pr contains i.slug %}
|
||||
{% assign p_url = pr[1] %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if p_url == nil %}{% assign p_url = i.url %}{% endif %}
|
||||
{% if p_url %}<a href="{{ p_url }}">{% endif %}
|
||||
<h3 class="project-headlines">{{ i.name }}</h3>
|
||||
{% if p_url %} </a> {% endif %}
|
||||
<div class="project-content">
|
||||
<div class="tag-holder">
|
||||
{% if i.tags %}
|
||||
{% for j in i.tags %}
|
||||
<span class="tags tag-filter" data-tag="{{ j | downcase }}"><a href="#">{{ j }}</a></span>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="project-footer">
|
||||
{% if i.url %}
|
||||
<a href="{{ i.url }}" class="project-link">View</a>
|
||||
{% endif %}
|
||||
<span class="project-timeline">{{ i.date }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
</div>
|
||||
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</article>
|
||||
15
_layouts/project_single.html
Normal file
15
_layouts/project_single.html
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
<article class="post">
|
||||
|
||||
<header class="post-header">
|
||||
<h1 class="post-title">{{ page.title }}</h1>
|
||||
<hr />
|
||||
</header>
|
||||
|
||||
<div class="post-content">
|
||||
{{ content }}
|
||||
</div>
|
||||
|
||||
</article>
|
||||
Reference in New Issue
Block a user