好吧,我得要承认,这是一篇水文。这两天一直很忙,没什么精力更新博客。
年前的时候,美国白宫官网 CMS 内容管理系统从 Drupal 转换至了 WordPress ,这对于很多使用 WordPress 搭建网站的朋友们似乎是一件倍儿有面的事,作为一国政府的官方网站都在使用的系统,我想我们也不必再为WordPress日渐臃肿,安装插件过多访问速度慢,安全隐患之类的问题而纠结了。只要网站优化的好,WordPress还是杠杠地。
上面这幅图片既是美国白宫官网的首页,当然你也可以通过访问该链接来具体看一下:,右键查看首页的源代码我们就可以看出目前白宫网站使用的程序即是WordPress,同时我们也可以看出网站使用了很多插件,当然仅从首页我们并不能看出具体白宫官网使用了那些插件,这里仅以此为突破口了解下这些插件。
<!DOCTYPE html> <html lang="en-US" prefix="og: http://ogp.me/ns#" class="no-js"> <head> <script> document.documentElement.className = document.documentElement.className.replace(/\bno-js\b/, 'js'); document.createElement('picture'); </script> <meta charset="UTF-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"><script type="text/javascript">window.NREUM||(NREUM={}),__nr_require=function(e,t,n){function r(n){if(!t[n]){var o=t[n]={exports:{}};e[n][0].call(o.exports,function(t){var o=e[n][1][t];return r(o||t)},o,o.exports)}return t[n].exports}if("function"==typeof __nr_require)return __nr_require;for(var o=0;o<n.length;o++)r(n[o]);return r}({1:[function(e,t,n){function r(){}function o(e,t,n){return function(){return i(e,[f.now()].concat(u(arguments)),t?null:this,n),t?void 0:this}}var i=e("handle"),a=e(2),u=e(3),c=e("ee").get("tracer"),f=e("loader"),s=NREUM;"undefined"==typeof window.newrelic&&(newrelic=s);var p=["setPageViewName","setCustomAttribute","setErrorHandler","finished","addToTrace","inlineHit","addRelease"],d="api-",l=d+"ixn-";a(p,function(e,t){s[t]=o(d+t,!0,"api")}),s.addPageAction=o(d+"addPageAction",!0),s.setCurrentRouteName=o(d+"routeName",!0),t.exports=newrelic,s.interaction=function(){return(new r).get()};var m=r.prototype={createTracer:function(e,t){var n={},r=this,o="function"==typeof t;return i(l+"tracer",[f.now(),e,n],r),function(){if(c.emit((o?"":"no-")+"fn-start",[f.now(),r,o],n),o)try{return t.apply(this,arguments)}catch(e){throw c.emit("fn-err",[arguments,this,e],n),e}finally{c.emit("fn-end",[f.now()],n)}}}};a("setName,setAttribute,save,ignore,onEnd,getContext,end,get".split(","),function(e,t){m[t]=o(l+t)}),newrelic.noticeError=function(e){"string"==typeof e&&(e=new Error(e)),i("err",[e,f.now()])}},{}],2:[function(e,t,n){function r(e,t){var n=[],r="",i=0;for(r in e)o.call(e,r)&&(n[i]=t(r,e[r]),i+=1);return n}var o=Object.prototype.hasOwnProperty;t.exports=r},{}],3:[function(e,t,n){function r(e,t,n){t||(t=0),"undefined"==typeof n&&(n=e?e.length:0);for(var r=-1,o=n-t||0,i=Array(o<0?0:o);++r<o;)i[r]=e[t+r];return i}t.exports=r},{}],4:[function(e,t,n){t.exports={exists:"undefined"!=typeof window.performance&&window.performance.timing&&"undefined"!=typeof window.performance.timing.navigationStart}},{}],ee:[function(e,t,n){function r(){}function o(e){function t(e){return e&&e instanceof r?e:e?c(e,u,i):i()}function n(n,r,o,i){if(!d.aborted||i){e&&e(n,r,o);for(var a=t(o),u=m(n),c=u.length,f=0;f<c;f++)u[f].apply(a,r);var p=s[y[n]];return p&&p.push([b,n,r,a]),a}}function l(e,t){v[e]=m(e).concat(t)}function m(e){return v[e]||[]}function w(e){return p[e]=p[e]||o(n)}function g(e,t){f(e,function(e,n){t=t||"feature",y[n]=t,t in s||(s[t]=[])})}var v={},y={},b={on:l,emit:n,get:w,listeners:m,context:t,buffer:g,abort:a,aborted:!1};return b}function i(){return new r}function a(){(s.api||s.feature)&&(d.aborted=!0,s=d.backlog={})}var u="nr@context",c=e("gos"),f=e(2),s={},p={},d=t.exports=o();d.backlog=s},{}],gos:[function(e,t,n){function r(e,t,n){if(o.call(e,t))return e[t];var r=n();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!1}),r}catch(i){}return e[t]=r,r}var o=Object.prototype.hasOwnProperty;t.exports=r},{}],handle:[function(e,t,n){function r(e,t,n,r){o.buffer([e],r),o.emit(e,t,n)}var o=e("ee").get("handle");t.exports=r,r.ee=o},{}],id:[function(e,t,n){function r(e){var t=typeof e;return!e||"object"!==t&&"function"!==t?-1:e===window?0:a(e,i,function(){return o++})}var o=1,i="nr@id",a=e("gos");t.exports=r},{}],loader:[function(e,t,n){function r(){if(!x++){var e=h.info=NREUM.info,t=d.getElementsByTagName("script")[0];if(setTimeout(s.abort,3e4),!(e&&e.licenseKey&&e.applicationID&&t))return s.abort();f(y,function(t,n){e[t]||(e[t]=n)}),c("mark",["onload",a()+h.offset],null,"api");var n=d.createElement("script");n.src="https://"+e.agent,t.parentNode.insertBefore(n,t)}}function o(){"complete"===d.readyState&&i()}function i(){c("mark",["domContent",a()+h.offset],null,"api")}function a(){return E.exists&&performance.now?Math.round(performance.now()):(u=Math.max((new Date).getTime(),u))-h.offset}var u=(new Date).getTime(),c=e("handle"),f=e(2),s=e("ee"),p=window,d=p.document,l="addEventListener",m="attachEvent",w=p.XMLHttpRequest,g=w&&w.prototype;NREUM.o={ST:setTimeout,SI:p.setImmediate,CT:clearTimeout,XHR:w,REQ:p.Request,EV:p.Event,PR:p.Promise,MO:p.MutationObserver};var v=""+location,y={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net",agent:"js-agent.newrelic.com/nr-1071.min.js"},b=w&&g&&g[l]&&!/CriOS/.test(navigator.userAgent),h=t.exports={offset:u,now:a,origin:v,features:{},xhrWrappable:b};e(1),d[l]?(d[l]("DOMContentLoaded",i,!1),p[l]("load",r,!1)):(d[m]("onreadystatechange",o),p[m]("onload",r)),c("mark",["firstbyte",u],null,"api");var x=0,E=e(4)},{}]},{},["loader"]);</script> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Home Page</title> <!-- This site is optimized with the Yoast SEO Premium plugin v5.9.4 - https://yoast.com/wordpress/plugins/seo/ --> <link rel="canonical" href="https://www.whitehouse.gov/" /> <meta property="og:locale" content="en_US" /> <meta property="og:type" content="website" /> <meta property="og:title" content="Home Page" /> <meta property="og:url" content="https://www.whitehouse.gov/" /> <meta property="og:site_name" content="The White House" /> <meta property="og:image" content="https://www.whitehouse.gov/wp-content/uploads/2017/12/wh.gov-share-img_03.png" /> <meta property="og:image:secure_url" content="https://www.whitehouse.gov/wp-content/uploads/2017/12/wh.gov-share-img_03.png" /> <meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:title" content="Home Page" /> <meta name="twitter:site" content="@whitehouse" /> <meta name="twitter:image" content="https://www.whitehouse.gov/wp-content/uploads/2017/12/wh.gov-share-img_03.png" /> <meta name="twitter:creator" content="@whitehouse" /> <script type='application/ld+json'>{"@context":"http:\/\/schema.org","@type":"WebSite","@id":"#website","url":"https:\/\/www.whitehouse.gov\/","name":"The White House","alternateName":"White House","potentialAction":{"@type":"SearchAction","target":"https:\/\/www.whitehouse.gov\/?s={search_term_string}","query-input":"required name=search_term_string"}}</script> <script type='application/ld+json'>{"@context":"http:\/\/schema.org","@type":"Organization","url":"https:\/\/www.whitehouse.gov\/","sameAs":["https:\/\/facebook.com\/whitehouse","https:\/\/instagram.com\/whitehouse","https:\/\/www.youtube.com\/user\/whitehouse","https:\/\/twitter.com\/whitehouse"],"@id":"#organization","name":"The White House","logo":"https:\/\/www.whitehouse.gov\/wp-content\/uploads\/2017\/12\/wh.gov-share-img_03.png"}</script> <!-- / Yoast SEO Premium plugin. --> <!-- This site uses the Google Analytics by MonsterInsights plugin v6.2.6 - Using Analytics tracking - https://www.monsterinsights.com/ --> <script type="text/javascript" data-cfasync="false"> var disableStr = 'ga-disable-UA-12099831-10'; /* Function to detect opted out users */ function __gaTrackerIsOptedOut() { return document.cookie.indexOf(disableStr + '=true') > -1; } /* Disable tracking if the opt-out cookie exists. */ if ( __gaTrackerIsOptedOut() ) { window[disableStr] = true; } /* Opt-out function */ function __gaTrackerOptout() { document.cookie = disableStr + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/'; window[disableStr] = true; } (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','__gaTracker'); __gaTracker('create', 'UA-12099831-10', 'auto'); __gaTracker('set', 'forceSSL', true); __gaTracker('require', 'displayfeatures'); __gaTracker('require', 'linkid', 'linkid.js'); __gaTracker('send','pageview'); </script> <!-- / Google Analytics by MonsterInsights --> <link rel='stylesheet' id='google-fonts-css' href='https://fonts.googleapis.com/css?family=Merriweather:300,300i,400,400i,700,700i,900,900i|Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i&subset=latin-ext' type='text/css' media='screen' /> <link rel='stylesheet' id='animate-css-css' href='https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/vendor/animate.css/animate.min.css?ver=5d1314be' type='text/css' media='screen' /> <link rel='stylesheet' id='site-css' href='https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/dist/site.css?ver=5d1314be' type='text/css' media='screen' /> <script type='text/javascript'> /* <![CDATA[ */ var monsterinsights_frontend = {"js_events_tracking":"true","is_debug_mode":"false","download_extensions":"doc,exe,js,pdf,ppt,tgz,zip,xls,jpg,jpeg","inbound_paths":"","home_url":"https:\/\/www.whitehouse.gov","track_download_as":"event","internal_label":"int","hash_tracking":"false"}; /* ]]> */ </script> <script type="text/javascript" src="https://www.whitehouse.gov/wp-content/cache/minify/9d086.js"></script> <link rel="icon" href="https://www.whitehouse.gov/wp-content/uploads/2017/12/cropped-WH.gov_favicon_512X512-1-32x32.png" sizes="32x32" /> <link rel="icon" href="https://www.whitehouse.gov/wp-content/uploads/2017/12/cropped-WH.gov_favicon_512X512-1-192x192.png" sizes="192x192" /> <link rel="apple-touch-icon-precomposed" href="https://www.whitehouse.gov/wp-content/uploads/2017/12/cropped-WH.gov_favicon_512X512-1-180x180.png" /> <meta name="msapplication-TileImage" content="https://www.whitehouse.gov/wp-content/uploads/2017/12/cropped-WH.gov_favicon_512X512-1-270x270.png" /> </head> <body class="home page-template-default page-id-2270 single-page"> <a class="skip-link" href="#main-content"><span>Skip to content</span></a> <div class="body-overflow"> <header class="header"> <div class="header__container"> <div class="header__inner"> <a href="#" class="header__hamburger"> <b class="svg svg--hamburger" data-svg-url="https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/hamburger.svg" data-img-url="https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/hamburger.png" data-icon="hamburger"><svg aria-label="Open Menu" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 14"><path d="M.64,12H16.36c.36,0,.64.43.64,1s-.28,1-.64,1H.64C.28,14,0,13.57,0,13s.28-1,.64-1M23.1,2H.9A.94.94,0,0,1,0,1,.94.94,0,0,1,.9,0H23.1A.94.94,0,0,1,24,1a.94.94,0,0,1-.9,1M.9,8A.94.94,0,0,1,0,7,.94.94,0,0,1,.9,6H23.1A.94.94,0,0,1,24,7a.94.94,0,0,1-.9,1Z" fill="#a98860"/></svg><title>open-menu</title></b> </a> <div class="header__wrap"> <div class="header__logo"> <a href="https://www.whitehouse.gov"> <img src="https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/white-house-logo-sm-wh.png" srcset="https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/white-house-logo-sm-wh.png 1x, https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/white-house-logo-md-wh.png 2x, https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/white-house-logo-lg-wh.png 3x" alt="" class="logo--white" /> <img src="https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/white-house-logo-sm-bl.png" srcset="https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/white-house-logo-sm-bl.png 1x, https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/white-house-logo-md-bl.png 2x, https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/white-house-logo-lg-bl.png 3x" alt="" class="logo--blue" /> <span class="visually-hidden">White House Logo</span> </a> </div> <nav class="nav nav--primary header__nav"><ul class="nav__menu nav__menu--depth0 menu"><li class="nav__menu-item nav__menu-item--depth0 menu-item menu-item-type-post_type menu-item-object-issue menu-item-692"><a href="https://www.whitehouse.gov/issues/economy-jobs/" class="nav__link">Economy</a></li> <li class="nav__menu-item nav__menu-item--depth0 menu-item menu-item-type-post_type menu-item-object-issue menu-item-693"><a href="https://www.whitehouse.gov/issues/national-security-defense/" class="nav__link">National Security</a></li> <li class="nav__menu-item nav__menu-item--depth0 menu-item menu-item-type-post_type menu-item-object-issue menu-item-16229"><a href="https://www.whitehouse.gov/issues/budget-spending/" class="nav__link">Budget</a></li> <li class="nav__menu-item nav__menu-item--depth0 menu-item menu-item-type-post_type menu-item-object-issue menu-item-16236"><a href="https://www.whitehouse.gov/issues/immigration/" class="nav__link">Immigration</a></li> <li class="nav__menu-item nav__menu-item--depth0 menu-item menu-item-type-post_type menu-item-object-issue menu-item-688"><a href="https://www.whitehouse.gov/issues/healthcare/" class="nav__link">Healthcare</a></li> </ul></nav> </div> <a href="https://www.whitehouse.gov/search/?s=" class="header__search"> <span>Search WhiteHouse.gov</span> <b class="svg svg--search" data-svg-url="https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/search.svg" data-img-url="https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/search.png" data-icon="search"><svg role="img" width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title></title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(-1336.000000, -20.000000)"> <g fill="#A98860" fill-rule="nonzero"> <path d="M1356,38.7162898 L1350.92083,33.6370653 C1353.56767,30.3475438 1353.36632,25.50849 1350.31428,22.4559611 C1348.73004,20.8721511 1346.6246,20 1344.38477,20 C1342.14539,20 1340.03973,20.8721511 1338.45616,22.4557341 C1336.87191,24.0397712 1336,26.1452374 1336,28.3848633 C1336,30.6244892 1336.87214,32.7304095 1338.45616,34.3139926 C1340.03995,35.8978026 1342.14539,36.7699537 1344.38477,36.7699537 C1346.31882,36.7699537 1348.15209,36.1182239 1349.63691,34.9207754 L1354.71608,40 L1356,38.7162898 Z M1344.50138,35 C1342.76493,35 1341.13229,34.3236864 1339.90449,33.0959448 C1338.67624,31.8682033 1338,30.236156 1338,28.4998877 C1338,26.7636194 1338.67624,25.1315721 1339.90449,23.9038305 C1341.13229,22.6760889 1342.76493,22 1344.50138,22 C1346.23804,22 1347.87091,22.6760889 1349.09916,23.9038305 C1351.63361,26.4381533 1351.63361,30.5618467 1349.09916,33.0959448 C1347.87091,34.3239111 1346.23804,35 1344.50138,35 Z" id="Search"></path> </g> </g> </svg></b> </a> </div> </div> </header> <main id="main-content"> <div class="page-header page-header--home"> <div class="page-header__image"> <figure class="image"> <div class="image__container"> <a href="https://www.whitehouse.gov/briefings-statements/pittsburgh-post-gazette-help-vets-trump-deploys-firepower-suicides/" aria-hidden="true" role="presentation" tabindex="-1"> <picture> <source srcset="https://www.whitehouse.gov/wp-content/uploads/2018/01/38906902864_b6865acc14_o-600x685.jpg" media="(max-width: 599px)"> <source srcset="https://www.whitehouse.gov/wp-content/uploads/2018/01/38906902864_b6865acc14_o-900x600.jpg 900w, https://www.whitehouse.gov/wp-content/uploads/2018/01/38906902864_b6865acc14_o-300x200.jpg 300w, https://www.whitehouse.gov/wp-content/uploads/2018/01/38906902864_b6865acc14_o-768x512.jpg 768w, https://www.whitehouse.gov/wp-content/uploads/2018/01/38906902864_b6865acc14_o-1024x683.jpg 1024w, https://www.whitehouse.gov/wp-content/uploads/2018/01/38906902864_b6865acc14_o-620x413.jpg 620w, https://www.whitehouse.gov/wp-content/uploads/2018/01/38906902864_b6865acc14_o-820x547.jpg 820w, https://www.whitehouse.gov/wp-content/uploads/2018/01/38906902864_b6865acc14_o.jpg 1200w" media="(max-width: 899px)"> <source srcset="https://www.whitehouse.gov/wp-content/uploads/2018/01/38906902864_b6865acc14_o-1200x600.jpg" media="(max-width: 1199px)"> <img width="1200" height="720" src="https://www.whitehouse.gov/wp-content/uploads/2018/01/38906902864_b6865acc14_o-1200x720.jpg" class="attachment-header-max size-header-max" alt="" /> </picture> <div class="image__overlay"></div> </a> </div> </figure> <div class="page-header__image-content"> <div class="page-header__image-content-inner"> <p class="issue-flag"> <a href="https://www.whitehouse.gov/issues/veterans/"> Veterans </a> </p> <h1 class="page-header__title"> <a href="https://www.whitehouse.gov/briefings-statements/pittsburgh-post-gazette-help-vets-trump-deploys-firepower-suicides/">Pittsburgh Post-Gazette: 'Help for Vets: Trump Deploys More Firepower Against Suicides'</a> </h1> </div> </div> </div> </div> <div class="page-content"> <div class="page-content__wrap"> <div class="search-form"> <form class="search-form__form" action="https://www.whitehouse.gov/search/"> <label class="visually-hidden" for="search-form__input"> Type Your Search </label> <input type="text" id="search-form__input" class="search-form__input" name="s" placeholder="Search WhiteHouse.gov" autocomplete="off"> <button type="submit" class="search-form__submit"> <img src="https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/search.png" alt="Search"> </button> </form> </div> <div class="page-content__featured"> <article class="article article--big"> <div class="article__image"> <figure class="image"> <div class="image__container"> <a href="https://www.whitehouse.gov/briefings-statements/remarks-president-trump-meeting-prison-reform/" aria-hidden="true" role="presentation" tabindex="-1"> <picture> <source srcset="https://www.whitehouse.gov/wp-content/uploads/2018/01/P20180111SC-0293-620x620.jpg 620w, https://www.whitehouse.gov/wp-content/uploads/2018/01/P20180111SC-0293-150x150.jpg 150w, https://www.whitehouse.gov/wp-content/uploads/2018/01/P20180111SC-0293-56x56.jpg 56w, https://www.whitehouse.gov/wp-content/uploads/2018/01/P20180111SC-0293-92x92.jpg 92w, https://www.whitehouse.gov/wp-content/uploads/2018/01/P20180111SC-0293-200x200.jpg 200w" media="(max-width: 699px)"> <img width="1200" height="600" src="https://www.whitehouse.gov/wp-content/uploads/2018/01/P20180111SC-0293-1200x600.jpg" class="attachment-header-1200 size-header-1200" alt="" /> </picture> <div class="image__overlay"></div> </a> </div> </figure> </div> <div class="article__content article__content--has-image"> <p class="issue-flag issue-flag--center"> <a href="https://www.whitehouse.gov/issues/law-justice/"> Law & Justice </a> </p> <h2 class="article__title"><a href="https://www.whitehouse.gov/briefings-statements/remarks-president-trump-meeting-prison-reform/">President Trump on Prison Reform: 'We Need to Do More Than Simply Remove People from Society'</a></h2> </div> </article> <article class="article article--small"> <div class="article__image"> <figure class="image"> <div class="image__container"> <a href="https://www.whitehouse.gov/briefings-statements/remarks-vice-president-afwerx-vegas/" aria-hidden="true" role="presentation" tabindex="-1"> <picture> <img width="620" height="620" src="https://www.whitehouse.gov/wp-content/uploads/2018/01/VP-Pence-Vegas-620x620.png" class="attachment-small-crop size-small-crop" alt="" srcset="https://www.whitehouse.gov/wp-content/uploads/2018/01/VP-Pence-Vegas-620x620.png 620w, https://www.whitehouse.gov/wp-content/uploads/2018/01/VP-Pence-Vegas-150x150.png 150w, https://www.whitehouse.gov/wp-content/uploads/2018/01/VP-Pence-Vegas-56x56.png 56w, https://www.whitehouse.gov/wp-content/uploads/2018/01/VP-Pence-Vegas-92x92.png 92w, https://www.whitehouse.gov/wp-content/uploads/2018/01/VP-Pence-Vegas-200x200.png 200w" /> </picture> <div class="image__overlay"></div> </a> </div> </figure> </div> <div class="article__content article__content--has-image"> <p class="issue-flag issue-flag--center"> <a href="https://www.whitehouse.gov/issues/national-security-defense/"> National Security & Defense </a> </p> <h2 class="article__title"><a href="https://www.whitehouse.gov/briefings-statements/remarks-vice-president-afwerx-vegas/">Vice President Pence Speaks on Innovation and the U.S. Air Force</a></h2> </div> </article> <article class="tweet tweet--small"> <div class="tweet__content"> <div class="tweet__account"> <b class="svg svg--twitter" data-svg-url="https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/twitter.svg" data-icon="twitter"><svg aria-label="Twitter" role="img" version="1.1" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><title>twitter</title> <path d="M16 3.538c-0.588 0.263-1.222 0.438-1.884 0.516 0.678-0.406 1.197-1.050 1.444-1.816-0.634 0.375-1.338 0.65-2.084 0.797-0.6-0.638-1.453-1.034-2.397-1.034-1.813 0-3.281 1.469-3.281 3.281 0 0.256 0.028 0.506 0.084 0.747-2.728-0.138-5.147-1.444-6.766-3.431-0.281 0.484-0.444 1.050-0.444 1.65 0 1.138 0.578 2.144 1.459 2.731-0.538-0.016-1.044-0.166-1.488-0.409 0 0.013 0 0.028 0 0.041 0 1.591 1.131 2.919 2.634 3.219-0.275 0.075-0.566 0.116-0.866 0.116-0.212 0-0.416-0.022-0.619-0.059 0.419 1.303 1.631 2.253 3.066 2.281-1.125 0.881-2.538 1.406-4.078 1.406-0.266 0-0.525-0.016-0.784-0.047 1.456 0.934 3.181 1.475 5.034 1.475 6.037 0 9.341-5.003 9.341-9.341 0-0.144-0.003-0.284-0.009-0.425 0.641-0.459 1.197-1.038 1.637-1.697z"></path> </svg> </b> <a href="https://twitter.com/WhiteHouse">@WhiteHouse</a> </div> <p>“My Administration is committed to helping former inmates become productive, law-abiding members of society.” More from President Trump on prison reform: <a href="http://45.wh.gov/A2TbPA">http://45.wh.gov/A2TbPA </a></p> <div class="meta meta--left"> <p class="meta__date"> <time><a href="https://twitter.com/WhiteHouse/status/951615466191052800">01/11/2018 7:43 pm</a></time> </p> </div> </div> </article> <article class="article article--big"> <div class="article__image"> <figure class="image"> <div class="image__container"> <a href="https://www.whitehouse.gov/briefings-statements/wtas-support-president-trumps-speech-american-farm-bureau/" aria-hidden="true" role="presentation" tabindex="-1"> <picture> <source srcset="https://www.whitehouse.gov/wp-content/uploads/2018/01/SDC_0449-620x620.jpg 620w, https://www.whitehouse.gov/wp-content/uploads/2018/01/SDC_0449-150x150.jpg 150w, https://www.whitehouse.gov/wp-content/uploads/2018/01/SDC_0449-56x56.jpg 56w, https://www.whitehouse.gov/wp-content/uploads/2018/01/SDC_0449-92x92.jpg 92w, https://www.whitehouse.gov/wp-content/uploads/2018/01/SDC_0449-200x200.jpg 200w" media="(max-width: 699px)"> <img width="1200" height="600" src="https://www.whitehouse.gov/wp-content/uploads/2018/01/SDC_0449-1200x600.jpg" class="attachment-header-1200 size-header-1200" alt="" /> </picture> <div class="image__overlay"></div> </a> </div> </figure> </div> <div class="article__content article__content--has-image"> <p class="issue-flag issue-flag--center"> <a href="https://www.whitehouse.gov/issues/land-agriculture/"> Land & Agriculture </a> </p> <h2 class="article__title"><a href="https://www.whitehouse.gov/briefings-statements/wtas-support-president-trumps-speech-american-farm-bureau/">What Leaders Are Saying About President Trump's Speech to the American Farm Bureau</a></h2> </div> </article> </div> </div> </div> <div class="history"> <div class="history__wrap"> <div class="history__content"> <h2 class="history__title"><span>History of </span>The White House</h2> <p class="history__description"> Our first president, George Washington, selected the site for the White House in 1791. Every president since John Adams has occupied the White House, and the history of this building extends far beyond the construction of its walls. </p> <ul class="history__nav"> <li><a href="https://www.whitehouse.gov/about-the-white-house/the-white-house/" class="nav__link">The Building</a></li><li><a href="https://www.whitehouse.gov/about-the-white-house/presidents/" class="nav__link">Past Presidents and First Ladies</a></li><li><a href="https://www.whitehouse.gov/about-the-white-house/" class="nav__link">About The White House</a></li> </ul> </div> <div class="history__images"> <figure class="image image--first"> <div class="image__container"> <picture> <source srcset="https://www.whitehouse.gov/wp-content/uploads/2017/11/bitmap.jpg 466w, https://www.whitehouse.gov/wp-content/uploads/2017/11/bitmap-300x199.jpg 300w" media="(max-width: 499px)"> <img width="466" height="309" src="https://www.whitehouse.gov/wp-content/uploads/2017/11/bitmap.jpg" class="attachment-medium-crop size-medium-crop" alt="" srcset="https://www.whitehouse.gov/wp-content/uploads/2017/11/bitmap.jpg 466w, https://www.whitehouse.gov/wp-content/uploads/2017/11/bitmap-300x199.jpg 300w" /> </picture> <div class="image__overlay"></div> </div> </figure> <figure class="image image--second"> <div class="image__container"> <picture> <source srcset="https://www.whitehouse.gov/wp-content/uploads/2017/11/bitmap-1.jpg" media="(max-width: 499px)"> <img width="264" height="177" src="https://www.whitehouse.gov/wp-content/uploads/2017/11/bitmap-1.jpg" class="attachment-medium-crop size-medium-crop" alt="" /> </picture> <div class="image__overlay"></div> </div> </figure> </div> </div> <div class="history__background-image"> <figure class="image"> <div class="image__container"> <picture> <source srcset="https://www.whitehouse.gov/wp-content/uploads/2017/11/WhiteHouse-Faded-600x685.jpg" media="(max-width: 399px)"> <source srcset="https://www.whitehouse.gov/wp-content/uploads/2017/11/WhiteHouse-Faded-900x600.jpg" media="(max-width: 699px)"> <img width="1387" height="720" src="https://www.whitehouse.gov/wp-content/uploads/2017/11/WhiteHouse-Faded-1387x720.jpg" class="attachment-header-max size-header-max" alt="" /> </picture> <div class="image__overlay"></div> </div> </figure> </div> </div> <div class="signup"> <aside class="editor__module editor__module--full"> <div class="module module-type-fastform fastform fastform--gradient fastform--gradient-gold fastform--signup"> <div class="module__wrap"> <h2 class="module__title">Sign Up for White House Updates</h2> <script type="text/javascript" id="jsFastForms" src="https://wh45.secure.force.com/PublicForms/services/apexrest/VisualAntidote/FFNEngine/v1/?d=6wOI27c0RZhevPQQ8W95yw%3D%3D"></script> </div> </div> </aside> </div> </main><!-- end main --> <footer class="footer"> <div class="footer__wrap"> <div class="footer__logo"> <a href="https://www.whitehouse.gov"> <img class="footer__img" src="https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/white-house-logo-footer-sm.png" srcset="https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/white-house-logo-footer-sm.png 1x, https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/white-house-logo-footer-md.png 2x, https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/white-house-logo-footer-lg.png 3x" alt="White House Logo"> </a> </div> <div class="footer__site-title">The White House</div> <span class="footer__divider divider"><hr><hr></span> <div class="footer__nav"> <nav class="nav nav--footer"><ul class="nav__menu nav__menu--depth0 menu"><li class="nav__menu-item nav__menu-item--depth0 menu-item menu-item-type-post_type menu-item-object-page menu-item-17230"><a href="https://www.whitehouse.gov/live/" class="nav__link">Live</a></li> <li class="nav__menu-item nav__menu-item--depth0 menu-item menu-item-type-custom menu-item-object-custom menu-item-8288"><a href="https://apply.whitehouse.gov/" class="nav__link">Jobs</a></li> <li class="nav__menu-item nav__menu-item--depth0 menu-item menu-item-type-post_type menu-item-object-page menu-item-8093"><a href="https://www.whitehouse.gov/get-involved/" class="nav__link">Get Involved</a></li> <li class="nav__menu-item nav__menu-item--depth0 menu-item menu-item-type-post_type menu-item-object-page menu-item-8092"><a href="https://www.whitehouse.gov/copyright/" class="nav__link">Copyright Policy</a></li> <li class="nav__menu-item nav__menu-item--depth0 menu-item menu-item-type-post_type menu-item-object-page menu-item-8095"><a href="https://www.whitehouse.gov/privacy-policy/" class="nav__link">Privacy Policy</a></li> </ul></nav> </div> </div> <div class="footer__social"> <nav class="nav nav--social-links-menu"><ul class="nav__menu nav__menu--depth0 menu"><li class="nav__menu-item nav__menu-item--depth0 footer__social-link__twitter menu-item menu-item-type-custom menu-item-object-custom menu-item-21"><a target="_blank" href="https://twitter.com/whitehouse" class="nav__link"><span>Twitter</span></a></li> <li class="nav__menu-item nav__menu-item--depth0 footer__social-link__facebook menu-item menu-item-type-custom menu-item-object-custom menu-item-20"><a target="_blank" href="https://www.facebook.com/WhiteHouse/" class="nav__link"><span>Facebook</span></a></li> <li class="nav__menu-item nav__menu-item--depth0 footer__social-link__instagram menu-item menu-item-type-custom menu-item-object-custom menu-item-22"><a target="_blank" href="https://www.instagram.com/whitehouse/" class="nav__link"><span>Instagram</span></a></li> <li class="nav__menu-item nav__menu-item--depth0 footer__social-link__email menu-item menu-item-type-custom menu-item-object-custom menu-item-23"><a href="/contact/" class="nav__link"><span>Contact</span></a></li> </ul></nav> </div> </footer> </div><!-- end .body-overflow --> <section id="wp-footer"> <script type="text/javascript" src="https://www.whitehouse.gov/wp-content/cache/minify/10cc5.js"></script> <script type='text/javascript'> window.site = new Site.default(); </script> </section> <div class="popover popover--seal"> <div class="wrap"> <div class="close"> <a href="#"><img src="https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/close.svg" alt="close" /></a> </div> <div class="popover__box"> <div class="popover__nav"> <nav class="nav nav--popover"><ul class="nav__menu nav__menu--depth0 menu"><li class="nav__menu-item nav__menu-item--depth0 menu-item menu-item-type-post_type menu-item-object-page menu-item-658"><a href="https://www.whitehouse.gov/news/" class="nav__link">News</a></li> <li class="nav__menu-item nav__menu-item--depth0 menu-item menu-item-type-post_type menu-item-object-page menu-item-659"><a href="https://www.whitehouse.gov/issues/" class="nav__link">Issues</a></li> <li class="nav__menu-item nav__menu-item--depth0 menu-item menu-item-type-post_type menu-item-object-page menu-item-795"><a href="https://www.whitehouse.gov/the-trump-administration/" class="nav__link">The Administration</a></li> <li class="nav__menu-item nav__menu-item--depth0 menu-item menu-item-type-post_type menu-item-object-page menu-item-1548"><a href="https://www.whitehouse.gov/about-the-white-house/" class="nav__link">About The White House</a></li> <li class="nav__menu-item nav__menu-item--depth0 menu-item menu-item-type-post_type menu-item-object-page menu-item-5738"><a href="https://www.whitehouse.gov/get-involved/" class="nav__link">Get Involved</a></li> </ul></nav> <div class="popover__mobile"> <nav class="nav nav--primary"><ul class="nav__menu nav__menu--depth0 menu"><li class="nav__menu-item nav__menu-item--depth0 menu-item menu-item-type-post_type menu-item-object-issue menu-item-692"><a href="https://www.whitehouse.gov/issues/economy-jobs/" class="nav__link">Economy</a></li> <li class="nav__menu-item nav__menu-item--depth0 menu-item menu-item-type-post_type menu-item-object-issue menu-item-693"><a href="https://www.whitehouse.gov/issues/national-security-defense/" class="nav__link">National Security</a></li> <li class="nav__menu-item nav__menu-item--depth0 menu-item menu-item-type-post_type menu-item-object-issue menu-item-16229"><a href="https://www.whitehouse.gov/issues/budget-spending/" class="nav__link">Budget</a></li> <li class="nav__menu-item nav__menu-item--depth0 menu-item menu-item-type-post_type menu-item-object-issue menu-item-16236"><a href="https://www.whitehouse.gov/issues/immigration/" class="nav__link">Immigration</a></li> <li class="nav__menu-item nav__menu-item--depth0 menu-item menu-item-type-post_type menu-item-object-issue menu-item-688"><a href="https://www.whitehouse.gov/issues/healthcare/" class="nav__link">Healthcare</a></li> </ul></nav> </div> </div> <div class="popover__seal"> <img src="https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/presidential-crest.svg" alt="Presidential Crest" /> </div> </div> </div> </div> <div class="search-overlay"> <img src="https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/white-house-logo-sm-wh.png" srcset="https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/white-house-logo-sm-wh.png 1x, https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/white-house-logo-md-wh.png 2x, https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/white-house-logo-lg-wh.png 3x" alt="White House Logo" class="logo--white" /> <a href="#" class="search-overlay__hamburger header__hamburger"> <b class="svg svg--hamburger" data-svg-url="https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/hamburger.svg" data-img-url="https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/hamburger.png" data-icon="hamburger"><svg aria-label="Open Menu" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 14"><path d="M.64,12H16.36c.36,0,.64.43.64,1s-.28,1-.64,1H.64C.28,14,0,13.57,0,13s.28-1,.64-1M23.1,2H.9A.94.94,0,0,1,0,1,.94.94,0,0,1,.9,0H23.1A.94.94,0,0,1,24,1a.94.94,0,0,1-.9,1M.9,8A.94.94,0,0,1,0,7,.94.94,0,0,1,.9,6H23.1A.94.94,0,0,1,24,7a.94.94,0,0,1-.9,1Z" fill="#a98860"/></svg><title>open-menu</title></b> </a> <button type="button" class="search-overlay__close"> <b class="svg svg--close" data-svg-url="https://www.whitehouse.gov/wp-content/themes/whitehouse/assets/img/close.svg" data-icon="close"> <svg aria-label="Close Search" role="img" width="19px" height="18px" viewBox="0 0 19 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <g transform="translate(-180.000000, -525.000000)" fill="#A98860"> <g transform="translate(20.000000, 478.000000)"> <path d="M177.668897,62.0337349 L171.050973,55.5 L177.648216,48.9662651 L177.668897,48.9457831 C178.041362,48.5361446 178.041362,47.9012048 177.648216,47.5325301 C177.441406,47.3277108 177.172759,47.2253012 176.883018,47.2253012 C176.614165,47.2253012 176.365993,47.3481928 176.180071,47.5325301 L169.582621,54.0662651 L162.778567,47.3072289 C162.571757,47.1024096 162.302904,47 162.01337,47 C161.744516,47 161.496344,47.1228916 161.310215,47.3072289 C161.124086,47.5120482 161,47.7781084 161.020681,48.0445783 C161.020681,48.3108434 161.144974,48.5566265 161.330896,48.7409639 L168.13495,55.5 L161.310215,62.2590361 C161.103405,62.4638554 161,62.7299157 161,63.0168675 C161,63.2831325 161.124086,63.5289157 161.310215,63.7130482 C161.455189,63.8361446 161.682473,64 162.034051,64 C162.406309,64 162.6338,63.8361446 162.778567,63.7130482 L169.603302,56.9542169 L176.200545,63.4879518 C176.345519,63.6313253 176.572803,63.7746988 176.945061,63.7746988 C177.317527,63.7746988 177.544811,63.6106386 177.689785,63.4879518 C177.896595,63.2831325 178,63.0168675 178,62.7299157 C177.979112,62.4638554 177.875707,62.2178675 177.668897,62.0337349" transform="translate(169.500000, 55.500000) rotate(-1.000000) translate(-169.500000, -55.500000) "></path> </g> </g> </svg> </b> <span class="visually-hidden">Close Search</span> </button> <form class="search-overlay__form" action="https://www.whitehouse.gov/search/"> <label class="visually-hidden" for="search-overlay__input"> Type Your Search </label> <input type="text" id="search-overlay__input" class="search-overlay__input" name="s" placeholder="Type Your Search..." autocomplete="off"> <button type="submit" class="search-overlay__submit">Press enter to search</button> </form> </div> <script type="text/javascript">window.NREUM||(NREUM={});NREUM.info={"beacon":"bam.nr-data.net","licenseKey":"9360826e15","applicationID":"81062031","transactionName":"MVNbZhQFXEAEVBBfWQgZeFESDV1dSlEWWVgSG0lTAQE=","queueTime":0,"applicationTime":385,"atts":"HRRYEFwfT04=","errorBeacon":"bam.nr-data.net","agent":""}</script></body> </html> <!-- Performance optimized by W3 Total Cache. Learn more: https://www.w3-edge.com/products/ Object Caching 1902/97 objects using memcached Minified using memcached Served from: www.whitehouse.gov @ 2018-01-14 11:15:09 by W3 Total Cache -->
Yoast SEO
Yoast SEO 算得上是WordPress所有SEO插件资历比较老的一款插件了。自2008年发布至今插件一直保持着更新,目前该插件的安装量已达数百万。无论是在一些名不见经传的小网站还是一些最受欢迎的大型网站上都经常可以看到他的身影。插件支持对SEO标题、元信息、关键词的编辑,并且还会针对你的文章提出优化建议,实时预览文章的显示效果,对于国外网站,插件还提供有社交化管理,支持自定义Facebook及Twitter的分享标题、描述及图片。总之这款插件功能多多,简单多多,特别适合新手小白使用。
Google Analytics for WordPress by MonsterInsights
插件的主要作用是将你的WordPress网站与Google Analytics连接起来,方便我们在网站后台直接查看网站访问者的信息,简单来说,插件就是用来显示网站的统计数据的。插件不单单能追踪访客访问信息,还能针对页面受欢迎程度对页面进行分级,方便站长根据用户需求合理发布文章。同时付费版插件还可以针对电子商务、网站广告、文件下载、链接等进行跟踪,并显示相应的统计数据。国内用户的话实用性并不强,使用百度统计可能会更符合国情吧。
W3 Total Cache
W3 Total Cache ——又是一款网站静态化缓存插件。主要是用来实现网站页面静态化,加速网站访问速度的,与 WP Super Cache差不多,但是配置起来可能相对于WP Super Cache复杂一些,不过功能确实更强悍一些。网上关于静态化缓存的内容很多,这里我就不再过多赘述了,大家可以自行搜索一下。
评论 (10)
WordPress实在是太有名了,然后就是国内的DEDE,DZ,EMS,Z-BLOG,Drupal还真很少知道
Drupal8这个东西我可是第一次听说的
哈哈,还有很多有意思的东西需要我们去不断发现。
无事就去寻找乐趣了!
让学Drupal8的我情何以堪
之前白宫网站就是Drupal8的,其实都无所谓。任何一个系统搞明白了都能搭建出不错的网站。
wp只要优化的好,速度方面基本是没有问题的。
其实任何一种推广开来的系统都不会太差,各有各的优点,只要合理优化都可以飞起。
非常不错!!!!
谢谢支持